Testcase for limited precision stuff.
[llvm/msp430.git] / configure
blob517fe93ce23b1860d98c052ddcc4dae211c8ab4f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for llvm 2.5svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
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.
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 emulate sh
21 NULLCMD=:
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
29 esac
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
48 chmod +x conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50 PATH_SEPARATOR=';'
51 else
52 PATH_SEPARATOR=:
54 rm -f conf$$.sh
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59 as_unset=unset
60 else
61 as_unset=false
65 # IFS
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
70 as_nl='
72 IFS=" "" $as_nl"
74 # Find who we are. Look in the path if we contain no directory separator.
75 case $0 in
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
80 IFS=$as_save_IFS
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
87 esac
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
91 as_myself=$0
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 { (exit 1); exit 1; }
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
106 # NLS nuisances.
107 for as_var in \
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 LC_TELEPHONE LC_TIME
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
114 else
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 done
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
122 as_expr=expr
123 else
124 as_expr=false
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 as_basename=basename
129 else
130 as_basename=false
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo X/"$0" |
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
141 s//\1/
144 /^X\/\(\/\/\)$/{
145 s//\1/
148 /^X\/\(\/\).*/{
149 s//\1/
152 s/.*/./; q'`
154 # CDPATH.
155 $as_unset CDPATH
158 if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
160 as_have_required=yes
161 else
162 as_have_required=no
165 if test $as_have_required = yes && (eval ":
166 (as_func_return () {
167 (exit \$1)
169 as_func_success () {
170 as_func_return 0
172 as_func_failure () {
173 as_func_return 1
175 as_func_ret_success () {
176 return 0
178 as_func_ret_failure () {
179 return 1
182 exitcode=0
183 if as_func_success; then
185 else
186 exitcode=1
187 echo as_func_success failed.
190 if as_func_failure; then
191 exitcode=1
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
197 else
198 exitcode=1
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
203 exitcode=1
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 else
210 exitcode=1
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
217 as_lineno_1=\$LINENO
218 as_lineno_2=\$LINENO
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
223 else
224 as_candidate_shells=
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 IFS=$as_save_IFS
229 test -z "$as_dir" && as_dir=.
230 case $as_dir in
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 done;;
235 esac
236 done
237 IFS=$as_save_IFS
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 emulate sh
246 NULLCMD=:
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
250 setopt NO_GLOB_SUBST
251 else
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
254 esac
260 _ASEOF
261 }; then
262 CONFIG_SHELL=$as_shell
263 as_have_required=yes
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 emulate sh
267 NULLCMD=:
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
271 setopt NO_GLOB_SUBST
272 else
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
275 esac
281 (as_func_return () {
282 (exit $1)
284 as_func_success () {
285 as_func_return 0
287 as_func_failure () {
288 as_func_return 1
290 as_func_ret_success () {
291 return 0
293 as_func_ret_failure () {
294 return 1
297 exitcode=0
298 if as_func_success; then
300 else
301 exitcode=1
302 echo as_func_success failed.
305 if as_func_failure; then
306 exitcode=1
307 echo as_func_failure succeeded.
310 if as_func_ret_success; then
312 else
313 exitcode=1
314 echo as_func_ret_success failed.
317 if as_func_ret_failure; then
318 exitcode=1
319 echo as_func_ret_failure succeeded.
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 else
325 exitcode=1
326 echo positional parameters were not saved.
329 test $exitcode = 0) || { (exit 1); exit 1; }
332 as_lineno_1=$LINENO
333 as_lineno_2=$LINENO
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
337 _ASEOF
338 }; then
339 break
344 done
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 done
350 export CONFIG_SHELL
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
371 (exit \$1)
373 as_func_success () {
374 as_func_return 0
376 as_func_failure () {
377 as_func_return 1
379 as_func_ret_success () {
380 return 0
382 as_func_ret_failure () {
383 return 1
386 exitcode=0
387 if as_func_success; then
389 else
390 exitcode=1
391 echo as_func_success failed.
394 if as_func_failure; then
395 exitcode=1
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
401 else
402 exitcode=1
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
407 exitcode=1
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 else
414 exitcode=1
415 echo positional parameters were not saved.
418 test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
422 echo message
427 as_lineno_1=$LINENO
428 as_lineno_2=$LINENO
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
438 # case at line end.
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
450 :lineno
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
464 . "./$as_me.lineno"
465 # Exit status is that of the last command.
466 exit
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471 as_dirname=dirname
472 else
473 as_dirname=false
476 ECHO_C= ECHO_N= ECHO_T=
477 case `echo -n x` in
478 -n*)
479 case `echo 'x\c'` in
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 *) ECHO_C='\c';;
482 esac;;
484 ECHO_N='-n';;
485 esac
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
489 as_expr=expr
490 else
491 as_expr=false
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
497 else
498 rm -f conf$$.dir
499 mkdir conf$$.dir
501 echo >conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s='ln -s'
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 as_ln_s='cp -p'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511 as_ln_s=ln
512 else
513 as_ln_s='cp -p'
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
518 if mkdir -p . 2>/dev/null; then
519 as_mkdir_p=:
520 else
521 test -d ./-p && rmdir ./-p
522 as_mkdir_p=false
525 if test -x / >/dev/null 2>&1; then
526 as_test_x='test -x'
527 else
528 if ls -dL / >/dev/null 2>&1; then
529 as_ls_L_option=L
530 else
531 as_ls_L_option=
533 as_test_x='
534 eval sh -c '\''
535 if test -d "$1"; then
536 test -d "$1/.";
537 else
538 case $1 in
539 -*)set "./$1";;
540 esac;
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
543 '\'' sh
546 as_executable_p=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
560 case X$ECHO in
561 X*--fallback-echo)
562 # Remove one level of quotation (which was required for Make).
563 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
565 esac
567 echo=${ECHO-echo}
568 if test "X$1" = X--no-reexec; then
569 # Discard the --no-reexec flag, and continue.
570 shift
571 elif test "X$1" = X--fallback-echo; then
572 # Avoid inline document here, it may be left over
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575 # Yippee, $echo works!
577 else
578 # Restart under the correct shell.
579 exec $SHELL "$0" --no-reexec ${1+"$@"}
582 if test "X$1" = X--fallback-echo; then
583 # used as fallback echo
584 shift
585 cat <<EOF
588 exit 0
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 # if CDPATH is set.
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601 echo_test_string=`eval $cmd` &&
602 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603 then
604 break
606 done
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
613 else
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
618 # So, first we look for a working echo in the user's PATH.
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
622 IFS="$lt_save_ifs"
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 echo="$dir/echo"
628 break
630 done
631 IFS="$lt_save_ifs"
633 if test "X$echo" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
639 echo='print -r'
640 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
646 export CONFIG_SHELL
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 else
649 # Try using printf.
650 echo='printf %s\n'
651 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # Cool, printf works
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 export CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
663 export SHELL
664 echo="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 echo="$CONFIG_SHELL $0 --fallback-echo"
670 else
671 # maybe with a smaller string...
672 prev=:
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676 then
677 break
679 prev="$cmd"
680 done
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 else
687 # Oops. We lost completely, so just stick with echo.
688 echo=echo
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 ECHO=$echo
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
706 tagnames=${tagnames+${tagnames},}CXX
708 tagnames=${tagnames+${tagnames},}F77
710 exec 7<&0 </dev/null 6>&1
712 # Name of the host.
713 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
714 # so uname gets run too.
715 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 # Initializations.
720 ac_default_prefix=/usr/local
721 ac_clean_files=
722 ac_config_libobj_dir=.
723 LIBOBJS=
724 cross_compiling=no
725 subdirs=
726 MFLAGS=
727 MAKEFLAGS=
728 SHELL=${CONFIG_SHELL-/bin/sh}
730 # Identity of this package.
731 PACKAGE_NAME='llvm'
732 PACKAGE_TARNAME='-llvm-'
733 PACKAGE_VERSION='2.5svn'
734 PACKAGE_STRING='llvm 2.5svn'
735 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
737 ac_unique_file="lib/VMCore/Module.cpp"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
740 #include <stdio.h>
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
743 #endif
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
746 #endif
747 #ifdef STDC_HEADERS
748 # include <stdlib.h>
749 # include <stddef.h>
750 #else
751 # ifdef HAVE_STDLIB_H
752 # include <stdlib.h>
753 # endif
754 #endif
755 #ifdef HAVE_STRING_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 # include <memory.h>
758 # endif
759 # include <string.h>
760 #endif
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
763 #endif
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
766 #endif
767 #ifdef HAVE_STDINT_H
768 # include <stdint.h>
769 #endif
770 #ifdef HAVE_UNISTD_H
771 # include <unistd.h>
772 #endif"
774 ac_subst_vars='SHELL
775 PATH_SEPARATOR
776 PACKAGE_NAME
777 PACKAGE_TARNAME
778 PACKAGE_VERSION
779 PACKAGE_STRING
780 PACKAGE_BUGREPORT
781 exec_prefix
782 prefix
783 program_transform_name
784 bindir
785 sbindir
786 libexecdir
787 datarootdir
788 datadir
789 sysconfdir
790 sharedstatedir
791 localstatedir
792 includedir
793 oldincludedir
794 docdir
795 infodir
796 htmldir
797 dvidir
798 pdfdir
799 psdir
800 libdir
801 localedir
802 mandir
803 DEFS
804 ECHO_C
805 ECHO_N
806 ECHO_T
807 LIBS
808 build_alias
809 host_alias
810 target_alias
811 LLVM_COPYRIGHT
812 subdirs
813 build
814 build_cpu
815 build_vendor
816 build_os
817 host
818 host_cpu
819 host_vendor
820 host_os
821 target
822 target_cpu
823 target_vendor
824 target_os
826 LINKALL
827 NOLINKALL
828 LLVM_ON_UNIX
829 LLVM_ON_WIN32
830 ARCH
831 ENDIAN
833 CFLAGS
834 LDFLAGS
835 CPPFLAGS
836 ac_ct_CC
837 EXEEXT
838 OBJEXT
840 GREP
841 EGREP
842 LLVM_CROSS_COMPILING
843 BUILD_CC
844 BUILD_EXEEXT
845 BUILD_CXX
846 CVSBUILD
847 ENABLE_OPTIMIZED
848 DISABLE_ASSERTIONS
849 ENABLE_EXPENSIVE_CHECKS
850 EXPENSIVE_CHECKS
851 DEBUG_RUNTIME
853 TARGET_HAS_JIT
854 ENABLE_DOXYGEN
855 ENABLE_THREADS
856 ENABLE_PIC
857 TARGETS_TO_BUILD
858 ENABLE_CBE_PRINTF_A
859 EXTRA_OPTIONS
861 CXXFLAGS
862 ac_ct_CXX
864 LEX_OUTPUT_ROOT
865 LEXLIB
866 FLEX
867 YACC
868 YFLAGS
869 BISON
871 ifGNUmake
872 LN_S
875 DATE
876 FIND
877 MKDIR
879 RANLIB
883 BINPWD
884 GRAPHVIZ
887 DOTTY
888 PERL
889 HAVE_PERL
890 INSTALL_PROGRAM
891 INSTALL_SCRIPT
892 INSTALL_DATA
893 BZIP2
894 DOXYGEN
895 GROFF
896 GZIP
897 POD2HTML
898 POD2MAN
899 RUNTEST
900 TCLSH
902 OCAMLC
903 OCAMLOPT
904 OCAMLDEP
905 OCAMLDOC
907 INSTALL_LTDL_TRUE
908 INSTALL_LTDL_FALSE
909 CONVENIENCE_LTDL_TRUE
910 CONVENIENCE_LTDL_FALSE
911 LIBADD_DL
912 ECHO
914 STRIP
915 CXXCPP
917 FFLAGS
918 ac_ct_F77
919 LIBTOOL
920 LLVMGCC
921 LLVMGXX
922 USE_UDIS86
923 HAVE_PTHREAD
924 HUGE_VAL_SANITY
925 ALLOCA
926 MMAP_FILE
927 LLVMCC1
928 LLVMCC1PLUS
929 LLVMGCCDIR
930 LLVMGCCLIBEXEC
931 LLVMGCC_VERSION
932 LLVMGCC_MAJVERS
933 LLVMGCC_LANGS
934 SHLIBEXT
935 LLVM_PREFIX
936 LLVM_BINDIR
937 LLVM_LIBDIR
938 LLVM_DATADIR
939 LLVM_DOCSDIR
940 LLVM_ETCDIR
941 LLVM_INCLUDEDIR
942 LLVM_INFODIR
943 LLVM_MANDIR
944 LLVM_CONFIGTIME
945 BINDINGS_TO_BUILD
946 ALL_BINDINGS
947 OCAML_LIBDIR
948 ENABLE_VISIBILITY_INLINES_HIDDEN
949 LIBOBJS
950 LTLIBOBJS'
951 ac_subst_files=''
952 ac_precious_vars='build_alias
953 host_alias
954 target_alias
956 CFLAGS
957 LDFLAGS
958 LIBS
959 CPPFLAGS
962 CXXFLAGS
964 YACC
965 YFLAGS
966 CXXCPP
968 FFLAGS'
969 ac_subdirs_all='projects/sample
970 projects/privbracket
971 projects/llvm-stacker
972 projects/llvm-test
973 projects/test-suite
974 projects/llvm-reopt
975 projects/llvm-gcc
976 projects/llvm-java
977 projects/llvm-tv
978 projects/llvm-poolalloc
979 projects/poolalloc
980 projects/llvm-kernel'
982 # Initialize some variables set by options.
983 ac_init_help=
984 ac_init_version=false
985 # The variables have the same names as the options, with
986 # dashes changed to underlines.
987 cache_file=/dev/null
988 exec_prefix=NONE
989 no_create=
990 no_recursion=
991 prefix=NONE
992 program_prefix=NONE
993 program_suffix=NONE
994 program_transform_name=s,x,x,
995 silent=
996 site=
997 srcdir=
998 verbose=
999 x_includes=NONE
1000 x_libraries=NONE
1002 # Installation directory options.
1003 # These are left unexpanded so users can "make install exec_prefix=/foo"
1004 # and all the variables that are supposed to be based on exec_prefix
1005 # by default will actually change.
1006 # Use braces instead of parens because sh, perl, etc. also accept them.
1007 # (The list follows the same order as the GNU Coding Standards.)
1008 bindir='${exec_prefix}/bin'
1009 sbindir='${exec_prefix}/sbin'
1010 libexecdir='${exec_prefix}/libexec'
1011 datarootdir='${prefix}/share'
1012 datadir='${datarootdir}'
1013 sysconfdir='${prefix}/etc'
1014 sharedstatedir='${prefix}/com'
1015 localstatedir='${prefix}/var'
1016 includedir='${prefix}/include'
1017 oldincludedir='/usr/include'
1018 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1019 infodir='${datarootdir}/info'
1020 htmldir='${docdir}'
1021 dvidir='${docdir}'
1022 pdfdir='${docdir}'
1023 psdir='${docdir}'
1024 libdir='${exec_prefix}/lib'
1025 localedir='${datarootdir}/locale'
1026 mandir='${datarootdir}/man'
1028 ac_prev=
1029 ac_dashdash=
1030 for ac_option
1032 # If the previous option needs an argument, assign it.
1033 if test -n "$ac_prev"; then
1034 eval $ac_prev=\$ac_option
1035 ac_prev=
1036 continue
1039 case $ac_option in
1040 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041 *) ac_optarg=yes ;;
1042 esac
1044 # Accept the important Cygnus configure options, so we can diagnose typos.
1046 case $ac_dashdash$ac_option in
1048 ac_dashdash=yes ;;
1050 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1051 ac_prev=bindir ;;
1052 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1053 bindir=$ac_optarg ;;
1055 -build | --build | --buil | --bui | --bu)
1056 ac_prev=build_alias ;;
1057 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1058 build_alias=$ac_optarg ;;
1060 -cache-file | --cache-file | --cache-fil | --cache-fi \
1061 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1062 ac_prev=cache_file ;;
1063 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1064 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1065 cache_file=$ac_optarg ;;
1067 --config-cache | -C)
1068 cache_file=config.cache ;;
1070 -datadir | --datadir | --datadi | --datad)
1071 ac_prev=datadir ;;
1072 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1073 datadir=$ac_optarg ;;
1075 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1076 | --dataroo | --dataro | --datar)
1077 ac_prev=datarootdir ;;
1078 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1079 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1080 datarootdir=$ac_optarg ;;
1082 -disable-* | --disable-*)
1083 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1086 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087 { (exit 1); exit 1; }; }
1088 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1089 eval enable_$ac_feature=no ;;
1091 -docdir | --docdir | --docdi | --doc | --do)
1092 ac_prev=docdir ;;
1093 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1094 docdir=$ac_optarg ;;
1096 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1097 ac_prev=dvidir ;;
1098 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1099 dvidir=$ac_optarg ;;
1101 -enable-* | --enable-*)
1102 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1108 eval enable_$ac_feature=\$ac_optarg ;;
1110 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1111 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1112 | --exec | --exe | --ex)
1113 ac_prev=exec_prefix ;;
1114 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1115 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1116 | --exec=* | --exe=* | --ex=*)
1117 exec_prefix=$ac_optarg ;;
1119 -gas | --gas | --ga | --g)
1120 # Obsolete; use --with-gas.
1121 with_gas=yes ;;
1123 -help | --help | --hel | --he | -h)
1124 ac_init_help=long ;;
1125 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1126 ac_init_help=recursive ;;
1127 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1128 ac_init_help=short ;;
1130 -host | --host | --hos | --ho)
1131 ac_prev=host_alias ;;
1132 -host=* | --host=* | --hos=* | --ho=*)
1133 host_alias=$ac_optarg ;;
1135 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1136 ac_prev=htmldir ;;
1137 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1138 | --ht=*)
1139 htmldir=$ac_optarg ;;
1141 -includedir | --includedir | --includedi | --included | --include \
1142 | --includ | --inclu | --incl | --inc)
1143 ac_prev=includedir ;;
1144 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1145 | --includ=* | --inclu=* | --incl=* | --inc=*)
1146 includedir=$ac_optarg ;;
1148 -infodir | --infodir | --infodi | --infod | --info | --inf)
1149 ac_prev=infodir ;;
1150 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1151 infodir=$ac_optarg ;;
1153 -libdir | --libdir | --libdi | --libd)
1154 ac_prev=libdir ;;
1155 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1156 libdir=$ac_optarg ;;
1158 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1159 | --libexe | --libex | --libe)
1160 ac_prev=libexecdir ;;
1161 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1162 | --libexe=* | --libex=* | --libe=*)
1163 libexecdir=$ac_optarg ;;
1165 -localedir | --localedir | --localedi | --localed | --locale)
1166 ac_prev=localedir ;;
1167 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1168 localedir=$ac_optarg ;;
1170 -localstatedir | --localstatedir | --localstatedi | --localstated \
1171 | --localstate | --localstat | --localsta | --localst | --locals)
1172 ac_prev=localstatedir ;;
1173 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1174 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1175 localstatedir=$ac_optarg ;;
1177 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1178 ac_prev=mandir ;;
1179 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1180 mandir=$ac_optarg ;;
1182 -nfp | --nfp | --nf)
1183 # Obsolete; use --without-fp.
1184 with_fp=no ;;
1186 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1187 | --no-cr | --no-c | -n)
1188 no_create=yes ;;
1190 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1191 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1192 no_recursion=yes ;;
1194 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1195 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1196 | --oldin | --oldi | --old | --ol | --o)
1197 ac_prev=oldincludedir ;;
1198 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1199 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1200 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1201 oldincludedir=$ac_optarg ;;
1203 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1204 ac_prev=prefix ;;
1205 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1206 prefix=$ac_optarg ;;
1208 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1209 | --program-pre | --program-pr | --program-p)
1210 ac_prev=program_prefix ;;
1211 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1212 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1213 program_prefix=$ac_optarg ;;
1215 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1216 | --program-suf | --program-su | --program-s)
1217 ac_prev=program_suffix ;;
1218 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1219 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1220 program_suffix=$ac_optarg ;;
1222 -program-transform-name | --program-transform-name \
1223 | --program-transform-nam | --program-transform-na \
1224 | --program-transform-n | --program-transform- \
1225 | --program-transform | --program-transfor \
1226 | --program-transfo | --program-transf \
1227 | --program-trans | --program-tran \
1228 | --progr-tra | --program-tr | --program-t)
1229 ac_prev=program_transform_name ;;
1230 -program-transform-name=* | --program-transform-name=* \
1231 | --program-transform-nam=* | --program-transform-na=* \
1232 | --program-transform-n=* | --program-transform-=* \
1233 | --program-transform=* | --program-transfor=* \
1234 | --program-transfo=* | --program-transf=* \
1235 | --program-trans=* | --program-tran=* \
1236 | --progr-tra=* | --program-tr=* | --program-t=*)
1237 program_transform_name=$ac_optarg ;;
1239 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1240 ac_prev=pdfdir ;;
1241 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1242 pdfdir=$ac_optarg ;;
1244 -psdir | --psdir | --psdi | --psd | --ps)
1245 ac_prev=psdir ;;
1246 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1247 psdir=$ac_optarg ;;
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1251 silent=yes ;;
1253 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1254 ac_prev=sbindir ;;
1255 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1256 | --sbi=* | --sb=*)
1257 sbindir=$ac_optarg ;;
1259 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261 | --sharedst | --shareds | --shared | --share | --shar \
1262 | --sha | --sh)
1263 ac_prev=sharedstatedir ;;
1264 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1267 | --sha=* | --sh=*)
1268 sharedstatedir=$ac_optarg ;;
1270 -site | --site | --sit)
1271 ac_prev=site ;;
1272 -site=* | --site=* | --sit=*)
1273 site=$ac_optarg ;;
1275 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1276 ac_prev=srcdir ;;
1277 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278 srcdir=$ac_optarg ;;
1280 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281 | --syscon | --sysco | --sysc | --sys | --sy)
1282 ac_prev=sysconfdir ;;
1283 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285 sysconfdir=$ac_optarg ;;
1287 -target | --target | --targe | --targ | --tar | --ta | --t)
1288 ac_prev=target_alias ;;
1289 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290 target_alias=$ac_optarg ;;
1292 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1293 verbose=yes ;;
1295 -version | --version | --versio | --versi | --vers | -V)
1296 ac_init_version=: ;;
1298 -with-* | --with-*)
1299 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 { echo "$as_me: error: invalid package name: $ac_package" >&2
1303 { (exit 1); exit 1; }; }
1304 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1305 eval with_$ac_package=\$ac_optarg ;;
1307 -without-* | --without-*)
1308 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1311 { echo "$as_me: error: invalid package name: $ac_package" >&2
1312 { (exit 1); exit 1; }; }
1313 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1314 eval with_$ac_package=no ;;
1316 --x)
1317 # Obsolete; use --with-x.
1318 with_x=yes ;;
1320 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1321 | --x-incl | --x-inc | --x-in | --x-i)
1322 ac_prev=x_includes ;;
1323 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1324 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1325 x_includes=$ac_optarg ;;
1327 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1328 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1329 ac_prev=x_libraries ;;
1330 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1331 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1332 x_libraries=$ac_optarg ;;
1334 -*) { echo "$as_me: error: unrecognized option: $ac_option
1335 Try \`$0 --help' for more information." >&2
1336 { (exit 1); exit 1; }; }
1339 *=*)
1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1343 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1344 { (exit 1); exit 1; }; }
1345 eval $ac_envvar=\$ac_optarg
1346 export $ac_envvar ;;
1349 # FIXME: should be removed in autoconf 3.0.
1350 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1352 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1356 esac
1357 done
1359 if test -n "$ac_prev"; then
1360 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1361 { echo "$as_me: error: missing argument to $ac_option" >&2
1362 { (exit 1); exit 1; }; }
1365 # Be sure to have absolute directory names.
1366 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367 datadir sysconfdir sharedstatedir localstatedir includedir \
1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369 libdir localedir mandir
1371 eval ac_val=\$$ac_var
1372 case $ac_val in
1373 [\\/$]* | ?:[\\/]* ) continue;;
1374 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1375 esac
1376 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1377 { (exit 1); exit 1; }; }
1378 done
1380 # There might be people who depend on the old broken behavior: `$host'
1381 # used to hold the argument of --host etc.
1382 # FIXME: To remove some day.
1383 build=$build_alias
1384 host=$host_alias
1385 target=$target_alias
1387 # FIXME: To remove some day.
1388 if test "x$host_alias" != x; then
1389 if test "x$build_alias" = x; then
1390 cross_compiling=maybe
1391 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1392 If a cross compiler is detected then cross compile mode will be used." >&2
1393 elif test "x$build_alias" != "x$host_alias"; then
1394 cross_compiling=yes
1398 ac_tool_prefix=
1399 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401 test "$silent" = yes && exec 6>/dev/null
1404 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1405 ac_ls_di=`ls -di .` &&
1406 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1407 { echo "$as_me: error: Working directory cannot be determined" >&2
1408 { (exit 1); exit 1; }; }
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 { echo "$as_me: error: pwd does not report name of working directory" >&2
1411 { (exit 1); exit 1; }; }
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir=`$as_dirname -- "$0" ||
1419 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$0" : 'X\(//\)[^/]' \| \
1421 X"$0" : 'X\(//\)$' \| \
1422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1423 echo X"$0" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 s//\1/
1428 /^X\(\/\/\)[^/].*/{
1429 s//\1/
1432 /^X\(\/\/\)$/{
1433 s//\1/
1436 /^X\(\/\).*/{
1437 s//\1/
1440 s/.*/./; q'`
1441 srcdir=$ac_confdir
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 srcdir=..
1445 else
1446 ac_srcdir_defaulted=no
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1451 { (exit 1); exit 1; }; }
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 ac_abs_confdir=`(
1455 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1456 { (exit 1); exit 1; }; }
1457 pwd)`
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 srcdir=.
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1465 case $srcdir in
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 esac
1468 for ac_var in $ac_precious_vars; do
1469 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_${ac_var}_value=\$${ac_var}
1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 done
1476 # Report the --help message.
1478 if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1481 cat <<_ACEOF
1482 \`configure' configures llvm 2.5svn to adapt to many kinds of systems.
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE. See below for descriptions of some of the useful variables.
1489 Defaults for the options are specified in brackets.
1491 Configuration:
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502 Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 [PREFIX]
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1513 For better control, use the options below.
1515 Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1535 _ACEOF
1537 cat <<\_ACEOF
1539 System types:
1540 --build=BUILD configure for building on BUILD [guessed]
1541 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1542 --target=TARGET configure for building compilers for TARGET [HOST]
1543 _ACEOF
1546 if test -n "$ac_init_help"; then
1547 case $ac_init_help in
1548 short | recursive ) echo "Configuration of llvm 2.5svn:";;
1549 esac
1550 cat <<\_ACEOF
1552 Optional Features:
1553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1555 --enable-optimized
1556 --enable-assertions
1557 --enable-expensive-checks
1559 --enable-debug-runtime
1560 --enable-jit Enable Just In Time Compiling (default is YES)
1561 --enable-doxygen Build doxygen documentation (default is NO)
1562 --enable-threads Use threads if available (default is YES)
1563 --enable-pic Build LLVM with Position Independent Code (default
1564 is NO)
1565 --enable-targets Build specific host targets:
1566 all,host-only,{target-name} (default=all)
1567 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1568 %a (default is YES)
1569 --enable-bindings Build specific language bindings:
1570 all,auto,none,{binding-name} (default=auto)
1571 --enable-ltdl-install install libltdl
1572 --enable-shared[=PKGS] build shared libraries
1573 [default=yes]
1574 --enable-static[=PKGS] build static libraries
1575 [default=yes]
1576 --enable-fast-install[=PKGS]
1577 optimize for fast installation
1578 [default=yes]
1579 --disable-libtool-lock avoid locking (might break parallel builds)
1581 Optional Packages:
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1584 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1585 searches PATH)
1586 --with-llvmgcc Specify location of llvm-gcc driver (default
1587 searches PATH)
1588 --with-llvmgxx Specify location of llvm-g++ driver (default
1589 searches PATH)
1590 --with-extra-options Specify addtional options to compile LLVM with
1591 --with-ocaml-libdir Specify install location for ocaml bindings (default
1592 is stdlib)
1593 --with-tclinclude directory where tcl headers are
1594 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1595 --with-pic try to use only PIC/non-PIC objects [default=use
1596 both]
1597 --with-tags[=TAGS] include additional configurations [automatic]
1598 --with-udis86=<path> Use udis86 external x86 disassembler library
1600 Some influential environment variables:
1601 CC C compiler command
1602 CFLAGS C compiler flags
1603 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1604 nonstandard directory <lib dir>
1605 LIBS libraries to pass to the linker, e.g. -l<library>
1606 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1607 you have headers in a nonstandard directory <include dir>
1608 CPP C preprocessor
1609 CXX C++ compiler command
1610 CXXFLAGS C++ compiler flags
1611 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1612 the first program found out of: `bison -y', `byacc', `yacc'.
1613 YFLAGS The list of arguments that will be passed by default to $YACC.
1614 This script will default YFLAGS to the empty string to avoid a
1615 default value of `-d' given by some make applications.
1616 CXXCPP C++ preprocessor
1617 F77 Fortran 77 compiler command
1618 FFLAGS Fortran 77 compiler flags
1620 Use these variables to override the choices made by `configure' or to help
1621 it to find libraries and programs with nonstandard names/locations.
1623 Report bugs to <llvmbugs@cs.uiuc.edu>.
1624 _ACEOF
1625 ac_status=$?
1628 if test "$ac_init_help" = "recursive"; then
1629 # If there are subdirs, report their specific --help.
1630 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631 test -d "$ac_dir" || continue
1632 ac_builddir=.
1634 case "$ac_dir" in
1635 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1638 # A ".." for each directory in $ac_dir_suffix.
1639 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1640 case $ac_top_builddir_sub in
1641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643 esac ;;
1644 esac
1645 ac_abs_top_builddir=$ac_pwd
1646 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1647 # for backward compatibility:
1648 ac_top_builddir=$ac_top_build_prefix
1650 case $srcdir in
1651 .) # We are building in place.
1652 ac_srcdir=.
1653 ac_top_srcdir=$ac_top_builddir_sub
1654 ac_abs_top_srcdir=$ac_pwd ;;
1655 [\\/]* | ?:[\\/]* ) # Absolute name.
1656 ac_srcdir=$srcdir$ac_dir_suffix;
1657 ac_top_srcdir=$srcdir
1658 ac_abs_top_srcdir=$srcdir ;;
1659 *) # Relative name.
1660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661 ac_top_srcdir=$ac_top_build_prefix$srcdir
1662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1663 esac
1664 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666 cd "$ac_dir" || { ac_status=$?; continue; }
1667 # Check for guested configure.
1668 if test -f "$ac_srcdir/configure.gnu"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671 elif test -f "$ac_srcdir/configure"; then
1672 echo &&
1673 $SHELL "$ac_srcdir/configure" --help=recursive
1674 else
1675 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1676 fi || ac_status=$?
1677 cd "$ac_pwd" || { ac_status=$?; break; }
1678 done
1681 test -n "$ac_init_help" && exit $ac_status
1682 if $ac_init_version; then
1683 cat <<\_ACEOF
1684 llvm configure 2.5svn
1685 generated by GNU Autoconf 2.61
1687 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1688 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1689 This configure script is free software; the Free Software Foundation
1690 gives unlimited permission to copy, distribute and modify it.
1692 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1693 _ACEOF
1694 exit
1696 cat >config.log <<_ACEOF
1697 This file contains any messages produced by compilers while
1698 running configure, to aid debugging if configure makes a mistake.
1700 It was created by llvm $as_me 2.5svn, which was
1701 generated by GNU Autoconf 2.61. Invocation command line was
1703 $ $0 $@
1705 _ACEOF
1706 exec 5>>config.log
1708 cat <<_ASUNAME
1709 ## --------- ##
1710 ## Platform. ##
1711 ## --------- ##
1713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1722 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1723 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1725 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1726 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1727 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1728 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1730 _ASUNAME
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 echo "PATH: $as_dir"
1738 done
1739 IFS=$as_save_IFS
1741 } >&5
1743 cat >&5 <<_ACEOF
1746 ## ----------- ##
1747 ## Core tests. ##
1748 ## ----------- ##
1750 _ACEOF
1753 # Keep a trace of the command line.
1754 # Strip out --no-create and --no-recursion so they do not pile up.
1755 # Strip out --silent because we don't want to record it for future runs.
1756 # Also quote any args containing shell meta-characters.
1757 # Make two passes to allow for proper duplicate-argument suppression.
1758 ac_configure_args=
1759 ac_configure_args0=
1760 ac_configure_args1=
1761 ac_must_keep_next=false
1762 for ac_pass in 1 2
1764 for ac_arg
1766 case $ac_arg in
1767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769 | -silent | --silent | --silen | --sile | --sil)
1770 continue ;;
1771 *\'*)
1772 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1773 esac
1774 case $ac_pass in
1775 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1777 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1778 if test $ac_must_keep_next = true; then
1779 ac_must_keep_next=false # Got value, back to normal.
1780 else
1781 case $ac_arg in
1782 *=* | --config-cache | -C | -disable-* | --disable-* \
1783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785 | -with-* | --with-* | -without-* | --without-* | --x)
1786 case "$ac_configure_args0 " in
1787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1788 esac
1790 -* ) ac_must_keep_next=true ;;
1791 esac
1793 ac_configure_args="$ac_configure_args '$ac_arg'"
1795 esac
1796 done
1797 done
1798 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1799 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1801 # When interrupted or exit'd, cleanup temporary files, and complete
1802 # config.log. We remove comments because anyway the quotes in there
1803 # would cause problems or look ugly.
1804 # WARNING: Use '\'' to represent an apostrophe within the trap.
1805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1806 trap 'exit_status=$?
1807 # Save into config.log some information that might help in debugging.
1809 echo
1811 cat <<\_ASBOX
1812 ## ---------------- ##
1813 ## Cache variables. ##
1814 ## ---------------- ##
1815 _ASBOX
1816 echo
1817 # The following way of writing the cache mishandles newlines in values,
1819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820 eval ac_val=\$$ac_var
1821 case $ac_val in #(
1822 *${as_nl}*)
1823 case $ac_var in #(
1824 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1825 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1826 esac
1827 case $ac_var in #(
1828 _ | IFS | as_nl) ;; #(
1829 *) $as_unset $ac_var ;;
1830 esac ;;
1831 esac
1832 done
1833 (set) 2>&1 |
1834 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835 *${as_nl}ac_space=\ *)
1836 sed -n \
1837 "s/'\''/'\''\\\\'\'''\''/g;
1838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1839 ;; #(
1841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1843 esac |
1844 sort
1846 echo
1848 cat <<\_ASBOX
1849 ## ----------------- ##
1850 ## Output variables. ##
1851 ## ----------------- ##
1852 _ASBOX
1853 echo
1854 for ac_var in $ac_subst_vars
1856 eval ac_val=\$$ac_var
1857 case $ac_val in
1858 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 esac
1860 echo "$ac_var='\''$ac_val'\''"
1861 done | sort
1862 echo
1864 if test -n "$ac_subst_files"; then
1865 cat <<\_ASBOX
1866 ## ------------------- ##
1867 ## File substitutions. ##
1868 ## ------------------- ##
1869 _ASBOX
1870 echo
1871 for ac_var in $ac_subst_files
1873 eval ac_val=\$$ac_var
1874 case $ac_val in
1875 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 esac
1877 echo "$ac_var='\''$ac_val'\''"
1878 done | sort
1879 echo
1882 if test -s confdefs.h; then
1883 cat <<\_ASBOX
1884 ## ----------- ##
1885 ## confdefs.h. ##
1886 ## ----------- ##
1887 _ASBOX
1888 echo
1889 cat confdefs.h
1890 echo
1892 test "$ac_signal" != 0 &&
1893 echo "$as_me: caught signal $ac_signal"
1894 echo "$as_me: exit $exit_status"
1895 } >&5
1896 rm -f core *.core core.conftest.* &&
1897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1898 exit $exit_status
1900 for ac_signal in 1 2 13 15; do
1901 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1902 done
1903 ac_signal=0
1905 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1906 rm -f -r conftest* confdefs.h
1908 # Predefined preprocessor variables.
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_NAME "$PACKAGE_NAME"
1912 _ACEOF
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917 _ACEOF
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1922 _ACEOF
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_STRING "$PACKAGE_STRING"
1927 _ACEOF
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1932 _ACEOF
1935 # Let the site file select an alternate cache file if it wants to.
1936 # Prefer explicitly selected file to automatically selected ones.
1937 if test -n "$CONFIG_SITE"; then
1938 set x "$CONFIG_SITE"
1939 elif test "x$prefix" != xNONE; then
1940 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1941 else
1942 set x "$ac_default_prefix/share/config.site" \
1943 "$ac_default_prefix/etc/config.site"
1945 shift
1946 for ac_site_file
1948 if test -r "$ac_site_file"; then
1949 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1950 echo "$as_me: loading site script $ac_site_file" >&6;}
1951 sed 's/^/| /' "$ac_site_file" >&5
1952 . "$ac_site_file"
1954 done
1956 if test -r "$cache_file"; then
1957 # Some versions of bash will fail to source /dev/null (special
1958 # files actually), so we avoid doing that.
1959 if test -f "$cache_file"; then
1960 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1961 echo "$as_me: loading cache $cache_file" >&6;}
1962 case $cache_file in
1963 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964 *) . "./$cache_file";;
1965 esac
1967 else
1968 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1969 echo "$as_me: creating cache $cache_file" >&6;}
1970 >$cache_file
1973 # Check that the precious variables saved in the cache have kept the same
1974 # value.
1975 ac_cache_corrupted=false
1976 for ac_var in $ac_precious_vars; do
1977 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1978 eval ac_new_set=\$ac_env_${ac_var}_set
1979 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1980 eval ac_new_val=\$ac_env_${ac_var}_value
1981 case $ac_old_set,$ac_new_set in
1982 set,)
1983 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1985 ac_cache_corrupted=: ;;
1986 ,set)
1987 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1989 ac_cache_corrupted=: ;;
1990 ,);;
1992 if test "x$ac_old_val" != "x$ac_new_val"; then
1993 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1994 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1995 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1996 echo "$as_me: former value: $ac_old_val" >&2;}
1997 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1998 echo "$as_me: current value: $ac_new_val" >&2;}
1999 ac_cache_corrupted=:
2000 fi;;
2001 esac
2002 # Pass precious variables to config.status.
2003 if test "$ac_new_set" = set; then
2004 case $ac_new_val in
2005 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006 *) ac_arg=$ac_var=$ac_new_val ;;
2007 esac
2008 case " $ac_configure_args " in
2009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2010 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2011 esac
2013 done
2014 if $ac_cache_corrupted; then
2015 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019 { (exit 1); exit 1; }; }
2046 ac_ext=c
2047 ac_cpp='$CPP $CPPFLAGS'
2048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2054 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2062 ac_aux_dir=
2063 for ac_dir in autoconf "$srcdir"/autoconf; do
2064 if test -f "$ac_dir/install-sh"; then
2065 ac_aux_dir=$ac_dir
2066 ac_install_sh="$ac_aux_dir/install-sh -c"
2067 break
2068 elif test -f "$ac_dir/install.sh"; then
2069 ac_aux_dir=$ac_dir
2070 ac_install_sh="$ac_aux_dir/install.sh -c"
2071 break
2072 elif test -f "$ac_dir/shtool"; then
2073 ac_aux_dir=$ac_dir
2074 ac_install_sh="$ac_aux_dir/shtool install -c"
2075 break
2077 done
2078 if test -z "$ac_aux_dir"; then
2079 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2080 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2081 { (exit 1); exit 1; }; }
2084 # These three variables are undocumented and unsupported,
2085 # and are intended to be withdrawn in a future Autoconf release.
2086 # They can cause serious problems if a builder's source tree is in a directory
2087 # whose full name contains unusual characters.
2088 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2089 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2090 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2094 if test ${srcdir} != "." ; then
2095 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2096 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2097 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2098 { (exit 1); exit 1; }; }
2102 for i in `ls ${srcdir}/projects`
2104 if test -d ${srcdir}/projects/${i} ; then
2105 case ${i} in
2106 CVS) ;;
2107 sample) subdirs="$subdirs projects/sample"
2109 privbracket) subdirs="$subdirs projects/privbracket"
2111 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2113 # llvm-test is the old name of the test-suite, kept here for backwards
2114 # compatibility
2115 llvm-test) subdirs="$subdirs projects/llvm-test"
2117 test-suite) subdirs="$subdirs projects/test-suite"
2119 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2121 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2123 llvm-java) subdirs="$subdirs projects/llvm-java"
2125 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2127 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2129 poolalloc) subdirs="$subdirs projects/poolalloc"
2131 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2134 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2135 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2137 esac
2139 done
2142 # Make sure we can run config.sub.
2143 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2144 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2145 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2146 { (exit 1); exit 1; }; }
2148 { echo "$as_me:$LINENO: checking build system type" >&5
2149 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2150 if test "${ac_cv_build+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 ac_build_alias=$build_alias
2154 test "x$ac_build_alias" = x &&
2155 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2156 test "x$ac_build_alias" = x &&
2157 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2158 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2159 { (exit 1); exit 1; }; }
2160 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2161 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2162 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2163 { (exit 1); exit 1; }; }
2166 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2167 echo "${ECHO_T}$ac_cv_build" >&6; }
2168 case $ac_cv_build in
2169 *-*-*) ;;
2170 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2171 echo "$as_me: error: invalid value of canonical build" >&2;}
2172 { (exit 1); exit 1; }; };;
2173 esac
2174 build=$ac_cv_build
2175 ac_save_IFS=$IFS; IFS='-'
2176 set x $ac_cv_build
2177 shift
2178 build_cpu=$1
2179 build_vendor=$2
2180 shift; shift
2181 # Remember, the first character of IFS is used to create $*,
2182 # except with old shells:
2183 build_os=$*
2184 IFS=$ac_save_IFS
2185 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2188 { echo "$as_me:$LINENO: checking host system type" >&5
2189 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2190 if test "${ac_cv_host+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 if test "x$host_alias" = x; then
2194 ac_cv_host=$ac_cv_build
2195 else
2196 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2197 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2198 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2203 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2204 echo "${ECHO_T}$ac_cv_host" >&6; }
2205 case $ac_cv_host in
2206 *-*-*) ;;
2207 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2208 echo "$as_me: error: invalid value of canonical host" >&2;}
2209 { (exit 1); exit 1; }; };;
2210 esac
2211 host=$ac_cv_host
2212 ac_save_IFS=$IFS; IFS='-'
2213 set x $ac_cv_host
2214 shift
2215 host_cpu=$1
2216 host_vendor=$2
2217 shift; shift
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2220 host_os=$*
2221 IFS=$ac_save_IFS
2222 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2225 { echo "$as_me:$LINENO: checking target system type" >&5
2226 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2227 if test "${ac_cv_target+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 if test "x$target_alias" = x; then
2231 ac_cv_target=$ac_cv_host
2232 else
2233 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2234 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2235 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2236 { (exit 1); exit 1; }; }
2240 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2241 echo "${ECHO_T}$ac_cv_target" >&6; }
2242 case $ac_cv_target in
2243 *-*-*) ;;
2244 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2245 echo "$as_me: error: invalid value of canonical target" >&2;}
2246 { (exit 1); exit 1; }; };;
2247 esac
2248 target=$ac_cv_target
2249 ac_save_IFS=$IFS; IFS='-'
2250 set x $ac_cv_target
2251 shift
2252 target_cpu=$1
2253 target_vendor=$2
2254 shift; shift
2255 # Remember, the first character of IFS is used to create $*,
2256 # except with old shells:
2257 target_os=$*
2258 IFS=$ac_save_IFS
2259 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2262 # The aliases save the names the user supplied, while $host etc.
2263 # will get canonicalized.
2264 test -n "$target_alias" &&
2265 test "$program_prefix$program_suffix$program_transform_name" = \
2266 NONENONEs,x,x, &&
2267 program_prefix=${target_alias}-
2269 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2270 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2271 if test "${llvm_cv_os_type+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274 case $host in
2275 *-*-aix*)
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="AIX"
2279 llvm_cv_platform_type="Unix" ;;
2280 *-*-irix*)
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="IRIX"
2284 llvm_cv_platform_type="Unix" ;;
2285 *-*-cygwin*)
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="Cygwin"
2289 llvm_cv_platform_type="Unix" ;;
2290 *-*-darwin*)
2291 llvm_cv_link_all_option="-Wl,-all_load"
2292 llvm_cv_no_link_all_option="-Wl,-noall_load"
2293 llvm_cv_os_type="Darwin"
2294 llvm_cv_platform_type="Unix" ;;
2295 *-*-freebsd*)
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="FreeBSD"
2299 llvm_cv_platform_type="Unix" ;;
2300 *-*-openbsd*)
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="OpenBSD"
2304 llvm_cv_platform_type="Unix" ;;
2305 *-*-netbsd*)
2306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308 llvm_cv_os_type="NetBSD"
2309 llvm_cv_platform_type="Unix" ;;
2310 *-*-dragonfly*)
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="DragonFly"
2314 llvm_cv_platform_type="Unix" ;;
2315 *-*-hpux*)
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="HP-UX"
2319 llvm_cv_platform_type="Unix" ;;
2320 *-*-interix*)
2321 llvm_cv_link_all_option="-Wl,--whole-archive"
2322 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2323 llvm_cv_os_type="Interix"
2324 llvm_cv_platform_type="Unix" ;;
2325 *-*-linux*)
2326 llvm_cv_link_all_option="-Wl,--whole-archive"
2327 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2328 llvm_cv_os_type="Linux"
2329 llvm_cv_platform_type="Unix" ;;
2330 *-*-solaris*)
2331 llvm_cv_link_all_option="-Wl,-z,allextract"
2332 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2333 llvm_cv_os_type="SunOS"
2334 llvm_cv_platform_type="Unix" ;;
2335 *-*-win32*)
2336 llvm_cv_link_all_option="-Wl,--whole-archive"
2337 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2338 llvm_cv_os_type="Win32"
2339 llvm_cv_platform_type="Win32" ;;
2340 *-*-mingw*)
2341 llvm_cv_link_all_option="-Wl,--whole-archive"
2342 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2343 llvm_cv_os_type="MingW"
2344 llvm_cv_platform_type="Win32" ;;
2346 llvm_cv_link_all_option=""
2347 llvm_cv_no_link_all_option=""
2348 llvm_cv_os_type="Unknown"
2349 llvm_cv_platform_type="Unknown" ;;
2350 esac
2352 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2353 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2355 if test "$llvm_cv_os_type" = "Unknown" ; then
2356 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2357 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2358 { (exit 1); exit 1; }; }
2361 OS=$llvm_cv_os_type
2364 LINKALL=$llvm_cv_link_all_option
2366 NOLINKALL=$llvm_cv_no_link_all_option
2369 case $llvm_cv_platform_type in
2370 Unix)
2372 cat >>confdefs.h <<\_ACEOF
2373 #define LLVM_ON_UNIX 1
2374 _ACEOF
2376 LLVM_ON_UNIX=1
2378 LLVM_ON_WIN32=0
2381 Win32)
2383 cat >>confdefs.h <<\_ACEOF
2384 #define LLVM_ON_WIN32 1
2385 _ACEOF
2387 LLVM_ON_UNIX=0
2389 LLVM_ON_WIN32=1
2392 esac
2394 { echo "$as_me:$LINENO: checking target architecture" >&5
2395 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2396 if test "${llvm_cv_target_arch+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 case $target in
2400 i?86-*) llvm_cv_target_arch="x86" ;;
2401 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2402 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2403 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2404 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2405 ia64-*) llvm_cv_target_arch="IA64" ;;
2406 arm-*) llvm_cv_target_arch="ARM" ;;
2407 mips-*) llvm_cv_target_arch="Mips" ;;
2408 pic16-*) llvm_cv_target_arch="PIC16" ;;
2409 xcore-*) llvm_cv_target_arch="XCore" ;;
2410 *) llvm_cv_target_arch="Unknown" ;;
2411 esac
2413 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2414 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2416 if test "$llvm_cv_target_arch" = "Unknown" ; then
2417 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2418 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2421 ARCH=$llvm_cv_target_arch
2424 ac_ext=c
2425 ac_cpp='$CPP $CPPFLAGS'
2426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2431 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2447 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2451 done
2452 done
2453 IFS=$as_save_IFS
2457 CC=$ac_cv_prog_CC
2458 if test -n "$CC"; then
2459 { echo "$as_me:$LINENO: result: $CC" >&5
2460 echo "${ECHO_T}$CC" >&6; }
2461 else
2462 { echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6; }
2468 if test -z "$ac_cv_prog_CC"; then
2469 ac_ct_CC=$CC
2470 # Extract the first word of "gcc", so it can be a program name with args.
2471 set dummy gcc; ac_word=$2
2472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477 if test -n "$ac_ct_CC"; then
2478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2487 ac_cv_prog_ac_ct_CC="gcc"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2491 done
2492 done
2493 IFS=$as_save_IFS
2497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498 if test -n "$ac_ct_CC"; then
2499 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500 echo "${ECHO_T}$ac_ct_CC" >&6; }
2501 else
2502 { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2506 if test "x$ac_ct_CC" = x; then
2507 CC=""
2508 else
2509 case $cross_compiling:$ac_tool_warned in
2510 yes:)
2511 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2512 whose name does not start with the host triplet. If you think this
2513 configuration is useful to you, please write to autoconf@gnu.org." >&5
2514 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2515 whose name does not start with the host triplet. If you think this
2516 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2517 ac_tool_warned=yes ;;
2518 esac
2519 CC=$ac_ct_CC
2521 else
2522 CC="$ac_cv_prog_CC"
2525 if test -z "$CC"; then
2526 if test -n "$ac_tool_prefix"; then
2527 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2528 set dummy ${ac_tool_prefix}cc; ac_word=$2
2529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_CC+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC="$CC" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_CC="${ac_tool_prefix}cc"
2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2548 done
2549 done
2550 IFS=$as_save_IFS
2554 CC=$ac_cv_prog_CC
2555 if test -n "$CC"; then
2556 { echo "$as_me:$LINENO: result: $CC" >&5
2557 echo "${ECHO_T}$CC" >&6; }
2558 else
2559 { echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6; }
2566 if test -z "$CC"; then
2567 # Extract the first word of "cc", so it can be a program name with args.
2568 set dummy cc; ac_word=$2
2569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2571 if test "${ac_cv_prog_CC+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 else
2574 if test -n "$CC"; then
2575 ac_cv_prog_CC="$CC" # Let the user override the test.
2576 else
2577 ac_prog_rejected=no
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2586 ac_prog_rejected=yes
2587 continue
2589 ac_cv_prog_CC="cc"
2590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2593 done
2594 done
2595 IFS=$as_save_IFS
2597 if test $ac_prog_rejected = yes; then
2598 # We found a bogon in the path, so make sure we never use it.
2599 set dummy $ac_cv_prog_CC
2600 shift
2601 if test $# != 0; then
2602 # We chose a different compiler from the bogus one.
2603 # However, it has the same basename, so the bogon will be chosen
2604 # first if we set CC to just the basename; use the full file name.
2605 shift
2606 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2611 CC=$ac_cv_prog_CC
2612 if test -n "$CC"; then
2613 { echo "$as_me:$LINENO: result: $CC" >&5
2614 echo "${ECHO_T}$CC" >&6; }
2615 else
2616 { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2622 if test -z "$CC"; then
2623 if test -n "$ac_tool_prefix"; then
2624 for ac_prog in cl.exe
2626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_CC+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC="$CC" # Let the user override the test.
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 break 2
2647 done
2648 done
2649 IFS=$as_save_IFS
2653 CC=$ac_cv_prog_CC
2654 if test -n "$CC"; then
2655 { echo "$as_me:$LINENO: result: $CC" >&5
2656 echo "${ECHO_T}$CC" >&6; }
2657 else
2658 { echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6; }
2663 test -n "$CC" && break
2664 done
2666 if test -z "$CC"; then
2667 ac_ct_CC=$CC
2668 for ac_prog in cl.exe
2670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2671 set dummy $ac_prog; ac_word=$2
2672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2674 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677 if test -n "$ac_ct_CC"; then
2678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_ac_ct_CC="$ac_prog"
2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2691 done
2692 done
2693 IFS=$as_save_IFS
2697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2698 if test -n "$ac_ct_CC"; then
2699 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2700 echo "${ECHO_T}$ac_ct_CC" >&6; }
2701 else
2702 { echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6; }
2707 test -n "$ac_ct_CC" && break
2708 done
2710 if test "x$ac_ct_CC" = x; then
2711 CC=""
2712 else
2713 case $cross_compiling:$ac_tool_warned in
2714 yes:)
2715 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2716 whose name does not start with the host triplet. If you think this
2717 configuration is useful to you, please write to autoconf@gnu.org." >&5
2718 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2719 whose name does not start with the host triplet. If you think this
2720 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2721 ac_tool_warned=yes ;;
2722 esac
2723 CC=$ac_ct_CC
2730 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2731 See \`config.log' for more details." >&5
2732 echo "$as_me: error: no acceptable C compiler found in \$PATH
2733 See \`config.log' for more details." >&2;}
2734 { (exit 1); exit 1; }; }
2736 # Provide some information about the compiler.
2737 echo "$as_me:$LINENO: checking for C compiler version" >&5
2738 ac_compiler=`set X $ac_compile; echo $2`
2739 { (ac_try="$ac_compiler --version >&5"
2740 case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743 esac
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compiler --version >&5") 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }
2749 { (ac_try="$ac_compiler -v >&5"
2750 case "(($ac_try" in
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2753 esac
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compiler -v >&5") 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }
2759 { (ac_try="$ac_compiler -V >&5"
2760 case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2763 esac
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_compiler -V >&5") 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h. */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2778 main ()
2782 return 0;
2784 _ACEOF
2785 ac_clean_files_save=$ac_clean_files
2786 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2787 # Try to create an executable without -o first, disregard a.out.
2788 # It will help us diagnose broken compilers, and finding out an intuition
2789 # of exeext.
2790 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2791 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2792 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2794 # List of possible output files, starting from the most likely.
2795 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2796 # only as a last resort. b.out is created by i960 compilers.
2797 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2799 # The IRIX 6 linker writes into existing files which may not be
2800 # executable, retaining their permissions. Remove them first so a
2801 # subsequent execution test works.
2802 ac_rmfiles=
2803 for ac_file in $ac_files
2805 case $ac_file in
2806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2807 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2808 esac
2809 done
2810 rm -f $ac_rmfiles
2812 if { (ac_try="$ac_link_default"
2813 case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816 esac
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_link_default") 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; then
2822 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2823 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2824 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2825 # so that the user can short-circuit this test for compilers unknown to
2826 # Autoconf.
2827 for ac_file in $ac_files ''
2829 test -f "$ac_file" || continue
2830 case $ac_file in
2831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2833 [ab].out )
2834 # We found the default executable, but exeext='' is most
2835 # certainly right.
2836 break;;
2837 *.* )
2838 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2839 then :; else
2840 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2842 # We set ac_cv_exeext here because the later test for it is not
2843 # safe: cross compilers may not add the suffix if given an `-o'
2844 # argument, so we may need to know it at that point already.
2845 # Even if this section looks crufty: it has the advantage of
2846 # actually working.
2847 break;;
2849 break;;
2850 esac
2851 done
2852 test "$ac_cv_exeext" = no && ac_cv_exeext=
2854 else
2855 ac_file=''
2858 { echo "$as_me:$LINENO: result: $ac_file" >&5
2859 echo "${ECHO_T}$ac_file" >&6; }
2860 if test -z "$ac_file"; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: C compiler cannot create executables
2867 See \`config.log' for more details." >&2;}
2868 { (exit 77); exit 77; }; }
2871 ac_exeext=$ac_cv_exeext
2873 # Check that the compiler produces executables we can run. If not, either
2874 # the compiler is broken, or we cross compile.
2875 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2876 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2877 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2878 # If not cross compiling, check that we can run a simple program.
2879 if test "$cross_compiling" != yes; then
2880 if { ac_try='./$ac_file'
2881 { (case "(($ac_try" in
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2884 esac
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_try") 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 cross_compiling=no
2891 else
2892 if test "$cross_compiling" = maybe; then
2893 cross_compiling=yes
2894 else
2895 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2896 If you meant to cross compile, use \`--host'.
2897 See \`config.log' for more details." >&5
2898 echo "$as_me: error: cannot run C compiled programs.
2899 If you meant to cross compile, use \`--host'.
2900 See \`config.log' for more details." >&2;}
2901 { (exit 1); exit 1; }; }
2905 { echo "$as_me:$LINENO: result: yes" >&5
2906 echo "${ECHO_T}yes" >&6; }
2908 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2909 ac_clean_files=$ac_clean_files_save
2910 # Check that the compiler produces executables we can run. If not, either
2911 # the compiler is broken, or we cross compile.
2912 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2913 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2914 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2915 echo "${ECHO_T}$cross_compiling" >&6; }
2917 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2918 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2919 if { (ac_try="$ac_link"
2920 case "(($ac_try" in
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2923 esac
2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925 (eval "$ac_link") 2>&5
2926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; then
2929 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2930 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2931 # work properly (i.e., refer to `conftest.exe'), while it won't with
2932 # `rm'.
2933 for ac_file in conftest.exe conftest conftest.*; do
2934 test -f "$ac_file" || continue
2935 case $ac_file in
2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2937 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2938 break;;
2939 * ) break;;
2940 esac
2941 done
2942 else
2943 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2944 See \`config.log' for more details." >&5
2945 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2946 See \`config.log' for more details." >&2;}
2947 { (exit 1); exit 1; }; }
2950 rm -f conftest$ac_cv_exeext
2951 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2952 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2954 rm -f conftest.$ac_ext
2955 EXEEXT=$ac_cv_exeext
2956 ac_exeext=$EXEEXT
2957 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2958 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2959 if test "${ac_cv_objext+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962 cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h. */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2970 main ()
2974 return 0;
2976 _ACEOF
2977 rm -f conftest.o conftest.obj
2978 if { (ac_try="$ac_compile"
2979 case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982 esac
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compile") 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; then
2988 for ac_file in conftest.o conftest.obj conftest.*; do
2989 test -f "$ac_file" || continue;
2990 case $ac_file in
2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2992 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2993 break;;
2994 esac
2995 done
2996 else
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3001 See \`config.log' for more details." >&5
3002 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3003 See \`config.log' for more details." >&2;}
3004 { (exit 1); exit 1; }; }
3007 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3009 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3010 echo "${ECHO_T}$ac_cv_objext" >&6; }
3011 OBJEXT=$ac_cv_objext
3012 ac_objext=$OBJEXT
3013 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3014 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3015 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018 cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h. */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3026 main ()
3028 #ifndef __GNUC__
3029 choke me
3030 #endif
3033 return 0;
3035 _ACEOF
3036 rm -f conftest.$ac_objext
3037 if { (ac_try="$ac_compile"
3038 case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3041 esac
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_compile") 2>conftest.er1
3044 ac_status=$?
3045 grep -v '^ *+' conftest.er1 >conftest.err
3046 rm -f conftest.er1
3047 cat conftest.err >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } && {
3050 test -z "$ac_c_werror_flag" ||
3051 test ! -s conftest.err
3052 } && test -s conftest.$ac_objext; then
3053 ac_compiler_gnu=yes
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3058 ac_compiler_gnu=no
3061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3062 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3065 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3066 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3067 GCC=`test $ac_compiler_gnu = yes && echo yes`
3068 ac_test_CFLAGS=${CFLAGS+set}
3069 ac_save_CFLAGS=$CFLAGS
3070 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3071 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3072 if test "${ac_cv_prog_cc_g+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075 ac_save_c_werror_flag=$ac_c_werror_flag
3076 ac_c_werror_flag=yes
3077 ac_cv_prog_cc_g=no
3078 CFLAGS="-g"
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3087 main ()
3091 return 0;
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3096 case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3102 ac_status=$?
3103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } && {
3108 test -z "$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3110 } && test -s conftest.$ac_objext; then
3111 ac_cv_prog_cc_g=yes
3112 else
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3116 CFLAGS=""
3117 cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h. */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3125 main ()
3129 return 0;
3131 _ACEOF
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
3150 else
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 ac_c_werror_flag=$ac_save_c_werror_flag
3155 CFLAGS="-g"
3156 cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h. */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3164 main ()
3168 return 0;
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (ac_try="$ac_compile"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_compile") 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } && {
3185 test -z "$ac_c_werror_flag" ||
3186 test ! -s conftest.err
3187 } && test -s conftest.$ac_objext; then
3188 ac_cv_prog_cc_g=yes
3189 else
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_c_werror_flag=$ac_save_c_werror_flag
3205 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3206 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3207 if test "$ac_test_CFLAGS" = set; then
3208 CFLAGS=$ac_save_CFLAGS
3209 elif test $ac_cv_prog_cc_g = yes; then
3210 if test "$GCC" = yes; then
3211 CFLAGS="-g -O2"
3212 else
3213 CFLAGS="-g"
3215 else
3216 if test "$GCC" = yes; then
3217 CFLAGS="-O2"
3218 else
3219 CFLAGS=
3222 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3223 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3224 if test "${ac_cv_prog_cc_c89+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227 ac_cv_prog_cc_c89=no
3228 ac_save_CC=$CC
3229 cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h. */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3235 #include <stdarg.h>
3236 #include <stdio.h>
3237 #include <sys/types.h>
3238 #include <sys/stat.h>
3239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3240 struct buf { int x; };
3241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242 static char *e (p, i)
3243 char **p;
3244 int i;
3246 return p[i];
3248 static char *f (char * (*g) (char **, int), char **p, ...)
3250 char *s;
3251 va_list v;
3252 va_start (v,p);
3253 s = g (p, va_arg (v,int));
3254 va_end (v);
3255 return s;
3258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3259 function prototypes and stuff, but not '\xHH' hex character constants.
3260 These don't provoke an error unfortunately, instead are silently treated
3261 as 'x'. The following induces an error, until -std is added to get
3262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3263 array size at least. It's necessary to write '\x00'==0 to get something
3264 that's true only with -std. */
3265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268 inside strings and character constants. */
3269 #define FOO(x) 'x'
3270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3272 int test (int i, double x);
3273 struct s1 {int (*f) (int a);};
3274 struct s2 {int (*f) (double a);};
3275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3276 int argc;
3277 char **argv;
3279 main ()
3281 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3283 return 0;
3285 _ACEOF
3286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3289 CC="$ac_save_CC $ac_arg"
3290 rm -f conftest.$ac_objext
3291 if { (ac_try="$ac_compile"
3292 case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295 esac
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_compile") 2>conftest.er1
3298 ac_status=$?
3299 grep -v '^ *+' conftest.er1 >conftest.err
3300 rm -f conftest.er1
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } && {
3304 test -z "$ac_c_werror_flag" ||
3305 test ! -s conftest.err
3306 } && test -s conftest.$ac_objext; then
3307 ac_cv_prog_cc_c89=$ac_arg
3308 else
3309 echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3315 rm -f core conftest.err conftest.$ac_objext
3316 test "x$ac_cv_prog_cc_c89" != "xno" && break
3317 done
3318 rm -f conftest.$ac_ext
3319 CC=$ac_save_CC
3322 # AC_CACHE_VAL
3323 case "x$ac_cv_prog_cc_c89" in
3325 { echo "$as_me:$LINENO: result: none needed" >&5
3326 echo "${ECHO_T}none needed" >&6; } ;;
3327 xno)
3328 { echo "$as_me:$LINENO: result: unsupported" >&5
3329 echo "${ECHO_T}unsupported" >&6; } ;;
3331 CC="$CC $ac_cv_prog_cc_c89"
3332 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3333 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3334 esac
3337 ac_ext=c
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344 ac_ext=c
3345 ac_cpp='$CPP $CPPFLAGS'
3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3350 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3351 # On Suns, sometimes $CPP names a directory.
3352 if test -n "$CPP" && test -d "$CPP"; then
3353 CPP=
3355 if test -z "$CPP"; then
3356 if test "${ac_cv_prog_CPP+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 # Double quotes because CPP needs to be expanded
3360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3362 ac_preproc_ok=false
3363 for ac_c_preproc_warn_flag in '' yes
3365 # Use a header file that comes with gcc, so configuring glibc
3366 # with a fresh cross-compiler works.
3367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3368 # <limits.h> exists even on freestanding compilers.
3369 # On the NeXT, cc -E runs the code through the compiler's parser,
3370 # not just through cpp. "Syntax error" is here to catch this case.
3371 cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h. */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3377 #ifdef __STDC__
3378 # include <limits.h>
3379 #else
3380 # include <assert.h>
3381 #endif
3382 Syntax error
3383 _ACEOF
3384 if { (ac_try="$ac_cpp conftest.$ac_ext"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3391 ac_status=$?
3392 grep -v '^ *+' conftest.er1 >conftest.err
3393 rm -f conftest.er1
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } >/dev/null && {
3397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3399 }; then
3401 else
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 # Broken: fails on valid input.
3406 continue
3409 rm -f conftest.err conftest.$ac_ext
3411 # OK, works on sane cases. Now check whether nonexistent headers
3412 # can be detected and how.
3413 cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h. */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3419 #include <ac_nonexistent.h>
3420 _ACEOF
3421 if { (ac_try="$ac_cpp conftest.$ac_ext"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3428 ac_status=$?
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } >/dev/null && {
3434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3435 test ! -s conftest.err
3436 }; then
3437 # Broken: success on invalid input.
3438 continue
3439 else
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3443 # Passes both tests.
3444 ac_preproc_ok=:
3445 break
3448 rm -f conftest.err conftest.$ac_ext
3450 done
3451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3452 rm -f conftest.err conftest.$ac_ext
3453 if $ac_preproc_ok; then
3454 break
3457 done
3458 ac_cv_prog_CPP=$CPP
3461 CPP=$ac_cv_prog_CPP
3462 else
3463 ac_cv_prog_CPP=$CPP
3465 { echo "$as_me:$LINENO: result: $CPP" >&5
3466 echo "${ECHO_T}$CPP" >&6; }
3467 ac_preproc_ok=false
3468 for ac_c_preproc_warn_flag in '' yes
3470 # Use a header file that comes with gcc, so configuring glibc
3471 # with a fresh cross-compiler works.
3472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473 # <limits.h> exists even on freestanding compilers.
3474 # On the NeXT, cc -E runs the code through the compiler's parser,
3475 # not just through cpp. "Syntax error" is here to catch this case.
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h. */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3482 #ifdef __STDC__
3483 # include <limits.h>
3484 #else
3485 # include <assert.h>
3486 #endif
3487 Syntax error
3488 _ACEOF
3489 if { (ac_try="$ac_cpp conftest.$ac_ext"
3490 case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } >/dev/null && {
3502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3504 }; then
3506 else
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 # Broken: fails on valid input.
3511 continue
3514 rm -f conftest.err conftest.$ac_ext
3516 # OK, works on sane cases. Now check whether nonexistent headers
3517 # can be detected and how.
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #include <ac_nonexistent.h>
3525 _ACEOF
3526 if { (ac_try="$ac_cpp conftest.$ac_ext"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } >/dev/null && {
3539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3541 }; then
3542 # Broken: success on invalid input.
3543 continue
3544 else
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 # Passes both tests.
3549 ac_preproc_ok=:
3550 break
3553 rm -f conftest.err conftest.$ac_ext
3555 done
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3560 else
3561 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3562 See \`config.log' for more details." >&5
3563 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3564 See \`config.log' for more details." >&2;}
3565 { (exit 1); exit 1; }; }
3568 ac_ext=c
3569 ac_cpp='$CPP $CPPFLAGS'
3570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3576 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3577 if test "${ac_cv_path_GREP+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 # Extract the first word of "grep ggrep" to use in msg output
3581 if test -z "$GREP"; then
3582 set dummy grep ggrep; ac_prog_name=$2
3583 if test "${ac_cv_path_GREP+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586 ac_path_GREP_found=false
3587 # Loop through the user's path and test for each of PROGNAME-LIST
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
3593 for ac_prog in grep ggrep; do
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3596 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3597 # Check for GNU ac_path_GREP and select it if it is found.
3598 # Check for GNU $ac_path_GREP
3599 case `"$ac_path_GREP" --version 2>&1` in
3600 *GNU*)
3601 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3603 ac_count=0
3604 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3605 while :
3607 cat "conftest.in" "conftest.in" >"conftest.tmp"
3608 mv "conftest.tmp" "conftest.in"
3609 cp "conftest.in" "conftest.nl"
3610 echo 'GREP' >> "conftest.nl"
3611 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3613 ac_count=`expr $ac_count + 1`
3614 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3615 # Best one so far, save it but keep looking for a better one
3616 ac_cv_path_GREP="$ac_path_GREP"
3617 ac_path_GREP_max=$ac_count
3619 # 10*(2^10) chars as input seems more than enough
3620 test $ac_count -gt 10 && break
3621 done
3622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3623 esac
3626 $ac_path_GREP_found && break 3
3627 done
3628 done
3630 done
3631 IFS=$as_save_IFS
3636 GREP="$ac_cv_path_GREP"
3637 if test -z "$GREP"; then
3638 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3639 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3640 { (exit 1); exit 1; }; }
3643 else
3644 ac_cv_path_GREP=$GREP
3649 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3650 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3651 GREP="$ac_cv_path_GREP"
3654 { echo "$as_me:$LINENO: checking for egrep" >&5
3655 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3656 if test "${ac_cv_path_EGREP+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3660 then ac_cv_path_EGREP="$GREP -E"
3661 else
3662 # Extract the first word of "egrep" to use in msg output
3663 if test -z "$EGREP"; then
3664 set dummy egrep; ac_prog_name=$2
3665 if test "${ac_cv_path_EGREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 ac_path_EGREP_found=false
3669 # Loop through the user's path and test for each of PROGNAME-LIST
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_prog in egrep; do
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3678 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3679 # Check for GNU ac_path_EGREP and select it if it is found.
3680 # Check for GNU $ac_path_EGREP
3681 case `"$ac_path_EGREP" --version 2>&1` in
3682 *GNU*)
3683 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3685 ac_count=0
3686 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3687 while :
3689 cat "conftest.in" "conftest.in" >"conftest.tmp"
3690 mv "conftest.tmp" "conftest.in"
3691 cp "conftest.in" "conftest.nl"
3692 echo 'EGREP' >> "conftest.nl"
3693 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3695 ac_count=`expr $ac_count + 1`
3696 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3697 # Best one so far, save it but keep looking for a better one
3698 ac_cv_path_EGREP="$ac_path_EGREP"
3699 ac_path_EGREP_max=$ac_count
3701 # 10*(2^10) chars as input seems more than enough
3702 test $ac_count -gt 10 && break
3703 done
3704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3705 esac
3708 $ac_path_EGREP_found && break 3
3709 done
3710 done
3712 done
3713 IFS=$as_save_IFS
3718 EGREP="$ac_cv_path_EGREP"
3719 if test -z "$EGREP"; then
3720 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3721 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3722 { (exit 1); exit 1; }; }
3725 else
3726 ac_cv_path_EGREP=$EGREP
3732 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3733 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3734 EGREP="$ac_cv_path_EGREP"
3737 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3738 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3739 if test "${ac_cv_header_stdc+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742 cat >conftest.$ac_ext <<_ACEOF
3743 /* confdefs.h. */
3744 _ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3748 #include <stdlib.h>
3749 #include <stdarg.h>
3750 #include <string.h>
3751 #include <float.h>
3754 main ()
3758 return 0;
3760 _ACEOF
3761 rm -f conftest.$ac_objext
3762 if { (ac_try="$ac_compile"
3763 case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766 esac
3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768 (eval "$ac_compile") 2>conftest.er1
3769 ac_status=$?
3770 grep -v '^ *+' conftest.er1 >conftest.err
3771 rm -f conftest.er1
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } && {
3775 test -z "$ac_c_werror_flag" ||
3776 test ! -s conftest.err
3777 } && test -s conftest.$ac_objext; then
3778 ac_cv_header_stdc=yes
3779 else
3780 echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3783 ac_cv_header_stdc=no
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 if test $ac_cv_header_stdc = yes; then
3789 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3790 cat >conftest.$ac_ext <<_ACEOF
3791 /* confdefs.h. */
3792 _ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3796 #include <string.h>
3798 _ACEOF
3799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3800 $EGREP "memchr" >/dev/null 2>&1; then
3802 else
3803 ac_cv_header_stdc=no
3805 rm -f conftest*
3809 if test $ac_cv_header_stdc = yes; then
3810 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3811 cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h. */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817 #include <stdlib.h>
3819 _ACEOF
3820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3821 $EGREP "free" >/dev/null 2>&1; then
3823 else
3824 ac_cv_header_stdc=no
3826 rm -f conftest*
3830 if test $ac_cv_header_stdc = yes; then
3831 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3832 if test "$cross_compiling" = yes; then
3834 else
3835 cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h. */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3841 #include <ctype.h>
3842 #include <stdlib.h>
3843 #if ((' ' & 0x0FF) == 0x020)
3844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3846 #else
3847 # define ISLOWER(c) \
3848 (('a' <= (c) && (c) <= 'i') \
3849 || ('j' <= (c) && (c) <= 'r') \
3850 || ('s' <= (c) && (c) <= 'z'))
3851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3852 #endif
3854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3856 main ()
3858 int i;
3859 for (i = 0; i < 256; i++)
3860 if (XOR (islower (i), ISLOWER (i))
3861 || toupper (i) != TOUPPER (i))
3862 return 2;
3863 return 0;
3865 _ACEOF
3866 rm -f conftest$ac_exeext
3867 if { (ac_try="$ac_link"
3868 case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_link") 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3877 { (case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_try") 2>&5
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3887 else
3888 echo "$as_me: program exited with status $ac_status" >&5
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3892 ( exit $ac_status )
3893 ac_cv_header_stdc=no
3895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3901 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3902 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3903 if test $ac_cv_header_stdc = yes; then
3905 cat >>confdefs.h <<\_ACEOF
3906 #define STDC_HEADERS 1
3907 _ACEOF
3911 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3921 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3922 inttypes.h stdint.h unistd.h
3924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 else
3930 cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h. */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 $ac_includes_default
3938 #include <$ac_header>
3939 _ACEOF
3940 rm -f conftest.$ac_objext
3941 if { (ac_try="$ac_compile"
3942 case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945 esac
3946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_compile") 2>conftest.er1
3948 ac_status=$?
3949 grep -v '^ *+' conftest.er1 >conftest.err
3950 rm -f conftest.er1
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } && {
3954 test -z "$ac_c_werror_flag" ||
3955 test ! -s conftest.err
3956 } && test -s conftest.$ac_objext; then
3957 eval "$as_ac_Header=yes"
3958 else
3959 echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3962 eval "$as_ac_Header=no"
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 ac_res=`eval echo '${'$as_ac_Header'}'`
3968 { echo "$as_me:$LINENO: result: $ac_res" >&5
3969 echo "${ECHO_T}$ac_res" >&6; }
3970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3971 cat >>confdefs.h <<_ACEOF
3972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3973 _ACEOF
3977 done
3980 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3981 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3982 if test "${ac_cv_c_bigendian+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985 # See if sys/param.h defines the BYTE_ORDER macro.
3986 cat >conftest.$ac_ext <<_ACEOF
3987 /* confdefs.h. */
3988 _ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h. */
3992 #include <sys/types.h>
3993 #include <sys/param.h>
3996 main ()
3998 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3999 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4000 bogus endian macros
4001 #endif
4004 return 0;
4006 _ACEOF
4007 rm -f conftest.$ac_objext
4008 if { (ac_try="$ac_compile"
4009 case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_compile") 2>conftest.er1
4015 ac_status=$?
4016 grep -v '^ *+' conftest.er1 >conftest.err
4017 rm -f conftest.er1
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } && {
4021 test -z "$ac_c_werror_flag" ||
4022 test ! -s conftest.err
4023 } && test -s conftest.$ac_objext; then
4024 # It does; now see whether it defined to BIG_ENDIAN or not.
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 <sys/types.h>
4032 #include <sys/param.h>
4035 main ()
4037 #if BYTE_ORDER != BIG_ENDIAN
4038 not big endian
4039 #endif
4042 return 0;
4044 _ACEOF
4045 rm -f conftest.$ac_objext
4046 if { (ac_try="$ac_compile"
4047 case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050 esac
4051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_compile") 2>conftest.er1
4053 ac_status=$?
4054 grep -v '^ *+' conftest.er1 >conftest.err
4055 rm -f conftest.er1
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } && {
4059 test -z "$ac_c_werror_flag" ||
4060 test ! -s conftest.err
4061 } && test -s conftest.$ac_objext; then
4062 ac_cv_c_bigendian=yes
4063 else
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4067 ac_cv_c_bigendian=no
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 else
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4075 # It does not; compile a test program.
4076 if test "$cross_compiling" = yes; then
4077 # try to guess the endianness by grepping values into an object file
4078 ac_cv_c_bigendian=unknown
4079 cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h. */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4086 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4087 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4088 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4089 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4090 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4092 main ()
4094 _ascii (); _ebcdic ();
4096 return 0;
4098 _ACEOF
4099 rm -f conftest.$ac_objext
4100 if { (ac_try="$ac_compile"
4101 case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104 esac
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_compile") 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } && {
4113 test -z "$ac_c_werror_flag" ||
4114 test ! -s conftest.err
4115 } && test -s conftest.$ac_objext; then
4116 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4117 ac_cv_c_bigendian=yes
4119 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4120 if test "$ac_cv_c_bigendian" = unknown; then
4121 ac_cv_c_bigendian=no
4122 else
4123 # finding both strings is unlikely to happen, but who knows?
4124 ac_cv_c_bigendian=unknown
4127 else
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 else
4136 cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h. */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 $ac_includes_default
4144 main ()
4147 /* Are we little or big endian? From Harbison&Steele. */
4148 union
4150 long int l;
4151 char c[sizeof (long int)];
4152 } u;
4153 u.l = 1;
4154 return u.c[sizeof (long int) - 1] == 1;
4157 return 0;
4159 _ACEOF
4160 rm -f conftest$ac_exeext
4161 if { (ac_try="$ac_link"
4162 case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4165 esac
4166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_link") 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4171 { (case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174 esac
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_try") 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4180 ac_cv_c_bigendian=no
4181 else
4182 echo "$as_me: program exited with status $ac_status" >&5
4183 echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4186 ( exit $ac_status )
4187 ac_cv_c_bigendian=yes
4189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4198 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4199 case $ac_cv_c_bigendian in
4200 yes)
4201 ENDIAN=big
4204 ENDIAN=little
4207 { { echo "$as_me:$LINENO: error: unknown endianness
4208 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4209 echo "$as_me: error: unknown endianness
4210 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4211 { (exit 1); exit 1; }; } ;;
4212 esac
4215 if test "$cross_compiling" = yes; then
4216 LLVM_CROSS_COMPILING=1
4219 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4220 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4221 if test "${ac_cv_build_exeext+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4225 ac_cv_build_exeext=.exe
4226 else
4227 ac_build_prefix=${build_alias}-
4229 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4230 set dummy ${ac_build_prefix}gcc; ac_word=$2
4231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4233 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 else
4236 if test -n "$BUILD_CC"; then
4237 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 break 2
4250 done
4251 done
4252 IFS=$as_save_IFS
4256 BUILD_CC=$ac_cv_prog_BUILD_CC
4257 if test -n "$BUILD_CC"; then
4258 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4259 echo "${ECHO_T}$BUILD_CC" >&6; }
4260 else
4261 { echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6; }
4266 if test -z "$BUILD_CC"; then
4267 # Extract the first word of "gcc", so it can be a program name with args.
4268 set dummy gcc; ac_word=$2
4269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4271 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274 if test -n "$BUILD_CC"; then
4275 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4276 else
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284 ac_cv_prog_BUILD_CC="gcc"
4285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4288 done
4289 done
4290 IFS=$as_save_IFS
4294 BUILD_CC=$ac_cv_prog_BUILD_CC
4295 if test -n "$BUILD_CC"; then
4296 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4297 echo "${ECHO_T}$BUILD_CC" >&6; }
4298 else
4299 { echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6; }
4304 if test -z "$BUILD_CC"; then
4305 # Extract the first word of "cc", so it can be a program name with args.
4306 set dummy cc; ac_word=$2
4307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4309 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 if test -n "$BUILD_CC"; then
4313 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4314 else
4315 ac_prog_rejected=no
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4324 ac_prog_rejected=yes
4325 continue
4327 ac_cv_prog_BUILD_CC="cc"
4328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4331 done
4332 done
4333 IFS=$as_save_IFS
4335 if test $ac_prog_rejected = yes; then
4336 # We found a bogon in the path, so make sure we never use it.
4337 set dummy $ac_cv_prog_BUILD_CC
4338 shift
4339 if test $# != 0; then
4340 # We chose a different compiler from the bogus one.
4341 # However, it has the same basename, so the bogon will be chosen
4342 # first if we set BUILD_CC to just the basename; use the full file name.
4343 shift
4344 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4349 BUILD_CC=$ac_cv_prog_BUILD_CC
4350 if test -n "$BUILD_CC"; then
4351 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4352 echo "${ECHO_T}$BUILD_CC" >&6; }
4353 else
4354 { echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6; }
4361 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4362 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4363 { (exit 1); exit 1; }; }
4364 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4365 rm -f conftest*
4366 echo 'int main () { return 0; }' > conftest.$ac_ext
4367 ac_cv_build_exeext=
4368 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4369 (eval $ac_build_link) 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; then
4373 for file in conftest.*; do
4374 case $file in
4375 *.c | *.o | *.obj | *.dSYM) ;;
4376 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4377 esac
4378 done
4379 else
4380 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4381 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4382 { (exit 1); exit 1; }; }
4384 rm -f conftest*
4385 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4389 BUILD_EXEEXT=""
4390 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4391 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4392 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4393 ac_build_exeext=$BUILD_EXEEXT
4395 ac_build_prefix=${build_alias}-
4396 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4397 set dummy ${ac_build_prefix}g++; ac_word=$2
4398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4400 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403 if test -n "$BUILD_CXX"; then
4404 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4417 done
4418 done
4419 IFS=$as_save_IFS
4423 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4424 if test -n "$BUILD_CXX"; then
4425 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4426 echo "${ECHO_T}$BUILD_CXX" >&6; }
4427 else
4428 { echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6; }
4433 if test -z "$BUILD_CXX"; then
4434 # Extract the first word of "g++", so it can be a program name with args.
4435 set dummy g++; ac_word=$2
4436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 if test -n "$BUILD_CXX"; then
4442 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451 ac_cv_prog_BUILD_CXX="g++"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 break 2
4455 done
4456 done
4457 IFS=$as_save_IFS
4461 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4462 if test -n "$BUILD_CXX"; then
4463 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4464 echo "${ECHO_T}$BUILD_CXX" >&6; }
4465 else
4466 { echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6; }
4471 if test -z "$BUILD_CXX"; then
4472 # Extract the first word of "c++", so it can be a program name with args.
4473 set dummy c++; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479 if test -n "$BUILD_CXX"; then
4480 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4481 else
4482 ac_prog_rejected=no
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4491 ac_prog_rejected=yes
4492 continue
4494 ac_cv_prog_BUILD_CXX="c++"
4495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4498 done
4499 done
4500 IFS=$as_save_IFS
4502 if test $ac_prog_rejected = yes; then
4503 # We found a bogon in the path, so make sure we never use it.
4504 set dummy $ac_cv_prog_BUILD_CXX
4505 shift
4506 if test $# != 0; then
4507 # We chose a different compiler from the bogus one.
4508 # However, it has the same basename, so the bogon will be chosen
4509 # first if we set BUILD_CXX to just the basename; use the full file name.
4510 shift
4511 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4516 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4517 if test -n "$BUILD_CXX"; then
4518 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4519 echo "${ECHO_T}$BUILD_CXX" >&6; }
4520 else
4521 { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4528 else
4529 LLVM_CROSS_COMPILING=0
4533 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4534 cvsbuild="yes"
4535 optimize="no"
4536 CVSBUILD=CVSBUILD=1
4538 else
4539 cvsbuild="no"
4540 optimize="yes"
4544 # Check whether --enable-optimized was given.
4545 if test "${enable_optimized+set}" = set; then
4546 enableval=$enable_optimized;
4547 else
4548 enableval=$optimize
4551 if test ${enableval} = "no" ; then
4552 ENABLE_OPTIMIZED=
4554 else
4555 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4559 # Check whether --enable-assertions was given.
4560 if test "${enable_assertions+set}" = set; then
4561 enableval=$enable_assertions;
4562 else
4563 enableval="yes"
4566 if test ${enableval} = "yes" ; then
4567 DISABLE_ASSERTIONS=
4569 else
4570 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4574 # Check whether --enable-expensive-checks was given.
4575 if test "${enable_expensive_checks+set}" = set; then
4576 enableval=$enable_expensive_checks;
4577 else
4578 enableval="no"
4581 if test ${enableval} = "yes" ; then
4582 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4584 EXPENSIVE_CHECKS=yes
4586 else
4587 ENABLE_EXPENSIVE_CHECKS=
4589 EXPENSIVE_CHECKS=no
4593 # Check whether --enable-debug-runtime was given.
4594 if test "${enable_debug_runtime+set}" = set; then
4595 enableval=$enable_debug_runtime;
4596 else
4597 enableval=no
4600 if test ${enableval} = "no" ; then
4601 DEBUG_RUNTIME=
4603 else
4604 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4608 # Check whether --enable-jit was given.
4609 if test "${enable_jit+set}" = set; then
4610 enableval=$enable_jit;
4611 else
4612 enableval=default
4615 if test ${enableval} = "no"
4616 then
4617 JIT=
4619 else
4620 case "$llvm_cv_target_arch" in
4621 x86) TARGET_HAS_JIT=1
4623 Sparc) TARGET_HAS_JIT=0
4625 PowerPC) TARGET_HAS_JIT=1
4627 x86_64) TARGET_HAS_JIT=1
4629 Alpha) TARGET_HAS_JIT=1
4631 IA64) TARGET_HAS_JIT=0
4633 ARM) TARGET_HAS_JIT=0
4635 Mips) TARGET_HAS_JIT=0
4637 PIC16) TARGET_HAS_JIT=0
4639 XCore) TARGET_HAS_JIT=0
4641 *) TARGET_HAS_JIT=0
4643 esac
4646 # Check whether --enable-doxygen was given.
4647 if test "${enable_doxygen+set}" = set; then
4648 enableval=$enable_doxygen;
4649 else
4650 enableval=default
4653 case "$enableval" in
4654 yes) ENABLE_DOXYGEN=1
4656 no) ENABLE_DOXYGEN=0
4658 default) ENABLE_DOXYGEN=0
4660 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4661 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4662 { (exit 1); exit 1; }; } ;;
4663 esac
4665 # Check whether --enable-threads was given.
4666 if test "${enable_threads+set}" = set; then
4667 enableval=$enable_threads;
4668 else
4669 enableval=default
4672 case "$enableval" in
4673 yes) ENABLE_THREADS=1
4675 no) ENABLE_THREADS=0
4677 default) ENABLE_THREADS=1
4679 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4680 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4681 { (exit 1); exit 1; }; } ;;
4682 esac
4684 cat >>confdefs.h <<_ACEOF
4685 #define ENABLE_THREADS $ENABLE_THREADS
4686 _ACEOF
4689 # Check whether --enable-pic was given.
4690 if test "${enable_pic+set}" = set; then
4691 enableval=$enable_pic;
4692 else
4693 enableval=default
4696 case "$enableval" in
4697 yes) ENABLE_PIC=1
4699 no) ENABLE_PIC=0
4701 default) ENABLE_PIC=0
4703 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4704 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4705 { (exit 1); exit 1; }; } ;;
4706 esac
4708 cat >>confdefs.h <<_ACEOF
4709 #define ENABLE_PIC $ENABLE_PIC
4710 _ACEOF
4713 TARGETS_TO_BUILD=""
4714 # Check whether --enable-targets was given.
4715 if test "${enable_targets+set}" = set; then
4716 enableval=$enable_targets;
4717 else
4718 enableval=all
4721 case "$enableval" in
4722 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4723 host-only)
4724 case "$llvm_cv_target_arch" in
4725 x86) TARGETS_TO_BUILD="X86" ;;
4726 x86_64) TARGETS_TO_BUILD="X86" ;;
4727 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4728 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4729 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4730 IA64) TARGETS_TO_BUILD="IA64" ;;
4731 ARM) TARGETS_TO_BUILD="ARM" ;;
4732 Mips) TARGETS_TO_BUILD="Mips" ;;
4733 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4734 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4735 XCore) TARGETS_TO_BUILD="XCore" ;;
4736 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4737 echo "$as_me: error: Can not set target to build" >&2;}
4738 { (exit 1); exit 1; }; } ;;
4739 esac
4741 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4742 case "$a_target" in
4743 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4744 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4745 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4746 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4747 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4748 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4749 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4750 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4751 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4752 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4753 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4754 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4755 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4756 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4757 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4758 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4759 { (exit 1); exit 1; }; } ;;
4760 esac
4761 done
4763 esac
4764 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4767 # Check whether --enable-cbe-printf-a was given.
4768 if test "${enable_cbe_printf_a+set}" = set; then
4769 enableval=$enable_cbe_printf_a;
4770 else
4771 enableval=default
4774 case "$enableval" in
4775 yes) ENABLE_CBE_PRINTF_A=1
4777 no) ENABLE_CBE_PRINTF_A=0
4779 default) ENABLE_CBE_PRINTF_A=1
4781 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4782 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4783 { (exit 1); exit 1; }; } ;;
4784 esac
4786 cat >>confdefs.h <<_ACEOF
4787 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4788 _ACEOF
4792 # Check whether --with-llvmgccdir was given.
4793 if test "${with_llvmgccdir+set}" = set; then
4794 withval=$with_llvmgccdir;
4795 else
4796 withval=default
4799 case "$withval" in
4800 default) WITH_LLVMGCCDIR=default ;;
4801 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4802 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4803 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4804 { (exit 1); exit 1; }; } ;;
4805 esac
4808 # Check whether --with-llvmgcc was given.
4809 if test "${with_llvmgcc+set}" = set; then
4810 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4811 WITH_LLVMGCCDIR=""
4816 # Check whether --with-llvmgxx was given.
4817 if test "${with_llvmgxx+set}" = set; then
4818 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4819 WITH_LLVMGCCDIR=""
4823 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4824 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4825 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4826 { (exit 1); exit 1; }; };
4829 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4830 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4831 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4832 { (exit 1); exit 1; }; };
4836 # Check whether --with-extra-options was given.
4837 if test "${with_extra_options+set}" = set; then
4838 withval=$with_extra_options;
4839 else
4840 withval=default
4843 case "$withval" in
4844 default) EXTRA_OPTIONS= ;;
4845 *) EXTRA_OPTIONS=$withval ;;
4846 esac
4847 EXTRA_OPTIONS=$EXTRA_OPTIONS
4850 # Check whether --enable-bindings was given.
4851 if test "${enable_bindings+set}" = set; then
4852 enableval=$enable_bindings;
4853 else
4854 enableval=default
4857 BINDINGS_TO_BUILD=""
4858 case "$enableval" in
4859 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4860 all ) BINDINGS_TO_BUILD="ocaml" ;;
4861 none | no) BINDINGS_TO_BUILD="" ;;
4862 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4863 case "$a_binding" in
4864 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4865 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4866 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4867 { (exit 1); exit 1; }; } ;;
4868 esac
4869 done
4871 esac
4874 # Check whether --with-ocaml-libdir was given.
4875 if test "${with_ocaml_libdir+set}" = set; then
4876 withval=$with_ocaml_libdir;
4877 else
4878 withval=auto
4881 case "$withval" in
4882 auto) with_ocaml_libdir="$withval" ;;
4883 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4884 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4885 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4886 { (exit 1); exit 1; }; } ;;
4887 esac
4890 ac_ext=c
4891 ac_cpp='$CPP $CPPFLAGS'
4892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4896 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4897 # On Suns, sometimes $CPP names a directory.
4898 if test -n "$CPP" && test -d "$CPP"; then
4899 CPP=
4901 if test -z "$CPP"; then
4902 if test "${ac_cv_prog_CPP+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905 # Double quotes because CPP needs to be expanded
4906 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4908 ac_preproc_ok=false
4909 for ac_c_preproc_warn_flag in '' yes
4911 # Use a header file that comes with gcc, so configuring glibc
4912 # with a fresh cross-compiler works.
4913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4914 # <limits.h> exists even on freestanding compilers.
4915 # On the NeXT, cc -E runs the code through the compiler's parser,
4916 # not just through cpp. "Syntax error" is here to catch this case.
4917 cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h. */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4923 #ifdef __STDC__
4924 # include <limits.h>
4925 #else
4926 # include <assert.h>
4927 #endif
4928 Syntax error
4929 _ACEOF
4930 if { (ac_try="$ac_cpp conftest.$ac_ext"
4931 case "(($ac_try" in
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4934 esac
4935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } >/dev/null && {
4943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4944 test ! -s conftest.err
4945 }; then
4947 else
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4951 # Broken: fails on valid input.
4952 continue
4955 rm -f conftest.err conftest.$ac_ext
4957 # OK, works on sane cases. Now check whether nonexistent headers
4958 # can be detected and how.
4959 cat >conftest.$ac_ext <<_ACEOF
4960 /* confdefs.h. */
4961 _ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4965 #include <ac_nonexistent.h>
4966 _ACEOF
4967 if { (ac_try="$ac_cpp conftest.$ac_ext"
4968 case "(($ac_try" in
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4971 esac
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4974 ac_status=$?
4975 grep -v '^ *+' conftest.er1 >conftest.err
4976 rm -f conftest.er1
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } >/dev/null && {
4980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4981 test ! -s conftest.err
4982 }; then
4983 # Broken: success on invalid input.
4984 continue
4985 else
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4989 # Passes both tests.
4990 ac_preproc_ok=:
4991 break
4994 rm -f conftest.err conftest.$ac_ext
4996 done
4997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4998 rm -f conftest.err conftest.$ac_ext
4999 if $ac_preproc_ok; then
5000 break
5003 done
5004 ac_cv_prog_CPP=$CPP
5007 CPP=$ac_cv_prog_CPP
5008 else
5009 ac_cv_prog_CPP=$CPP
5011 { echo "$as_me:$LINENO: result: $CPP" >&5
5012 echo "${ECHO_T}$CPP" >&6; }
5013 ac_preproc_ok=false
5014 for ac_c_preproc_warn_flag in '' yes
5016 # Use a header file that comes with gcc, so configuring glibc
5017 # with a fresh cross-compiler works.
5018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5019 # <limits.h> exists even on freestanding compilers.
5020 # On the NeXT, cc -E runs the code through the compiler's parser,
5021 # not just through cpp. "Syntax error" is here to catch this case.
5022 cat >conftest.$ac_ext <<_ACEOF
5023 /* confdefs.h. */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5028 #ifdef __STDC__
5029 # include <limits.h>
5030 #else
5031 # include <assert.h>
5032 #endif
5033 Syntax error
5034 _ACEOF
5035 if { (ac_try="$ac_cpp conftest.$ac_ext"
5036 case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039 esac
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } >/dev/null && {
5048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5049 test ! -s conftest.err
5050 }; then
5052 else
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5056 # Broken: fails on valid input.
5057 continue
5060 rm -f conftest.err conftest.$ac_ext
5062 # OK, works on sane cases. Now check whether nonexistent headers
5063 # can be detected and how.
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 #include <ac_nonexistent.h>
5071 _ACEOF
5072 if { (ac_try="$ac_cpp conftest.$ac_ext"
5073 case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076 esac
5077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5079 ac_status=$?
5080 grep -v '^ *+' conftest.er1 >conftest.err
5081 rm -f conftest.er1
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } >/dev/null && {
5085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5086 test ! -s conftest.err
5087 }; then
5088 # Broken: success on invalid input.
5089 continue
5090 else
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5094 # Passes both tests.
5095 ac_preproc_ok=:
5096 break
5099 rm -f conftest.err conftest.$ac_ext
5101 done
5102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5103 rm -f conftest.err conftest.$ac_ext
5104 if $ac_preproc_ok; then
5106 else
5107 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5108 See \`config.log' for more details." >&5
5109 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5110 See \`config.log' for more details." >&2;}
5111 { (exit 1); exit 1; }; }
5114 ac_ext=c
5115 ac_cpp='$CPP $CPPFLAGS'
5116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120 ac_ext=c
5121 ac_cpp='$CPP $CPPFLAGS'
5122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5125 if test -n "$ac_tool_prefix"; then
5126 for ac_prog in gcc
5128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5132 if test "${ac_cv_prog_CC+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135 if test -n "$CC"; then
5136 ac_cv_prog_CC="$CC" # Let the user override the test.
5137 else
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5145 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 break 2
5149 done
5150 done
5151 IFS=$as_save_IFS
5155 CC=$ac_cv_prog_CC
5156 if test -n "$CC"; then
5157 { echo "$as_me:$LINENO: result: $CC" >&5
5158 echo "${ECHO_T}$CC" >&6; }
5159 else
5160 { echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6; }
5165 test -n "$CC" && break
5166 done
5168 if test -z "$CC"; then
5169 ac_ct_CC=$CC
5170 for ac_prog in gcc
5172 # Extract the first word of "$ac_prog", so it can be a program name with args.
5173 set dummy $ac_prog; ac_word=$2
5174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179 if test -n "$ac_ct_CC"; then
5180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_ac_ct_CC="$ac_prog"
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5193 done
5194 done
5195 IFS=$as_save_IFS
5199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5200 if test -n "$ac_ct_CC"; then
5201 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5202 echo "${ECHO_T}$ac_ct_CC" >&6; }
5203 else
5204 { echo "$as_me:$LINENO: result: no" >&5
5205 echo "${ECHO_T}no" >&6; }
5209 test -n "$ac_ct_CC" && break
5210 done
5212 if test "x$ac_ct_CC" = x; then
5213 CC=""
5214 else
5215 case $cross_compiling:$ac_tool_warned in
5216 yes:)
5217 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5218 whose name does not start with the host triplet. If you think this
5219 configuration is useful to you, please write to autoconf@gnu.org." >&5
5220 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5221 whose name does not start with the host triplet. If you think this
5222 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5223 ac_tool_warned=yes ;;
5224 esac
5225 CC=$ac_ct_CC
5230 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5231 See \`config.log' for more details." >&5
5232 echo "$as_me: error: no acceptable C compiler found in \$PATH
5233 See \`config.log' for more details." >&2;}
5234 { (exit 1); exit 1; }; }
5236 # Provide some information about the compiler.
5237 echo "$as_me:$LINENO: checking for C compiler version" >&5
5238 ac_compiler=`set X $ac_compile; echo $2`
5239 { (ac_try="$ac_compiler --version >&5"
5240 case "(($ac_try" in
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5243 esac
5244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_compiler --version >&5") 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }
5249 { (ac_try="$ac_compiler -v >&5"
5250 case "(($ac_try" in
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5253 esac
5254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_compiler -v >&5") 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }
5259 { (ac_try="$ac_compiler -V >&5"
5260 case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263 esac
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_compiler -V >&5") 2>&5
5266 ac_status=$?
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }
5270 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5271 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5272 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275 cat >conftest.$ac_ext <<_ACEOF
5276 /* confdefs.h. */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5283 main ()
5285 #ifndef __GNUC__
5286 choke me
5287 #endif
5290 return 0;
5292 _ACEOF
5293 rm -f conftest.$ac_objext
5294 if { (ac_try="$ac_compile"
5295 case "(($ac_try" in
5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5298 esac
5299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300 (eval "$ac_compile") 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } && {
5307 test -z "$ac_c_werror_flag" ||
5308 test ! -s conftest.err
5309 } && test -s conftest.$ac_objext; then
5310 ac_compiler_gnu=yes
5311 else
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5315 ac_compiler_gnu=no
5318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5322 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5323 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5324 GCC=`test $ac_compiler_gnu = yes && echo yes`
5325 ac_test_CFLAGS=${CFLAGS+set}
5326 ac_save_CFLAGS=$CFLAGS
5327 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5328 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5329 if test "${ac_cv_prog_cc_g+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332 ac_save_c_werror_flag=$ac_c_werror_flag
5333 ac_c_werror_flag=yes
5334 ac_cv_prog_cc_g=no
5335 CFLAGS="-g"
5336 cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h. */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5344 main ()
5348 return 0;
5350 _ACEOF
5351 rm -f conftest.$ac_objext
5352 if { (ac_try="$ac_compile"
5353 case "(($ac_try" in
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5356 esac
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_compile") 2>conftest.er1
5359 ac_status=$?
5360 grep -v '^ *+' conftest.er1 >conftest.err
5361 rm -f conftest.er1
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } && {
5365 test -z "$ac_c_werror_flag" ||
5366 test ! -s conftest.err
5367 } && test -s conftest.$ac_objext; then
5368 ac_cv_prog_cc_g=yes
5369 else
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5373 CFLAGS=""
5374 cat >conftest.$ac_ext <<_ACEOF
5375 /* confdefs.h. */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5382 main ()
5386 return 0;
5388 _ACEOF
5389 rm -f conftest.$ac_objext
5390 if { (ac_try="$ac_compile"
5391 case "(($ac_try" in
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5394 esac
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_compile") 2>conftest.er1
5397 ac_status=$?
5398 grep -v '^ *+' conftest.er1 >conftest.err
5399 rm -f conftest.er1
5400 cat conftest.err >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } && {
5403 test -z "$ac_c_werror_flag" ||
5404 test ! -s conftest.err
5405 } && test -s conftest.$ac_objext; then
5407 else
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5411 ac_c_werror_flag=$ac_save_c_werror_flag
5412 CFLAGS="-g"
5413 cat >conftest.$ac_ext <<_ACEOF
5414 /* confdefs.h. */
5415 _ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5421 main ()
5425 return 0;
5427 _ACEOF
5428 rm -f conftest.$ac_objext
5429 if { (ac_try="$ac_compile"
5430 case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433 esac
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_compile") 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } && {
5442 test -z "$ac_c_werror_flag" ||
5443 test ! -s conftest.err
5444 } && test -s conftest.$ac_objext; then
5445 ac_cv_prog_cc_g=yes
5446 else
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 ac_c_werror_flag=$ac_save_c_werror_flag
5462 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5463 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5464 if test "$ac_test_CFLAGS" = set; then
5465 CFLAGS=$ac_save_CFLAGS
5466 elif test $ac_cv_prog_cc_g = yes; then
5467 if test "$GCC" = yes; then
5468 CFLAGS="-g -O2"
5469 else
5470 CFLAGS="-g"
5472 else
5473 if test "$GCC" = yes; then
5474 CFLAGS="-O2"
5475 else
5476 CFLAGS=
5479 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5480 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5481 if test "${ac_cv_prog_cc_c89+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484 ac_cv_prog_cc_c89=no
5485 ac_save_CC=$CC
5486 cat >conftest.$ac_ext <<_ACEOF
5487 /* confdefs.h. */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492 #include <stdarg.h>
5493 #include <stdio.h>
5494 #include <sys/types.h>
5495 #include <sys/stat.h>
5496 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5497 struct buf { int x; };
5498 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5499 static char *e (p, i)
5500 char **p;
5501 int i;
5503 return p[i];
5505 static char *f (char * (*g) (char **, int), char **p, ...)
5507 char *s;
5508 va_list v;
5509 va_start (v,p);
5510 s = g (p, va_arg (v,int));
5511 va_end (v);
5512 return s;
5515 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5516 function prototypes and stuff, but not '\xHH' hex character constants.
5517 These don't provoke an error unfortunately, instead are silently treated
5518 as 'x'. The following induces an error, until -std is added to get
5519 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5520 array size at least. It's necessary to write '\x00'==0 to get something
5521 that's true only with -std. */
5522 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5524 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5525 inside strings and character constants. */
5526 #define FOO(x) 'x'
5527 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5529 int test (int i, double x);
5530 struct s1 {int (*f) (int a);};
5531 struct s2 {int (*f) (double a);};
5532 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5533 int argc;
5534 char **argv;
5536 main ()
5538 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5540 return 0;
5542 _ACEOF
5543 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5544 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5546 CC="$ac_save_CC $ac_arg"
5547 rm -f conftest.$ac_objext
5548 if { (ac_try="$ac_compile"
5549 case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552 esac
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_compile") 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } && {
5561 test -z "$ac_c_werror_flag" ||
5562 test ! -s conftest.err
5563 } && test -s conftest.$ac_objext; then
5564 ac_cv_prog_cc_c89=$ac_arg
5565 else
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.$ac_ext >&5
5572 rm -f core conftest.err conftest.$ac_objext
5573 test "x$ac_cv_prog_cc_c89" != "xno" && break
5574 done
5575 rm -f conftest.$ac_ext
5576 CC=$ac_save_CC
5579 # AC_CACHE_VAL
5580 case "x$ac_cv_prog_cc_c89" in
5582 { echo "$as_me:$LINENO: result: none needed" >&5
5583 echo "${ECHO_T}none needed" >&6; } ;;
5584 xno)
5585 { echo "$as_me:$LINENO: result: unsupported" >&5
5586 echo "${ECHO_T}unsupported" >&6; } ;;
5588 CC="$CC $ac_cv_prog_cc_c89"
5589 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5590 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5591 esac
5594 ac_ext=c
5595 ac_cpp='$CPP $CPPFLAGS'
5596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5600 ac_ext=cpp
5601 ac_cpp='$CXXCPP $CPPFLAGS'
5602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5605 if test -z "$CXX"; then
5606 if test -n "$CCC"; then
5607 CXX=$CCC
5608 else
5609 if test -n "$ac_tool_prefix"; then
5610 for ac_prog in g++
5612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5616 if test "${ac_cv_prog_CXX+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619 if test -n "$CXX"; then
5620 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5621 else
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 for as_dir in $PATH
5625 IFS=$as_save_IFS
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5629 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 break 2
5633 done
5634 done
5635 IFS=$as_save_IFS
5639 CXX=$ac_cv_prog_CXX
5640 if test -n "$CXX"; then
5641 { echo "$as_me:$LINENO: result: $CXX" >&5
5642 echo "${ECHO_T}$CXX" >&6; }
5643 else
5644 { echo "$as_me:$LINENO: result: no" >&5
5645 echo "${ECHO_T}no" >&6; }
5649 test -n "$CXX" && break
5650 done
5652 if test -z "$CXX"; then
5653 ac_ct_CXX=$CXX
5654 for ac_prog in g++
5656 # Extract the first word of "$ac_prog", so it can be a program name with args.
5657 set dummy $ac_prog; ac_word=$2
5658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5660 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663 if test -n "$ac_ct_CXX"; then
5664 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5665 else
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5673 ac_cv_prog_ac_ct_CXX="$ac_prog"
5674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5677 done
5678 done
5679 IFS=$as_save_IFS
5683 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5684 if test -n "$ac_ct_CXX"; then
5685 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5686 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5687 else
5688 { echo "$as_me:$LINENO: result: no" >&5
5689 echo "${ECHO_T}no" >&6; }
5693 test -n "$ac_ct_CXX" && break
5694 done
5696 if test "x$ac_ct_CXX" = x; then
5697 CXX="g++"
5698 else
5699 case $cross_compiling:$ac_tool_warned in
5700 yes:)
5701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5702 whose name does not start with the host triplet. If you think this
5703 configuration is useful to you, please write to autoconf@gnu.org." >&5
5704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5705 whose name does not start with the host triplet. If you think this
5706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5707 ac_tool_warned=yes ;;
5708 esac
5709 CXX=$ac_ct_CXX
5715 # Provide some information about the compiler.
5716 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5717 ac_compiler=`set X $ac_compile; echo $2`
5718 { (ac_try="$ac_compiler --version >&5"
5719 case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compiler --version >&5") 2>&5
5725 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }
5728 { (ac_try="$ac_compiler -v >&5"
5729 case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5732 esac
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_compiler -v >&5") 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }
5738 { (ac_try="$ac_compiler -V >&5"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_compiler -V >&5") 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }
5749 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5750 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5751 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754 cat >conftest.$ac_ext <<_ACEOF
5755 /* confdefs.h. */
5756 _ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5762 main ()
5764 #ifndef __GNUC__
5765 choke me
5766 #endif
5769 return 0;
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (ac_try="$ac_compile"
5774 case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compile") 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } && {
5786 test -z "$ac_cxx_werror_flag" ||
5787 test ! -s conftest.err
5788 } && test -s conftest.$ac_objext; then
5789 ac_compiler_gnu=yes
5790 else
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5794 ac_compiler_gnu=no
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5801 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5802 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5803 GXX=`test $ac_compiler_gnu = yes && echo yes`
5804 ac_test_CXXFLAGS=${CXXFLAGS+set}
5805 ac_save_CXXFLAGS=$CXXFLAGS
5806 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5807 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5808 if test "${ac_cv_prog_cxx_g+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5812 ac_cxx_werror_flag=yes
5813 ac_cv_prog_cxx_g=no
5814 CXXFLAGS="-g"
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5823 main ()
5827 return 0;
5829 _ACEOF
5830 rm -f conftest.$ac_objext
5831 if { (ac_try="$ac_compile"
5832 case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835 esac
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_compile") 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } && {
5844 test -z "$ac_cxx_werror_flag" ||
5845 test ! -s conftest.err
5846 } && test -s conftest.$ac_objext; then
5847 ac_cv_prog_cxx_g=yes
5848 else
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5852 CXXFLAGS=""
5853 cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h. */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5861 main ()
5865 return 0;
5867 _ACEOF
5868 rm -f conftest.$ac_objext
5869 if { (ac_try="$ac_compile"
5870 case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compile") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } && {
5882 test -z "$ac_cxx_werror_flag" ||
5883 test ! -s conftest.err
5884 } && test -s conftest.$ac_objext; then
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5890 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5891 CXXFLAGS="-g"
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5900 main ()
5904 return 0;
5906 _ACEOF
5907 rm -f conftest.$ac_objext
5908 if { (ac_try="$ac_compile"
5909 case "(($ac_try" in
5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911 *) ac_try_echo=$ac_try;;
5912 esac
5913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5914 (eval "$ac_compile") 2>conftest.er1
5915 ac_status=$?
5916 grep -v '^ *+' conftest.er1 >conftest.err
5917 rm -f conftest.er1
5918 cat conftest.err >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } && {
5921 test -z "$ac_cxx_werror_flag" ||
5922 test ! -s conftest.err
5923 } && test -s conftest.$ac_objext; then
5924 ac_cv_prog_cxx_g=yes
5925 else
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5941 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5942 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5943 if test "$ac_test_CXXFLAGS" = set; then
5944 CXXFLAGS=$ac_save_CXXFLAGS
5945 elif test $ac_cv_prog_cxx_g = yes; then
5946 if test "$GXX" = yes; then
5947 CXXFLAGS="-g -O2"
5948 else
5949 CXXFLAGS="-g"
5951 else
5952 if test "$GXX" = yes; then
5953 CXXFLAGS="-O2"
5954 else
5955 CXXFLAGS=
5958 ac_ext=c
5959 ac_cpp='$CPP $CPPFLAGS'
5960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5964 { echo "$as_me:$LINENO: checking " >&5
5965 echo $ECHO_N "checking ... $ECHO_C" >&6; }
5966 if test "${ac_cv_has_flex+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969 for ac_prog in flex lex
5971 # Extract the first word of "$ac_prog", so it can be a program name with args.
5972 set dummy $ac_prog; ac_word=$2
5973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5975 if test "${ac_cv_prog_LEX+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978 if test -n "$LEX"; then
5979 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5980 else
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5988 ac_cv_prog_LEX="$ac_prog"
5989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5992 done
5993 done
5994 IFS=$as_save_IFS
5998 LEX=$ac_cv_prog_LEX
5999 if test -n "$LEX"; then
6000 { echo "$as_me:$LINENO: result: $LEX" >&5
6001 echo "${ECHO_T}$LEX" >&6; }
6002 else
6003 { echo "$as_me:$LINENO: result: no" >&5
6004 echo "${ECHO_T}no" >&6; }
6008 test -n "$LEX" && break
6009 done
6010 test -n "$LEX" || LEX=":"
6012 if test "x$LEX" != "x:"; then
6013 cat >conftest.l <<_ACEOF
6015 a { ECHO; }
6016 b { REJECT; }
6017 c { yymore (); }
6018 d { yyless (1); }
6019 e { yyless (input () != 0); }
6020 f { unput (yytext[0]); }
6021 . { BEGIN INITIAL; }
6023 #ifdef YYTEXT_POINTER
6024 extern char *yytext;
6025 #endif
6027 main (void)
6029 return ! yylex () + ! yywrap ();
6031 _ACEOF
6032 { (ac_try="$LEX conftest.l"
6033 case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036 esac
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$LEX conftest.l") 2>&5
6039 ac_status=$?
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }
6042 { echo "$as_me:$LINENO: checking lex output file root" >&5
6043 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6044 if test "${ac_cv_prog_lex_root+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6048 if test -f lex.yy.c; then
6049 ac_cv_prog_lex_root=lex.yy
6050 elif test -f lexyy.c; then
6051 ac_cv_prog_lex_root=lexyy
6052 else
6053 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6054 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6055 { (exit 1); exit 1; }; }
6058 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6059 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6060 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6062 if test -z "${LEXLIB+set}"; then
6063 { echo "$as_me:$LINENO: checking lex library" >&5
6064 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
6065 if test "${ac_cv_lib_lex+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6069 ac_save_LIBS=$LIBS
6070 ac_cv_lib_lex='none needed'
6071 for ac_lib in '' -lfl -ll; do
6072 LIBS="$ac_lib $ac_save_LIBS"
6073 cat >conftest.$ac_ext <<_ACEOF
6074 `cat $LEX_OUTPUT_ROOT.c`
6075 _ACEOF
6076 rm -f conftest.$ac_objext conftest$ac_exeext
6077 if { (ac_try="$ac_link"
6078 case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081 esac
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_link") 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && {
6090 test -z "$ac_c_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest$ac_exeext &&
6093 $as_test_x conftest$ac_exeext; then
6094 ac_cv_lib_lex=$ac_lib
6095 else
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6103 conftest$ac_exeext conftest.$ac_ext
6104 test "$ac_cv_lib_lex" != 'none needed' && break
6105 done
6106 LIBS=$ac_save_LIBS
6109 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
6110 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
6111 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6115 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6116 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6117 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 # POSIX says lex can declare yytext either as a pointer or an array; the
6121 # default is implementation-dependent. Figure out which it is, since
6122 # not all implementations provide the %pointer and %array declarations.
6123 ac_cv_prog_lex_yytext_pointer=no
6124 ac_save_LIBS=$LIBS
6125 LIBS="$LEXLIB $ac_save_LIBS"
6126 cat >conftest.$ac_ext <<_ACEOF
6127 #define YYTEXT_POINTER 1
6128 `cat $LEX_OUTPUT_ROOT.c`
6129 _ACEOF
6130 rm -f conftest.$ac_objext conftest$ac_exeext
6131 if { (ac_try="$ac_link"
6132 case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135 esac
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_link") 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && {
6144 test -z "$ac_c_werror_flag" ||
6145 test ! -s conftest.err
6146 } && test -s conftest$ac_exeext &&
6147 $as_test_x conftest$ac_exeext; then
6148 ac_cv_prog_lex_yytext_pointer=yes
6149 else
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6157 conftest$ac_exeext conftest.$ac_ext
6158 LIBS=$ac_save_LIBS
6161 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6162 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6163 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6165 cat >>confdefs.h <<\_ACEOF
6166 #define YYTEXT_POINTER 1
6167 _ACEOF
6170 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6175 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6176 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6177 if test "$LEX" != "flex"; then
6178 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6179 echo "$as_me: error: flex not found but required" >&2;}
6180 { (exit 1); exit 1; }; }
6181 else
6182 FLEX=flex
6186 { echo "$as_me:$LINENO: checking " >&5
6187 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6188 if test "${llvm_cv_has_bison+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191 for ac_prog in 'bison -y' byacc
6193 # Extract the first word of "$ac_prog", so it can be a program name with args.
6194 set dummy $ac_prog; ac_word=$2
6195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6197 if test "${ac_cv_prog_YACC+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200 if test -n "$YACC"; then
6201 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6202 else
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_YACC="$ac_prog"
6211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6214 done
6215 done
6216 IFS=$as_save_IFS
6220 YACC=$ac_cv_prog_YACC
6221 if test -n "$YACC"; then
6222 { echo "$as_me:$LINENO: result: $YACC" >&5
6223 echo "${ECHO_T}$YACC" >&6; }
6224 else
6225 { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6230 test -n "$YACC" && break
6231 done
6232 test -n "$YACC" || YACC="yacc"
6235 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6236 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6237 if test "$YACC" != "bison -y"; then
6239 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6240 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6241 else
6242 BISON=bison
6246 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6247 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6248 if test "${lt_cv_path_NM+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251 if test -n "$NM"; then
6252 # Let the user override the test.
6253 lt_cv_path_NM="$NM"
6254 else
6255 lt_nm_to_check="${ac_tool_prefix}nm"
6256 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6257 lt_nm_to_check="$lt_nm_to_check nm"
6259 for lt_tmp_nm in $lt_nm_to_check; do
6260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6261 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6262 IFS="$lt_save_ifs"
6263 test -z "$ac_dir" && ac_dir=.
6264 tmp_nm="$ac_dir/$lt_tmp_nm"
6265 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6266 # Check to see if the nm accepts a BSD-compat flag.
6267 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6268 # nm: unknown option "B" ignored
6269 # Tru64's nm complains that /dev/null is an invalid object file
6270 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6271 */dev/null* | *'Invalid file or object type'*)
6272 lt_cv_path_NM="$tmp_nm -B"
6273 break
6276 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6277 */dev/null*)
6278 lt_cv_path_NM="$tmp_nm -p"
6279 break
6282 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6283 continue # so that we can try to find one that supports BSD flags
6285 esac
6287 esac
6289 done
6290 IFS="$lt_save_ifs"
6291 done
6292 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6295 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6296 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6297 NM="$lt_cv_path_NM"
6301 { echo "$as_me:$LINENO: checking for GNU make" >&5
6302 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6303 if test "${llvm_cv_gnu_make_command+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306 llvm_cv_gnu_make_command=''
6307 for a in "$MAKE" make gmake gnumake ; do
6308 if test -z "$a" ; then continue ; fi ;
6309 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6310 then
6311 llvm_cv_gnu_make_command=$a ;
6312 break;
6314 done
6316 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6317 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6318 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6319 ifGNUmake='' ;
6320 else
6321 ifGNUmake='#' ;
6322 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6323 echo "${ECHO_T}\"Not found\"" >&6; };
6327 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6328 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6329 LN_S=$as_ln_s
6330 if test "$LN_S" = "ln -s"; then
6331 { echo "$as_me:$LINENO: result: yes" >&5
6332 echo "${ECHO_T}yes" >&6; }
6333 else
6334 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6335 echo "${ECHO_T}no, using $LN_S" >&6; }
6338 # Extract the first word of "cmp", so it can be a program name with args.
6339 set dummy cmp; ac_word=$2
6340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6342 if test "${ac_cv_path_CMP+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345 case $CMP in
6346 [\\/]* | ?:[\\/]*)
6347 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6361 done
6362 done
6363 IFS=$as_save_IFS
6365 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6367 esac
6369 CMP=$ac_cv_path_CMP
6370 if test -n "$CMP"; then
6371 { echo "$as_me:$LINENO: result: $CMP" >&5
6372 echo "${ECHO_T}$CMP" >&6; }
6373 else
6374 { echo "$as_me:$LINENO: result: no" >&5
6375 echo "${ECHO_T}no" >&6; }
6379 # Extract the first word of "cp", so it can be a program name with args.
6380 set dummy cp; ac_word=$2
6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383 if test "${ac_cv_path_CP+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386 case $CP in
6387 [\\/]* | ?:[\\/]*)
6388 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 break 2
6402 done
6403 done
6404 IFS=$as_save_IFS
6406 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6408 esac
6410 CP=$ac_cv_path_CP
6411 if test -n "$CP"; then
6412 { echo "$as_me:$LINENO: result: $CP" >&5
6413 echo "${ECHO_T}$CP" >&6; }
6414 else
6415 { echo "$as_me:$LINENO: result: no" >&5
6416 echo "${ECHO_T}no" >&6; }
6420 # Extract the first word of "date", so it can be a program name with args.
6421 set dummy date; ac_word=$2
6422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6424 if test "${ac_cv_path_DATE+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427 case $DATE in
6428 [\\/]* | ?:[\\/]*)
6429 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 for as_dir in $PATH
6435 IFS=$as_save_IFS
6436 test -z "$as_dir" && as_dir=.
6437 for ac_exec_ext in '' $ac_executable_extensions; do
6438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6439 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 break 2
6443 done
6444 done
6445 IFS=$as_save_IFS
6447 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6449 esac
6451 DATE=$ac_cv_path_DATE
6452 if test -n "$DATE"; then
6453 { echo "$as_me:$LINENO: result: $DATE" >&5
6454 echo "${ECHO_T}$DATE" >&6; }
6455 else
6456 { echo "$as_me:$LINENO: result: no" >&5
6457 echo "${ECHO_T}no" >&6; }
6461 # Extract the first word of "find", so it can be a program name with args.
6462 set dummy find; ac_word=$2
6463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465 if test "${ac_cv_path_FIND+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468 case $FIND in
6469 [\\/]* | ?:[\\/]*)
6470 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 break 2
6484 done
6485 done
6486 IFS=$as_save_IFS
6488 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6490 esac
6492 FIND=$ac_cv_path_FIND
6493 if test -n "$FIND"; then
6494 { echo "$as_me:$LINENO: result: $FIND" >&5
6495 echo "${ECHO_T}$FIND" >&6; }
6496 else
6497 { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6502 # Extract the first word of "grep", so it can be a program name with args.
6503 set dummy grep; ac_word=$2
6504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6506 if test "${ac_cv_path_GREP+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 case $GREP in
6510 [\\/]* | ?:[\\/]*)
6511 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 for as_dir in $PATH
6517 IFS=$as_save_IFS
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6521 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 break 2
6525 done
6526 done
6527 IFS=$as_save_IFS
6529 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6531 esac
6533 GREP=$ac_cv_path_GREP
6534 if test -n "$GREP"; then
6535 { echo "$as_me:$LINENO: result: $GREP" >&5
6536 echo "${ECHO_T}$GREP" >&6; }
6537 else
6538 { echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6; }
6543 # Extract the first word of "mkdir", so it can be a program name with args.
6544 set dummy mkdir; ac_word=$2
6545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547 if test "${ac_cv_path_MKDIR+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550 case $MKDIR in
6551 [\\/]* | ?:[\\/]*)
6552 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6562 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 break 2
6566 done
6567 done
6568 IFS=$as_save_IFS
6570 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6572 esac
6574 MKDIR=$ac_cv_path_MKDIR
6575 if test -n "$MKDIR"; then
6576 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6577 echo "${ECHO_T}$MKDIR" >&6; }
6578 else
6579 { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6584 # Extract the first word of "mv", so it can be a program name with args.
6585 set dummy mv; ac_word=$2
6586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6588 if test "${ac_cv_path_MV+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591 case $MV in
6592 [\\/]* | ?:[\\/]*)
6593 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6599 IFS=$as_save_IFS
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 break 2
6607 done
6608 done
6609 IFS=$as_save_IFS
6611 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6613 esac
6615 MV=$ac_cv_path_MV
6616 if test -n "$MV"; then
6617 { echo "$as_me:$LINENO: result: $MV" >&5
6618 echo "${ECHO_T}$MV" >&6; }
6619 else
6620 { echo "$as_me:$LINENO: result: no" >&5
6621 echo "${ECHO_T}no" >&6; }
6625 if test -n "$ac_tool_prefix"; then
6626 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6627 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_prog_RANLIB+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 if test -n "$RANLIB"; then
6634 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6635 else
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 break 2
6647 done
6648 done
6649 IFS=$as_save_IFS
6653 RANLIB=$ac_cv_prog_RANLIB
6654 if test -n "$RANLIB"; then
6655 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6656 echo "${ECHO_T}$RANLIB" >&6; }
6657 else
6658 { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6664 if test -z "$ac_cv_prog_RANLIB"; then
6665 ac_ct_RANLIB=$RANLIB
6666 # Extract the first word of "ranlib", so it can be a program name with args.
6667 set dummy ranlib; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673 if test -n "$ac_ct_RANLIB"; then
6674 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_ac_ct_RANLIB="ranlib"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6687 done
6688 done
6689 IFS=$as_save_IFS
6693 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6694 if test -n "$ac_ct_RANLIB"; then
6695 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6696 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6697 else
6698 { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6702 if test "x$ac_ct_RANLIB" = x; then
6703 RANLIB=":"
6704 else
6705 case $cross_compiling:$ac_tool_warned in
6706 yes:)
6707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6708 whose name does not start with the host triplet. If you think this
6709 configuration is useful to you, please write to autoconf@gnu.org." >&5
6710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6711 whose name does not start with the host triplet. If you think this
6712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6713 ac_tool_warned=yes ;;
6714 esac
6715 RANLIB=$ac_ct_RANLIB
6717 else
6718 RANLIB="$ac_cv_prog_RANLIB"
6721 # Extract the first word of "rm", so it can be a program name with args.
6722 set dummy rm; ac_word=$2
6723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725 if test "${ac_cv_path_RM+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728 case $RM in
6729 [\\/]* | ?:[\\/]*)
6730 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6744 done
6745 done
6746 IFS=$as_save_IFS
6748 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6750 esac
6752 RM=$ac_cv_path_RM
6753 if test -n "$RM"; then
6754 { echo "$as_me:$LINENO: result: $RM" >&5
6755 echo "${ECHO_T}$RM" >&6; }
6756 else
6757 { echo "$as_me:$LINENO: result: no" >&5
6758 echo "${ECHO_T}no" >&6; }
6762 # Extract the first word of "sed", so it can be a program name with args.
6763 set dummy sed; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_path_SED+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769 case $SED in
6770 [\\/]* | ?:[\\/]*)
6771 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6785 done
6786 done
6787 IFS=$as_save_IFS
6789 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6791 esac
6793 SED=$ac_cv_path_SED
6794 if test -n "$SED"; then
6795 { echo "$as_me:$LINENO: result: $SED" >&5
6796 echo "${ECHO_T}$SED" >&6; }
6797 else
6798 { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6803 # Extract the first word of "tar", so it can be a program name with args.
6804 set dummy tar; ac_word=$2
6805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807 if test "${ac_cv_path_TAR+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810 case $TAR in
6811 [\\/]* | ?:[\\/]*)
6812 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6822 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 break 2
6826 done
6827 done
6828 IFS=$as_save_IFS
6830 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6832 esac
6834 TAR=$ac_cv_path_TAR
6835 if test -n "$TAR"; then
6836 { echo "$as_me:$LINENO: result: $TAR" >&5
6837 echo "${ECHO_T}$TAR" >&6; }
6838 else
6839 { echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6; }
6844 # Extract the first word of "pwd", so it can be a program name with args.
6845 set dummy pwd; ac_word=$2
6846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6848 if test "${ac_cv_path_BINPWD+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851 case $BINPWD in
6852 [\\/]* | ?:[\\/]*)
6853 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6867 done
6868 done
6869 IFS=$as_save_IFS
6871 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6873 esac
6875 BINPWD=$ac_cv_path_BINPWD
6876 if test -n "$BINPWD"; then
6877 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6878 echo "${ECHO_T}$BINPWD" >&6; }
6879 else
6880 { echo "$as_me:$LINENO: result: no" >&5
6881 echo "${ECHO_T}no" >&6; }
6886 # Extract the first word of "Graphviz", so it can be a program name with args.
6887 set dummy Graphviz; ac_word=$2
6888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 else
6893 case $GRAPHVIZ in
6894 [\\/]* | ?:[\\/]*)
6895 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6909 done
6910 done
6911 IFS=$as_save_IFS
6913 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6915 esac
6917 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6918 if test -n "$GRAPHVIZ"; then
6919 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6920 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6921 else
6922 { echo "$as_me:$LINENO: result: no" >&5
6923 echo "${ECHO_T}no" >&6; }
6927 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6929 cat >>confdefs.h <<\_ACEOF
6930 #define HAVE_GRAPHVIZ 1
6931 _ACEOF
6933 if test "$llvm_cv_os_type" = "MingW" ; then
6934 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6937 cat >>confdefs.h <<_ACEOF
6938 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6939 _ACEOF
6942 # Extract the first word of "dot", so it can be a program name with args.
6943 set dummy dot; ac_word=$2
6944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946 if test "${ac_cv_path_DOT+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 case $DOT in
6950 [\\/]* | ?:[\\/]*)
6951 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6961 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 break 2
6965 done
6966 done
6967 IFS=$as_save_IFS
6969 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6971 esac
6973 DOT=$ac_cv_path_DOT
6974 if test -n "$DOT"; then
6975 { echo "$as_me:$LINENO: result: $DOT" >&5
6976 echo "${ECHO_T}$DOT" >&6; }
6977 else
6978 { echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6; }
6983 if test "$DOT" != "echo dot" ; then
6985 cat >>confdefs.h <<\_ACEOF
6986 #define HAVE_DOT 1
6987 _ACEOF
6989 if test "$llvm_cv_os_type" = "MingW" ; then
6990 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6993 cat >>confdefs.h <<_ACEOF
6994 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6995 _ACEOF
6998 for ac_prog in gv gsview32
7000 # Extract the first word of "$ac_prog", so it can be a program name with args.
7001 set dummy $ac_prog; ac_word=$2
7002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7004 if test "${ac_cv_path_GV+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007 case $GV in
7008 [\\/]* | ?:[\\/]*)
7009 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7023 done
7024 done
7025 IFS=$as_save_IFS
7028 esac
7030 GV=$ac_cv_path_GV
7031 if test -n "$GV"; then
7032 { echo "$as_me:$LINENO: result: $GV" >&5
7033 echo "${ECHO_T}$GV" >&6; }
7034 else
7035 { echo "$as_me:$LINENO: result: no" >&5
7036 echo "${ECHO_T}no" >&6; }
7040 test -n "$GV" && break
7041 done
7042 test -n "$GV" || GV="echo gv"
7044 if test "$GV" != "echo gv" ; then
7046 cat >>confdefs.h <<\_ACEOF
7047 #define HAVE_GV 1
7048 _ACEOF
7050 if test "$llvm_cv_os_type" = "MingW" ; then
7051 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7054 cat >>confdefs.h <<_ACEOF
7055 #define LLVM_PATH_GV "$GV${EXEEXT}"
7056 _ACEOF
7059 # Extract the first word of "dotty", so it can be a program name with args.
7060 set dummy dotty; ac_word=$2
7061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063 if test "${ac_cv_path_DOTTY+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066 case $DOTTY in
7067 [\\/]* | ?:[\\/]*)
7068 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 break 2
7082 done
7083 done
7084 IFS=$as_save_IFS
7086 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7088 esac
7090 DOTTY=$ac_cv_path_DOTTY
7091 if test -n "$DOTTY"; then
7092 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7093 echo "${ECHO_T}$DOTTY" >&6; }
7094 else
7095 { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7100 if test "$DOTTY" != "echo dotty" ; then
7102 cat >>confdefs.h <<\_ACEOF
7103 #define HAVE_DOTTY 1
7104 _ACEOF
7106 if test "$llvm_cv_os_type" = "MingW" ; then
7107 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7110 cat >>confdefs.h <<_ACEOF
7111 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7112 _ACEOF
7117 # Extract the first word of "perl", so it can be a program name with args.
7118 set dummy perl; ac_word=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_path_PERL+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 case $PERL in
7125 [\\/]* | ?:[\\/]*)
7126 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7140 done
7141 done
7142 IFS=$as_save_IFS
7144 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7146 esac
7148 PERL=$ac_cv_path_PERL
7149 if test -n "$PERL"; then
7150 { echo "$as_me:$LINENO: result: $PERL" >&5
7151 echo "${ECHO_T}$PERL" >&6; }
7152 else
7153 { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7158 if test "$PERL" != "none"; then
7159 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7160 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7161 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7162 { echo "$as_me:$LINENO: result: yes" >&5
7163 echo "${ECHO_T}yes" >&6; }
7164 else
7165 PERL=none
7166 { echo "$as_me:$LINENO: result: not found" >&5
7167 echo "${ECHO_T}not found" >&6; }
7172 if test x"$PERL" = xnone; then
7173 HAVE_PERL=0
7175 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7176 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7177 { (exit 1); exit 1; }; }
7178 else
7179 HAVE_PERL=1
7183 # Find a good install program. We prefer a C program (faster),
7184 # so one script is as good as another. But avoid the broken or
7185 # incompatible versions:
7186 # SysV /etc/install, /usr/sbin/install
7187 # SunOS /usr/etc/install
7188 # IRIX /sbin/install
7189 # AIX /bin/install
7190 # AmigaOS /C/install, which installs bootblocks on floppy discs
7191 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7194 # OS/2's system install, which has a completely different semantic
7195 # ./install, which can be erroneously created by make from ./install.sh.
7196 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7197 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7198 if test -z "$INSTALL"; then
7199 if test "${ac_cv_path_install+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 # Account for people who put trailing slashes in PATH elements.
7208 case $as_dir/ in
7209 ./ | .// | /cC/* | \
7210 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7211 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7212 /usr/ucb/* ) ;;
7214 # OSF1 and SCO ODT 3.0 have their own names for install.
7215 # Don't use installbsd from OSF since it installs stuff as root
7216 # by default.
7217 for ac_prog in ginstall scoinst install; do
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7220 if test $ac_prog = install &&
7221 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7222 # AIX install. It has an incompatible calling convention.
7224 elif test $ac_prog = install &&
7225 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7226 # program-specific install script used by HP pwplus--don't use.
7228 else
7229 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7230 break 3
7233 done
7234 done
7236 esac
7237 done
7238 IFS=$as_save_IFS
7242 if test "${ac_cv_path_install+set}" = set; then
7243 INSTALL=$ac_cv_path_install
7244 else
7245 # As a last resort, use the slow shell script. Don't cache a
7246 # value for INSTALL within a source directory, because that will
7247 # break other packages using the cache if that directory is
7248 # removed, or if the value is a relative name.
7249 INSTALL=$ac_install_sh
7252 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7253 echo "${ECHO_T}$INSTALL" >&6; }
7255 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7256 # It thinks the first close brace ends the variable substitution.
7257 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7259 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7261 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7264 # Extract the first word of "bzip2", so it can be a program name with args.
7265 set dummy bzip2; ac_word=$2
7266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7268 if test "${ac_cv_path_BZIP2+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271 case $BZIP2 in
7272 [\\/]* | ?:[\\/]*)
7273 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7279 IFS=$as_save_IFS
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7283 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 break 2
7287 done
7288 done
7289 IFS=$as_save_IFS
7292 esac
7294 BZIP2=$ac_cv_path_BZIP2
7295 if test -n "$BZIP2"; then
7296 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7297 echo "${ECHO_T}$BZIP2" >&6; }
7298 else
7299 { echo "$as_me:$LINENO: result: no" >&5
7300 echo "${ECHO_T}no" >&6; }
7304 # Extract the first word of "doxygen", so it can be a program name with args.
7305 set dummy doxygen; ac_word=$2
7306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311 case $DOXYGEN in
7312 [\\/]* | ?:[\\/]*)
7313 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 for as_dir in $PATH
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7323 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 break 2
7327 done
7328 done
7329 IFS=$as_save_IFS
7332 esac
7334 DOXYGEN=$ac_cv_path_DOXYGEN
7335 if test -n "$DOXYGEN"; then
7336 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7337 echo "${ECHO_T}$DOXYGEN" >&6; }
7338 else
7339 { echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6; }
7344 # Extract the first word of "groff", so it can be a program name with args.
7345 set dummy groff; ac_word=$2
7346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348 if test "${ac_cv_path_GROFF+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351 case $GROFF in
7352 [\\/]* | ?:[\\/]*)
7353 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7367 done
7368 done
7369 IFS=$as_save_IFS
7372 esac
7374 GROFF=$ac_cv_path_GROFF
7375 if test -n "$GROFF"; then
7376 { echo "$as_me:$LINENO: result: $GROFF" >&5
7377 echo "${ECHO_T}$GROFF" >&6; }
7378 else
7379 { echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6; }
7384 # Extract the first word of "gzip", so it can be a program name with args.
7385 set dummy gzip; ac_word=$2
7386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388 if test "${ac_cv_path_GZIP+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391 case $GZIP in
7392 [\\/]* | ?:[\\/]*)
7393 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7403 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 break 2
7407 done
7408 done
7409 IFS=$as_save_IFS
7412 esac
7414 GZIP=$ac_cv_path_GZIP
7415 if test -n "$GZIP"; then
7416 { echo "$as_me:$LINENO: result: $GZIP" >&5
7417 echo "${ECHO_T}$GZIP" >&6; }
7418 else
7419 { echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6; }
7424 # Extract the first word of "pod2html", so it can be a program name with args.
7425 set dummy pod2html; ac_word=$2
7426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428 if test "${ac_cv_path_POD2HTML+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431 case $POD2HTML in
7432 [\\/]* | ?:[\\/]*)
7433 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7447 done
7448 done
7449 IFS=$as_save_IFS
7452 esac
7454 POD2HTML=$ac_cv_path_POD2HTML
7455 if test -n "$POD2HTML"; then
7456 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7457 echo "${ECHO_T}$POD2HTML" >&6; }
7458 else
7459 { echo "$as_me:$LINENO: result: no" >&5
7460 echo "${ECHO_T}no" >&6; }
7464 # Extract the first word of "pod2man", so it can be a program name with args.
7465 set dummy pod2man; ac_word=$2
7466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7468 if test "${ac_cv_path_POD2MAN+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471 case $POD2MAN in
7472 [\\/]* | ?:[\\/]*)
7473 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7487 done
7488 done
7489 IFS=$as_save_IFS
7492 esac
7494 POD2MAN=$ac_cv_path_POD2MAN
7495 if test -n "$POD2MAN"; then
7496 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7497 echo "${ECHO_T}$POD2MAN" >&6; }
7498 else
7499 { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7504 # Extract the first word of "runtest", so it can be a program name with args.
7505 set dummy runtest; ac_word=$2
7506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508 if test "${ac_cv_path_RUNTEST+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511 case $RUNTEST in
7512 [\\/]* | ?:[\\/]*)
7513 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7527 done
7528 done
7529 IFS=$as_save_IFS
7532 esac
7534 RUNTEST=$ac_cv_path_RUNTEST
7535 if test -n "$RUNTEST"; then
7536 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7537 echo "${ECHO_T}$RUNTEST" >&6; }
7538 else
7539 { echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6; }
7545 no_itcl=true
7546 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7547 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7549 # Check whether --with-tclinclude was given.
7550 if test "${with_tclinclude+set}" = set; then
7551 withval=$with_tclinclude; with_tclinclude=${withval}
7552 else
7553 with_tclinclude=''
7556 if test "${ac_cv_path_tclsh+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7560 if test x"${with_tclinclude}" != x ; then
7561 if test -f ${with_tclinclude}/tclsh ; then
7562 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7563 elif test -f ${with_tclinclude}/src/tclsh ; then
7564 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7565 else
7566 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7567 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7568 { (exit 1); exit 1; }; }
7572 if test x"${ac_cv_path_tclsh}" = x ; then
7573 { echo "$as_me:$LINENO: result: none" >&5
7574 echo "${ECHO_T}none" >&6; }
7575 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
7577 # Extract the first word of "$ac_prog", so it can be a program name with args.
7578 set dummy $ac_prog; ac_word=$2
7579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7581 if test "${ac_cv_path_TCLSH+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584 case $TCLSH in
7585 [\\/]* | ?:[\\/]*)
7586 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 for as_dir in $PATH
7592 IFS=$as_save_IFS
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7596 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 break 2
7600 done
7601 done
7602 IFS=$as_save_IFS
7605 esac
7607 TCLSH=$ac_cv_path_TCLSH
7608 if test -n "$TCLSH"; then
7609 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7610 echo "${ECHO_T}$TCLSH" >&6; }
7611 else
7612 { echo "$as_me:$LINENO: result: no" >&5
7613 echo "${ECHO_T}no" >&6; }
7617 test -n "$TCLSH" && break
7618 done
7620 if test x"${TCLSH}" = x ; then
7621 ac_cv_path_tclsh='';
7622 else
7623 ac_cv_path_tclsh="${TCLSH}";
7625 else
7626 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7627 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7628 TCLSH="${ac_cv_path_tclsh}"
7634 # Extract the first word of "zip", so it can be a program name with args.
7635 set dummy zip; ac_word=$2
7636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7638 if test "${ac_cv_path_ZIP+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 else
7641 case $ZIP in
7642 [\\/]* | ?:[\\/]*)
7643 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 break 2
7657 done
7658 done
7659 IFS=$as_save_IFS
7662 esac
7664 ZIP=$ac_cv_path_ZIP
7665 if test -n "$ZIP"; then
7666 { echo "$as_me:$LINENO: result: $ZIP" >&5
7667 echo "${ECHO_T}$ZIP" >&6; }
7668 else
7669 { echo "$as_me:$LINENO: result: no" >&5
7670 echo "${ECHO_T}no" >&6; }
7674 for ac_prog in ocamlc
7676 # Extract the first word of "$ac_prog", so it can be a program name with args.
7677 set dummy $ac_prog; ac_word=$2
7678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7680 if test "${ac_cv_path_OCAMLC+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683 case $OCAMLC in
7684 [\\/]* | ?:[\\/]*)
7685 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7695 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 break 2
7699 done
7700 done
7701 IFS=$as_save_IFS
7704 esac
7706 OCAMLC=$ac_cv_path_OCAMLC
7707 if test -n "$OCAMLC"; then
7708 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7709 echo "${ECHO_T}$OCAMLC" >&6; }
7710 else
7711 { echo "$as_me:$LINENO: result: no" >&5
7712 echo "${ECHO_T}no" >&6; }
7716 test -n "$OCAMLC" && break
7717 done
7719 for ac_prog in ocamlopt
7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
7722 set dummy $ac_prog; ac_word=$2
7723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7725 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728 case $OCAMLOPT in
7729 [\\/]* | ?:[\\/]*)
7730 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 for as_dir in $PATH
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7740 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 break 2
7744 done
7745 done
7746 IFS=$as_save_IFS
7749 esac
7751 OCAMLOPT=$ac_cv_path_OCAMLOPT
7752 if test -n "$OCAMLOPT"; then
7753 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7754 echo "${ECHO_T}$OCAMLOPT" >&6; }
7755 else
7756 { echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6; }
7761 test -n "$OCAMLOPT" && break
7762 done
7764 for ac_prog in ocamldep
7766 # Extract the first word of "$ac_prog", so it can be a program name with args.
7767 set dummy $ac_prog; ac_word=$2
7768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7770 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 else
7773 case $OCAMLDEP in
7774 [\\/]* | ?:[\\/]*)
7775 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 for as_dir in $PATH
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7785 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7789 done
7790 done
7791 IFS=$as_save_IFS
7794 esac
7796 OCAMLDEP=$ac_cv_path_OCAMLDEP
7797 if test -n "$OCAMLDEP"; then
7798 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7799 echo "${ECHO_T}$OCAMLDEP" >&6; }
7800 else
7801 { echo "$as_me:$LINENO: result: no" >&5
7802 echo "${ECHO_T}no" >&6; }
7806 test -n "$OCAMLDEP" && break
7807 done
7809 for ac_prog in ocamldoc
7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
7812 set dummy $ac_prog; ac_word=$2
7813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7815 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 else
7818 case $OCAMLDOC in
7819 [\\/]* | ?:[\\/]*)
7820 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7830 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 break 2
7834 done
7835 done
7836 IFS=$as_save_IFS
7839 esac
7841 OCAMLDOC=$ac_cv_path_OCAMLDOC
7842 if test -n "$OCAMLDOC"; then
7843 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7844 echo "${ECHO_T}$OCAMLDOC" >&6; }
7845 else
7846 { echo "$as_me:$LINENO: result: no" >&5
7847 echo "${ECHO_T}no" >&6; }
7851 test -n "$OCAMLDOC" && break
7852 done
7854 for ac_prog in gas as
7856 # Extract the first word of "$ac_prog", so it can be a program name with args.
7857 set dummy $ac_prog; ac_word=$2
7858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7860 if test "${ac_cv_path_GAS+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 else
7863 case $GAS in
7864 [\\/]* | ?:[\\/]*)
7865 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7871 IFS=$as_save_IFS
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7875 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 break 2
7879 done
7880 done
7881 IFS=$as_save_IFS
7884 esac
7886 GAS=$ac_cv_path_GAS
7887 if test -n "$GAS"; then
7888 { echo "$as_me:$LINENO: result: $GAS" >&5
7889 echo "${ECHO_T}$GAS" >&6; }
7890 else
7891 { echo "$as_me:$LINENO: result: no" >&5
7892 echo "${ECHO_T}no" >&6; }
7896 test -n "$GAS" && break
7897 done
7900 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7901 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7902 if test "${llvm_cv_link_use_r+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905 ac_ext=c
7906 ac_cpp='$CPP $CPPFLAGS'
7907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7911 oldcflags="$CFLAGS"
7912 CFLAGS="$CFLAGS -Wl,-R."
7913 cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h. */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7921 main ()
7923 int main() { return 0; }
7925 return 0;
7927 _ACEOF
7928 rm -f conftest.$ac_objext conftest$ac_exeext
7929 if { (ac_try="$ac_link"
7930 case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933 esac
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_link") 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } && {
7942 test -z "$ac_c_werror_flag" ||
7943 test ! -s conftest.err
7944 } && test -s conftest$ac_exeext &&
7945 $as_test_x conftest$ac_exeext; then
7946 llvm_cv_link_use_r=yes
7947 else
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 llvm_cv_link_use_r=no
7954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7955 conftest$ac_exeext conftest.$ac_ext
7956 CFLAGS="$oldcflags"
7957 ac_ext=c
7958 ac_cpp='$CPP $CPPFLAGS'
7959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7965 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7966 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7967 if test "$llvm_cv_link_use_r" = yes ; then
7969 cat >>confdefs.h <<\_ACEOF
7970 #define HAVE_LINK_R 1
7971 _ACEOF
7978 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7979 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7980 if test "${ac_cv_c_const+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983 cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h. */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7991 main ()
7993 /* FIXME: Include the comments suggested by Paul. */
7994 #ifndef __cplusplus
7995 /* Ultrix mips cc rejects this. */
7996 typedef int charset[2];
7997 const charset cs;
7998 /* SunOS 4.1.1 cc rejects this. */
7999 char const *const *pcpcc;
8000 char **ppc;
8001 /* NEC SVR4.0.2 mips cc rejects this. */
8002 struct point {int x, y;};
8003 static struct point const zero = {0,0};
8004 /* AIX XL C 1.02.0.0 rejects this.
8005 It does not let you subtract one const X* pointer from another in
8006 an arm of an if-expression whose if-part is not a constant
8007 expression */
8008 const char *g = "string";
8009 pcpcc = &g + (g ? g-g : 0);
8010 /* HPUX 7.0 cc rejects these. */
8011 ++pcpcc;
8012 ppc = (char**) pcpcc;
8013 pcpcc = (char const *const *) ppc;
8014 { /* SCO 3.2v4 cc rejects this. */
8015 char *t;
8016 char const *s = 0 ? (char *) 0 : (char const *) 0;
8018 *t++ = 0;
8019 if (s) return 0;
8021 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8022 int x[] = {25, 17};
8023 const int *foo = &x[0];
8024 ++foo;
8026 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8027 typedef const int *iptr;
8028 iptr p = 0;
8029 ++p;
8031 { /* AIX XL C 1.02.0.0 rejects this saying
8032 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8033 struct s { int j; const int *ap[3]; };
8034 struct s *b; b->j = 5;
8036 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8037 const int foo = 10;
8038 if (!foo) return 0;
8040 return !cs[0] && !zero.x;
8041 #endif
8044 return 0;
8046 _ACEOF
8047 rm -f conftest.$ac_objext
8048 if { (ac_try="$ac_compile"
8049 case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8052 esac
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_compile") 2>conftest.er1
8055 ac_status=$?
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } && {
8061 test -z "$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest.$ac_objext; then
8064 ac_cv_c_const=yes
8065 else
8066 echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8069 ac_cv_c_const=no
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8075 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8076 if test $ac_cv_c_const = no; then
8078 cat >>confdefs.h <<\_ACEOF
8079 #define const
8080 _ACEOF
8089 ac_header_dirent=no
8090 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8091 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8092 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8093 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097 cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h. */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 #include <sys/types.h>
8104 #include <$ac_hdr>
8107 main ()
8109 if ((DIR *) 0)
8110 return 0;
8112 return 0;
8114 _ACEOF
8115 rm -f conftest.$ac_objext
8116 if { (ac_try="$ac_compile"
8117 case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120 esac
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.$ac_objext; then
8132 eval "$as_ac_Header=yes"
8133 else
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 eval "$as_ac_Header=no"
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 ac_res=`eval echo '${'$as_ac_Header'}'`
8143 { echo "$as_me:$LINENO: result: $ac_res" >&5
8144 echo "${ECHO_T}$ac_res" >&6; }
8145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8146 cat >>confdefs.h <<_ACEOF
8147 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8148 _ACEOF
8150 ac_header_dirent=$ac_hdr; break
8153 done
8154 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8155 if test $ac_header_dirent = dirent.h; then
8156 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8157 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8158 if test "${ac_cv_search_opendir+set}" = set; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
8160 else
8161 ac_func_search_save_LIBS=$LIBS
8162 cat >conftest.$ac_ext <<_ACEOF
8163 /* confdefs.h. */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8169 /* Override any GCC internal prototype to avoid an error.
8170 Use char because int might match the return type of a GCC
8171 builtin and then its argument prototype would still apply. */
8172 #ifdef __cplusplus
8173 extern "C"
8174 #endif
8175 char opendir ();
8177 main ()
8179 return opendir ();
8181 return 0;
8183 _ACEOF
8184 for ac_lib in '' dir; do
8185 if test -z "$ac_lib"; then
8186 ac_res="none required"
8187 else
8188 ac_res=-l$ac_lib
8189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8191 rm -f conftest.$ac_objext conftest$ac_exeext
8192 if { (ac_try="$ac_link"
8193 case "(($ac_try" in
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8196 esac
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_link") 2>conftest.er1
8199 ac_status=$?
8200 grep -v '^ *+' conftest.er1 >conftest.err
8201 rm -f conftest.er1
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } && {
8205 test -z "$ac_c_werror_flag" ||
8206 test ! -s conftest.err
8207 } && test -s conftest$ac_exeext &&
8208 $as_test_x conftest$ac_exeext; then
8209 ac_cv_search_opendir=$ac_res
8210 else
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8218 conftest$ac_exeext
8219 if test "${ac_cv_search_opendir+set}" = set; then
8220 break
8222 done
8223 if test "${ac_cv_search_opendir+set}" = set; then
8225 else
8226 ac_cv_search_opendir=no
8228 rm conftest.$ac_ext
8229 LIBS=$ac_func_search_save_LIBS
8231 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8232 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8233 ac_res=$ac_cv_search_opendir
8234 if test "$ac_res" != no; then
8235 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8239 else
8240 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8241 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8242 if test "${ac_cv_search_opendir+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245 ac_func_search_save_LIBS=$LIBS
8246 cat >conftest.$ac_ext <<_ACEOF
8247 /* confdefs.h. */
8248 _ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8253 /* Override any GCC internal prototype to avoid an error.
8254 Use char because int might match the return type of a GCC
8255 builtin and then its argument prototype would still apply. */
8256 #ifdef __cplusplus
8257 extern "C"
8258 #endif
8259 char opendir ();
8261 main ()
8263 return opendir ();
8265 return 0;
8267 _ACEOF
8268 for ac_lib in '' x; do
8269 if test -z "$ac_lib"; then
8270 ac_res="none required"
8271 else
8272 ac_res=-l$ac_lib
8273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8275 rm -f conftest.$ac_objext conftest$ac_exeext
8276 if { (ac_try="$ac_link"
8277 case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_link") 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } && {
8289 test -z "$ac_c_werror_flag" ||
8290 test ! -s conftest.err
8291 } && test -s conftest$ac_exeext &&
8292 $as_test_x conftest$ac_exeext; then
8293 ac_cv_search_opendir=$ac_res
8294 else
8295 echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8302 conftest$ac_exeext
8303 if test "${ac_cv_search_opendir+set}" = set; then
8304 break
8306 done
8307 if test "${ac_cv_search_opendir+set}" = set; then
8309 else
8310 ac_cv_search_opendir=no
8312 rm conftest.$ac_ext
8313 LIBS=$ac_func_search_save_LIBS
8315 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8316 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8317 ac_res=$ac_cv_search_opendir
8318 if test "$ac_res" != no; then
8319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8326 for ac_header in dlfcn.h
8328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 ac_res=`eval echo '${'$as_ac_Header'}'`
8336 { echo "$as_me:$LINENO: result: $ac_res" >&5
8337 echo "${ECHO_T}$ac_res" >&6; }
8338 else
8339 # Is the header compilable?
8340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8342 cat >conftest.$ac_ext <<_ACEOF
8343 /* confdefs.h. */
8344 _ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 $ac_includes_default
8349 #include <$ac_header>
8350 _ACEOF
8351 rm -f conftest.$ac_objext
8352 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } && {
8365 test -z "$ac_c_werror_flag" ||
8366 test ! -s conftest.err
8367 } && test -s conftest.$ac_objext; then
8368 ac_header_compiler=yes
8369 else
8370 echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8373 ac_header_compiler=no
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8378 echo "${ECHO_T}$ac_header_compiler" >&6; }
8380 # Is the header present?
8381 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8383 cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h. */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 #include <$ac_header>
8390 _ACEOF
8391 if { (ac_try="$ac_cpp conftest.$ac_ext"
8392 case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8395 esac
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } >/dev/null && {
8404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8405 test ! -s conftest.err
8406 }; then
8407 ac_header_preproc=yes
8408 else
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8412 ac_header_preproc=no
8415 rm -f conftest.err conftest.$ac_ext
8416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8417 echo "${ECHO_T}$ac_header_preproc" >&6; }
8419 # So? What about this header?
8420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8421 yes:no: )
8422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8426 ac_header_preproc=yes
8428 no:yes:* )
8429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8441 ( cat <<\_ASBOX
8442 ## ----------------------------------- ##
8443 ## Report this to llvmbugs@cs.uiuc.edu ##
8444 ## ----------------------------------- ##
8445 _ASBOX
8446 ) | sed "s/^/$as_me: WARNING: /" >&2
8448 esac
8449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 else
8454 eval "$as_ac_Header=\$ac_header_preproc"
8456 ac_res=`eval echo '${'$as_ac_Header'}'`
8457 { echo "$as_me:$LINENO: result: $ac_res" >&5
8458 echo "${ECHO_T}$ac_res" >&6; }
8461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8462 cat >>confdefs.h <<_ACEOF
8463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8464 _ACEOF
8468 done
8470 # Check whether --enable-ltdl-install was given.
8471 if test "${enable_ltdl_install+set}" = set; then
8472 enableval=$enable_ltdl_install;
8478 if test x"${enable_ltdl_install-no}" != xno; then
8479 INSTALL_LTDL_TRUE=
8480 INSTALL_LTDL_FALSE='#'
8481 else
8482 INSTALL_LTDL_TRUE='#'
8483 INSTALL_LTDL_FALSE=
8488 if test x"${enable_ltdl_convenience-no}" != xno; then
8489 CONVENIENCE_LTDL_TRUE=
8490 CONVENIENCE_LTDL_FALSE='#'
8491 else
8492 CONVENIENCE_LTDL_TRUE='#'
8493 CONVENIENCE_LTDL_FALSE=
8497 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8498 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8499 library_names_spec=
8500 libname_spec='lib$name'
8501 soname_spec=
8502 shrext_cmds=".so"
8503 postinstall_cmds=
8504 postuninstall_cmds=
8505 finish_cmds=
8506 finish_eval=
8507 shlibpath_var=
8508 shlibpath_overrides_runpath=unknown
8509 version_type=none
8510 dynamic_linker="$host_os ld.so"
8511 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8512 if test "$GCC" = yes; then
8513 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8514 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8515 # if the path contains ";" then we assume it to be the separator
8516 # otherwise default to the standard path separator (i.e. ":") - it is
8517 # assumed that no part of a normal pathname contains ";" but that should
8518 # okay in the real world where ";" in dirpaths is itself problematic.
8519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8520 else
8521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8523 else
8524 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8526 need_lib_prefix=unknown
8527 hardcode_into_libs=no
8529 # when you set need_version to no, make sure it does not cause -set_version
8530 # flags to be left without arguments
8531 need_version=unknown
8533 case $host_os in
8534 aix3*)
8535 version_type=linux
8536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8537 shlibpath_var=LIBPATH
8539 # AIX 3 has no versioning support, so we append a major version to the name.
8540 soname_spec='${libname}${release}${shared_ext}$major'
8543 aix4* | aix5*)
8544 version_type=linux
8545 need_lib_prefix=no
8546 need_version=no
8547 hardcode_into_libs=yes
8548 if test "$host_cpu" = ia64; then
8549 # AIX 5 supports IA64
8550 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8551 shlibpath_var=LD_LIBRARY_PATH
8552 else
8553 # With GCC up to 2.95.x, collect2 would create an import file
8554 # for dependence libraries. The import file would start with
8555 # the line `#! .'. This would cause the generated library to
8556 # depend on `.', always an invalid library. This was fixed in
8557 # development snapshots of GCC prior to 3.0.
8558 case $host_os in
8559 aix4 | aix4.[01] | aix4.[01].*)
8560 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8561 echo ' yes '
8562 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8564 else
8565 can_build_shared=no
8568 esac
8569 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8570 # soname into executable. Probably we can add versioning support to
8571 # collect2, so additional links can be useful in future.
8572 if test "$aix_use_runtimelinking" = yes; then
8573 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8574 # instead of lib<name>.a to let people know that these are not
8575 # typical AIX shared libraries.
8576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8577 else
8578 # We preserve .a as extension for shared libraries through AIX4.2
8579 # and later when we are not doing run time linking.
8580 library_names_spec='${libname}${release}.a $libname.a'
8581 soname_spec='${libname}${release}${shared_ext}$major'
8583 shlibpath_var=LIBPATH
8587 amigaos*)
8588 library_names_spec='$libname.ixlibrary $libname.a'
8589 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8590 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'
8593 beos*)
8594 library_names_spec='${libname}${shared_ext}'
8595 dynamic_linker="$host_os ld.so"
8596 shlibpath_var=LIBRARY_PATH
8599 bsdi[45]*)
8600 version_type=linux
8601 need_version=no
8602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8603 soname_spec='${libname}${release}${shared_ext}$major'
8604 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8605 shlibpath_var=LD_LIBRARY_PATH
8606 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8607 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8608 # the default ld.so.conf also contains /usr/contrib/lib and
8609 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8610 # libtool to hard-code these into programs
8613 cygwin* | mingw* | pw32*)
8614 version_type=windows
8615 shrext_cmds=".dll"
8616 need_version=no
8617 need_lib_prefix=no
8619 case $GCC,$host_os in
8620 yes,cygwin* | yes,mingw* | yes,pw32*)
8621 library_names_spec='$libname.dll.a'
8622 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8623 postinstall_cmds='base_file=`basename \${file}`~
8624 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8625 dldir=$destdir/`dirname \$dlpath`~
8626 test -d \$dldir || mkdir -p \$dldir~
8627 $install_prog $dir/$dlname \$dldir/$dlname~
8628 chmod a+x \$dldir/$dlname'
8629 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8630 dlpath=$dir/\$dldll~
8631 $rm \$dlpath'
8632 shlibpath_overrides_runpath=yes
8634 case $host_os in
8635 cygwin*)
8636 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8637 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8638 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8640 mingw*)
8641 # MinGW DLLs use traditional 'lib' prefix
8642 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8643 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8644 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8645 # It is most probably a Windows format PATH printed by
8646 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8647 # path with ; separators, and with drive letters. We can handle the
8648 # drive letters (cygwin fileutils understands them), so leave them,
8649 # especially as we might pass files found there to a mingw objdump,
8650 # which wouldn't understand a cygwinified path. Ahh.
8651 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8652 else
8653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8656 pw32*)
8657 # pw32 DLLs use 'pw' prefix rather than 'lib'
8658 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8660 esac
8664 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8666 esac
8667 dynamic_linker='Win32 ld.exe'
8668 # FIXME: first we should search . and the directory the executable is in
8669 shlibpath_var=PATH
8672 darwin* | rhapsody*)
8673 dynamic_linker="$host_os dyld"
8674 version_type=darwin
8675 need_lib_prefix=no
8676 need_version=no
8677 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8678 soname_spec='${libname}${release}${major}$shared_ext'
8679 shlibpath_overrides_runpath=yes
8680 shlibpath_var=DYLD_LIBRARY_PATH
8681 shrext_cmds='.dylib'
8682 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8683 if test "$GCC" = yes; then
8684 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"`
8685 else
8686 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8688 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8691 dgux*)
8692 version_type=linux
8693 need_lib_prefix=no
8694 need_version=no
8695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8696 soname_spec='${libname}${release}${shared_ext}$major'
8697 shlibpath_var=LD_LIBRARY_PATH
8700 freebsd1*)
8701 dynamic_linker=no
8704 kfreebsd*-gnu)
8705 version_type=linux
8706 need_lib_prefix=no
8707 need_version=no
8708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8709 soname_spec='${libname}${release}${shared_ext}$major'
8710 shlibpath_var=LD_LIBRARY_PATH
8711 shlibpath_overrides_runpath=no
8712 hardcode_into_libs=yes
8713 dynamic_linker='GNU ld.so'
8716 freebsd* | dragonfly*)
8717 # DragonFly does not have aout. When/if they implement a new
8718 # versioning mechanism, adjust this.
8719 if test -x /usr/bin/objformat; then
8720 objformat=`/usr/bin/objformat`
8721 else
8722 case $host_os in
8723 freebsd[123]*) objformat=aout ;;
8724 *) objformat=elf ;;
8725 esac
8727 version_type=freebsd-$objformat
8728 case $version_type in
8729 freebsd-elf*)
8730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8731 need_version=no
8732 need_lib_prefix=no
8734 freebsd-*)
8735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8736 need_version=yes
8738 esac
8739 shlibpath_var=LD_LIBRARY_PATH
8740 case $host_os in
8741 freebsd2*)
8742 shlibpath_overrides_runpath=yes
8744 freebsd3.[01]* | freebsdelf3.[01]*)
8745 shlibpath_overrides_runpath=yes
8746 hardcode_into_libs=yes
8748 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8749 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8750 shlibpath_overrides_runpath=no
8751 hardcode_into_libs=yes
8753 freebsd*) # from 4.6 on
8754 shlibpath_overrides_runpath=yes
8755 hardcode_into_libs=yes
8757 esac
8760 gnu*)
8761 version_type=linux
8762 need_lib_prefix=no
8763 need_version=no
8764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8765 soname_spec='${libname}${release}${shared_ext}$major'
8766 shlibpath_var=LD_LIBRARY_PATH
8767 hardcode_into_libs=yes
8770 hpux9* | hpux10* | hpux11*)
8771 # Give a soname corresponding to the major version so that dld.sl refuses to
8772 # link against other versions.
8773 version_type=sunos
8774 need_lib_prefix=no
8775 need_version=no
8776 case $host_cpu in
8777 ia64*)
8778 shrext_cmds='.so'
8779 hardcode_into_libs=yes
8780 dynamic_linker="$host_os dld.so"
8781 shlibpath_var=LD_LIBRARY_PATH
8782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8784 soname_spec='${libname}${release}${shared_ext}$major'
8785 if test "X$HPUX_IA64_MODE" = X32; then
8786 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8787 else
8788 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8792 hppa*64*)
8793 shrext_cmds='.sl'
8794 hardcode_into_libs=yes
8795 dynamic_linker="$host_os dld.sl"
8796 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8799 soname_spec='${libname}${release}${shared_ext}$major'
8800 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8804 shrext_cmds='.sl'
8805 dynamic_linker="$host_os dld.sl"
8806 shlibpath_var=SHLIB_PATH
8807 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8809 soname_spec='${libname}${release}${shared_ext}$major'
8811 esac
8812 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8813 postinstall_cmds='chmod 555 $lib'
8816 interix3*)
8817 version_type=linux
8818 need_lib_prefix=no
8819 need_version=no
8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8821 soname_spec='${libname}${release}${shared_ext}$major'
8822 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8823 shlibpath_var=LD_LIBRARY_PATH
8824 shlibpath_overrides_runpath=no
8825 hardcode_into_libs=yes
8828 irix5* | irix6* | nonstopux*)
8829 case $host_os in
8830 nonstopux*) version_type=nonstopux ;;
8832 if test "$lt_cv_prog_gnu_ld" = yes; then
8833 version_type=linux
8834 else
8835 version_type=irix
8836 fi ;;
8837 esac
8838 need_lib_prefix=no
8839 need_version=no
8840 soname_spec='${libname}${release}${shared_ext}$major'
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8842 case $host_os in
8843 irix5* | nonstopux*)
8844 libsuff= shlibsuff=
8847 case $LD in # libtool.m4 will add one of these switches to LD
8848 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8849 libsuff= shlibsuff= libmagic=32-bit;;
8850 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8851 libsuff=32 shlibsuff=N32 libmagic=N32;;
8852 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8853 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8854 *) libsuff= shlibsuff= libmagic=never-match;;
8855 esac
8857 esac
8858 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8859 shlibpath_overrides_runpath=no
8860 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8861 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8862 hardcode_into_libs=yes
8865 # No shared lib support for Linux oldld, aout, or coff.
8866 linux*oldld* | linux*aout* | linux*coff*)
8867 dynamic_linker=no
8870 # This must be Linux ELF.
8871 linux*)
8872 version_type=linux
8873 need_lib_prefix=no
8874 need_version=no
8875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8876 soname_spec='${libname}${release}${shared_ext}$major'
8877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8878 shlibpath_var=LD_LIBRARY_PATH
8879 shlibpath_overrides_runpath=no
8880 # This implies no fast_install, which is unacceptable.
8881 # Some rework will be needed to allow for fast_install
8882 # before this can be enabled.
8883 hardcode_into_libs=yes
8885 # Append ld.so.conf contents to the search path
8886 if test -f /etc/ld.so.conf; then
8887 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' ' '`
8888 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8891 # We used to test for /lib/ld.so.1 and disable shared libraries on
8892 # powerpc, because MkLinux only supported shared libraries with the
8893 # GNU dynamic linker. Since this was broken with cross compilers,
8894 # most powerpc-linux boxes support dynamic linking these days and
8895 # people can always --disable-shared, the test was removed, and we
8896 # assume the GNU/Linux dynamic linker is in use.
8897 dynamic_linker='GNU/Linux ld.so'
8900 knetbsd*-gnu)
8901 version_type=linux
8902 need_lib_prefix=no
8903 need_version=no
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 shlibpath_var=LD_LIBRARY_PATH
8907 shlibpath_overrides_runpath=no
8908 hardcode_into_libs=yes
8909 dynamic_linker='GNU ld.so'
8912 netbsd*)
8913 version_type=sunos
8914 need_lib_prefix=no
8915 need_version=no
8916 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8919 dynamic_linker='NetBSD (a.out) ld.so'
8920 else
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 dynamic_linker='NetBSD ld.elf_so'
8925 shlibpath_var=LD_LIBRARY_PATH
8926 shlibpath_overrides_runpath=yes
8927 hardcode_into_libs=yes
8930 newsos6)
8931 version_type=linux
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933 shlibpath_var=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath=yes
8937 nto-qnx*)
8938 version_type=linux
8939 need_lib_prefix=no
8940 need_version=no
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 shlibpath_var=LD_LIBRARY_PATH
8944 shlibpath_overrides_runpath=yes
8947 openbsd*)
8948 version_type=sunos
8949 sys_lib_dlsearch_path_spec="/usr/lib"
8950 need_lib_prefix=no
8951 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8952 case $host_os in
8953 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8954 *) need_version=no ;;
8955 esac
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8958 shlibpath_var=LD_LIBRARY_PATH
8959 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8960 case $host_os in
8961 openbsd2.[89] | openbsd2.[89].*)
8962 shlibpath_overrides_runpath=no
8965 shlibpath_overrides_runpath=yes
8967 esac
8968 else
8969 shlibpath_overrides_runpath=yes
8973 os2*)
8974 libname_spec='$name'
8975 shrext_cmds=".dll"
8976 need_lib_prefix=no
8977 library_names_spec='$libname${shared_ext} $libname.a'
8978 dynamic_linker='OS/2 ld.exe'
8979 shlibpath_var=LIBPATH
8982 osf3* | osf4* | osf5*)
8983 version_type=osf
8984 need_lib_prefix=no
8985 need_version=no
8986 soname_spec='${libname}${release}${shared_ext}$major'
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8990 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8993 solaris*)
8994 version_type=linux
8995 need_lib_prefix=no
8996 need_version=no
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 shlibpath_var=LD_LIBRARY_PATH
9000 shlibpath_overrides_runpath=yes
9001 hardcode_into_libs=yes
9002 # ldd complains unless libraries are executable
9003 postinstall_cmds='chmod +x $lib'
9006 sunos4*)
9007 version_type=sunos
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9009 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9010 shlibpath_var=LD_LIBRARY_PATH
9011 shlibpath_overrides_runpath=yes
9012 if test "$with_gnu_ld" = yes; then
9013 need_lib_prefix=no
9015 need_version=yes
9018 sysv4 | sysv4.3*)
9019 version_type=linux
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 shlibpath_var=LD_LIBRARY_PATH
9023 case $host_vendor in
9024 sni)
9025 shlibpath_overrides_runpath=no
9026 need_lib_prefix=no
9027 export_dynamic_flag_spec='${wl}-Blargedynsym'
9028 runpath_var=LD_RUN_PATH
9030 siemens)
9031 need_lib_prefix=no
9033 motorola)
9034 need_lib_prefix=no
9035 need_version=no
9036 shlibpath_overrides_runpath=no
9037 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9039 esac
9042 sysv4*MP*)
9043 if test -d /usr/nec ;then
9044 version_type=linux
9045 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9046 soname_spec='$libname${shared_ext}.$major'
9047 shlibpath_var=LD_LIBRARY_PATH
9051 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9052 version_type=freebsd-elf
9053 need_lib_prefix=no
9054 need_version=no
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 hardcode_into_libs=yes
9059 if test "$with_gnu_ld" = yes; then
9060 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9061 shlibpath_overrides_runpath=no
9062 else
9063 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9064 shlibpath_overrides_runpath=yes
9065 case $host_os in
9066 sco3.2v5*)
9067 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9069 esac
9071 sys_lib_dlsearch_path_spec='/usr/lib'
9074 uts4*)
9075 version_type=linux
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
9082 dynamic_linker=no
9084 esac
9085 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9086 echo "${ECHO_T}$dynamic_linker" >&6; }
9087 test "$dynamic_linker" = no && can_build_shared=no
9089 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9090 if test "$GCC" = yes; then
9091 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9095 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9096 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9097 if test "${libltdl_cv_shlibext+set}" = set; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9099 else
9101 module=yes
9102 eval libltdl_cv_shlibext=$shrext_cmds
9105 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9106 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9107 if test -n "$libltdl_cv_shlibext"; then
9109 cat >>confdefs.h <<_ACEOF
9110 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9111 _ACEOF
9116 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9117 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9118 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9120 else
9121 libltdl_cv_shlibpath_var="$shlibpath_var"
9123 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9124 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9125 if test -n "$libltdl_cv_shlibpath_var"; then
9127 cat >>confdefs.h <<_ACEOF
9128 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9129 _ACEOF
9134 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9135 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9136 if test "${libltdl_cv_sys_search_path+set}" = set; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9138 else
9139 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9141 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9142 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9143 if test -n "$libltdl_cv_sys_search_path"; then
9144 sys_search_path=
9145 for dir in $libltdl_cv_sys_search_path; do
9146 if test -z "$sys_search_path"; then
9147 sys_search_path="$dir"
9148 else
9149 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9151 done
9153 cat >>confdefs.h <<_ACEOF
9154 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9155 _ACEOF
9159 { echo "$as_me:$LINENO: checking for objdir" >&5
9160 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9161 if test "${libltdl_cv_objdir+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164 libltdl_cv_objdir="$objdir"
9165 if test -n "$objdir"; then
9167 else
9168 rm -f .libs 2>/dev/null
9169 mkdir .libs 2>/dev/null
9170 if test -d .libs; then
9171 libltdl_cv_objdir=.libs
9172 else
9173 # MS-DOS does not allow filenames that begin with a dot.
9174 libltdl_cv_objdir=_libs
9176 rmdir .libs 2>/dev/null
9180 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9181 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9183 cat >>confdefs.h <<_ACEOF
9184 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9185 _ACEOF
9192 # Check for command to grab the raw symbol name followed by C symbol from nm.
9193 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9194 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9195 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9197 else
9199 # These are sane defaults that work on at least a few old systems.
9200 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9202 # Character class describing NM global symbol codes.
9203 symcode='[BCDEGRST]'
9205 # Regexp to match symbols that can be accessed directly from C.
9206 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9208 # Transform an extracted symbol line into a proper C declaration
9209 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9211 # Transform an extracted symbol line into symbol name and symbol address
9212 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'"
9214 # Define system-specific variables.
9215 case $host_os in
9216 aix*)
9217 symcode='[BCDT]'
9219 cygwin* | mingw* | pw32*)
9220 symcode='[ABCDGISTW]'
9222 hpux*) # Its linker distinguishes data from code symbols
9223 if test "$host_cpu" = ia64; then
9224 symcode='[ABCDEGRST]'
9226 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9227 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'"
9229 linux*)
9230 if test "$host_cpu" = ia64; then
9231 symcode='[ABCDGIRSTW]'
9232 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9233 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'"
9236 irix* | nonstopux*)
9237 symcode='[BCDEGRST]'
9239 osf*)
9240 symcode='[BCDEGQRST]'
9242 solaris*)
9243 symcode='[BDRT]'
9245 sco3.2v5*)
9246 symcode='[DT]'
9248 sysv4.2uw2*)
9249 symcode='[DT]'
9251 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9252 symcode='[ABDT]'
9254 sysv4)
9255 symcode='[DFNSTU]'
9257 esac
9259 # Handle CRLF in mingw tool chain
9260 opt_cr=
9261 case $build_os in
9262 mingw*)
9263 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9265 esac
9267 # If we're using GNU nm, then use its standard symbol codes.
9268 case `$NM -V 2>&1` in
9269 *GNU* | *'with BFD'*)
9270 symcode='[ABCDGIRSTW]' ;;
9271 esac
9273 # Try without a prefix undercore, then with it.
9274 for ac_symprfx in "" "_"; do
9276 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9277 symxfrm="\\1 $ac_symprfx\\2 \\2"
9279 # Write the raw and C identifiers.
9280 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9282 # Check to see that the pipe works correctly.
9283 pipe_works=no
9285 rm -f conftest*
9286 cat > conftest.$ac_ext <<EOF
9287 #ifdef __cplusplus
9288 extern "C" {
9289 #endif
9290 char nm_test_var;
9291 void nm_test_func(){}
9292 #ifdef __cplusplus
9294 #endif
9295 int main(){nm_test_var='a';nm_test_func();return(0);}
9298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9299 (eval $ac_compile) 2>&5
9300 ac_status=$?
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; then
9303 # Now try to grab the symbols.
9304 nlist=conftest.nm
9305 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9306 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9307 ac_status=$?
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } && test -s "$nlist"; then
9310 # Try sorting and uniquifying the output.
9311 if sort "$nlist" | uniq > "$nlist"T; then
9312 mv -f "$nlist"T "$nlist"
9313 else
9314 rm -f "$nlist"T
9317 # Make sure that we snagged all the symbols we need.
9318 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9319 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9320 cat <<EOF > conftest.$ac_ext
9321 #ifdef __cplusplus
9322 extern "C" {
9323 #endif
9326 # Now generate the symbol file.
9327 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9329 cat <<EOF >> conftest.$ac_ext
9330 #if defined (__STDC__) && __STDC__
9331 # define lt_ptr_t void *
9332 #else
9333 # define lt_ptr_t char *
9334 # define const
9335 #endif
9337 /* The mapping between symbol names and symbols. */
9338 const struct {
9339 const char *name;
9340 lt_ptr_t address;
9342 lt_preloaded_symbols[] =
9345 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9346 cat <<\EOF >> conftest.$ac_ext
9347 {0, (lt_ptr_t) 0}
9350 #ifdef __cplusplus
9352 #endif
9354 # Now try linking the two files.
9355 mv conftest.$ac_objext conftstm.$ac_objext
9356 lt_save_LIBS="$LIBS"
9357 lt_save_CFLAGS="$CFLAGS"
9358 LIBS="conftstm.$ac_objext"
9359 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9361 (eval $ac_link) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9365 pipe_works=yes
9367 LIBS="$lt_save_LIBS"
9368 CFLAGS="$lt_save_CFLAGS"
9369 else
9370 echo "cannot find nm_test_func in $nlist" >&5
9372 else
9373 echo "cannot find nm_test_var in $nlist" >&5
9375 else
9376 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9378 else
9379 echo "$progname: failed program was:" >&5
9380 cat conftest.$ac_ext >&5
9382 rm -f conftest* conftst*
9384 # Do not use the global_symbol_pipe unless it works.
9385 if test "$pipe_works" = yes; then
9386 break
9387 else
9388 lt_cv_sys_global_symbol_pipe=
9390 done
9394 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9395 lt_cv_sys_global_symbol_to_cdecl=
9397 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9398 { echo "$as_me:$LINENO: result: failed" >&5
9399 echo "${ECHO_T}failed" >&6; }
9400 else
9401 { echo "$as_me:$LINENO: result: ok" >&5
9402 echo "${ECHO_T}ok" >&6; }
9406 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9407 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9408 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 else
9411 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9412 libltdl_cv_preloaded_symbols=yes
9413 else
9414 libltdl_cv_preloaded_symbols=no
9418 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9419 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9420 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9422 cat >>confdefs.h <<\_ACEOF
9423 #define HAVE_PRELOADED_SYMBOLS 1
9424 _ACEOF
9428 LIBADD_DL=
9430 ac_ext=c
9431 ac_cpp='$CPP $CPPFLAGS'
9432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9437 { echo "$as_me:$LINENO: checking for shl_load" >&5
9438 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9439 if test "${ac_cv_func_shl_load+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 else
9442 cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h. */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9448 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9450 #define shl_load innocuous_shl_load
9452 /* System header to define __stub macros and hopefully few prototypes,
9453 which can conflict with char shl_load (); below.
9454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9455 <limits.h> exists even on freestanding compilers. */
9457 #ifdef __STDC__
9458 # include <limits.h>
9459 #else
9460 # include <assert.h>
9461 #endif
9463 #undef shl_load
9465 /* Override any GCC internal prototype to avoid an error.
9466 Use char because int might match the return type of a GCC
9467 builtin and then its argument prototype would still apply. */
9468 #ifdef __cplusplus
9469 extern "C"
9470 #endif
9471 char shl_load ();
9472 /* The GNU C library defines this for functions which it implements
9473 to always fail with ENOSYS. Some functions are actually named
9474 something starting with __ and the normal name is an alias. */
9475 #if defined __stub_shl_load || defined __stub___shl_load
9476 choke me
9477 #endif
9480 main ()
9482 return shl_load ();
9484 return 0;
9486 _ACEOF
9487 rm -f conftest.$ac_objext conftest$ac_exeext
9488 if { (ac_try="$ac_link"
9489 case "(($ac_try" in
9490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9491 *) ac_try_echo=$ac_try;;
9492 esac
9493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_link") 2>conftest.er1
9495 ac_status=$?
9496 grep -v '^ *+' conftest.er1 >conftest.err
9497 rm -f conftest.er1
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } && {
9501 test -z "$ac_c_werror_flag" ||
9502 test ! -s conftest.err
9503 } && test -s conftest$ac_exeext &&
9504 $as_test_x conftest$ac_exeext; then
9505 ac_cv_func_shl_load=yes
9506 else
9507 echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9510 ac_cv_func_shl_load=no
9513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9514 conftest$ac_exeext conftest.$ac_ext
9516 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9517 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9518 if test $ac_cv_func_shl_load = yes; then
9520 cat >>confdefs.h <<\_ACEOF
9521 #define HAVE_SHL_LOAD 1
9522 _ACEOF
9524 else
9525 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9526 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9527 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 else
9530 ac_check_lib_save_LIBS=$LIBS
9531 LIBS="-ldld $LIBS"
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h. */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9539 /* Override any GCC internal prototype to avoid an error.
9540 Use char because int might match the return type of a GCC
9541 builtin and then its argument prototype would still apply. */
9542 #ifdef __cplusplus
9543 extern "C"
9544 #endif
9545 char shl_load ();
9547 main ()
9549 return shl_load ();
9551 return 0;
9553 _ACEOF
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (ac_try="$ac_link"
9556 case "(($ac_try" in
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9559 esac
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_link") 2>conftest.er1
9562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } && {
9568 test -z "$ac_c_werror_flag" ||
9569 test ! -s conftest.err
9570 } && test -s conftest$ac_exeext &&
9571 $as_test_x conftest$ac_exeext; then
9572 ac_cv_lib_dld_shl_load=yes
9573 else
9574 echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9577 ac_cv_lib_dld_shl_load=no
9580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9581 conftest$ac_exeext conftest.$ac_ext
9582 LIBS=$ac_check_lib_save_LIBS
9584 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9585 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9586 if test $ac_cv_lib_dld_shl_load = yes; then
9588 cat >>confdefs.h <<\_ACEOF
9589 #define HAVE_SHL_LOAD 1
9590 _ACEOF
9592 LIBADD_DL="$LIBADD_DL -ldld"
9593 else
9594 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9595 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9596 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 else
9599 ac_check_lib_save_LIBS=$LIBS
9600 LIBS="-ldl $LIBS"
9601 cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h. */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9608 /* Override any GCC internal prototype to avoid an error.
9609 Use char because int might match the return type of a GCC
9610 builtin and then its argument prototype would still apply. */
9611 #ifdef __cplusplus
9612 extern "C"
9613 #endif
9614 char dlopen ();
9616 main ()
9618 return dlopen ();
9620 return 0;
9622 _ACEOF
9623 rm -f conftest.$ac_objext conftest$ac_exeext
9624 if { (ac_try="$ac_link"
9625 case "(($ac_try" in
9626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627 *) ac_try_echo=$ac_try;;
9628 esac
9629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9630 (eval "$ac_link") 2>conftest.er1
9631 ac_status=$?
9632 grep -v '^ *+' conftest.er1 >conftest.err
9633 rm -f conftest.er1
9634 cat conftest.err >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } && {
9637 test -z "$ac_c_werror_flag" ||
9638 test ! -s conftest.err
9639 } && test -s conftest$ac_exeext &&
9640 $as_test_x conftest$ac_exeext; then
9641 ac_cv_lib_dl_dlopen=yes
9642 else
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 ac_cv_lib_dl_dlopen=no
9649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9650 conftest$ac_exeext conftest.$ac_ext
9651 LIBS=$ac_check_lib_save_LIBS
9653 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9654 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9655 if test $ac_cv_lib_dl_dlopen = yes; then
9657 cat >>confdefs.h <<\_ACEOF
9658 #define HAVE_LIBDL 1
9659 _ACEOF
9661 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9662 else
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h. */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 #if HAVE_DLFCN_H
9670 # include <dlfcn.h>
9671 #endif
9674 main ()
9676 dlopen(0, 0);
9678 return 0;
9680 _ACEOF
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (ac_try="$ac_link"
9683 case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_link") 2>conftest.er1
9689 ac_status=$?
9690 grep -v '^ *+' conftest.er1 >conftest.err
9691 rm -f conftest.er1
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest$ac_exeext &&
9698 $as_test_x conftest$ac_exeext; then
9700 cat >>confdefs.h <<\_ACEOF
9701 #define HAVE_LIBDL 1
9702 _ACEOF
9703 libltdl_cv_func_dlopen="yes"
9704 else
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9708 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9709 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9710 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713 ac_check_lib_save_LIBS=$LIBS
9714 LIBS="-lsvld $LIBS"
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h. */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9722 /* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
9725 #ifdef __cplusplus
9726 extern "C"
9727 #endif
9728 char dlopen ();
9730 main ()
9732 return dlopen ();
9734 return 0;
9736 _ACEOF
9737 rm -f conftest.$ac_objext conftest$ac_exeext
9738 if { (ac_try="$ac_link"
9739 case "(($ac_try" in
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9742 esac
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_link") 2>conftest.er1
9745 ac_status=$?
9746 grep -v '^ *+' conftest.er1 >conftest.err
9747 rm -f conftest.er1
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } && {
9751 test -z "$ac_c_werror_flag" ||
9752 test ! -s conftest.err
9753 } && test -s conftest$ac_exeext &&
9754 $as_test_x conftest$ac_exeext; then
9755 ac_cv_lib_svld_dlopen=yes
9756 else
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9760 ac_cv_lib_svld_dlopen=no
9763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9764 conftest$ac_exeext conftest.$ac_ext
9765 LIBS=$ac_check_lib_save_LIBS
9767 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9768 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9769 if test $ac_cv_lib_svld_dlopen = yes; then
9771 cat >>confdefs.h <<\_ACEOF
9772 #define HAVE_LIBDL 1
9773 _ACEOF
9775 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9776 else
9777 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9778 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9779 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782 ac_check_lib_save_LIBS=$LIBS
9783 LIBS="-ldld $LIBS"
9784 cat >conftest.$ac_ext <<_ACEOF
9785 /* confdefs.h. */
9786 _ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9791 /* Override any GCC internal prototype to avoid an error.
9792 Use char because int might match the return type of a GCC
9793 builtin and then its argument prototype would still apply. */
9794 #ifdef __cplusplus
9795 extern "C"
9796 #endif
9797 char dld_link ();
9799 main ()
9801 return dld_link ();
9803 return 0;
9805 _ACEOF
9806 rm -f conftest.$ac_objext conftest$ac_exeext
9807 if { (ac_try="$ac_link"
9808 case "(($ac_try" in
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9811 esac
9812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_link") 2>conftest.er1
9814 ac_status=$?
9815 grep -v '^ *+' conftest.er1 >conftest.err
9816 rm -f conftest.er1
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } && {
9820 test -z "$ac_c_werror_flag" ||
9821 test ! -s conftest.err
9822 } && test -s conftest$ac_exeext &&
9823 $as_test_x conftest$ac_exeext; then
9824 ac_cv_lib_dld_dld_link=yes
9825 else
9826 echo "$as_me: failed program was:" >&5
9827 sed 's/^/| /' conftest.$ac_ext >&5
9829 ac_cv_lib_dld_dld_link=no
9832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9833 conftest$ac_exeext conftest.$ac_ext
9834 LIBS=$ac_check_lib_save_LIBS
9836 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9837 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9838 if test $ac_cv_lib_dld_dld_link = yes; then
9840 cat >>confdefs.h <<\_ACEOF
9841 #define HAVE_DLD 1
9842 _ACEOF
9844 LIBADD_DL="$LIBADD_DL -ldld"
9845 else
9846 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9847 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9848 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851 cat >conftest.$ac_ext <<_ACEOF
9852 /* confdefs.h. */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9857 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9859 #define _dyld_func_lookup innocuous__dyld_func_lookup
9861 /* System header to define __stub macros and hopefully few prototypes,
9862 which can conflict with char _dyld_func_lookup (); below.
9863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9864 <limits.h> exists even on freestanding compilers. */
9866 #ifdef __STDC__
9867 # include <limits.h>
9868 #else
9869 # include <assert.h>
9870 #endif
9872 #undef _dyld_func_lookup
9874 /* Override any GCC internal prototype to avoid an error.
9875 Use char because int might match the return type of a GCC
9876 builtin and then its argument prototype would still apply. */
9877 #ifdef __cplusplus
9878 extern "C"
9879 #endif
9880 char _dyld_func_lookup ();
9881 /* The GNU C library defines this for functions which it implements
9882 to always fail with ENOSYS. Some functions are actually named
9883 something starting with __ and the normal name is an alias. */
9884 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9885 choke me
9886 #endif
9889 main ()
9891 return _dyld_func_lookup ();
9893 return 0;
9895 _ACEOF
9896 rm -f conftest.$ac_objext conftest$ac_exeext
9897 if { (ac_try="$ac_link"
9898 case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9901 esac
9902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_link") 2>conftest.er1
9904 ac_status=$?
9905 grep -v '^ *+' conftest.er1 >conftest.err
9906 rm -f conftest.er1
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } && {
9910 test -z "$ac_c_werror_flag" ||
9911 test ! -s conftest.err
9912 } && test -s conftest$ac_exeext &&
9913 $as_test_x conftest$ac_exeext; then
9914 ac_cv_func__dyld_func_lookup=yes
9915 else
9916 echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9919 ac_cv_func__dyld_func_lookup=no
9922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9923 conftest$ac_exeext conftest.$ac_ext
9925 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9926 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9927 if test $ac_cv_func__dyld_func_lookup = yes; then
9929 cat >>confdefs.h <<\_ACEOF
9930 #define HAVE_DYLD 1
9931 _ACEOF
9944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9945 conftest$ac_exeext conftest.$ac_ext
9956 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9957 then
9958 lt_save_LIBS="$LIBS"
9959 LIBS="$LIBS $LIBADD_DL"
9961 for ac_func in dlerror
9963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9964 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9966 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969 cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h. */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9977 #define $ac_func innocuous_$ac_func
9979 /* System header to define __stub macros and hopefully few prototypes,
9980 which can conflict with char $ac_func (); below.
9981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9982 <limits.h> exists even on freestanding compilers. */
9984 #ifdef __STDC__
9985 # include <limits.h>
9986 #else
9987 # include <assert.h>
9988 #endif
9990 #undef $ac_func
9992 /* Override any GCC internal prototype to avoid an error.
9993 Use char because int might match the return type of a GCC
9994 builtin and then its argument prototype would still apply. */
9995 #ifdef __cplusplus
9996 extern "C"
9997 #endif
9998 char $ac_func ();
9999 /* The GNU C library defines this for functions which it implements
10000 to always fail with ENOSYS. Some functions are actually named
10001 something starting with __ and the normal name is an alias. */
10002 #if defined __stub_$ac_func || defined __stub___$ac_func
10003 choke me
10004 #endif
10007 main ()
10009 return $ac_func ();
10011 return 0;
10013 _ACEOF
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (ac_try="$ac_link"
10016 case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10019 esac
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_link") 2>conftest.er1
10022 ac_status=$?
10023 grep -v '^ *+' conftest.er1 >conftest.err
10024 rm -f conftest.er1
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } && {
10028 test -z "$ac_c_werror_flag" ||
10029 test ! -s conftest.err
10030 } && test -s conftest$ac_exeext &&
10031 $as_test_x conftest$ac_exeext; then
10032 eval "$as_ac_var=yes"
10033 else
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10037 eval "$as_ac_var=no"
10040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10041 conftest$ac_exeext conftest.$ac_ext
10043 ac_res=`eval echo '${'$as_ac_var'}'`
10044 { echo "$as_me:$LINENO: result: $ac_res" >&5
10045 echo "${ECHO_T}$ac_res" >&6; }
10046 if test `eval echo '${'$as_ac_var'}'` = yes; then
10047 cat >>confdefs.h <<_ACEOF
10048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10049 _ACEOF
10052 done
10054 LIBS="$lt_save_LIBS"
10056 ac_ext=c
10057 ac_cpp='$CPP $CPPFLAGS'
10058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10064 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10065 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10066 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069 ac_cv_sys_symbol_underscore=no
10070 cat > conftest.$ac_ext <<EOF
10071 void nm_test_func(){}
10072 int main(){nm_test_func;return 0;}
10074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10075 (eval $ac_compile) 2>&5
10076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; then
10079 # Now try to grab the symbols.
10080 ac_nlist=conftest.nm
10081 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10082 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } && test -s "$ac_nlist"; then
10086 # See whether the symbols have a leading underscore.
10087 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10088 ac_cv_sys_symbol_underscore=yes
10089 else
10090 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10092 else
10093 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10096 else
10097 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10099 else
10100 echo "configure: failed program was:" >&5
10101 cat conftest.c >&5
10103 rm -rf conftest*
10106 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10107 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10110 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10111 if test x"$libltdl_cv_func_dlopen" = xyes ||
10112 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10113 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10114 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10115 if test "${libltdl_cv_need_uscore+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10117 else
10118 libltdl_cv_need_uscore=unknown
10119 save_LIBS="$LIBS"
10120 LIBS="$LIBS $LIBADD_DL"
10121 if test "$cross_compiling" = yes; then :
10122 libltdl_cv_need_uscore=cross
10123 else
10124 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10125 lt_status=$lt_dlunknown
10126 cat > conftest.$ac_ext <<EOF
10127 #line 10127 "configure"
10128 #include "confdefs.h"
10130 #if HAVE_DLFCN_H
10131 #include <dlfcn.h>
10132 #endif
10134 #include <stdio.h>
10136 #ifdef RTLD_GLOBAL
10137 # define LT_DLGLOBAL RTLD_GLOBAL
10138 #else
10139 # ifdef DL_GLOBAL
10140 # define LT_DLGLOBAL DL_GLOBAL
10141 # else
10142 # define LT_DLGLOBAL 0
10143 # endif
10144 #endif
10146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10147 find out it does not work in some platform. */
10148 #ifndef LT_DLLAZY_OR_NOW
10149 # ifdef RTLD_LAZY
10150 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10151 # else
10152 # ifdef DL_LAZY
10153 # define LT_DLLAZY_OR_NOW DL_LAZY
10154 # else
10155 # ifdef RTLD_NOW
10156 # define LT_DLLAZY_OR_NOW RTLD_NOW
10157 # else
10158 # ifdef DL_NOW
10159 # define LT_DLLAZY_OR_NOW DL_NOW
10160 # else
10161 # define LT_DLLAZY_OR_NOW 0
10162 # endif
10163 # endif
10164 # endif
10165 # endif
10166 #endif
10168 #ifdef __cplusplus
10169 extern "C" void exit (int);
10170 #endif
10172 void fnord() { int i=42;}
10173 int main ()
10175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10176 int status = $lt_dlunknown;
10178 if (self)
10180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10181 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10182 /* dlclose (self); */
10184 else
10185 puts (dlerror ());
10187 exit (status);
10190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10191 (eval $ac_link) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10195 (./conftest; exit; ) >&5 2>/dev/null
10196 lt_status=$?
10197 case x$lt_status in
10198 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10199 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10200 x$lt_dlunknown|x*) ;;
10201 esac
10202 else :
10203 # compilation failed
10207 rm -fr conftest*
10209 LIBS="$save_LIBS"
10212 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10213 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10217 if test x"$libltdl_cv_need_uscore" = xyes; then
10219 cat >>confdefs.h <<\_ACEOF
10220 #define NEED_USCORE 1
10221 _ACEOF
10226 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10227 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10228 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231 # PORTME does your system automatically load deplibs for dlopen?
10232 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10233 # For now, we just catch OSes we know something about -- in the
10234 # future, we'll try test this programmatically.
10235 libltdl_cv_sys_dlopen_deplibs=unknown
10236 case "$host_os" in
10237 aix3*|aix4.1.*|aix4.2.*)
10238 # Unknown whether this is true for these versions of AIX, but
10239 # we want this `case' here to explicitly catch those versions.
10240 libltdl_cv_sys_dlopen_deplibs=unknown
10242 aix[45]*)
10243 libltdl_cv_sys_dlopen_deplibs=yes
10245 darwin*)
10246 # Assuming the user has installed a libdl from somewhere, this is true
10247 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10248 libltdl_cv_sys_dlopen_deplibs=yes
10250 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10251 # GNU and its variants, using gnu ld.so (Glibc)
10252 libltdl_cv_sys_dlopen_deplibs=yes
10254 hpux10*|hpux11*)
10255 libltdl_cv_sys_dlopen_deplibs=yes
10257 interix*)
10258 libltdl_cv_sys_dlopen_deplibs=yes
10260 irix[12345]*|irix6.[01]*)
10261 # Catch all versions of IRIX before 6.2, and indicate that we don't
10262 # know how it worked for any of those versions.
10263 libltdl_cv_sys_dlopen_deplibs=unknown
10265 irix*)
10266 # The case above catches anything before 6.2, and it's known that
10267 # at 6.2 and later dlopen does load deplibs.
10268 libltdl_cv_sys_dlopen_deplibs=yes
10270 netbsd*)
10271 libltdl_cv_sys_dlopen_deplibs=yes
10273 openbsd*)
10274 libltdl_cv_sys_dlopen_deplibs=yes
10276 osf[1234]*)
10277 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10278 # it did *not* use an RPATH in a shared library to find objects the
10279 # library depends on, so we explictly say `no'.
10280 libltdl_cv_sys_dlopen_deplibs=no
10282 osf5.0|osf5.0a|osf5.1)
10283 # dlopen *does* load deplibs and with the right loader patch applied
10284 # it even uses RPATH in a shared library to search for shared objects
10285 # that the library depends on, but there's no easy way to know if that
10286 # patch is installed. Since this is the case, all we can really
10287 # say is unknown -- it depends on the patch being installed. If
10288 # it is, this changes to `yes'. Without it, it would be `no'.
10289 libltdl_cv_sys_dlopen_deplibs=unknown
10291 osf*)
10292 # the two cases above should catch all versions of osf <= 5.1. Read
10293 # the comments above for what we know about them.
10294 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10295 # is used to find them so we can finally say `yes'.
10296 libltdl_cv_sys_dlopen_deplibs=yes
10298 solaris*)
10299 libltdl_cv_sys_dlopen_deplibs=yes
10301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10302 libltdl_cv_sys_dlopen_deplibs=yes
10304 esac
10307 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10308 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10309 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10311 cat >>confdefs.h <<\_ACEOF
10312 #define LTDL_DLOPEN_DEPLIBS 1
10313 _ACEOF
10318 for ac_header in argz.h
10320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 ac_res=`eval echo '${'$as_ac_Header'}'`
10328 { echo "$as_me:$LINENO: result: $ac_res" >&5
10329 echo "${ECHO_T}$ac_res" >&6; }
10330 else
10331 # Is the header compilable?
10332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10334 cat >conftest.$ac_ext <<_ACEOF
10335 /* confdefs.h. */
10336 _ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h. */
10340 $ac_includes_default
10341 #include <$ac_header>
10342 _ACEOF
10343 rm -f conftest.$ac_objext
10344 if { (ac_try="$ac_compile"
10345 case "(($ac_try" in
10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347 *) ac_try_echo=$ac_try;;
10348 esac
10349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350 (eval "$ac_compile") 2>conftest.er1
10351 ac_status=$?
10352 grep -v '^ *+' conftest.er1 >conftest.err
10353 rm -f conftest.er1
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } && {
10357 test -z "$ac_c_werror_flag" ||
10358 test ! -s conftest.err
10359 } && test -s conftest.$ac_objext; then
10360 ac_header_compiler=yes
10361 else
10362 echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10365 ac_header_compiler=no
10368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10370 echo "${ECHO_T}$ac_header_compiler" >&6; }
10372 # Is the header present?
10373 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10375 cat >conftest.$ac_ext <<_ACEOF
10376 /* confdefs.h. */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381 #include <$ac_header>
10382 _ACEOF
10383 if { (ac_try="$ac_cpp conftest.$ac_ext"
10384 case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10387 esac
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10390 ac_status=$?
10391 grep -v '^ *+' conftest.er1 >conftest.err
10392 rm -f conftest.er1
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } >/dev/null && {
10396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10397 test ! -s conftest.err
10398 }; then
10399 ac_header_preproc=yes
10400 else
10401 echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10404 ac_header_preproc=no
10407 rm -f conftest.err conftest.$ac_ext
10408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10409 echo "${ECHO_T}$ac_header_preproc" >&6; }
10411 # So? What about this header?
10412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10413 yes:no: )
10414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10418 ac_header_preproc=yes
10420 no:yes:* )
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10428 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10433 ( cat <<\_ASBOX
10434 ## ----------------------------------- ##
10435 ## Report this to llvmbugs@cs.uiuc.edu ##
10436 ## ----------------------------------- ##
10437 _ASBOX
10438 ) | sed "s/^/$as_me: WARNING: /" >&2
10440 esac
10441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 else
10446 eval "$as_ac_Header=\$ac_header_preproc"
10448 ac_res=`eval echo '${'$as_ac_Header'}'`
10449 { echo "$as_me:$LINENO: result: $ac_res" >&5
10450 echo "${ECHO_T}$ac_res" >&6; }
10453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10454 cat >>confdefs.h <<_ACEOF
10455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10456 _ACEOF
10460 done
10463 { echo "$as_me:$LINENO: checking for error_t" >&5
10464 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10465 if test "${ac_cv_type_error_t+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 else
10468 cat >conftest.$ac_ext <<_ACEOF
10469 /* confdefs.h. */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10474 #if HAVE_ARGZ_H
10475 # include <argz.h>
10476 #endif
10478 typedef error_t ac__type_new_;
10480 main ()
10482 if ((ac__type_new_ *) 0)
10483 return 0;
10484 if (sizeof (ac__type_new_))
10485 return 0;
10487 return 0;
10489 _ACEOF
10490 rm -f conftest.$ac_objext
10491 if { (ac_try="$ac_compile"
10492 case "(($ac_try" in
10493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10494 *) ac_try_echo=$ac_try;;
10495 esac
10496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10497 (eval "$ac_compile") 2>conftest.er1
10498 ac_status=$?
10499 grep -v '^ *+' conftest.er1 >conftest.err
10500 rm -f conftest.er1
10501 cat conftest.err >&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } && {
10504 test -z "$ac_c_werror_flag" ||
10505 test ! -s conftest.err
10506 } && test -s conftest.$ac_objext; then
10507 ac_cv_type_error_t=yes
10508 else
10509 echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.$ac_ext >&5
10512 ac_cv_type_error_t=no
10515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10517 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10518 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10519 if test $ac_cv_type_error_t = yes; then
10521 cat >>confdefs.h <<_ACEOF
10522 #define HAVE_ERROR_T 1
10523 _ACEOF
10526 else
10528 cat >>confdefs.h <<\_ACEOF
10529 #define error_t int
10530 _ACEOF
10540 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548 cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h. */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10556 #define $ac_func innocuous_$ac_func
10558 /* System header to define __stub macros and hopefully few prototypes,
10559 which can conflict with char $ac_func (); below.
10560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10561 <limits.h> exists even on freestanding compilers. */
10563 #ifdef __STDC__
10564 # include <limits.h>
10565 #else
10566 # include <assert.h>
10567 #endif
10569 #undef $ac_func
10571 /* Override any GCC internal prototype to avoid an error.
10572 Use char because int might match the return type of a GCC
10573 builtin and then its argument prototype would still apply. */
10574 #ifdef __cplusplus
10575 extern "C"
10576 #endif
10577 char $ac_func ();
10578 /* The GNU C library defines this for functions which it implements
10579 to always fail with ENOSYS. Some functions are actually named
10580 something starting with __ and the normal name is an alias. */
10581 #if defined __stub_$ac_func || defined __stub___$ac_func
10582 choke me
10583 #endif
10586 main ()
10588 return $ac_func ();
10590 return 0;
10592 _ACEOF
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (ac_try="$ac_link"
10595 case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10598 esac
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_link") 2>conftest.er1
10601 ac_status=$?
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } && {
10607 test -z "$ac_c_werror_flag" ||
10608 test ! -s conftest.err
10609 } && test -s conftest$ac_exeext &&
10610 $as_test_x conftest$ac_exeext; then
10611 eval "$as_ac_var=yes"
10612 else
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 eval "$as_ac_var=no"
10619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10620 conftest$ac_exeext conftest.$ac_ext
10622 ac_res=`eval echo '${'$as_ac_var'}'`
10623 { echo "$as_me:$LINENO: result: $ac_res" >&5
10624 echo "${ECHO_T}$ac_res" >&6; }
10625 if test `eval echo '${'$as_ac_var'}'` = yes; then
10626 cat >>confdefs.h <<_ACEOF
10627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10628 _ACEOF
10631 done
10660 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10661 stdio.h unistd.h
10663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10670 ac_res=`eval echo '${'$as_ac_Header'}'`
10671 { echo "$as_me:$LINENO: result: $ac_res" >&5
10672 echo "${ECHO_T}$ac_res" >&6; }
10673 else
10674 # Is the header compilable?
10675 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10677 cat >conftest.$ac_ext <<_ACEOF
10678 /* confdefs.h. */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683 $ac_includes_default
10684 #include <$ac_header>
10685 _ACEOF
10686 rm -f conftest.$ac_objext
10687 if { (ac_try="$ac_compile"
10688 case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691 esac
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_compile") 2>conftest.er1
10694 ac_status=$?
10695 grep -v '^ *+' conftest.er1 >conftest.err
10696 rm -f conftest.er1
10697 cat conftest.err >&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } && {
10700 test -z "$ac_c_werror_flag" ||
10701 test ! -s conftest.err
10702 } && test -s conftest.$ac_objext; then
10703 ac_header_compiler=yes
10704 else
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10708 ac_header_compiler=no
10711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10713 echo "${ECHO_T}$ac_header_compiler" >&6; }
10715 # Is the header present?
10716 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10718 cat >conftest.$ac_ext <<_ACEOF
10719 /* confdefs.h. */
10720 _ACEOF
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h. */
10724 #include <$ac_header>
10725 _ACEOF
10726 if { (ac_try="$ac_cpp conftest.$ac_ext"
10727 case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730 esac
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10733 ac_status=$?
10734 grep -v '^ *+' conftest.er1 >conftest.err
10735 rm -f conftest.er1
10736 cat conftest.err >&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); } >/dev/null && {
10739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10740 test ! -s conftest.err
10741 }; then
10742 ac_header_preproc=yes
10743 else
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10747 ac_header_preproc=no
10750 rm -f conftest.err conftest.$ac_ext
10751 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10752 echo "${ECHO_T}$ac_header_preproc" >&6; }
10754 # So? What about this header?
10755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10756 yes:no: )
10757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10761 ac_header_preproc=yes
10763 no:yes:* )
10764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10776 ( cat <<\_ASBOX
10777 ## ----------------------------------- ##
10778 ## Report this to llvmbugs@cs.uiuc.edu ##
10779 ## ----------------------------------- ##
10780 _ASBOX
10781 ) | sed "s/^/$as_me: WARNING: /" >&2
10783 esac
10784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 else
10789 eval "$as_ac_Header=\$ac_header_preproc"
10791 ac_res=`eval echo '${'$as_ac_Header'}'`
10792 { echo "$as_me:$LINENO: result: $ac_res" >&5
10793 echo "${ECHO_T}$ac_res" >&6; }
10796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10797 cat >>confdefs.h <<_ACEOF
10798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10799 _ACEOF
10803 done
10809 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 ac_res=`eval echo '${'$as_ac_Header'}'`
10819 { echo "$as_me:$LINENO: result: $ac_res" >&5
10820 echo "${ECHO_T}$ac_res" >&6; }
10821 else
10822 # Is the header compilable?
10823 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10825 cat >conftest.$ac_ext <<_ACEOF
10826 /* confdefs.h. */
10827 _ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10831 $ac_includes_default
10832 #include <$ac_header>
10833 _ACEOF
10834 rm -f conftest.$ac_objext
10835 if { (ac_try="$ac_compile"
10836 case "(($ac_try" in
10837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838 *) ac_try_echo=$ac_try;;
10839 esac
10840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10841 (eval "$ac_compile") 2>conftest.er1
10842 ac_status=$?
10843 grep -v '^ *+' conftest.er1 >conftest.err
10844 rm -f conftest.er1
10845 cat conftest.err >&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } && {
10848 test -z "$ac_c_werror_flag" ||
10849 test ! -s conftest.err
10850 } && test -s conftest.$ac_objext; then
10851 ac_header_compiler=yes
10852 else
10853 echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10856 ac_header_compiler=no
10859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10860 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10861 echo "${ECHO_T}$ac_header_compiler" >&6; }
10863 # Is the header present?
10864 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10866 cat >conftest.$ac_ext <<_ACEOF
10867 /* confdefs.h. */
10868 _ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10872 #include <$ac_header>
10873 _ACEOF
10874 if { (ac_try="$ac_cpp conftest.$ac_ext"
10875 case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878 esac
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } >/dev/null && {
10887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10888 test ! -s conftest.err
10889 }; then
10890 ac_header_preproc=yes
10891 else
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 ac_header_preproc=no
10898 rm -f conftest.err conftest.$ac_ext
10899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10900 echo "${ECHO_T}$ac_header_preproc" >&6; }
10902 # So? What about this header?
10903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10904 yes:no: )
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10909 ac_header_preproc=yes
10911 no:yes:* )
10912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10924 ( cat <<\_ASBOX
10925 ## ----------------------------------- ##
10926 ## Report this to llvmbugs@cs.uiuc.edu ##
10927 ## ----------------------------------- ##
10928 _ASBOX
10929 ) | sed "s/^/$as_me: WARNING: /" >&2
10931 esac
10932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937 eval "$as_ac_Header=\$ac_header_preproc"
10939 ac_res=`eval echo '${'$as_ac_Header'}'`
10940 { echo "$as_me:$LINENO: result: $ac_res" >&5
10941 echo "${ECHO_T}$ac_res" >&6; }
10944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10945 cat >>confdefs.h <<_ACEOF
10946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10947 _ACEOF
10951 done
10955 for ac_header in string.h strings.h
10957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 ac_res=`eval echo '${'$as_ac_Header'}'`
10965 { echo "$as_me:$LINENO: result: $ac_res" >&5
10966 echo "${ECHO_T}$ac_res" >&6; }
10967 else
10968 # Is the header compilable?
10969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10971 cat >conftest.$ac_ext <<_ACEOF
10972 /* confdefs.h. */
10973 _ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977 $ac_includes_default
10978 #include <$ac_header>
10979 _ACEOF
10980 rm -f conftest.$ac_objext
10981 if { (ac_try="$ac_compile"
10982 case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10985 esac
10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_compile") 2>conftest.er1
10988 ac_status=$?
10989 grep -v '^ *+' conftest.er1 >conftest.err
10990 rm -f conftest.er1
10991 cat conftest.err >&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } && {
10994 test -z "$ac_c_werror_flag" ||
10995 test ! -s conftest.err
10996 } && test -s conftest.$ac_objext; then
10997 ac_header_compiler=yes
10998 else
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11002 ac_header_compiler=no
11005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11007 echo "${ECHO_T}$ac_header_compiler" >&6; }
11009 # Is the header present?
11010 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11012 cat >conftest.$ac_ext <<_ACEOF
11013 /* confdefs.h. */
11014 _ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11018 #include <$ac_header>
11019 _ACEOF
11020 if { (ac_try="$ac_cpp conftest.$ac_ext"
11021 case "(($ac_try" in
11022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023 *) ac_try_echo=$ac_try;;
11024 esac
11025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11027 ac_status=$?
11028 grep -v '^ *+' conftest.er1 >conftest.err
11029 rm -f conftest.er1
11030 cat conftest.err >&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); } >/dev/null && {
11033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11034 test ! -s conftest.err
11035 }; then
11036 ac_header_preproc=yes
11037 else
11038 echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11041 ac_header_preproc=no
11044 rm -f conftest.err conftest.$ac_ext
11045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11046 echo "${ECHO_T}$ac_header_preproc" >&6; }
11048 # So? What about this header?
11049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11050 yes:no: )
11051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11055 ac_header_preproc=yes
11057 no:yes:* )
11058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11070 ( cat <<\_ASBOX
11071 ## ----------------------------------- ##
11072 ## Report this to llvmbugs@cs.uiuc.edu ##
11073 ## ----------------------------------- ##
11074 _ASBOX
11075 ) | sed "s/^/$as_me: WARNING: /" >&2
11077 esac
11078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082 else
11083 eval "$as_ac_Header=\$ac_header_preproc"
11085 ac_res=`eval echo '${'$as_ac_Header'}'`
11086 { echo "$as_me:$LINENO: result: $ac_res" >&5
11087 echo "${ECHO_T}$ac_res" >&6; }
11090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11091 cat >>confdefs.h <<_ACEOF
11092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11093 _ACEOF
11094 break
11097 done
11102 for ac_func in strchr index
11104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110 cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h. */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11118 #define $ac_func innocuous_$ac_func
11120 /* System header to define __stub macros and hopefully few prototypes,
11121 which can conflict with char $ac_func (); below.
11122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11123 <limits.h> exists even on freestanding compilers. */
11125 #ifdef __STDC__
11126 # include <limits.h>
11127 #else
11128 # include <assert.h>
11129 #endif
11131 #undef $ac_func
11133 /* Override any GCC internal prototype to avoid an error.
11134 Use char because int might match the return type of a GCC
11135 builtin and then its argument prototype would still apply. */
11136 #ifdef __cplusplus
11137 extern "C"
11138 #endif
11139 char $ac_func ();
11140 /* The GNU C library defines this for functions which it implements
11141 to always fail with ENOSYS. Some functions are actually named
11142 something starting with __ and the normal name is an alias. */
11143 #if defined __stub_$ac_func || defined __stub___$ac_func
11144 choke me
11145 #endif
11148 main ()
11150 return $ac_func ();
11152 return 0;
11154 _ACEOF
11155 rm -f conftest.$ac_objext conftest$ac_exeext
11156 if { (ac_try="$ac_link"
11157 case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11160 esac
11161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162 (eval "$ac_link") 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } && {
11169 test -z "$ac_c_werror_flag" ||
11170 test ! -s conftest.err
11171 } && test -s conftest$ac_exeext &&
11172 $as_test_x conftest$ac_exeext; then
11173 eval "$as_ac_var=yes"
11174 else
11175 echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 eval "$as_ac_var=no"
11181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11182 conftest$ac_exeext conftest.$ac_ext
11184 ac_res=`eval echo '${'$as_ac_var'}'`
11185 { echo "$as_me:$LINENO: result: $ac_res" >&5
11186 echo "${ECHO_T}$ac_res" >&6; }
11187 if test `eval echo '${'$as_ac_var'}'` = yes; then
11188 cat >>confdefs.h <<_ACEOF
11189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11190 _ACEOF
11191 break
11193 done
11197 for ac_func in strrchr rindex
11199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11200 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11202 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 else
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h. */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11213 #define $ac_func innocuous_$ac_func
11215 /* System header to define __stub macros and hopefully few prototypes,
11216 which can conflict with char $ac_func (); below.
11217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11218 <limits.h> exists even on freestanding compilers. */
11220 #ifdef __STDC__
11221 # include <limits.h>
11222 #else
11223 # include <assert.h>
11224 #endif
11226 #undef $ac_func
11228 /* Override any GCC internal prototype to avoid an error.
11229 Use char because int might match the return type of a GCC
11230 builtin and then its argument prototype would still apply. */
11231 #ifdef __cplusplus
11232 extern "C"
11233 #endif
11234 char $ac_func ();
11235 /* The GNU C library defines this for functions which it implements
11236 to always fail with ENOSYS. Some functions are actually named
11237 something starting with __ and the normal name is an alias. */
11238 #if defined __stub_$ac_func || defined __stub___$ac_func
11239 choke me
11240 #endif
11243 main ()
11245 return $ac_func ();
11247 return 0;
11249 _ACEOF
11250 rm -f conftest.$ac_objext conftest$ac_exeext
11251 if { (ac_try="$ac_link"
11252 case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11255 esac
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_link") 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } && {
11264 test -z "$ac_c_werror_flag" ||
11265 test ! -s conftest.err
11266 } && test -s conftest$ac_exeext &&
11267 $as_test_x conftest$ac_exeext; then
11268 eval "$as_ac_var=yes"
11269 else
11270 echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11273 eval "$as_ac_var=no"
11276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11277 conftest$ac_exeext conftest.$ac_ext
11279 ac_res=`eval echo '${'$as_ac_var'}'`
11280 { echo "$as_me:$LINENO: result: $ac_res" >&5
11281 echo "${ECHO_T}$ac_res" >&6; }
11282 if test `eval echo '${'$as_ac_var'}'` = yes; then
11283 cat >>confdefs.h <<_ACEOF
11284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11285 _ACEOF
11286 break
11288 done
11292 for ac_func in memcpy bcopy
11294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11295 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300 cat >conftest.$ac_ext <<_ACEOF
11301 /* confdefs.h. */
11302 _ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11308 #define $ac_func innocuous_$ac_func
11310 /* System header to define __stub macros and hopefully few prototypes,
11311 which can conflict with char $ac_func (); below.
11312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11313 <limits.h> exists even on freestanding compilers. */
11315 #ifdef __STDC__
11316 # include <limits.h>
11317 #else
11318 # include <assert.h>
11319 #endif
11321 #undef $ac_func
11323 /* Override any GCC internal prototype to avoid an error.
11324 Use char because int might match the return type of a GCC
11325 builtin and then its argument prototype would still apply. */
11326 #ifdef __cplusplus
11327 extern "C"
11328 #endif
11329 char $ac_func ();
11330 /* The GNU C library defines this for functions which it implements
11331 to always fail with ENOSYS. Some functions are actually named
11332 something starting with __ and the normal name is an alias. */
11333 #if defined __stub_$ac_func || defined __stub___$ac_func
11334 choke me
11335 #endif
11338 main ()
11340 return $ac_func ();
11342 return 0;
11344 _ACEOF
11345 rm -f conftest.$ac_objext conftest$ac_exeext
11346 if { (ac_try="$ac_link"
11347 case "(($ac_try" in
11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11350 esac
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352 (eval "$ac_link") 2>conftest.er1
11353 ac_status=$?
11354 grep -v '^ *+' conftest.er1 >conftest.err
11355 rm -f conftest.er1
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } && {
11359 test -z "$ac_c_werror_flag" ||
11360 test ! -s conftest.err
11361 } && test -s conftest$ac_exeext &&
11362 $as_test_x conftest$ac_exeext; then
11363 eval "$as_ac_var=yes"
11364 else
11365 echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.$ac_ext >&5
11368 eval "$as_ac_var=no"
11371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11372 conftest$ac_exeext conftest.$ac_ext
11374 ac_res=`eval echo '${'$as_ac_var'}'`
11375 { echo "$as_me:$LINENO: result: $ac_res" >&5
11376 echo "${ECHO_T}$ac_res" >&6; }
11377 if test `eval echo '${'$as_ac_var'}'` = yes; then
11378 cat >>confdefs.h <<_ACEOF
11379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11380 _ACEOF
11381 break
11383 done
11387 for ac_func in memmove strcmp
11389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 else
11395 cat >conftest.$ac_ext <<_ACEOF
11396 /* confdefs.h. */
11397 _ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11403 #define $ac_func innocuous_$ac_func
11405 /* System header to define __stub macros and hopefully few prototypes,
11406 which can conflict with char $ac_func (); below.
11407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11408 <limits.h> exists even on freestanding compilers. */
11410 #ifdef __STDC__
11411 # include <limits.h>
11412 #else
11413 # include <assert.h>
11414 #endif
11416 #undef $ac_func
11418 /* Override any GCC internal prototype to avoid an error.
11419 Use char because int might match the return type of a GCC
11420 builtin and then its argument prototype would still apply. */
11421 #ifdef __cplusplus
11422 extern "C"
11423 #endif
11424 char $ac_func ();
11425 /* The GNU C library defines this for functions which it implements
11426 to always fail with ENOSYS. Some functions are actually named
11427 something starting with __ and the normal name is an alias. */
11428 #if defined __stub_$ac_func || defined __stub___$ac_func
11429 choke me
11430 #endif
11433 main ()
11435 return $ac_func ();
11437 return 0;
11439 _ACEOF
11440 rm -f conftest.$ac_objext conftest$ac_exeext
11441 if { (ac_try="$ac_link"
11442 case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11445 esac
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_link") 2>conftest.er1
11448 ac_status=$?
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } && {
11454 test -z "$ac_c_werror_flag" ||
11455 test ! -s conftest.err
11456 } && test -s conftest$ac_exeext &&
11457 $as_test_x conftest$ac_exeext; then
11458 eval "$as_ac_var=yes"
11459 else
11460 echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11463 eval "$as_ac_var=no"
11466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11467 conftest$ac_exeext conftest.$ac_ext
11469 ac_res=`eval echo '${'$as_ac_var'}'`
11470 { echo "$as_me:$LINENO: result: $ac_res" >&5
11471 echo "${ECHO_T}$ac_res" >&6; }
11472 if test `eval echo '${'$as_ac_var'}'` = yes; then
11473 cat >>confdefs.h <<_ACEOF
11474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11475 _ACEOF
11478 done
11483 for ac_func in closedir opendir readdir
11485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11486 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11488 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11490 else
11491 cat >conftest.$ac_ext <<_ACEOF
11492 /* confdefs.h. */
11493 _ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h. */
11497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11499 #define $ac_func innocuous_$ac_func
11501 /* System header to define __stub macros and hopefully few prototypes,
11502 which can conflict with char $ac_func (); below.
11503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11504 <limits.h> exists even on freestanding compilers. */
11506 #ifdef __STDC__
11507 # include <limits.h>
11508 #else
11509 # include <assert.h>
11510 #endif
11512 #undef $ac_func
11514 /* Override any GCC internal prototype to avoid an error.
11515 Use char because int might match the return type of a GCC
11516 builtin and then its argument prototype would still apply. */
11517 #ifdef __cplusplus
11518 extern "C"
11519 #endif
11520 char $ac_func ();
11521 /* The GNU C library defines this for functions which it implements
11522 to always fail with ENOSYS. Some functions are actually named
11523 something starting with __ and the normal name is an alias. */
11524 #if defined __stub_$ac_func || defined __stub___$ac_func
11525 choke me
11526 #endif
11529 main ()
11531 return $ac_func ();
11533 return 0;
11535 _ACEOF
11536 rm -f conftest.$ac_objext conftest$ac_exeext
11537 if { (ac_try="$ac_link"
11538 case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11541 esac
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_link") 2>conftest.er1
11544 ac_status=$?
11545 grep -v '^ *+' conftest.er1 >conftest.err
11546 rm -f conftest.er1
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } && {
11550 test -z "$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11552 } && test -s conftest$ac_exeext &&
11553 $as_test_x conftest$ac_exeext; then
11554 eval "$as_ac_var=yes"
11555 else
11556 echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11559 eval "$as_ac_var=no"
11562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11563 conftest$ac_exeext conftest.$ac_ext
11565 ac_res=`eval echo '${'$as_ac_var'}'`
11566 { echo "$as_me:$LINENO: result: $ac_res" >&5
11567 echo "${ECHO_T}$ac_res" >&6; }
11568 if test `eval echo '${'$as_ac_var'}'` = yes; then
11569 cat >>confdefs.h <<_ACEOF
11570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11571 _ACEOF
11574 done
11577 # Check whether --enable-shared was given.
11578 if test "${enable_shared+set}" = set; then
11579 enableval=$enable_shared; p=${PACKAGE-default}
11580 case $enableval in
11581 yes) enable_shared=yes ;;
11582 no) enable_shared=no ;;
11584 enable_shared=no
11585 # Look at the argument we got. We use all the common list separators.
11586 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11587 for pkg in $enableval; do
11588 IFS="$lt_save_ifs"
11589 if test "X$pkg" = "X$p"; then
11590 enable_shared=yes
11592 done
11593 IFS="$lt_save_ifs"
11595 esac
11596 else
11597 enable_shared=yes
11601 # Check whether --enable-static was given.
11602 if test "${enable_static+set}" = set; then
11603 enableval=$enable_static; p=${PACKAGE-default}
11604 case $enableval in
11605 yes) enable_static=yes ;;
11606 no) enable_static=no ;;
11608 enable_static=no
11609 # Look at the argument we got. We use all the common list separators.
11610 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11611 for pkg in $enableval; do
11612 IFS="$lt_save_ifs"
11613 if test "X$pkg" = "X$p"; then
11614 enable_static=yes
11616 done
11617 IFS="$lt_save_ifs"
11619 esac
11620 else
11621 enable_static=yes
11625 # Check whether --enable-fast-install was given.
11626 if test "${enable_fast_install+set}" = set; then
11627 enableval=$enable_fast_install; p=${PACKAGE-default}
11628 case $enableval in
11629 yes) enable_fast_install=yes ;;
11630 no) enable_fast_install=no ;;
11632 enable_fast_install=no
11633 # Look at the argument we got. We use all the common list separators.
11634 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11635 for pkg in $enableval; do
11636 IFS="$lt_save_ifs"
11637 if test "X$pkg" = "X$p"; then
11638 enable_fast_install=yes
11640 done
11641 IFS="$lt_save_ifs"
11643 esac
11644 else
11645 enable_fast_install=yes
11649 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11650 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11651 if test "${lt_cv_path_SED+set}" = set; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 else
11654 # Loop through the user's path and test for sed and gsed.
11655 # Then use that list of sed's as ones to test for truncation.
11656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657 for as_dir in $PATH
11659 IFS=$as_save_IFS
11660 test -z "$as_dir" && as_dir=.
11661 for lt_ac_prog in sed gsed; do
11662 for ac_exec_ext in '' $ac_executable_extensions; do
11663 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11664 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11666 done
11667 done
11668 done
11669 lt_ac_max=0
11670 lt_ac_count=0
11671 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11672 # along with /bin/sed that truncates output.
11673 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11674 test ! -f $lt_ac_sed && continue
11675 cat /dev/null > conftest.in
11676 lt_ac_count=0
11677 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11678 # Check for GNU sed and select it if it is found.
11679 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11680 lt_cv_path_SED=$lt_ac_sed
11681 break
11683 while true; do
11684 cat conftest.in conftest.in >conftest.tmp
11685 mv conftest.tmp conftest.in
11686 cp conftest.in conftest.nl
11687 echo >>conftest.nl
11688 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11689 cmp -s conftest.out conftest.nl || break
11690 # 10000 chars as input seems more than enough
11691 test $lt_ac_count -gt 10 && break
11692 lt_ac_count=`expr $lt_ac_count + 1`
11693 if test $lt_ac_count -gt $lt_ac_max; then
11694 lt_ac_max=$lt_ac_count
11695 lt_cv_path_SED=$lt_ac_sed
11697 done
11698 done
11702 SED=$lt_cv_path_SED
11703 { echo "$as_me:$LINENO: result: $SED" >&5
11704 echo "${ECHO_T}$SED" >&6; }
11707 # Check whether --with-gnu-ld was given.
11708 if test "${with_gnu_ld+set}" = set; then
11709 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11710 else
11711 with_gnu_ld=no
11714 ac_prog=ld
11715 if test "$GCC" = yes; then
11716 # Check if gcc -print-prog-name=ld gives a path.
11717 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11718 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11719 case $host in
11720 *-*-mingw*)
11721 # gcc leaves a trailing carriage return which upsets mingw
11722 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11724 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11725 esac
11726 case $ac_prog in
11727 # Accept absolute paths.
11728 [\\/]* | ?:[\\/]*)
11729 re_direlt='/[^/][^/]*/\.\./'
11730 # Canonicalize the pathname of ld
11731 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11732 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11733 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11734 done
11735 test -z "$LD" && LD="$ac_prog"
11738 # If it fails, then pretend we aren't using GCC.
11739 ac_prog=ld
11742 # If it is relative, then search for the first ld in PATH.
11743 with_gnu_ld=unknown
11745 esac
11746 elif test "$with_gnu_ld" = yes; then
11747 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11748 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11749 else
11750 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11751 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11753 if test "${lt_cv_path_LD+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756 if test -z "$LD"; then
11757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11758 for ac_dir in $PATH; do
11759 IFS="$lt_save_ifs"
11760 test -z "$ac_dir" && ac_dir=.
11761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11762 lt_cv_path_LD="$ac_dir/$ac_prog"
11763 # Check to see if the program is GNU ld. I'd rather use --version,
11764 # but apparently some variants of GNU ld only accept -v.
11765 # Break only if it was the GNU/non-GNU ld that we prefer.
11766 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11767 *GNU* | *'with BFD'*)
11768 test "$with_gnu_ld" != no && break
11771 test "$with_gnu_ld" != yes && break
11773 esac
11775 done
11776 IFS="$lt_save_ifs"
11777 else
11778 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11782 LD="$lt_cv_path_LD"
11783 if test -n "$LD"; then
11784 { echo "$as_me:$LINENO: result: $LD" >&5
11785 echo "${ECHO_T}$LD" >&6; }
11786 else
11787 { echo "$as_me:$LINENO: result: no" >&5
11788 echo "${ECHO_T}no" >&6; }
11790 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11791 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11792 { (exit 1); exit 1; }; }
11793 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11794 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11795 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11799 case `$LD -v 2>&1 </dev/null` in
11800 *GNU* | *'with BFD'*)
11801 lt_cv_prog_gnu_ld=yes
11804 lt_cv_prog_gnu_ld=no
11806 esac
11808 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11809 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11810 with_gnu_ld=$lt_cv_prog_gnu_ld
11813 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11814 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
11815 if test "${lt_cv_ld_reload_flag+set}" = set; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 else
11818 lt_cv_ld_reload_flag='-r'
11820 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11821 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
11822 reload_flag=$lt_cv_ld_reload_flag
11823 case $reload_flag in
11824 "" | " "*) ;;
11825 *) reload_flag=" $reload_flag" ;;
11826 esac
11827 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11828 case $host_os in
11829 darwin*)
11830 if test "$GCC" = yes; then
11831 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
11832 else
11833 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11836 esac
11838 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11839 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
11840 if test "${lt_cv_deplibs_check_method+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11842 else
11843 lt_cv_file_magic_cmd='$MAGIC_CMD'
11844 lt_cv_file_magic_test_file=
11845 lt_cv_deplibs_check_method='unknown'
11846 # Need to set the preceding variable on all platforms that support
11847 # interlibrary dependencies.
11848 # 'none' -- dependencies not supported.
11849 # `unknown' -- same as none, but documents that we really don't know.
11850 # 'pass_all' -- all dependencies passed with no checks.
11851 # 'test_compile' -- check by making test program.
11852 # 'file_magic [[regex]]' -- check by looking for files in library path
11853 # which responds to the $file_magic_cmd with a given extended regex.
11854 # If you have `file' or equivalent on your system and you're not sure
11855 # whether `pass_all' will *always* work, you probably want this one.
11857 case $host_os in
11858 aix4* | aix5*)
11859 lt_cv_deplibs_check_method=pass_all
11862 beos*)
11863 lt_cv_deplibs_check_method=pass_all
11866 bsdi[45]*)
11867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11868 lt_cv_file_magic_cmd='/usr/bin/file -L'
11869 lt_cv_file_magic_test_file=/shlib/libc.so
11872 cygwin*)
11873 # func_win32_libid is a shell function defined in ltmain.sh
11874 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11875 lt_cv_file_magic_cmd='func_win32_libid'
11878 mingw* | pw32*)
11879 # Base MSYS/MinGW do not provide the 'file' command needed by
11880 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11881 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11882 lt_cv_file_magic_cmd='$OBJDUMP -f'
11885 darwin* | rhapsody*)
11886 lt_cv_deplibs_check_method=pass_all
11889 freebsd* | kfreebsd*-gnu | dragonfly*)
11890 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11891 case $host_cpu in
11892 i*86 )
11893 # Not sure whether the presence of OpenBSD here was a mistake.
11894 # Let's accept both of them until this is cleared up.
11895 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11896 lt_cv_file_magic_cmd=/usr/bin/file
11897 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11899 esac
11900 else
11901 lt_cv_deplibs_check_method=pass_all
11905 gnu*)
11906 lt_cv_deplibs_check_method=pass_all
11909 hpux10.20* | hpux11*)
11910 lt_cv_file_magic_cmd=/usr/bin/file
11911 case $host_cpu in
11912 ia64*)
11913 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11914 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11916 hppa*64*)
11917 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]'
11918 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11921 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11922 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11924 esac
11927 interix3*)
11928 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11932 irix5* | irix6* | nonstopux*)
11933 case $LD in
11934 *-32|*"-32 ") libmagic=32-bit;;
11935 *-n32|*"-n32 ") libmagic=N32;;
11936 *-64|*"-64 ") libmagic=64-bit;;
11937 *) libmagic=never-match;;
11938 esac
11939 lt_cv_deplibs_check_method=pass_all
11942 # This must be Linux ELF.
11943 linux*)
11944 lt_cv_deplibs_check_method=pass_all
11947 netbsd*)
11948 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11950 else
11951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11955 newos6*)
11956 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11957 lt_cv_file_magic_cmd=/usr/bin/file
11958 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11961 nto-qnx*)
11962 lt_cv_deplibs_check_method=unknown
11965 openbsd*)
11966 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11968 else
11969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11973 osf3* | osf4* | osf5*)
11974 lt_cv_deplibs_check_method=pass_all
11977 solaris*)
11978 lt_cv_deplibs_check_method=pass_all
11981 sysv4 | sysv4.3*)
11982 case $host_vendor in
11983 motorola)
11984 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]'
11985 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11987 ncr)
11988 lt_cv_deplibs_check_method=pass_all
11990 sequent)
11991 lt_cv_file_magic_cmd='/bin/file'
11992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11994 sni)
11995 lt_cv_file_magic_cmd='/bin/file'
11996 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11997 lt_cv_file_magic_test_file=/lib/libc.so
11999 siemens)
12000 lt_cv_deplibs_check_method=pass_all
12003 lt_cv_deplibs_check_method=pass_all
12005 esac
12008 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12009 lt_cv_deplibs_check_method=pass_all
12011 esac
12014 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12015 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12016 file_magic_cmd=$lt_cv_file_magic_cmd
12017 deplibs_check_method=$lt_cv_deplibs_check_method
12018 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12022 # If no C compiler was specified, use CC.
12023 LTCC=${LTCC-"$CC"}
12025 # If no C compiler flags were specified, use CFLAGS.
12026 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12028 # Allow CC to be a program name with arguments.
12029 compiler=$CC
12031 # Check whether --enable-libtool-lock was given.
12032 if test "${enable_libtool_lock+set}" = set; then
12033 enableval=$enable_libtool_lock;
12036 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12038 # Some flags need to be propagated to the compiler or linker for good
12039 # libtool support.
12040 case $host in
12041 ia64-*-hpux*)
12042 # Find out which ABI we are using.
12043 echo 'int i;' > conftest.$ac_ext
12044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12045 (eval $ac_compile) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; then
12049 case `/usr/bin/file conftest.$ac_objext` in
12050 *ELF-32*)
12051 HPUX_IA64_MODE="32"
12053 *ELF-64*)
12054 HPUX_IA64_MODE="64"
12056 esac
12058 rm -rf conftest*
12060 *-*-irix6*)
12061 # Find out which ABI we are using.
12062 echo '#line 12062 "configure"' > conftest.$ac_ext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064 (eval $ac_compile) 2>&5
12065 ac_status=$?
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; then
12068 if test "$lt_cv_prog_gnu_ld" = yes; then
12069 case `/usr/bin/file conftest.$ac_objext` in
12070 *32-bit*)
12071 LD="${LD-ld} -melf32bsmip"
12073 *N32*)
12074 LD="${LD-ld} -melf32bmipn32"
12076 *64-bit*)
12077 LD="${LD-ld} -melf64bmip"
12079 esac
12080 else
12081 case `/usr/bin/file conftest.$ac_objext` in
12082 *32-bit*)
12083 LD="${LD-ld} -32"
12085 *N32*)
12086 LD="${LD-ld} -n32"
12088 *64-bit*)
12089 LD="${LD-ld} -64"
12091 esac
12094 rm -rf conftest*
12097 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12098 # Find out which ABI we are using.
12099 echo 'int i;' > conftest.$ac_ext
12100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12101 (eval $ac_compile) 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; then
12105 case `/usr/bin/file conftest.o` in
12106 *32-bit*)
12107 case $host in
12108 x86_64-*linux*)
12109 LD="${LD-ld} -m elf_i386"
12111 ppc64-*linux*|powerpc64-*linux*)
12112 LD="${LD-ld} -m elf32ppclinux"
12114 s390x-*linux*)
12115 LD="${LD-ld} -m elf_s390"
12117 sparc64-*linux*)
12118 LD="${LD-ld} -m elf32_sparc"
12120 esac
12122 *64-bit*)
12123 case $host in
12124 x86_64-*linux*)
12125 LD="${LD-ld} -m elf_x86_64"
12127 ppc*-*linux*|powerpc*-*linux*)
12128 LD="${LD-ld} -m elf64ppc"
12130 s390*-*linux*)
12131 LD="${LD-ld} -m elf64_s390"
12133 sparc*-*linux*)
12134 LD="${LD-ld} -m elf64_sparc"
12136 esac
12138 esac
12140 rm -rf conftest*
12143 *-*-sco3.2v5*)
12144 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12145 SAVE_CFLAGS="$CFLAGS"
12146 CFLAGS="$CFLAGS -belf"
12147 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12148 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12149 if test "${lt_cv_cc_needs_belf+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 else
12152 ac_ext=c
12153 ac_cpp='$CPP $CPPFLAGS'
12154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12158 cat >conftest.$ac_ext <<_ACEOF
12159 /* confdefs.h. */
12160 _ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h. */
12166 main ()
12170 return 0;
12172 _ACEOF
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (ac_try="$ac_link"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178 esac
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_link") 2>conftest.er1
12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } && {
12187 test -z "$ac_c_werror_flag" ||
12188 test ! -s conftest.err
12189 } && test -s conftest$ac_exeext &&
12190 $as_test_x conftest$ac_exeext; then
12191 lt_cv_cc_needs_belf=yes
12192 else
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 lt_cv_cc_needs_belf=no
12199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12200 conftest$ac_exeext conftest.$ac_ext
12201 ac_ext=c
12202 ac_cpp='$CPP $CPPFLAGS'
12203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12208 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12209 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12210 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12211 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12212 CFLAGS="$SAVE_CFLAGS"
12215 sparc*-*solaris*)
12216 # Find out which ABI we are using.
12217 echo 'int i;' > conftest.$ac_ext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12219 (eval $ac_compile) 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; then
12223 case `/usr/bin/file conftest.o` in
12224 *64-bit*)
12225 case $lt_cv_prog_gnu_ld in
12226 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12227 *) LD="${LD-ld} -64" ;;
12228 esac
12230 esac
12232 rm -rf conftest*
12236 esac
12238 need_locks="$enable_libtool_lock"
12243 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12244 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12245 (test "X$CXX" != "Xg++"))) ; then
12246 ac_ext=cpp
12247 ac_cpp='$CXXCPP $CPPFLAGS'
12248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12251 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12252 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12253 if test -z "$CXXCPP"; then
12254 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257 # Double quotes because CXXCPP needs to be expanded
12258 for CXXCPP in "$CXX -E" "/lib/cpp"
12260 ac_preproc_ok=false
12261 for ac_cxx_preproc_warn_flag in '' yes
12263 # Use a header file that comes with gcc, so configuring glibc
12264 # with a fresh cross-compiler works.
12265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12266 # <limits.h> exists even on freestanding compilers.
12267 # On the NeXT, cc -E runs the code through the compiler's parser,
12268 # not just through cpp. "Syntax error" is here to catch this case.
12269 cat >conftest.$ac_ext <<_ACEOF
12270 /* confdefs.h. */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12275 #ifdef __STDC__
12276 # include <limits.h>
12277 #else
12278 # include <assert.h>
12279 #endif
12280 Syntax error
12281 _ACEOF
12282 if { (ac_try="$ac_cpp conftest.$ac_ext"
12283 case "(($ac_try" in
12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12286 esac
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12289 ac_status=$?
12290 grep -v '^ *+' conftest.er1 >conftest.err
12291 rm -f conftest.er1
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } >/dev/null && {
12295 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12296 test ! -s conftest.err
12297 }; then
12299 else
12300 echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12303 # Broken: fails on valid input.
12304 continue
12307 rm -f conftest.err conftest.$ac_ext
12309 # OK, works on sane cases. Now check whether nonexistent headers
12310 # can be detected and how.
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h. */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 #include <ac_nonexistent.h>
12318 _ACEOF
12319 if { (ac_try="$ac_cpp conftest.$ac_ext"
12320 case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12323 esac
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12326 ac_status=$?
12327 grep -v '^ *+' conftest.er1 >conftest.err
12328 rm -f conftest.er1
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } >/dev/null && {
12332 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12333 test ! -s conftest.err
12334 }; then
12335 # Broken: success on invalid input.
12336 continue
12337 else
12338 echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12341 # Passes both tests.
12342 ac_preproc_ok=:
12343 break
12346 rm -f conftest.err conftest.$ac_ext
12348 done
12349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12350 rm -f conftest.err conftest.$ac_ext
12351 if $ac_preproc_ok; then
12352 break
12355 done
12356 ac_cv_prog_CXXCPP=$CXXCPP
12359 CXXCPP=$ac_cv_prog_CXXCPP
12360 else
12361 ac_cv_prog_CXXCPP=$CXXCPP
12363 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12364 echo "${ECHO_T}$CXXCPP" >&6; }
12365 ac_preproc_ok=false
12366 for ac_cxx_preproc_warn_flag in '' yes
12368 # Use a header file that comes with gcc, so configuring glibc
12369 # with a fresh cross-compiler works.
12370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12371 # <limits.h> exists even on freestanding compilers.
12372 # On the NeXT, cc -E runs the code through the compiler's parser,
12373 # not just through cpp. "Syntax error" is here to catch this case.
12374 cat >conftest.$ac_ext <<_ACEOF
12375 /* confdefs.h. */
12376 _ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12380 #ifdef __STDC__
12381 # include <limits.h>
12382 #else
12383 # include <assert.h>
12384 #endif
12385 Syntax error
12386 _ACEOF
12387 if { (ac_try="$ac_cpp conftest.$ac_ext"
12388 case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12391 esac
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12394 ac_status=$?
12395 grep -v '^ *+' conftest.er1 >conftest.err
12396 rm -f conftest.er1
12397 cat conftest.err >&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } >/dev/null && {
12400 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12401 test ! -s conftest.err
12402 }; then
12404 else
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12408 # Broken: fails on valid input.
12409 continue
12412 rm -f conftest.err conftest.$ac_ext
12414 # OK, works on sane cases. Now check whether nonexistent headers
12415 # can be detected and how.
12416 cat >conftest.$ac_ext <<_ACEOF
12417 /* confdefs.h. */
12418 _ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12422 #include <ac_nonexistent.h>
12423 _ACEOF
12424 if { (ac_try="$ac_cpp conftest.$ac_ext"
12425 case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12428 esac
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12431 ac_status=$?
12432 grep -v '^ *+' conftest.er1 >conftest.err
12433 rm -f conftest.er1
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } >/dev/null && {
12437 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12438 test ! -s conftest.err
12439 }; then
12440 # Broken: success on invalid input.
12441 continue
12442 else
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 # Passes both tests.
12447 ac_preproc_ok=:
12448 break
12451 rm -f conftest.err conftest.$ac_ext
12453 done
12454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12455 rm -f conftest.err conftest.$ac_ext
12456 if $ac_preproc_ok; then
12458 else
12459 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12460 See \`config.log' for more details." >&5
12461 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12462 See \`config.log' for more details." >&2;}
12463 { (exit 1); exit 1; }; }
12466 ac_ext=cpp
12467 ac_cpp='$CXXCPP $CPPFLAGS'
12468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12475 ac_ext=f
12476 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12477 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12478 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12479 if test -n "$ac_tool_prefix"; then
12480 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
12482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12486 if test "${ac_cv_prog_F77+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 else
12489 if test -n "$F77"; then
12490 ac_cv_prog_F77="$F77" # Let the user override the test.
12491 else
12492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 for as_dir in $PATH
12495 IFS=$as_save_IFS
12496 test -z "$as_dir" && as_dir=.
12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12499 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12501 break 2
12503 done
12504 done
12505 IFS=$as_save_IFS
12509 F77=$ac_cv_prog_F77
12510 if test -n "$F77"; then
12511 { echo "$as_me:$LINENO: result: $F77" >&5
12512 echo "${ECHO_T}$F77" >&6; }
12513 else
12514 { echo "$as_me:$LINENO: result: no" >&5
12515 echo "${ECHO_T}no" >&6; }
12519 test -n "$F77" && break
12520 done
12522 if test -z "$F77"; then
12523 ac_ct_F77=$F77
12524 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
12526 # Extract the first word of "$ac_prog", so it can be a program name with args.
12527 set dummy $ac_prog; ac_word=$2
12528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12530 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 else
12533 if test -n "$ac_ct_F77"; then
12534 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12535 else
12536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537 for as_dir in $PATH
12539 IFS=$as_save_IFS
12540 test -z "$as_dir" && as_dir=.
12541 for ac_exec_ext in '' $ac_executable_extensions; do
12542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12543 ac_cv_prog_ac_ct_F77="$ac_prog"
12544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12545 break 2
12547 done
12548 done
12549 IFS=$as_save_IFS
12553 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12554 if test -n "$ac_ct_F77"; then
12555 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12556 echo "${ECHO_T}$ac_ct_F77" >&6; }
12557 else
12558 { echo "$as_me:$LINENO: result: no" >&5
12559 echo "${ECHO_T}no" >&6; }
12563 test -n "$ac_ct_F77" && break
12564 done
12566 if test "x$ac_ct_F77" = x; then
12567 F77=""
12568 else
12569 case $cross_compiling:$ac_tool_warned in
12570 yes:)
12571 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12572 whose name does not start with the host triplet. If you think this
12573 configuration is useful to you, please write to autoconf@gnu.org." >&5
12574 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12575 whose name does not start with the host triplet. If you think this
12576 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12577 ac_tool_warned=yes ;;
12578 esac
12579 F77=$ac_ct_F77
12584 # Provide some information about the compiler.
12585 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12586 ac_compiler=`set X $ac_compile; echo $2`
12587 { (ac_try="$ac_compiler --version >&5"
12588 case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12591 esac
12592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_compiler --version >&5") 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }
12597 { (ac_try="$ac_compiler -v >&5"
12598 case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12601 esac
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_compiler -v >&5") 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }
12607 { (ac_try="$ac_compiler -V >&5"
12608 case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_compiler -V >&5") 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }
12617 rm -f a.out
12619 # If we don't use `.F' as extension, the preprocessor is not run on the
12620 # input file. (Note that this only needs to work for GNU compilers.)
12621 ac_save_ext=$ac_ext
12622 ac_ext=F
12623 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12624 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12625 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 else
12628 cat >conftest.$ac_ext <<_ACEOF
12629 program main
12630 #ifndef __GNUC__
12631 choke me
12632 #endif
12635 _ACEOF
12636 rm -f conftest.$ac_objext
12637 if { (ac_try="$ac_compile"
12638 case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12641 esac
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_compile") 2>conftest.er1
12644 ac_status=$?
12645 grep -v '^ *+' conftest.er1 >conftest.err
12646 rm -f conftest.er1
12647 cat conftest.err >&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } && {
12650 test -z "$ac_f77_werror_flag" ||
12651 test ! -s conftest.err
12652 } && test -s conftest.$ac_objext; then
12653 ac_compiler_gnu=yes
12654 else
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12658 ac_compiler_gnu=no
12661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12662 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12665 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12666 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12667 ac_ext=$ac_save_ext
12668 ac_test_FFLAGS=${FFLAGS+set}
12669 ac_save_FFLAGS=$FFLAGS
12670 FFLAGS=
12671 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12672 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12673 if test "${ac_cv_prog_f77_g+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12676 FFLAGS=-g
12677 cat >conftest.$ac_ext <<_ACEOF
12678 program main
12681 _ACEOF
12682 rm -f conftest.$ac_objext
12683 if { (ac_try="$ac_compile"
12684 case "(($ac_try" in
12685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12687 esac
12688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689 (eval "$ac_compile") 2>conftest.er1
12690 ac_status=$?
12691 grep -v '^ *+' conftest.er1 >conftest.err
12692 rm -f conftest.er1
12693 cat conftest.err >&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } && {
12696 test -z "$ac_f77_werror_flag" ||
12697 test ! -s conftest.err
12698 } && test -s conftest.$ac_objext; then
12699 ac_cv_prog_f77_g=yes
12700 else
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12704 ac_cv_prog_f77_g=no
12707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12710 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12711 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12712 if test "$ac_test_FFLAGS" = set; then
12713 FFLAGS=$ac_save_FFLAGS
12714 elif test $ac_cv_prog_f77_g = yes; then
12715 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12716 FFLAGS="-g -O2"
12717 else
12718 FFLAGS="-g"
12720 else
12721 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12722 FFLAGS="-O2"
12723 else
12724 FFLAGS=
12728 G77=`test $ac_compiler_gnu = yes && echo yes`
12729 ac_ext=c
12730 ac_cpp='$CPP $CPPFLAGS'
12731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12737 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12739 # find the maximum length of command line arguments
12740 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12741 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12742 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 else
12746 teststring="ABCD"
12748 case $build_os in
12749 msdosdjgpp*)
12750 # On DJGPP, this test can blow up pretty badly due to problems in libc
12751 # (any single argument exceeding 2000 bytes causes a buffer overrun
12752 # during glob expansion). Even if it were fixed, the result of this
12753 # check would be larger than it should be.
12754 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12757 gnu*)
12758 # Under GNU Hurd, this test is not required because there is
12759 # no limit to the length of command line arguments.
12760 # Libtool will interpret -1 as no limit whatsoever
12761 lt_cv_sys_max_cmd_len=-1;
12764 cygwin* | mingw*)
12765 # On Win9x/ME, this test blows up -- it succeeds, but takes
12766 # about 5 minutes as the teststring grows exponentially.
12767 # Worse, since 9x/ME are not pre-emptively multitasking,
12768 # you end up with a "frozen" computer, even though with patience
12769 # the test eventually succeeds (with a max line length of 256k).
12770 # Instead, let's just punt: use the minimum linelength reported by
12771 # all of the supported platforms: 8192 (on NT/2K/XP).
12772 lt_cv_sys_max_cmd_len=8192;
12775 amigaos*)
12776 # On AmigaOS with pdksh, this test takes hours, literally.
12777 # So we just punt and use a minimum line length of 8192.
12778 lt_cv_sys_max_cmd_len=8192;
12781 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12782 # This has been around since 386BSD, at least. Likely further.
12783 if test -x /sbin/sysctl; then
12784 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12785 elif test -x /usr/sbin/sysctl; then
12786 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12787 else
12788 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12790 # And add a safety zone
12791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12795 interix*)
12796 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12797 lt_cv_sys_max_cmd_len=196608
12800 osf*)
12801 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12802 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12803 # nice to cause kernel panics so lets avoid the loop below.
12804 # First set a reasonable default.
12805 lt_cv_sys_max_cmd_len=16384
12807 if test -x /sbin/sysconfig; then
12808 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12809 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12810 esac
12813 sco3.2v5*)
12814 lt_cv_sys_max_cmd_len=102400
12816 sysv5* | sco5v6* | sysv4.2uw2*)
12817 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12818 if test -n "$kargmax"; then
12819 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12820 else
12821 lt_cv_sys_max_cmd_len=32768
12825 # If test is not a shell built-in, we'll probably end up computing a
12826 # maximum length that is only half of the actual maximum length, but
12827 # we can't tell.
12828 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12829 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12830 = "XX$teststring") >/dev/null 2>&1 &&
12831 new_result=`expr "X$teststring" : ".*" 2>&1` &&
12832 lt_cv_sys_max_cmd_len=$new_result &&
12833 test $i != 17 # 1/2 MB should be enough
12835 i=`expr $i + 1`
12836 teststring=$teststring$teststring
12837 done
12838 teststring=
12839 # Add a significant safety factor because C++ compilers can tack on massive
12840 # amounts of additional arguments before passing them to the linker.
12841 # It appears as though 1/2 is a usable value.
12842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12844 esac
12848 if test -n $lt_cv_sys_max_cmd_len ; then
12849 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12850 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12851 else
12852 { echo "$as_me:$LINENO: result: none" >&5
12853 echo "${ECHO_T}none" >&6; }
12859 # Check for command to grab the raw symbol name followed by C symbol from nm.
12860 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12861 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12862 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12864 else
12866 # These are sane defaults that work on at least a few old systems.
12867 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12869 # Character class describing NM global symbol codes.
12870 symcode='[BCDEGRST]'
12872 # Regexp to match symbols that can be accessed directly from C.
12873 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12875 # Transform an extracted symbol line into a proper C declaration
12876 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12878 # Transform an extracted symbol line into symbol name and symbol address
12879 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'"
12881 # Define system-specific variables.
12882 case $host_os in
12883 aix*)
12884 symcode='[BCDT]'
12886 cygwin* | mingw* | pw32*)
12887 symcode='[ABCDGISTW]'
12889 hpux*) # Its linker distinguishes data from code symbols
12890 if test "$host_cpu" = ia64; then
12891 symcode='[ABCDEGRST]'
12893 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12894 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'"
12896 linux*)
12897 if test "$host_cpu" = ia64; then
12898 symcode='[ABCDGIRSTW]'
12899 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12900 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'"
12903 irix* | nonstopux*)
12904 symcode='[BCDEGRST]'
12906 osf*)
12907 symcode='[BCDEGQRST]'
12909 solaris*)
12910 symcode='[BDRT]'
12912 sco3.2v5*)
12913 symcode='[DT]'
12915 sysv4.2uw2*)
12916 symcode='[DT]'
12918 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12919 symcode='[ABDT]'
12921 sysv4)
12922 symcode='[DFNSTU]'
12924 esac
12926 # Handle CRLF in mingw tool chain
12927 opt_cr=
12928 case $build_os in
12929 mingw*)
12930 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12932 esac
12934 # If we're using GNU nm, then use its standard symbol codes.
12935 case `$NM -V 2>&1` in
12936 *GNU* | *'with BFD'*)
12937 symcode='[ABCDGIRSTW]' ;;
12938 esac
12940 # Try without a prefix undercore, then with it.
12941 for ac_symprfx in "" "_"; do
12943 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12944 symxfrm="\\1 $ac_symprfx\\2 \\2"
12946 # Write the raw and C identifiers.
12947 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12949 # Check to see that the pipe works correctly.
12950 pipe_works=no
12952 rm -f conftest*
12953 cat > conftest.$ac_ext <<EOF
12954 #ifdef __cplusplus
12955 extern "C" {
12956 #endif
12957 char nm_test_var;
12958 void nm_test_func(){}
12959 #ifdef __cplusplus
12961 #endif
12962 int main(){nm_test_var='a';nm_test_func();return(0);}
12965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12966 (eval $ac_compile) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; then
12970 # Now try to grab the symbols.
12971 nlist=conftest.nm
12972 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12973 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } && test -s "$nlist"; then
12977 # Try sorting and uniquifying the output.
12978 if sort "$nlist" | uniq > "$nlist"T; then
12979 mv -f "$nlist"T "$nlist"
12980 else
12981 rm -f "$nlist"T
12984 # Make sure that we snagged all the symbols we need.
12985 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12986 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12987 cat <<EOF > conftest.$ac_ext
12988 #ifdef __cplusplus
12989 extern "C" {
12990 #endif
12993 # Now generate the symbol file.
12994 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12996 cat <<EOF >> conftest.$ac_ext
12997 #if defined (__STDC__) && __STDC__
12998 # define lt_ptr_t void *
12999 #else
13000 # define lt_ptr_t char *
13001 # define const
13002 #endif
13004 /* The mapping between symbol names and symbols. */
13005 const struct {
13006 const char *name;
13007 lt_ptr_t address;
13009 lt_preloaded_symbols[] =
13012 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13013 cat <<\EOF >> conftest.$ac_ext
13014 {0, (lt_ptr_t) 0}
13017 #ifdef __cplusplus
13019 #endif
13021 # Now try linking the two files.
13022 mv conftest.$ac_objext conftstm.$ac_objext
13023 lt_save_LIBS="$LIBS"
13024 lt_save_CFLAGS="$CFLAGS"
13025 LIBS="conftstm.$ac_objext"
13026 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13028 (eval $ac_link) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13032 pipe_works=yes
13034 LIBS="$lt_save_LIBS"
13035 CFLAGS="$lt_save_CFLAGS"
13036 else
13037 echo "cannot find nm_test_func in $nlist" >&5
13039 else
13040 echo "cannot find nm_test_var in $nlist" >&5
13042 else
13043 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13045 else
13046 echo "$progname: failed program was:" >&5
13047 cat conftest.$ac_ext >&5
13049 rm -f conftest* conftst*
13051 # Do not use the global_symbol_pipe unless it works.
13052 if test "$pipe_works" = yes; then
13053 break
13054 else
13055 lt_cv_sys_global_symbol_pipe=
13057 done
13061 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13062 lt_cv_sys_global_symbol_to_cdecl=
13064 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13065 { echo "$as_me:$LINENO: result: failed" >&5
13066 echo "${ECHO_T}failed" >&6; }
13067 else
13068 { echo "$as_me:$LINENO: result: ok" >&5
13069 echo "${ECHO_T}ok" >&6; }
13072 { echo "$as_me:$LINENO: checking for objdir" >&5
13073 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13074 if test "${lt_cv_objdir+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 else
13077 rm -f .libs 2>/dev/null
13078 mkdir .libs 2>/dev/null
13079 if test -d .libs; then
13080 lt_cv_objdir=.libs
13081 else
13082 # MS-DOS does not allow filenames that begin with a dot.
13083 lt_cv_objdir=_libs
13085 rmdir .libs 2>/dev/null
13087 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13088 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13089 objdir=$lt_cv_objdir
13095 case $host_os in
13096 aix3*)
13097 # AIX sometimes has problems with the GCC collect2 program. For some
13098 # reason, if we set the COLLECT_NAMES environment variable, the problems
13099 # vanish in a puff of smoke.
13100 if test "X${COLLECT_NAMES+set}" != Xset; then
13101 COLLECT_NAMES=
13102 export COLLECT_NAMES
13105 esac
13107 # Sed substitution that helps us do robust quoting. It backslashifies
13108 # metacharacters that are still active within double-quoted strings.
13109 Xsed='sed -e 1s/^X//'
13110 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13112 # Same as above, but do not quote variable references.
13113 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13115 # Sed substitution to delay expansion of an escaped shell variable in a
13116 # double_quote_subst'ed string.
13117 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13119 # Sed substitution to avoid accidental globbing in evaled expressions
13120 no_glob_subst='s/\*/\\\*/g'
13122 # Constants:
13123 rm="rm -f"
13125 # Global variables:
13126 default_ofile=mklib
13127 can_build_shared=yes
13129 # All known linkers require a `.a' archive for static linking (except MSVC,
13130 # which needs '.lib').
13131 libext=a
13132 ltmain="$ac_aux_dir/ltmain.sh"
13133 ofile="$default_ofile"
13134 with_gnu_ld="$lt_cv_prog_gnu_ld"
13136 if test -n "$ac_tool_prefix"; then
13137 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13138 set dummy ${ac_tool_prefix}ar; ac_word=$2
13139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13141 if test "${ac_cv_prog_AR+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13143 else
13144 if test -n "$AR"; then
13145 ac_cv_prog_AR="$AR" # Let the user override the test.
13146 else
13147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $PATH
13150 IFS=$as_save_IFS
13151 test -z "$as_dir" && as_dir=.
13152 for ac_exec_ext in '' $ac_executable_extensions; do
13153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13154 ac_cv_prog_AR="${ac_tool_prefix}ar"
13155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13156 break 2
13158 done
13159 done
13160 IFS=$as_save_IFS
13164 AR=$ac_cv_prog_AR
13165 if test -n "$AR"; then
13166 { echo "$as_me:$LINENO: result: $AR" >&5
13167 echo "${ECHO_T}$AR" >&6; }
13168 else
13169 { echo "$as_me:$LINENO: result: no" >&5
13170 echo "${ECHO_T}no" >&6; }
13175 if test -z "$ac_cv_prog_AR"; then
13176 ac_ct_AR=$AR
13177 # Extract the first word of "ar", so it can be a program name with args.
13178 set dummy ar; ac_word=$2
13179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13181 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 else
13184 if test -n "$ac_ct_AR"; then
13185 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13186 else
13187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188 for as_dir in $PATH
13190 IFS=$as_save_IFS
13191 test -z "$as_dir" && as_dir=.
13192 for ac_exec_ext in '' $ac_executable_extensions; do
13193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13194 ac_cv_prog_ac_ct_AR="ar"
13195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13196 break 2
13198 done
13199 done
13200 IFS=$as_save_IFS
13204 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13205 if test -n "$ac_ct_AR"; then
13206 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13207 echo "${ECHO_T}$ac_ct_AR" >&6; }
13208 else
13209 { echo "$as_me:$LINENO: result: no" >&5
13210 echo "${ECHO_T}no" >&6; }
13213 if test "x$ac_ct_AR" = x; then
13214 AR="false"
13215 else
13216 case $cross_compiling:$ac_tool_warned in
13217 yes:)
13218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13219 whose name does not start with the host triplet. If you think this
13220 configuration is useful to you, please write to autoconf@gnu.org." >&5
13221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13222 whose name does not start with the host triplet. If you think this
13223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13224 ac_tool_warned=yes ;;
13225 esac
13226 AR=$ac_ct_AR
13228 else
13229 AR="$ac_cv_prog_AR"
13232 if test -n "$ac_tool_prefix"; then
13233 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13234 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13237 if test "${ac_cv_prog_RANLIB+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13239 else
13240 if test -n "$RANLIB"; then
13241 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13242 else
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13246 IFS=$as_save_IFS
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13250 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13252 break 2
13254 done
13255 done
13256 IFS=$as_save_IFS
13260 RANLIB=$ac_cv_prog_RANLIB
13261 if test -n "$RANLIB"; then
13262 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13263 echo "${ECHO_T}$RANLIB" >&6; }
13264 else
13265 { echo "$as_me:$LINENO: result: no" >&5
13266 echo "${ECHO_T}no" >&6; }
13271 if test -z "$ac_cv_prog_RANLIB"; then
13272 ac_ct_RANLIB=$RANLIB
13273 # Extract the first word of "ranlib", so it can be a program name with args.
13274 set dummy ranlib; ac_word=$2
13275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13277 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13279 else
13280 if test -n "$ac_ct_RANLIB"; then
13281 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13282 else
13283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284 for as_dir in $PATH
13286 IFS=$as_save_IFS
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13290 ac_cv_prog_ac_ct_RANLIB="ranlib"
13291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13292 break 2
13294 done
13295 done
13296 IFS=$as_save_IFS
13300 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13301 if test -n "$ac_ct_RANLIB"; then
13302 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13303 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13304 else
13305 { echo "$as_me:$LINENO: result: no" >&5
13306 echo "${ECHO_T}no" >&6; }
13309 if test "x$ac_ct_RANLIB" = x; then
13310 RANLIB=":"
13311 else
13312 case $cross_compiling:$ac_tool_warned in
13313 yes:)
13314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13315 whose name does not start with the host triplet. If you think this
13316 configuration is useful to you, please write to autoconf@gnu.org." >&5
13317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13318 whose name does not start with the host triplet. If you think this
13319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13320 ac_tool_warned=yes ;;
13321 esac
13322 RANLIB=$ac_ct_RANLIB
13324 else
13325 RANLIB="$ac_cv_prog_RANLIB"
13328 if test -n "$ac_tool_prefix"; then
13329 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13330 set dummy ${ac_tool_prefix}strip; ac_word=$2
13331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13333 if test "${ac_cv_prog_STRIP+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 else
13336 if test -n "$STRIP"; then
13337 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13338 else
13339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13340 for as_dir in $PATH
13342 IFS=$as_save_IFS
13343 test -z "$as_dir" && as_dir=.
13344 for ac_exec_ext in '' $ac_executable_extensions; do
13345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13346 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13348 break 2
13350 done
13351 done
13352 IFS=$as_save_IFS
13356 STRIP=$ac_cv_prog_STRIP
13357 if test -n "$STRIP"; then
13358 { echo "$as_me:$LINENO: result: $STRIP" >&5
13359 echo "${ECHO_T}$STRIP" >&6; }
13360 else
13361 { echo "$as_me:$LINENO: result: no" >&5
13362 echo "${ECHO_T}no" >&6; }
13367 if test -z "$ac_cv_prog_STRIP"; then
13368 ac_ct_STRIP=$STRIP
13369 # Extract the first word of "strip", so it can be a program name with args.
13370 set dummy strip; ac_word=$2
13371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13373 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 else
13376 if test -n "$ac_ct_STRIP"; then
13377 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13378 else
13379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13380 for as_dir in $PATH
13382 IFS=$as_save_IFS
13383 test -z "$as_dir" && as_dir=.
13384 for ac_exec_ext in '' $ac_executable_extensions; do
13385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13386 ac_cv_prog_ac_ct_STRIP="strip"
13387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13388 break 2
13390 done
13391 done
13392 IFS=$as_save_IFS
13396 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13397 if test -n "$ac_ct_STRIP"; then
13398 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13399 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13400 else
13401 { echo "$as_me:$LINENO: result: no" >&5
13402 echo "${ECHO_T}no" >&6; }
13405 if test "x$ac_ct_STRIP" = x; then
13406 STRIP=":"
13407 else
13408 case $cross_compiling:$ac_tool_warned in
13409 yes:)
13410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13411 whose name does not start with the host triplet. If you think this
13412 configuration is useful to you, please write to autoconf@gnu.org." >&5
13413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13414 whose name does not start with the host triplet. If you think this
13415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13416 ac_tool_warned=yes ;;
13417 esac
13418 STRIP=$ac_ct_STRIP
13420 else
13421 STRIP="$ac_cv_prog_STRIP"
13425 old_CC="$CC"
13426 old_CFLAGS="$CFLAGS"
13428 # Set sane defaults for various variables
13429 test -z "$AR" && AR=ar
13430 test -z "$AR_FLAGS" && AR_FLAGS=cru
13431 test -z "$AS" && AS=as
13432 test -z "$CC" && CC=cc
13433 test -z "$LTCC" && LTCC=$CC
13434 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13435 test -z "$DLLTOOL" && DLLTOOL=dlltool
13436 test -z "$LD" && LD=ld
13437 test -z "$LN_S" && LN_S="ln -s"
13438 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13439 test -z "$NM" && NM=nm
13440 test -z "$SED" && SED=sed
13441 test -z "$OBJDUMP" && OBJDUMP=objdump
13442 test -z "$RANLIB" && RANLIB=:
13443 test -z "$STRIP" && STRIP=:
13444 test -z "$ac_objext" && ac_objext=o
13446 # Determine commands to create old-style static archives.
13447 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13448 old_postinstall_cmds='chmod 644 $oldlib'
13449 old_postuninstall_cmds=
13451 if test -n "$RANLIB"; then
13452 case $host_os in
13453 openbsd*)
13454 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13457 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13459 esac
13460 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13463 for cc_temp in $compiler""; do
13464 case $cc_temp in
13465 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13466 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13467 \-*) ;;
13468 *) break;;
13469 esac
13470 done
13471 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13474 # Only perform the check for file, if the check method requires it
13475 case $deplibs_check_method in
13476 file_magic*)
13477 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13478 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13479 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13480 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 else
13483 case $MAGIC_CMD in
13484 [\\/*] | ?:[\\/]*)
13485 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13488 lt_save_MAGIC_CMD="$MAGIC_CMD"
13489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13490 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13491 for ac_dir in $ac_dummy; do
13492 IFS="$lt_save_ifs"
13493 test -z "$ac_dir" && ac_dir=.
13494 if test -f $ac_dir/${ac_tool_prefix}file; then
13495 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13496 if test -n "$file_magic_test_file"; then
13497 case $deplibs_check_method in
13498 "file_magic "*)
13499 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13500 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13501 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13502 $EGREP "$file_magic_regex" > /dev/null; then
13504 else
13505 cat <<EOF 1>&2
13507 *** Warning: the command libtool uses to detect shared libraries,
13508 *** $file_magic_cmd, produces output that libtool cannot recognize.
13509 *** The result is that libtool may fail to recognize shared libraries
13510 *** as such. This will affect the creation of libtool libraries that
13511 *** depend on shared libraries, but programs linked with such libtool
13512 *** libraries will work regardless of this problem. Nevertheless, you
13513 *** may want to report the problem to your system manager and/or to
13514 *** bug-libtool@gnu.org
13517 fi ;;
13518 esac
13520 break
13522 done
13523 IFS="$lt_save_ifs"
13524 MAGIC_CMD="$lt_save_MAGIC_CMD"
13526 esac
13529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13530 if test -n "$MAGIC_CMD"; then
13531 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13532 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13533 else
13534 { echo "$as_me:$LINENO: result: no" >&5
13535 echo "${ECHO_T}no" >&6; }
13538 if test -z "$lt_cv_path_MAGIC_CMD"; then
13539 if test -n "$ac_tool_prefix"; then
13540 { echo "$as_me:$LINENO: checking for file" >&5
13541 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13542 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 else
13545 case $MAGIC_CMD in
13546 [\\/*] | ?:[\\/]*)
13547 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13550 lt_save_MAGIC_CMD="$MAGIC_CMD"
13551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13552 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13553 for ac_dir in $ac_dummy; do
13554 IFS="$lt_save_ifs"
13555 test -z "$ac_dir" && ac_dir=.
13556 if test -f $ac_dir/file; then
13557 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13558 if test -n "$file_magic_test_file"; then
13559 case $deplibs_check_method in
13560 "file_magic "*)
13561 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13563 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13564 $EGREP "$file_magic_regex" > /dev/null; then
13566 else
13567 cat <<EOF 1>&2
13569 *** Warning: the command libtool uses to detect shared libraries,
13570 *** $file_magic_cmd, produces output that libtool cannot recognize.
13571 *** The result is that libtool may fail to recognize shared libraries
13572 *** as such. This will affect the creation of libtool libraries that
13573 *** depend on shared libraries, but programs linked with such libtool
13574 *** libraries will work regardless of this problem. Nevertheless, you
13575 *** may want to report the problem to your system manager and/or to
13576 *** bug-libtool@gnu.org
13579 fi ;;
13580 esac
13582 break
13584 done
13585 IFS="$lt_save_ifs"
13586 MAGIC_CMD="$lt_save_MAGIC_CMD"
13588 esac
13591 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13592 if test -n "$MAGIC_CMD"; then
13593 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13594 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13595 else
13596 { echo "$as_me:$LINENO: result: no" >&5
13597 echo "${ECHO_T}no" >&6; }
13600 else
13601 MAGIC_CMD=:
13607 esac
13609 enable_dlopen=yes
13610 enable_win32_dll=no
13612 # Check whether --enable-libtool-lock was given.
13613 if test "${enable_libtool_lock+set}" = set; then
13614 enableval=$enable_libtool_lock;
13617 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13620 # Check whether --with-pic was given.
13621 if test "${with_pic+set}" = set; then
13622 withval=$with_pic; pic_mode="$withval"
13623 else
13624 pic_mode=default
13627 test -z "$pic_mode" && pic_mode=default
13629 # Use C for the default configuration in the libtool script
13630 tagname=
13631 lt_save_CC="$CC"
13632 ac_ext=c
13633 ac_cpp='$CPP $CPPFLAGS'
13634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13639 # Source file extension for C test sources.
13640 ac_ext=c
13642 # Object file extension for compiled C test sources.
13643 objext=o
13644 objext=$objext
13646 # Code to be used in simple compile tests
13647 lt_simple_compile_test_code="int some_variable = 0;\n"
13649 # Code to be used in simple link tests
13650 lt_simple_link_test_code='int main(){return(0);}\n'
13653 # If no C compiler was specified, use CC.
13654 LTCC=${LTCC-"$CC"}
13656 # If no C compiler flags were specified, use CFLAGS.
13657 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13659 # Allow CC to be a program name with arguments.
13660 compiler=$CC
13663 # save warnings/boilerplate of simple test code
13664 ac_outfile=conftest.$ac_objext
13665 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13666 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13667 _lt_compiler_boilerplate=`cat conftest.err`
13668 $rm conftest*
13670 ac_outfile=conftest.$ac_objext
13671 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13672 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13673 _lt_linker_boilerplate=`cat conftest.err`
13674 $rm conftest*
13678 lt_prog_compiler_no_builtin_flag=
13680 if test "$GCC" = yes; then
13681 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13684 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13685 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
13686 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13688 else
13689 lt_cv_prog_compiler_rtti_exceptions=no
13690 ac_outfile=conftest.$ac_objext
13691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13692 lt_compiler_flag="-fno-rtti -fno-exceptions"
13693 # Insert the option either (1) after the last *FLAGS variable, or
13694 # (2) before a word containing "conftest.", or (3) at the end.
13695 # Note that $ac_compile itself does not contain backslashes and begins
13696 # with a dollar sign (not a hyphen), so the echo should work correctly.
13697 # The option is referenced via a variable to avoid confusing sed.
13698 lt_compile=`echo "$ac_compile" | $SED \
13699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13701 -e 's:$: $lt_compiler_flag:'`
13702 (eval echo "\"\$as_me:13702: $lt_compile\"" >&5)
13703 (eval "$lt_compile" 2>conftest.err)
13704 ac_status=$?
13705 cat conftest.err >&5
13706 echo "$as_me:13706: \$? = $ac_status" >&5
13707 if (exit $ac_status) && test -s "$ac_outfile"; then
13708 # The compiler can only warn and ignore the option if not recognized
13709 # So say no if there are warnings other than the usual output.
13710 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13713 lt_cv_prog_compiler_rtti_exceptions=yes
13716 $rm conftest*
13719 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13720 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13722 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13723 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13724 else
13730 lt_prog_compiler_wl=
13731 lt_prog_compiler_pic=
13732 lt_prog_compiler_static=
13734 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13735 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13737 if test "$GCC" = yes; then
13738 lt_prog_compiler_wl='-Wl,'
13739 lt_prog_compiler_static='-static'
13741 case $host_os in
13742 aix*)
13743 # All AIX code is PIC.
13744 if test "$host_cpu" = ia64; then
13745 # AIX 5 now supports IA64 processor
13746 lt_prog_compiler_static='-Bstatic'
13750 amigaos*)
13751 # FIXME: we need at least 68020 code to build shared libraries, but
13752 # adding the `-m68020' flag to GCC prevents building anything better,
13753 # like `-m68040'.
13754 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13757 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13758 # PIC is the default for these OSes.
13761 mingw* | pw32* | os2*)
13762 # This hack is so that the source file can tell whether it is being
13763 # built for inclusion in a dll (and should export symbols for example).
13764 lt_prog_compiler_pic='-DDLL_EXPORT'
13767 darwin* | rhapsody*)
13768 # PIC is the default on this platform
13769 # Common symbols not allowed in MH_DYLIB files
13770 lt_prog_compiler_pic='-fno-common'
13773 interix3*)
13774 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13775 # Instead, we relocate shared libraries at runtime.
13778 msdosdjgpp*)
13779 # Just because we use GCC doesn't mean we suddenly get shared libraries
13780 # on systems that don't support them.
13781 lt_prog_compiler_can_build_shared=no
13782 enable_shared=no
13785 sysv4*MP*)
13786 if test -d /usr/nec; then
13787 lt_prog_compiler_pic=-Kconform_pic
13791 hpux*)
13792 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13793 # not for PA HP-UX.
13794 case $host_cpu in
13795 hppa*64*|ia64*)
13796 # +Z the default
13799 lt_prog_compiler_pic='-fPIC'
13801 esac
13805 lt_prog_compiler_pic='-fPIC'
13807 esac
13808 else
13809 # PORTME Check for flag to pass linker flags through the system compiler.
13810 case $host_os in
13811 aix*)
13812 lt_prog_compiler_wl='-Wl,'
13813 if test "$host_cpu" = ia64; then
13814 # AIX 5 now supports IA64 processor
13815 lt_prog_compiler_static='-Bstatic'
13816 else
13817 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13820 darwin*)
13821 # PIC is the default on this platform
13822 # Common symbols not allowed in MH_DYLIB files
13823 case $cc_basename in
13824 xlc*)
13825 lt_prog_compiler_pic='-qnocommon'
13826 lt_prog_compiler_wl='-Wl,'
13828 esac
13831 mingw* | pw32* | os2*)
13832 # This hack is so that the source file can tell whether it is being
13833 # built for inclusion in a dll (and should export symbols for example).
13834 lt_prog_compiler_pic='-DDLL_EXPORT'
13837 hpux9* | hpux10* | hpux11*)
13838 lt_prog_compiler_wl='-Wl,'
13839 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13840 # not for PA HP-UX.
13841 case $host_cpu in
13842 hppa*64*|ia64*)
13843 # +Z the default
13846 lt_prog_compiler_pic='+Z'
13848 esac
13849 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13850 lt_prog_compiler_static='${wl}-a ${wl}archive'
13853 irix5* | irix6* | nonstopux*)
13854 lt_prog_compiler_wl='-Wl,'
13855 # PIC (with -KPIC) is the default.
13856 lt_prog_compiler_static='-non_shared'
13859 newsos6)
13860 lt_prog_compiler_pic='-KPIC'
13861 lt_prog_compiler_static='-Bstatic'
13864 linux*)
13865 case $cc_basename in
13866 icc* | ecc*)
13867 lt_prog_compiler_wl='-Wl,'
13868 lt_prog_compiler_pic='-KPIC'
13869 lt_prog_compiler_static='-static'
13871 pgcc* | pgf77* | pgf90* | pgf95*)
13872 # Portland Group compilers (*not* the Pentium gcc compiler,
13873 # which looks to be a dead project)
13874 lt_prog_compiler_wl='-Wl,'
13875 lt_prog_compiler_pic='-fpic'
13876 lt_prog_compiler_static='-Bstatic'
13878 ccc*)
13879 lt_prog_compiler_wl='-Wl,'
13880 # All Alpha code is PIC.
13881 lt_prog_compiler_static='-non_shared'
13883 esac
13886 osf3* | osf4* | osf5*)
13887 lt_prog_compiler_wl='-Wl,'
13888 # All OSF/1 code is PIC.
13889 lt_prog_compiler_static='-non_shared'
13892 solaris*)
13893 lt_prog_compiler_pic='-KPIC'
13894 lt_prog_compiler_static='-Bstatic'
13895 case $cc_basename in
13896 f77* | f90* | f95*)
13897 lt_prog_compiler_wl='-Qoption ld ';;
13899 lt_prog_compiler_wl='-Wl,';;
13900 esac
13903 sunos4*)
13904 lt_prog_compiler_wl='-Qoption ld '
13905 lt_prog_compiler_pic='-PIC'
13906 lt_prog_compiler_static='-Bstatic'
13909 sysv4 | sysv4.2uw2* | sysv4.3*)
13910 lt_prog_compiler_wl='-Wl,'
13911 lt_prog_compiler_pic='-KPIC'
13912 lt_prog_compiler_static='-Bstatic'
13915 sysv4*MP*)
13916 if test -d /usr/nec ;then
13917 lt_prog_compiler_pic='-Kconform_pic'
13918 lt_prog_compiler_static='-Bstatic'
13922 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13923 lt_prog_compiler_wl='-Wl,'
13924 lt_prog_compiler_pic='-KPIC'
13925 lt_prog_compiler_static='-Bstatic'
13928 unicos*)
13929 lt_prog_compiler_wl='-Wl,'
13930 lt_prog_compiler_can_build_shared=no
13933 uts4*)
13934 lt_prog_compiler_pic='-pic'
13935 lt_prog_compiler_static='-Bstatic'
13939 lt_prog_compiler_can_build_shared=no
13941 esac
13944 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13945 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
13948 # Check to make sure the PIC flag actually works.
13950 if test -n "$lt_prog_compiler_pic"; then
13952 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13953 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
13954 if test "${lt_prog_compiler_pic_works+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957 lt_prog_compiler_pic_works=no
13958 ac_outfile=conftest.$ac_objext
13959 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13960 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13961 # Insert the option either (1) after the last *FLAGS variable, or
13962 # (2) before a word containing "conftest.", or (3) at the end.
13963 # Note that $ac_compile itself does not contain backslashes and begins
13964 # with a dollar sign (not a hyphen), so the echo should work correctly.
13965 # The option is referenced via a variable to avoid confusing sed.
13966 lt_compile=`echo "$ac_compile" | $SED \
13967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13969 -e 's:$: $lt_compiler_flag:'`
13970 (eval echo "\"\$as_me:13970: $lt_compile\"" >&5)
13971 (eval "$lt_compile" 2>conftest.err)
13972 ac_status=$?
13973 cat conftest.err >&5
13974 echo "$as_me:13974: \$? = $ac_status" >&5
13975 if (exit $ac_status) && test -s "$ac_outfile"; then
13976 # The compiler can only warn and ignore the option if not recognized
13977 # So say no if there are warnings other than the usual output.
13978 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13980 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13981 lt_prog_compiler_pic_works=yes
13984 $rm conftest*
13987 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13988 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
13990 if test x"$lt_prog_compiler_pic_works" = xyes; then
13991 case $lt_prog_compiler_pic in
13992 "" | " "*) ;;
13993 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13994 esac
13995 else
13996 lt_prog_compiler_pic=
13997 lt_prog_compiler_can_build_shared=no
14001 case $host_os in
14002 # For platforms which do not support PIC, -DPIC is meaningless:
14003 *djgpp*)
14004 lt_prog_compiler_pic=
14007 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14009 esac
14012 # Check to make sure the static flag actually works.
14014 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14015 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14016 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14017 if test "${lt_prog_compiler_static_works+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020 lt_prog_compiler_static_works=no
14021 save_LDFLAGS="$LDFLAGS"
14022 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14023 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14024 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14025 # The linker can only warn and ignore the option if not recognized
14026 # So say no if there are warnings
14027 if test -s conftest.err; then
14028 # Append any errors to the config.log.
14029 cat conftest.err 1>&5
14030 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14032 if diff conftest.exp conftest.er2 >/dev/null; then
14033 lt_prog_compiler_static_works=yes
14035 else
14036 lt_prog_compiler_static_works=yes
14039 $rm conftest*
14040 LDFLAGS="$save_LDFLAGS"
14043 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14044 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14046 if test x"$lt_prog_compiler_static_works" = xyes; then
14048 else
14049 lt_prog_compiler_static=
14053 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14054 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14055 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14056 echo $ECHO_N "(cached) $ECHO_C" >&6
14057 else
14058 lt_cv_prog_compiler_c_o=no
14059 $rm -r conftest 2>/dev/null
14060 mkdir conftest
14061 cd conftest
14062 mkdir out
14063 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14065 lt_compiler_flag="-o out/conftest2.$ac_objext"
14066 # Insert the option either (1) after the last *FLAGS variable, or
14067 # (2) before a word containing "conftest.", or (3) at the end.
14068 # Note that $ac_compile itself does not contain backslashes and begins
14069 # with a dollar sign (not a hyphen), so the echo should work correctly.
14070 lt_compile=`echo "$ac_compile" | $SED \
14071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14073 -e 's:$: $lt_compiler_flag:'`
14074 (eval echo "\"\$as_me:14074: $lt_compile\"" >&5)
14075 (eval "$lt_compile" 2>out/conftest.err)
14076 ac_status=$?
14077 cat out/conftest.err >&5
14078 echo "$as_me:14078: \$? = $ac_status" >&5
14079 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14080 then
14081 # The compiler can only warn and ignore the option if not recognized
14082 # So say no if there are warnings
14083 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14084 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14085 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14086 lt_cv_prog_compiler_c_o=yes
14089 chmod u+w . 2>&5
14090 $rm conftest*
14091 # SGI C++ compiler will create directory out/ii_files/ for
14092 # template instantiation
14093 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14094 $rm out/* && rmdir out
14095 cd ..
14096 rmdir conftest
14097 $rm conftest*
14100 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14101 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14104 hard_links="nottested"
14105 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14106 # do not overwrite the value of need_locks provided by the user
14107 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14108 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14109 hard_links=yes
14110 $rm conftest*
14111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14112 touch conftest.a
14113 ln conftest.a conftest.b 2>&5 || hard_links=no
14114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14115 { echo "$as_me:$LINENO: result: $hard_links" >&5
14116 echo "${ECHO_T}$hard_links" >&6; }
14117 if test "$hard_links" = no; then
14118 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14119 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14120 need_locks=warn
14122 else
14123 need_locks=no
14126 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14127 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14129 runpath_var=
14130 allow_undefined_flag=
14131 enable_shared_with_static_runtimes=no
14132 archive_cmds=
14133 archive_expsym_cmds=
14134 old_archive_From_new_cmds=
14135 old_archive_from_expsyms_cmds=
14136 export_dynamic_flag_spec=
14137 whole_archive_flag_spec=
14138 thread_safe_flag_spec=
14139 hardcode_libdir_flag_spec=
14140 hardcode_libdir_flag_spec_ld=
14141 hardcode_libdir_separator=
14142 hardcode_direct=no
14143 hardcode_minus_L=no
14144 hardcode_shlibpath_var=unsupported
14145 link_all_deplibs=unknown
14146 hardcode_automatic=no
14147 module_cmds=
14148 module_expsym_cmds=
14149 always_export_symbols=no
14150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14151 # include_expsyms should be a list of space-separated symbols to be *always*
14152 # included in the symbol list
14153 include_expsyms=
14154 # exclude_expsyms can be an extended regexp of symbols to exclude
14155 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14156 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14157 # as well as any symbol that contains `d'.
14158 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14159 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14160 # platforms (ab)use it in PIC code, but their linkers get confused if
14161 # the symbol is explicitly referenced. Since portable code cannot
14162 # rely on this symbol name, it's probably fine to never include it in
14163 # preloaded symbol tables.
14164 extract_expsyms_cmds=
14165 # Just being paranoid about ensuring that cc_basename is set.
14166 for cc_temp in $compiler""; do
14167 case $cc_temp in
14168 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14169 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14170 \-*) ;;
14171 *) break;;
14172 esac
14173 done
14174 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14176 case $host_os in
14177 cygwin* | mingw* | pw32*)
14178 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14179 # When not using gcc, we currently assume that we are using
14180 # Microsoft Visual C++.
14181 if test "$GCC" != yes; then
14182 with_gnu_ld=no
14185 interix*)
14186 # we just hope/assume this is gcc and not c89 (= MSVC++)
14187 with_gnu_ld=yes
14189 openbsd*)
14190 with_gnu_ld=no
14192 esac
14194 ld_shlibs=yes
14195 if test "$with_gnu_ld" = yes; then
14196 # If archive_cmds runs LD, not CC, wlarc should be empty
14197 wlarc='${wl}'
14199 # Set some defaults for GNU ld with shared library support. These
14200 # are reset later if shared libraries are not supported. Putting them
14201 # here allows them to be overridden if necessary.
14202 runpath_var=LD_RUN_PATH
14203 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14204 export_dynamic_flag_spec='${wl}--export-dynamic'
14205 # ancient GNU ld didn't support --whole-archive et. al.
14206 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14207 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14208 else
14209 whole_archive_flag_spec=
14211 supports_anon_versioning=no
14212 case `$LD -v 2>/dev/null` in
14213 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14214 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14215 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14216 *\ 2.11.*) ;; # other 2.11 versions
14217 *) supports_anon_versioning=yes ;;
14218 esac
14220 # See if GNU ld supports shared libraries.
14221 case $host_os in
14222 aix3* | aix4* | aix5*)
14223 # On AIX/PPC, the GNU linker is very broken
14224 if test "$host_cpu" != ia64; then
14225 ld_shlibs=no
14226 cat <<EOF 1>&2
14228 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14229 *** to be unable to reliably create shared libraries on AIX.
14230 *** Therefore, libtool is disabling shared libraries support. If you
14231 *** really care for shared libraries, you may want to modify your PATH
14232 *** so that a non-GNU linker is found, and then restart.
14238 amigaos*)
14239 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)'
14240 hardcode_libdir_flag_spec='-L$libdir'
14241 hardcode_minus_L=yes
14243 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14244 # that the semantics of dynamic libraries on AmigaOS, at least up
14245 # to version 4, is to share data among multiple programs linked
14246 # with the same dynamic library. Since this doesn't match the
14247 # behavior of shared libraries on other platforms, we can't use
14248 # them.
14249 ld_shlibs=no
14252 beos*)
14253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14254 allow_undefined_flag=unsupported
14255 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14256 # support --undefined. This deserves some investigation. FIXME
14257 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14258 else
14259 ld_shlibs=no
14263 cygwin* | mingw* | pw32*)
14264 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14265 # as there is no search path for DLLs.
14266 hardcode_libdir_flag_spec='-L$libdir'
14267 allow_undefined_flag=unsupported
14268 always_export_symbols=no
14269 enable_shared_with_static_runtimes=yes
14270 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14272 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14274 # If the export-symbols file already is a .def file (1st line
14275 # is EXPORTS), use it as is; otherwise, prepend...
14276 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14277 cp $export_symbols $output_objdir/$soname.def;
14278 else
14279 echo EXPORTS > $output_objdir/$soname.def;
14280 cat $export_symbols >> $output_objdir/$soname.def;
14282 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14283 else
14284 ld_shlibs=no
14288 interix3*)
14289 hardcode_direct=no
14290 hardcode_shlibpath_var=no
14291 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14292 export_dynamic_flag_spec='${wl}-E'
14293 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14294 # Instead, shared libraries are loaded at an image base (0x10000000 by
14295 # default) and relocated if they conflict, which is a slow very memory
14296 # consuming and fragmenting process. To avoid this, we pick a random,
14297 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14298 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14299 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14300 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'
14303 linux*)
14304 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14305 tmp_addflag=
14306 case $cc_basename,$host_cpu in
14307 pgcc*) # Portland Group C compiler
14308 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'
14309 tmp_addflag=' $pic_flag'
14311 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14312 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'
14313 tmp_addflag=' $pic_flag -Mnomain' ;;
14314 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14315 tmp_addflag=' -i_dynamic' ;;
14316 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14317 tmp_addflag=' -i_dynamic -nofor_main' ;;
14318 ifc* | ifort*) # Intel Fortran compiler
14319 tmp_addflag=' -nofor_main' ;;
14320 esac
14321 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14323 if test $supports_anon_versioning = yes; then
14324 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14325 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14326 $echo "local: *; };" >> $output_objdir/$libname.ver~
14327 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14329 else
14330 ld_shlibs=no
14334 netbsd*)
14335 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14336 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14337 wlarc=
14338 else
14339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14340 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14344 solaris*)
14345 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14346 ld_shlibs=no
14347 cat <<EOF 1>&2
14349 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14350 *** create shared libraries on Solaris systems. Therefore, libtool
14351 *** is disabling shared libraries support. We urge you to upgrade GNU
14352 *** binutils to release 2.9.1 or newer. Another option is to modify
14353 *** your PATH or compiler configuration so that the native linker is
14354 *** used, and then restart.
14357 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14360 else
14361 ld_shlibs=no
14365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14366 case `$LD -v 2>&1` in
14367 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14368 ld_shlibs=no
14369 cat <<_LT_EOF 1>&2
14371 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14372 *** reliably create shared libraries on SCO systems. Therefore, libtool
14373 *** is disabling shared libraries support. We urge you to upgrade GNU
14374 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14375 *** your PATH or compiler configuration so that the native linker is
14376 *** used, and then restart.
14378 _LT_EOF
14381 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14382 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14385 else
14386 ld_shlibs=no
14389 esac
14392 sunos4*)
14393 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14394 wlarc=
14395 hardcode_direct=yes
14396 hardcode_shlibpath_var=no
14400 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14403 else
14404 ld_shlibs=no
14407 esac
14409 if test "$ld_shlibs" = no; then
14410 runpath_var=
14411 hardcode_libdir_flag_spec=
14412 export_dynamic_flag_spec=
14413 whole_archive_flag_spec=
14415 else
14416 # PORTME fill in a description of your system's linker (not GNU ld)
14417 case $host_os in
14418 aix3*)
14419 allow_undefined_flag=unsupported
14420 always_export_symbols=yes
14421 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'
14422 # Note: this linker hardcodes the directories in LIBPATH if there
14423 # are no directories specified by -L.
14424 hardcode_minus_L=yes
14425 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14426 # Neither direct hardcoding nor static linking is supported with a
14427 # broken collect2.
14428 hardcode_direct=unsupported
14432 aix4* | aix5*)
14433 if test "$host_cpu" = ia64; then
14434 # On IA64, the linker does run time linking by default, so we don't
14435 # have to do anything special.
14436 aix_use_runtimelinking=no
14437 exp_sym_flag='-Bexport'
14438 no_entry_flag=""
14439 else
14440 # If we're using GNU nm, then we don't want the "-C" option.
14441 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14442 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14443 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'
14444 else
14445 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'
14447 aix_use_runtimelinking=no
14449 # Test if we are trying to use run time linking or normal
14450 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14451 # need to do runtime linking.
14452 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14453 for ld_flag in $LDFLAGS; do
14454 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14455 aix_use_runtimelinking=yes
14456 break
14458 done
14460 esac
14462 exp_sym_flag='-bexport'
14463 no_entry_flag='-bnoentry'
14466 # When large executables or shared objects are built, AIX ld can
14467 # have problems creating the table of contents. If linking a library
14468 # or program results in "error TOC overflow" add -mminimal-toc to
14469 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14470 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14472 archive_cmds=''
14473 hardcode_direct=yes
14474 hardcode_libdir_separator=':'
14475 link_all_deplibs=yes
14477 if test "$GCC" = yes; then
14478 case $host_os in aix4.[012]|aix4.[012].*)
14479 # We only want to do this on AIX 4.2 and lower, the check
14480 # below for broken collect2 doesn't work under 4.3+
14481 collect2name=`${CC} -print-prog-name=collect2`
14482 if test -f "$collect2name" && \
14483 strings "$collect2name" | grep resolve_lib_name >/dev/null
14484 then
14485 # We have reworked collect2
14486 hardcode_direct=yes
14487 else
14488 # We have old collect2
14489 hardcode_direct=unsupported
14490 # It fails to find uninstalled libraries when the uninstalled
14491 # path is not listed in the libpath. Setting hardcode_minus_L
14492 # to unsupported forces relinking
14493 hardcode_minus_L=yes
14494 hardcode_libdir_flag_spec='-L$libdir'
14495 hardcode_libdir_separator=
14498 esac
14499 shared_flag='-shared'
14500 if test "$aix_use_runtimelinking" = yes; then
14501 shared_flag="$shared_flag "'${wl}-G'
14503 else
14504 # not using gcc
14505 if test "$host_cpu" = ia64; then
14506 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14507 # chokes on -Wl,-G. The following line is correct:
14508 shared_flag='-G'
14509 else
14510 if test "$aix_use_runtimelinking" = yes; then
14511 shared_flag='${wl}-G'
14512 else
14513 shared_flag='${wl}-bM:SRE'
14518 # It seems that -bexpall does not export symbols beginning with
14519 # underscore (_), so it is better to generate a list of symbols to export.
14520 always_export_symbols=yes
14521 if test "$aix_use_runtimelinking" = yes; then
14522 # Warning - without using the other runtime loading flags (-brtl),
14523 # -berok will link without error, but may produce a broken library.
14524 allow_undefined_flag='-berok'
14525 # Determine the default libpath from the value encoded in an empty executable.
14526 cat >conftest.$ac_ext <<_ACEOF
14527 /* confdefs.h. */
14528 _ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14534 main ()
14538 return 0;
14540 _ACEOF
14541 rm -f conftest.$ac_objext conftest$ac_exeext
14542 if { (ac_try="$ac_link"
14543 case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14546 esac
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_link") 2>conftest.er1
14549 ac_status=$?
14550 grep -v '^ *+' conftest.er1 >conftest.err
14551 rm -f conftest.er1
14552 cat conftest.err >&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } && {
14555 test -z "$ac_c_werror_flag" ||
14556 test ! -s conftest.err
14557 } && test -s conftest$ac_exeext &&
14558 $as_test_x conftest$ac_exeext; then
14560 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14562 # Check for a 64-bit object if we didn't find anything.
14563 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; }
14564 }'`; fi
14565 else
14566 echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14573 conftest$ac_exeext conftest.$ac_ext
14574 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14576 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14577 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"
14578 else
14579 if test "$host_cpu" = ia64; then
14580 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14581 allow_undefined_flag="-z nodefs"
14582 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"
14583 else
14584 # Determine the default libpath from the value encoded in an empty executable.
14585 cat >conftest.$ac_ext <<_ACEOF
14586 /* confdefs.h. */
14587 _ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14593 main ()
14597 return 0;
14599 _ACEOF
14600 rm -f conftest.$ac_objext conftest$ac_exeext
14601 if { (ac_try="$ac_link"
14602 case "(($ac_try" in
14603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14604 *) ac_try_echo=$ac_try;;
14605 esac
14606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14607 (eval "$ac_link") 2>conftest.er1
14608 ac_status=$?
14609 grep -v '^ *+' conftest.er1 >conftest.err
14610 rm -f conftest.er1
14611 cat conftest.err >&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } && {
14614 test -z "$ac_c_werror_flag" ||
14615 test ! -s conftest.err
14616 } && test -s conftest$ac_exeext &&
14617 $as_test_x conftest$ac_exeext; then
14619 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14621 # Check for a 64-bit object if we didn't find anything.
14622 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; }
14623 }'`; fi
14624 else
14625 echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.$ac_ext >&5
14631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14632 conftest$ac_exeext conftest.$ac_ext
14633 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14635 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14636 # Warning - without using the other run time loading flags,
14637 # -berok will link without error, but may produce a broken library.
14638 no_undefined_flag=' ${wl}-bernotok'
14639 allow_undefined_flag=' ${wl}-berok'
14640 # Exported symbols can be pulled into shared objects from archives
14641 whole_archive_flag_spec='$convenience'
14642 archive_cmds_need_lc=yes
14643 # This is similar to how AIX traditionally builds its shared libraries.
14644 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'
14649 amigaos*)
14650 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)'
14651 hardcode_libdir_flag_spec='-L$libdir'
14652 hardcode_minus_L=yes
14653 # see comment about different semantics on the GNU ld section
14654 ld_shlibs=no
14657 bsdi[45]*)
14658 export_dynamic_flag_spec=-rdynamic
14661 cygwin* | mingw* | pw32*)
14662 # When not using gcc, we currently assume that we are using
14663 # Microsoft Visual C++.
14664 # hardcode_libdir_flag_spec is actually meaningless, as there is
14665 # no search path for DLLs.
14666 hardcode_libdir_flag_spec=' '
14667 allow_undefined_flag=unsupported
14668 # Tell ltmain to make .lib files, not .a files.
14669 libext=lib
14670 # Tell ltmain to make .dll files, not .so files.
14671 shrext_cmds=".dll"
14672 # FIXME: Setting linknames here is a bad hack.
14673 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14674 # The linker will automatically build a .lib file if we build a DLL.
14675 old_archive_From_new_cmds='true'
14676 # FIXME: Should let the user specify the lib program.
14677 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14678 fix_srcfile_path='`cygpath -w "$srcfile"`'
14679 enable_shared_with_static_runtimes=yes
14682 darwin* | rhapsody*)
14683 case $host_os in
14684 rhapsody* | darwin1.[012])
14685 allow_undefined_flag='${wl}-undefined ${wl}suppress'
14687 *) # Darwin 1.3 on
14688 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14689 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14690 else
14691 case ${MACOSX_DEPLOYMENT_TARGET} in
14692 10.[012])
14693 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14695 10.*)
14696 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14698 esac
14701 esac
14702 archive_cmds_need_lc=no
14703 hardcode_direct=no
14704 hardcode_automatic=yes
14705 hardcode_shlibpath_var=unsupported
14706 whole_archive_flag_spec=''
14707 link_all_deplibs=yes
14708 if test "$GCC" = yes ; then
14709 output_verbose_link_cmd='echo'
14710 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14711 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14712 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14713 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}'
14714 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}'
14715 else
14716 case $cc_basename in
14717 xlc*)
14718 output_verbose_link_cmd='echo'
14719 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14720 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14721 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14722 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}'
14723 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}'
14726 ld_shlibs=no
14728 esac
14732 dgux*)
14733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14734 hardcode_libdir_flag_spec='-L$libdir'
14735 hardcode_shlibpath_var=no
14738 freebsd1*)
14739 ld_shlibs=no
14742 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14743 # support. Future versions do this automatically, but an explicit c++rt0.o
14744 # does not break anything, and helps significantly (at the cost of a little
14745 # extra space).
14746 freebsd2.2*)
14747 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14748 hardcode_libdir_flag_spec='-R$libdir'
14749 hardcode_direct=yes
14750 hardcode_shlibpath_var=no
14753 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14754 freebsd2*)
14755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14756 hardcode_direct=yes
14757 hardcode_minus_L=yes
14758 hardcode_shlibpath_var=no
14761 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14762 freebsd* | kfreebsd*-gnu | dragonfly*)
14763 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14764 hardcode_libdir_flag_spec='-R$libdir'
14765 hardcode_direct=yes
14766 hardcode_shlibpath_var=no
14769 hpux9*)
14770 if test "$GCC" = yes; then
14771 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'
14772 else
14773 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'
14775 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14776 hardcode_libdir_separator=:
14777 hardcode_direct=yes
14779 # hardcode_minus_L: Not really in the search PATH,
14780 # but as the default location of the library.
14781 hardcode_minus_L=yes
14782 export_dynamic_flag_spec='${wl}-E'
14785 hpux10*)
14786 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14787 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14788 else
14789 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14791 if test "$with_gnu_ld" = no; then
14792 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14793 hardcode_libdir_separator=:
14795 hardcode_direct=yes
14796 export_dynamic_flag_spec='${wl}-E'
14798 # hardcode_minus_L: Not really in the search PATH,
14799 # but as the default location of the library.
14800 hardcode_minus_L=yes
14804 hpux11*)
14805 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14806 case $host_cpu in
14807 hppa*64*)
14808 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14810 ia64*)
14811 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14814 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14816 esac
14817 else
14818 case $host_cpu in
14819 hppa*64*)
14820 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14822 ia64*)
14823 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14826 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14828 esac
14830 if test "$with_gnu_ld" = no; then
14831 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14832 hardcode_libdir_separator=:
14834 case $host_cpu in
14835 hppa*64*|ia64*)
14836 hardcode_libdir_flag_spec_ld='+b $libdir'
14837 hardcode_direct=no
14838 hardcode_shlibpath_var=no
14841 hardcode_direct=yes
14842 export_dynamic_flag_spec='${wl}-E'
14844 # hardcode_minus_L: Not really in the search PATH,
14845 # but as the default location of the library.
14846 hardcode_minus_L=yes
14848 esac
14852 irix5* | irix6* | nonstopux*)
14853 if test "$GCC" = yes; then
14854 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'
14855 else
14856 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'
14857 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14860 hardcode_libdir_separator=:
14861 link_all_deplibs=yes
14864 netbsd*)
14865 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14867 else
14868 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14870 hardcode_libdir_flag_spec='-R$libdir'
14871 hardcode_direct=yes
14872 hardcode_shlibpath_var=no
14875 newsos6)
14876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14877 hardcode_direct=yes
14878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14879 hardcode_libdir_separator=:
14880 hardcode_shlibpath_var=no
14883 openbsd*)
14884 hardcode_direct=yes
14885 hardcode_shlibpath_var=no
14886 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14888 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14890 export_dynamic_flag_spec='${wl}-E'
14891 else
14892 case $host_os in
14893 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14895 hardcode_libdir_flag_spec='-R$libdir'
14898 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14899 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14901 esac
14905 os2*)
14906 hardcode_libdir_flag_spec='-L$libdir'
14907 hardcode_minus_L=yes
14908 allow_undefined_flag=unsupported
14909 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'
14910 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14913 osf3*)
14914 if test "$GCC" = yes; then
14915 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14916 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'
14917 else
14918 allow_undefined_flag=' -expect_unresolved \*'
14919 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'
14921 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14922 hardcode_libdir_separator=:
14925 osf4* | osf5*) # as osf3* with the addition of -msym flag
14926 if test "$GCC" = yes; then
14927 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14928 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'
14929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14930 else
14931 allow_undefined_flag=' -expect_unresolved \*'
14932 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'
14933 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14934 $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'
14936 # Both c and cxx compiler support -rpath directly
14937 hardcode_libdir_flag_spec='-rpath $libdir'
14939 hardcode_libdir_separator=:
14942 solaris*)
14943 no_undefined_flag=' -z text'
14944 if test "$GCC" = yes; then
14945 wlarc='${wl}'
14946 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14947 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14948 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14949 else
14950 wlarc=''
14951 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14952 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14953 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14955 hardcode_libdir_flag_spec='-R$libdir'
14956 hardcode_shlibpath_var=no
14957 case $host_os in
14958 solaris2.[0-5] | solaris2.[0-5].*) ;;
14960 # The compiler driver will combine linker options so we
14961 # cannot just pass the convience library names through
14962 # without $wl, iff we do not link with $LD.
14963 # Luckily, gcc supports the same syntax we need for Sun Studio.
14964 # Supported since Solaris 2.6 (maybe 2.5.1?)
14965 case $wlarc in
14967 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14969 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' ;;
14970 esac ;;
14971 esac
14972 link_all_deplibs=yes
14975 sunos4*)
14976 if test "x$host_vendor" = xsequent; then
14977 # Use $CC to link under sequent, because it throws in some extra .o
14978 # files that make .init and .fini sections work.
14979 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14980 else
14981 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14983 hardcode_libdir_flag_spec='-L$libdir'
14984 hardcode_direct=yes
14985 hardcode_minus_L=yes
14986 hardcode_shlibpath_var=no
14989 sysv4)
14990 case $host_vendor in
14991 sni)
14992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14993 hardcode_direct=yes # is this really true???
14995 siemens)
14996 ## LD is ld it makes a PLAMLIB
14997 ## CC just makes a GrossModule.
14998 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14999 reload_cmds='$CC -r -o $output$reload_objs'
15000 hardcode_direct=no
15002 motorola)
15003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15004 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15006 esac
15007 runpath_var='LD_RUN_PATH'
15008 hardcode_shlibpath_var=no
15011 sysv4.3*)
15012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15013 hardcode_shlibpath_var=no
15014 export_dynamic_flag_spec='-Bexport'
15017 sysv4*MP*)
15018 if test -d /usr/nec; then
15019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15020 hardcode_shlibpath_var=no
15021 runpath_var=LD_RUN_PATH
15022 hardcode_runpath_var=yes
15023 ld_shlibs=yes
15027 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15028 no_undefined_flag='${wl}-z,text'
15029 archive_cmds_need_lc=no
15030 hardcode_shlibpath_var=no
15031 runpath_var='LD_RUN_PATH'
15033 if test "$GCC" = yes; then
15034 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15035 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15036 else
15037 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15038 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15042 sysv5* | sco3.2v5* | sco5v6*)
15043 # Note: We can NOT use -z defs as we might desire, because we do not
15044 # link with -lc, and that would cause any symbols used from libc to
15045 # always be unresolved, which means just about no library would
15046 # ever link correctly. If we're not using GNU ld we use -z text
15047 # though, which does catch some bad symbols but isn't as heavy-handed
15048 # as -z defs.
15049 no_undefined_flag='${wl}-z,text'
15050 allow_undefined_flag='${wl}-z,nodefs'
15051 archive_cmds_need_lc=no
15052 hardcode_shlibpath_var=no
15053 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15054 hardcode_libdir_separator=':'
15055 link_all_deplibs=yes
15056 export_dynamic_flag_spec='${wl}-Bexport'
15057 runpath_var='LD_RUN_PATH'
15059 if test "$GCC" = yes; then
15060 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15061 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15062 else
15063 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15064 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15068 uts4*)
15069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15070 hardcode_libdir_flag_spec='-L$libdir'
15071 hardcode_shlibpath_var=no
15075 ld_shlibs=no
15077 esac
15080 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15081 echo "${ECHO_T}$ld_shlibs" >&6; }
15082 test "$ld_shlibs" = no && can_build_shared=no
15085 # Do we need to explicitly link libc?
15087 case "x$archive_cmds_need_lc" in
15088 x|xyes)
15089 # Assume -lc should be added
15090 archive_cmds_need_lc=yes
15092 if test "$enable_shared" = yes && test "$GCC" = yes; then
15093 case $archive_cmds in
15094 *'~'*)
15095 # FIXME: we may have to deal with multi-command sequences.
15097 '$CC '*)
15098 # Test whether the compiler implicitly links with -lc since on some
15099 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15100 # to ld, don't add -lc before -lgcc.
15101 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15102 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15103 $rm conftest*
15104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15107 (eval $ac_compile) 2>&5
15108 ac_status=$?
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); } 2>conftest.err; then
15111 soname=conftest
15112 lib=conftest
15113 libobjs=conftest.$ac_objext
15114 deplibs=
15115 wl=$lt_prog_compiler_wl
15116 pic_flag=$lt_prog_compiler_pic
15117 compiler_flags=-v
15118 linker_flags=-v
15119 verstring=
15120 output_objdir=.
15121 libname=conftest
15122 lt_save_allow_undefined_flag=$allow_undefined_flag
15123 allow_undefined_flag=
15124 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15125 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }
15129 then
15130 archive_cmds_need_lc=no
15131 else
15132 archive_cmds_need_lc=yes
15134 allow_undefined_flag=$lt_save_allow_undefined_flag
15135 else
15136 cat conftest.err 1>&5
15138 $rm conftest*
15139 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15140 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15142 esac
15145 esac
15147 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15148 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15149 library_names_spec=
15150 libname_spec='lib$name'
15151 soname_spec=
15152 shrext_cmds=".so"
15153 postinstall_cmds=
15154 postuninstall_cmds=
15155 finish_cmds=
15156 finish_eval=
15157 shlibpath_var=
15158 shlibpath_overrides_runpath=unknown
15159 version_type=none
15160 dynamic_linker="$host_os ld.so"
15161 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15162 if test "$GCC" = yes; then
15163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15164 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15165 # if the path contains ";" then we assume it to be the separator
15166 # otherwise default to the standard path separator (i.e. ":") - it is
15167 # assumed that no part of a normal pathname contains ";" but that should
15168 # okay in the real world where ";" in dirpaths is itself problematic.
15169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15170 else
15171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15173 else
15174 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15176 need_lib_prefix=unknown
15177 hardcode_into_libs=no
15179 # when you set need_version to no, make sure it does not cause -set_version
15180 # flags to be left without arguments
15181 need_version=unknown
15183 case $host_os in
15184 aix3*)
15185 version_type=linux
15186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15187 shlibpath_var=LIBPATH
15189 # AIX 3 has no versioning support, so we append a major version to the name.
15190 soname_spec='${libname}${release}${shared_ext}$major'
15193 aix4* | aix5*)
15194 version_type=linux
15195 need_lib_prefix=no
15196 need_version=no
15197 hardcode_into_libs=yes
15198 if test "$host_cpu" = ia64; then
15199 # AIX 5 supports IA64
15200 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15201 shlibpath_var=LD_LIBRARY_PATH
15202 else
15203 # With GCC up to 2.95.x, collect2 would create an import file
15204 # for dependence libraries. The import file would start with
15205 # the line `#! .'. This would cause the generated library to
15206 # depend on `.', always an invalid library. This was fixed in
15207 # development snapshots of GCC prior to 3.0.
15208 case $host_os in
15209 aix4 | aix4.[01] | aix4.[01].*)
15210 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15211 echo ' yes '
15212 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15214 else
15215 can_build_shared=no
15218 esac
15219 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15220 # soname into executable. Probably we can add versioning support to
15221 # collect2, so additional links can be useful in future.
15222 if test "$aix_use_runtimelinking" = yes; then
15223 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15224 # instead of lib<name>.a to let people know that these are not
15225 # typical AIX shared libraries.
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227 else
15228 # We preserve .a as extension for shared libraries through AIX4.2
15229 # and later when we are not doing run time linking.
15230 library_names_spec='${libname}${release}.a $libname.a'
15231 soname_spec='${libname}${release}${shared_ext}$major'
15233 shlibpath_var=LIBPATH
15237 amigaos*)
15238 library_names_spec='$libname.ixlibrary $libname.a'
15239 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15240 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'
15243 beos*)
15244 library_names_spec='${libname}${shared_ext}'
15245 dynamic_linker="$host_os ld.so"
15246 shlibpath_var=LIBRARY_PATH
15249 bsdi[45]*)
15250 version_type=linux
15251 need_version=no
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253 soname_spec='${libname}${release}${shared_ext}$major'
15254 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15255 shlibpath_var=LD_LIBRARY_PATH
15256 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15257 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15258 # the default ld.so.conf also contains /usr/contrib/lib and
15259 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15260 # libtool to hard-code these into programs
15263 cygwin* | mingw* | pw32*)
15264 version_type=windows
15265 shrext_cmds=".dll"
15266 need_version=no
15267 need_lib_prefix=no
15269 case $GCC,$host_os in
15270 yes,cygwin* | yes,mingw* | yes,pw32*)
15271 library_names_spec='$libname.dll.a'
15272 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15273 postinstall_cmds='base_file=`basename \${file}`~
15274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15275 dldir=$destdir/`dirname \$dlpath`~
15276 test -d \$dldir || mkdir -p \$dldir~
15277 $install_prog $dir/$dlname \$dldir/$dlname~
15278 chmod a+x \$dldir/$dlname'
15279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15280 dlpath=$dir/\$dldll~
15281 $rm \$dlpath'
15282 shlibpath_overrides_runpath=yes
15284 case $host_os in
15285 cygwin*)
15286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15287 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15288 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15290 mingw*)
15291 # MinGW DLLs use traditional 'lib' prefix
15292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15294 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15295 # It is most probably a Windows format PATH printed by
15296 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15297 # path with ; separators, and with drive letters. We can handle the
15298 # drive letters (cygwin fileutils understands them), so leave them,
15299 # especially as we might pass files found there to a mingw objdump,
15300 # which wouldn't understand a cygwinified path. Ahh.
15301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15302 else
15303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15306 pw32*)
15307 # pw32 DLLs use 'pw' prefix rather than 'lib'
15308 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15310 esac
15314 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15316 esac
15317 dynamic_linker='Win32 ld.exe'
15318 # FIXME: first we should search . and the directory the executable is in
15319 shlibpath_var=PATH
15322 darwin* | rhapsody*)
15323 dynamic_linker="$host_os dyld"
15324 version_type=darwin
15325 need_lib_prefix=no
15326 need_version=no
15327 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15328 soname_spec='${libname}${release}${major}$shared_ext'
15329 shlibpath_overrides_runpath=yes
15330 shlibpath_var=DYLD_LIBRARY_PATH
15331 shrext_cmds='.dylib'
15332 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15333 if test "$GCC" = yes; then
15334 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"`
15335 else
15336 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15341 dgux*)
15342 version_type=linux
15343 need_lib_prefix=no
15344 need_version=no
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 shlibpath_var=LD_LIBRARY_PATH
15350 freebsd1*)
15351 dynamic_linker=no
15354 kfreebsd*-gnu)
15355 version_type=linux
15356 need_lib_prefix=no
15357 need_version=no
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 shlibpath_var=LD_LIBRARY_PATH
15361 shlibpath_overrides_runpath=no
15362 hardcode_into_libs=yes
15363 dynamic_linker='GNU ld.so'
15366 freebsd* | dragonfly*)
15367 # DragonFly does not have aout. When/if they implement a new
15368 # versioning mechanism, adjust this.
15369 if test -x /usr/bin/objformat; then
15370 objformat=`/usr/bin/objformat`
15371 else
15372 case $host_os in
15373 freebsd[123]*) objformat=aout ;;
15374 *) objformat=elf ;;
15375 esac
15377 version_type=freebsd-$objformat
15378 case $version_type in
15379 freebsd-elf*)
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15381 need_version=no
15382 need_lib_prefix=no
15384 freebsd-*)
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15386 need_version=yes
15388 esac
15389 shlibpath_var=LD_LIBRARY_PATH
15390 case $host_os in
15391 freebsd2*)
15392 shlibpath_overrides_runpath=yes
15394 freebsd3.[01]* | freebsdelf3.[01]*)
15395 shlibpath_overrides_runpath=yes
15396 hardcode_into_libs=yes
15398 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15399 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15400 shlibpath_overrides_runpath=no
15401 hardcode_into_libs=yes
15403 freebsd*) # from 4.6 on
15404 shlibpath_overrides_runpath=yes
15405 hardcode_into_libs=yes
15407 esac
15410 gnu*)
15411 version_type=linux
15412 need_lib_prefix=no
15413 need_version=no
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15415 soname_spec='${libname}${release}${shared_ext}$major'
15416 shlibpath_var=LD_LIBRARY_PATH
15417 hardcode_into_libs=yes
15420 hpux9* | hpux10* | hpux11*)
15421 # Give a soname corresponding to the major version so that dld.sl refuses to
15422 # link against other versions.
15423 version_type=sunos
15424 need_lib_prefix=no
15425 need_version=no
15426 case $host_cpu in
15427 ia64*)
15428 shrext_cmds='.so'
15429 hardcode_into_libs=yes
15430 dynamic_linker="$host_os dld.so"
15431 shlibpath_var=LD_LIBRARY_PATH
15432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 if test "X$HPUX_IA64_MODE" = X32; then
15436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15437 else
15438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15442 hppa*64*)
15443 shrext_cmds='.sl'
15444 hardcode_into_libs=yes
15445 dynamic_linker="$host_os dld.sl"
15446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15454 shrext_cmds='.sl'
15455 dynamic_linker="$host_os dld.sl"
15456 shlibpath_var=SHLIB_PATH
15457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15461 esac
15462 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15463 postinstall_cmds='chmod 555 $lib'
15466 interix3*)
15467 version_type=linux
15468 need_lib_prefix=no
15469 need_version=no
15470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15471 soname_spec='${libname}${release}${shared_ext}$major'
15472 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15473 shlibpath_var=LD_LIBRARY_PATH
15474 shlibpath_overrides_runpath=no
15475 hardcode_into_libs=yes
15478 irix5* | irix6* | nonstopux*)
15479 case $host_os in
15480 nonstopux*) version_type=nonstopux ;;
15482 if test "$lt_cv_prog_gnu_ld" = yes; then
15483 version_type=linux
15484 else
15485 version_type=irix
15486 fi ;;
15487 esac
15488 need_lib_prefix=no
15489 need_version=no
15490 soname_spec='${libname}${release}${shared_ext}$major'
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15492 case $host_os in
15493 irix5* | nonstopux*)
15494 libsuff= shlibsuff=
15497 case $LD in # libtool.m4 will add one of these switches to LD
15498 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15499 libsuff= shlibsuff= libmagic=32-bit;;
15500 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15501 libsuff=32 shlibsuff=N32 libmagic=N32;;
15502 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15503 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15504 *) libsuff= shlibsuff= libmagic=never-match;;
15505 esac
15507 esac
15508 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15509 shlibpath_overrides_runpath=no
15510 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15511 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15512 hardcode_into_libs=yes
15515 # No shared lib support for Linux oldld, aout, or coff.
15516 linux*oldld* | linux*aout* | linux*coff*)
15517 dynamic_linker=no
15520 # This must be Linux ELF.
15521 linux*)
15522 version_type=linux
15523 need_lib_prefix=no
15524 need_version=no
15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15526 soname_spec='${libname}${release}${shared_ext}$major'
15527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15528 shlibpath_var=LD_LIBRARY_PATH
15529 shlibpath_overrides_runpath=no
15530 # This implies no fast_install, which is unacceptable.
15531 # Some rework will be needed to allow for fast_install
15532 # before this can be enabled.
15533 hardcode_into_libs=yes
15535 # Append ld.so.conf contents to the search path
15536 if test -f /etc/ld.so.conf; then
15537 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' ' '`
15538 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15541 # We used to test for /lib/ld.so.1 and disable shared libraries on
15542 # powerpc, because MkLinux only supported shared libraries with the
15543 # GNU dynamic linker. Since this was broken with cross compilers,
15544 # most powerpc-linux boxes support dynamic linking these days and
15545 # people can always --disable-shared, the test was removed, and we
15546 # assume the GNU/Linux dynamic linker is in use.
15547 dynamic_linker='GNU/Linux ld.so'
15550 knetbsd*-gnu)
15551 version_type=linux
15552 need_lib_prefix=no
15553 need_version=no
15554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15555 soname_spec='${libname}${release}${shared_ext}$major'
15556 shlibpath_var=LD_LIBRARY_PATH
15557 shlibpath_overrides_runpath=no
15558 hardcode_into_libs=yes
15559 dynamic_linker='GNU ld.so'
15562 netbsd*)
15563 version_type=sunos
15564 need_lib_prefix=no
15565 need_version=no
15566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15569 dynamic_linker='NetBSD (a.out) ld.so'
15570 else
15571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15572 soname_spec='${libname}${release}${shared_ext}$major'
15573 dynamic_linker='NetBSD ld.elf_so'
15575 shlibpath_var=LD_LIBRARY_PATH
15576 shlibpath_overrides_runpath=yes
15577 hardcode_into_libs=yes
15580 newsos6)
15581 version_type=linux
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583 shlibpath_var=LD_LIBRARY_PATH
15584 shlibpath_overrides_runpath=yes
15587 nto-qnx*)
15588 version_type=linux
15589 need_lib_prefix=no
15590 need_version=no
15591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15592 soname_spec='${libname}${release}${shared_ext}$major'
15593 shlibpath_var=LD_LIBRARY_PATH
15594 shlibpath_overrides_runpath=yes
15597 openbsd*)
15598 version_type=sunos
15599 sys_lib_dlsearch_path_spec="/usr/lib"
15600 need_lib_prefix=no
15601 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15602 case $host_os in
15603 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15604 *) need_version=no ;;
15605 esac
15606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15608 shlibpath_var=LD_LIBRARY_PATH
15609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15610 case $host_os in
15611 openbsd2.[89] | openbsd2.[89].*)
15612 shlibpath_overrides_runpath=no
15615 shlibpath_overrides_runpath=yes
15617 esac
15618 else
15619 shlibpath_overrides_runpath=yes
15623 os2*)
15624 libname_spec='$name'
15625 shrext_cmds=".dll"
15626 need_lib_prefix=no
15627 library_names_spec='$libname${shared_ext} $libname.a'
15628 dynamic_linker='OS/2 ld.exe'
15629 shlibpath_var=LIBPATH
15632 osf3* | osf4* | osf5*)
15633 version_type=osf
15634 need_lib_prefix=no
15635 need_version=no
15636 soname_spec='${libname}${release}${shared_ext}$major'
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15638 shlibpath_var=LD_LIBRARY_PATH
15639 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15640 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15643 solaris*)
15644 version_type=linux
15645 need_lib_prefix=no
15646 need_version=no
15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648 soname_spec='${libname}${release}${shared_ext}$major'
15649 shlibpath_var=LD_LIBRARY_PATH
15650 shlibpath_overrides_runpath=yes
15651 hardcode_into_libs=yes
15652 # ldd complains unless libraries are executable
15653 postinstall_cmds='chmod +x $lib'
15656 sunos4*)
15657 version_type=sunos
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15659 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15660 shlibpath_var=LD_LIBRARY_PATH
15661 shlibpath_overrides_runpath=yes
15662 if test "$with_gnu_ld" = yes; then
15663 need_lib_prefix=no
15665 need_version=yes
15668 sysv4 | sysv4.3*)
15669 version_type=linux
15670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15671 soname_spec='${libname}${release}${shared_ext}$major'
15672 shlibpath_var=LD_LIBRARY_PATH
15673 case $host_vendor in
15674 sni)
15675 shlibpath_overrides_runpath=no
15676 need_lib_prefix=no
15677 export_dynamic_flag_spec='${wl}-Blargedynsym'
15678 runpath_var=LD_RUN_PATH
15680 siemens)
15681 need_lib_prefix=no
15683 motorola)
15684 need_lib_prefix=no
15685 need_version=no
15686 shlibpath_overrides_runpath=no
15687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15689 esac
15692 sysv4*MP*)
15693 if test -d /usr/nec ;then
15694 version_type=linux
15695 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15696 soname_spec='$libname${shared_ext}.$major'
15697 shlibpath_var=LD_LIBRARY_PATH
15701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15702 version_type=freebsd-elf
15703 need_lib_prefix=no
15704 need_version=no
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15706 soname_spec='${libname}${release}${shared_ext}$major'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 hardcode_into_libs=yes
15709 if test "$with_gnu_ld" = yes; then
15710 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15711 shlibpath_overrides_runpath=no
15712 else
15713 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15714 shlibpath_overrides_runpath=yes
15715 case $host_os in
15716 sco3.2v5*)
15717 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15719 esac
15721 sys_lib_dlsearch_path_spec='/usr/lib'
15724 uts4*)
15725 version_type=linux
15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727 soname_spec='${libname}${release}${shared_ext}$major'
15728 shlibpath_var=LD_LIBRARY_PATH
15732 dynamic_linker=no
15734 esac
15735 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15736 echo "${ECHO_T}$dynamic_linker" >&6; }
15737 test "$dynamic_linker" = no && can_build_shared=no
15739 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15740 if test "$GCC" = yes; then
15741 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15744 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15745 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15746 hardcode_action=
15747 if test -n "$hardcode_libdir_flag_spec" || \
15748 test -n "$runpath_var" || \
15749 test "X$hardcode_automatic" = "Xyes" ; then
15751 # We can hardcode non-existant directories.
15752 if test "$hardcode_direct" != no &&
15753 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15754 # have to relink, otherwise we might link with an installed library
15755 # when we should be linking with a yet-to-be-installed one
15756 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15757 test "$hardcode_minus_L" != no; then
15758 # Linking always hardcodes the temporary library directory.
15759 hardcode_action=relink
15760 else
15761 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15762 hardcode_action=immediate
15764 else
15765 # We cannot hardcode anything, or else we can only hardcode existing
15766 # directories.
15767 hardcode_action=unsupported
15769 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
15770 echo "${ECHO_T}$hardcode_action" >&6; }
15772 if test "$hardcode_action" = relink; then
15773 # Fast installation is not supported
15774 enable_fast_install=no
15775 elif test "$shlibpath_overrides_runpath" = yes ||
15776 test "$enable_shared" = no; then
15777 # Fast installation is not necessary
15778 enable_fast_install=needless
15781 striplib=
15782 old_striplib=
15783 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15784 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15785 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15786 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15787 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15788 { echo "$as_me:$LINENO: result: yes" >&5
15789 echo "${ECHO_T}yes" >&6; }
15790 else
15791 # FIXME - insert some real tests, host_os isn't really good enough
15792 case $host_os in
15793 darwin*)
15794 if test -n "$STRIP" ; then
15795 striplib="$STRIP -x"
15796 { echo "$as_me:$LINENO: result: yes" >&5
15797 echo "${ECHO_T}yes" >&6; }
15798 else
15799 { echo "$as_me:$LINENO: result: no" >&5
15800 echo "${ECHO_T}no" >&6; }
15804 { echo "$as_me:$LINENO: result: no" >&5
15805 echo "${ECHO_T}no" >&6; }
15807 esac
15810 if test "x$enable_dlopen" != xyes; then
15811 enable_dlopen=unknown
15812 enable_dlopen_self=unknown
15813 enable_dlopen_self_static=unknown
15814 else
15815 lt_cv_dlopen=no
15816 lt_cv_dlopen_libs=
15818 case $host_os in
15819 beos*)
15820 lt_cv_dlopen="load_add_on"
15821 lt_cv_dlopen_libs=
15822 lt_cv_dlopen_self=yes
15825 mingw* | pw32*)
15826 lt_cv_dlopen="LoadLibrary"
15827 lt_cv_dlopen_libs=
15830 cygwin*)
15831 lt_cv_dlopen="dlopen"
15832 lt_cv_dlopen_libs=
15835 darwin*)
15836 # if libdl is installed we need to link against it
15837 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15838 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15839 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15841 else
15842 ac_check_lib_save_LIBS=$LIBS
15843 LIBS="-ldl $LIBS"
15844 cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h. */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15851 /* Override any GCC internal prototype to avoid an error.
15852 Use char because int might match the return type of a GCC
15853 builtin and then its argument prototype would still apply. */
15854 #ifdef __cplusplus
15855 extern "C"
15856 #endif
15857 char dlopen ();
15859 main ()
15861 return dlopen ();
15863 return 0;
15865 _ACEOF
15866 rm -f conftest.$ac_objext conftest$ac_exeext
15867 if { (ac_try="$ac_link"
15868 case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15871 esac
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_link") 2>conftest.er1
15874 ac_status=$?
15875 grep -v '^ *+' conftest.er1 >conftest.err
15876 rm -f conftest.er1
15877 cat conftest.err >&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } && {
15880 test -z "$ac_c_werror_flag" ||
15881 test ! -s conftest.err
15882 } && test -s conftest$ac_exeext &&
15883 $as_test_x conftest$ac_exeext; then
15884 ac_cv_lib_dl_dlopen=yes
15885 else
15886 echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 ac_cv_lib_dl_dlopen=no
15892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15893 conftest$ac_exeext conftest.$ac_ext
15894 LIBS=$ac_check_lib_save_LIBS
15896 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15897 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15898 if test $ac_cv_lib_dl_dlopen = yes; then
15899 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15900 else
15902 lt_cv_dlopen="dyld"
15903 lt_cv_dlopen_libs=
15904 lt_cv_dlopen_self=yes
15911 { echo "$as_me:$LINENO: checking for shl_load" >&5
15912 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15913 if test "${ac_cv_func_shl_load+set}" = set; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15915 else
15916 cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h. */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15924 #define shl_load innocuous_shl_load
15926 /* System header to define __stub macros and hopefully few prototypes,
15927 which can conflict with char shl_load (); below.
15928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15929 <limits.h> exists even on freestanding compilers. */
15931 #ifdef __STDC__
15932 # include <limits.h>
15933 #else
15934 # include <assert.h>
15935 #endif
15937 #undef shl_load
15939 /* Override any GCC internal prototype to avoid an error.
15940 Use char because int might match the return type of a GCC
15941 builtin and then its argument prototype would still apply. */
15942 #ifdef __cplusplus
15943 extern "C"
15944 #endif
15945 char shl_load ();
15946 /* The GNU C library defines this for functions which it implements
15947 to always fail with ENOSYS. Some functions are actually named
15948 something starting with __ and the normal name is an alias. */
15949 #if defined __stub_shl_load || defined __stub___shl_load
15950 choke me
15951 #endif
15954 main ()
15956 return shl_load ();
15958 return 0;
15960 _ACEOF
15961 rm -f conftest.$ac_objext conftest$ac_exeext
15962 if { (ac_try="$ac_link"
15963 case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15966 esac
15967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_link") 2>conftest.er1
15969 ac_status=$?
15970 grep -v '^ *+' conftest.er1 >conftest.err
15971 rm -f conftest.er1
15972 cat conftest.err >&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } && {
15975 test -z "$ac_c_werror_flag" ||
15976 test ! -s conftest.err
15977 } && test -s conftest$ac_exeext &&
15978 $as_test_x conftest$ac_exeext; then
15979 ac_cv_func_shl_load=yes
15980 else
15981 echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15984 ac_cv_func_shl_load=no
15987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15988 conftest$ac_exeext conftest.$ac_ext
15990 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15991 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15992 if test $ac_cv_func_shl_load = yes; then
15993 lt_cv_dlopen="shl_load"
15994 else
15995 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15996 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15997 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15998 echo $ECHO_N "(cached) $ECHO_C" >&6
15999 else
16000 ac_check_lib_save_LIBS=$LIBS
16001 LIBS="-ldld $LIBS"
16002 cat >conftest.$ac_ext <<_ACEOF
16003 /* confdefs.h. */
16004 _ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16009 /* Override any GCC internal prototype to avoid an error.
16010 Use char because int might match the return type of a GCC
16011 builtin and then its argument prototype would still apply. */
16012 #ifdef __cplusplus
16013 extern "C"
16014 #endif
16015 char shl_load ();
16017 main ()
16019 return shl_load ();
16021 return 0;
16023 _ACEOF
16024 rm -f conftest.$ac_objext conftest$ac_exeext
16025 if { (ac_try="$ac_link"
16026 case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16029 esac
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_link") 2>conftest.er1
16032 ac_status=$?
16033 grep -v '^ *+' conftest.er1 >conftest.err
16034 rm -f conftest.er1
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } && {
16038 test -z "$ac_c_werror_flag" ||
16039 test ! -s conftest.err
16040 } && test -s conftest$ac_exeext &&
16041 $as_test_x conftest$ac_exeext; then
16042 ac_cv_lib_dld_shl_load=yes
16043 else
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 ac_cv_lib_dld_shl_load=no
16050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16051 conftest$ac_exeext conftest.$ac_ext
16052 LIBS=$ac_check_lib_save_LIBS
16054 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16055 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16056 if test $ac_cv_lib_dld_shl_load = yes; then
16057 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16058 else
16059 { echo "$as_me:$LINENO: checking for dlopen" >&5
16060 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16061 if test "${ac_cv_func_dlopen+set}" = set; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16063 else
16064 cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h. */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16070 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16072 #define dlopen innocuous_dlopen
16074 /* System header to define __stub macros and hopefully few prototypes,
16075 which can conflict with char dlopen (); below.
16076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16077 <limits.h> exists even on freestanding compilers. */
16079 #ifdef __STDC__
16080 # include <limits.h>
16081 #else
16082 # include <assert.h>
16083 #endif
16085 #undef dlopen
16087 /* Override any GCC internal prototype to avoid an error.
16088 Use char because int might match the return type of a GCC
16089 builtin and then its argument prototype would still apply. */
16090 #ifdef __cplusplus
16091 extern "C"
16092 #endif
16093 char dlopen ();
16094 /* The GNU C library defines this for functions which it implements
16095 to always fail with ENOSYS. Some functions are actually named
16096 something starting with __ and the normal name is an alias. */
16097 #if defined __stub_dlopen || defined __stub___dlopen
16098 choke me
16099 #endif
16102 main ()
16104 return dlopen ();
16106 return 0;
16108 _ACEOF
16109 rm -f conftest.$ac_objext conftest$ac_exeext
16110 if { (ac_try="$ac_link"
16111 case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16114 esac
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_link") 2>conftest.er1
16117 ac_status=$?
16118 grep -v '^ *+' conftest.er1 >conftest.err
16119 rm -f conftest.er1
16120 cat conftest.err >&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } && {
16123 test -z "$ac_c_werror_flag" ||
16124 test ! -s conftest.err
16125 } && test -s conftest$ac_exeext &&
16126 $as_test_x conftest$ac_exeext; then
16127 ac_cv_func_dlopen=yes
16128 else
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16132 ac_cv_func_dlopen=no
16135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16136 conftest$ac_exeext conftest.$ac_ext
16138 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16139 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16140 if test $ac_cv_func_dlopen = yes; then
16141 lt_cv_dlopen="dlopen"
16142 else
16143 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16144 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16145 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 else
16148 ac_check_lib_save_LIBS=$LIBS
16149 LIBS="-ldl $LIBS"
16150 cat >conftest.$ac_ext <<_ACEOF
16151 /* confdefs.h. */
16152 _ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16157 /* Override any GCC internal prototype to avoid an error.
16158 Use char because int might match the return type of a GCC
16159 builtin and then its argument prototype would still apply. */
16160 #ifdef __cplusplus
16161 extern "C"
16162 #endif
16163 char dlopen ();
16165 main ()
16167 return dlopen ();
16169 return 0;
16171 _ACEOF
16172 rm -f conftest.$ac_objext conftest$ac_exeext
16173 if { (ac_try="$ac_link"
16174 case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16177 esac
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_link") 2>conftest.er1
16180 ac_status=$?
16181 grep -v '^ *+' conftest.er1 >conftest.err
16182 rm -f conftest.er1
16183 cat conftest.err >&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } && {
16186 test -z "$ac_c_werror_flag" ||
16187 test ! -s conftest.err
16188 } && test -s conftest$ac_exeext &&
16189 $as_test_x conftest$ac_exeext; then
16190 ac_cv_lib_dl_dlopen=yes
16191 else
16192 echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16195 ac_cv_lib_dl_dlopen=no
16198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16199 conftest$ac_exeext conftest.$ac_ext
16200 LIBS=$ac_check_lib_save_LIBS
16202 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16203 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16204 if test $ac_cv_lib_dl_dlopen = yes; then
16205 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16206 else
16207 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16208 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16209 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16211 else
16212 ac_check_lib_save_LIBS=$LIBS
16213 LIBS="-lsvld $LIBS"
16214 cat >conftest.$ac_ext <<_ACEOF
16215 /* confdefs.h. */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16221 /* Override any GCC internal prototype to avoid an error.
16222 Use char because int might match the return type of a GCC
16223 builtin and then its argument prototype would still apply. */
16224 #ifdef __cplusplus
16225 extern "C"
16226 #endif
16227 char dlopen ();
16229 main ()
16231 return dlopen ();
16233 return 0;
16235 _ACEOF
16236 rm -f conftest.$ac_objext conftest$ac_exeext
16237 if { (ac_try="$ac_link"
16238 case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16241 esac
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_link") 2>conftest.er1
16244 ac_status=$?
16245 grep -v '^ *+' conftest.er1 >conftest.err
16246 rm -f conftest.er1
16247 cat conftest.err >&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } && {
16250 test -z "$ac_c_werror_flag" ||
16251 test ! -s conftest.err
16252 } && test -s conftest$ac_exeext &&
16253 $as_test_x conftest$ac_exeext; then
16254 ac_cv_lib_svld_dlopen=yes
16255 else
16256 echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16259 ac_cv_lib_svld_dlopen=no
16262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16263 conftest$ac_exeext conftest.$ac_ext
16264 LIBS=$ac_check_lib_save_LIBS
16266 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16267 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16268 if test $ac_cv_lib_svld_dlopen = yes; then
16269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16270 else
16271 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16272 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16273 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16275 else
16276 ac_check_lib_save_LIBS=$LIBS
16277 LIBS="-ldld $LIBS"
16278 cat >conftest.$ac_ext <<_ACEOF
16279 /* confdefs.h. */
16280 _ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16285 /* Override any GCC internal prototype to avoid an error.
16286 Use char because int might match the return type of a GCC
16287 builtin and then its argument prototype would still apply. */
16288 #ifdef __cplusplus
16289 extern "C"
16290 #endif
16291 char dld_link ();
16293 main ()
16295 return dld_link ();
16297 return 0;
16299 _ACEOF
16300 rm -f conftest.$ac_objext conftest$ac_exeext
16301 if { (ac_try="$ac_link"
16302 case "(($ac_try" in
16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16305 esac
16306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307 (eval "$ac_link") 2>conftest.er1
16308 ac_status=$?
16309 grep -v '^ *+' conftest.er1 >conftest.err
16310 rm -f conftest.er1
16311 cat conftest.err >&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } && {
16314 test -z "$ac_c_werror_flag" ||
16315 test ! -s conftest.err
16316 } && test -s conftest$ac_exeext &&
16317 $as_test_x conftest$ac_exeext; then
16318 ac_cv_lib_dld_dld_link=yes
16319 else
16320 echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16323 ac_cv_lib_dld_dld_link=no
16326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16327 conftest$ac_exeext conftest.$ac_ext
16328 LIBS=$ac_check_lib_save_LIBS
16330 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16331 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16332 if test $ac_cv_lib_dld_dld_link = yes; then
16333 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16352 esac
16354 if test "x$lt_cv_dlopen" != xno; then
16355 enable_dlopen=yes
16356 else
16357 enable_dlopen=no
16360 case $lt_cv_dlopen in
16361 dlopen)
16362 save_CPPFLAGS="$CPPFLAGS"
16363 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16365 save_LDFLAGS="$LDFLAGS"
16366 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16368 save_LIBS="$LIBS"
16369 LIBS="$lt_cv_dlopen_libs $LIBS"
16371 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16372 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16373 if test "${lt_cv_dlopen_self+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16375 else
16376 if test "$cross_compiling" = yes; then :
16377 lt_cv_dlopen_self=cross
16378 else
16379 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16380 lt_status=$lt_dlunknown
16381 cat > conftest.$ac_ext <<EOF
16382 #line 16382 "configure"
16383 #include "confdefs.h"
16385 #if HAVE_DLFCN_H
16386 #include <dlfcn.h>
16387 #endif
16389 #include <stdio.h>
16391 #ifdef RTLD_GLOBAL
16392 # define LT_DLGLOBAL RTLD_GLOBAL
16393 #else
16394 # ifdef DL_GLOBAL
16395 # define LT_DLGLOBAL DL_GLOBAL
16396 # else
16397 # define LT_DLGLOBAL 0
16398 # endif
16399 #endif
16401 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16402 find out it does not work in some platform. */
16403 #ifndef LT_DLLAZY_OR_NOW
16404 # ifdef RTLD_LAZY
16405 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16406 # else
16407 # ifdef DL_LAZY
16408 # define LT_DLLAZY_OR_NOW DL_LAZY
16409 # else
16410 # ifdef RTLD_NOW
16411 # define LT_DLLAZY_OR_NOW RTLD_NOW
16412 # else
16413 # ifdef DL_NOW
16414 # define LT_DLLAZY_OR_NOW DL_NOW
16415 # else
16416 # define LT_DLLAZY_OR_NOW 0
16417 # endif
16418 # endif
16419 # endif
16420 # endif
16421 #endif
16423 #ifdef __cplusplus
16424 extern "C" void exit (int);
16425 #endif
16427 void fnord() { int i=42;}
16428 int main ()
16430 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16431 int status = $lt_dlunknown;
16433 if (self)
16435 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16436 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16437 /* dlclose (self); */
16439 else
16440 puts (dlerror ());
16442 exit (status);
16445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16446 (eval $ac_link) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16450 (./conftest; exit; ) >&5 2>/dev/null
16451 lt_status=$?
16452 case x$lt_status in
16453 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16454 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16455 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16456 esac
16457 else :
16458 # compilation failed
16459 lt_cv_dlopen_self=no
16462 rm -fr conftest*
16466 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16467 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16469 if test "x$lt_cv_dlopen_self" = xyes; then
16470 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16471 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16472 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16473 if test "${lt_cv_dlopen_self_static+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16475 else
16476 if test "$cross_compiling" = yes; then :
16477 lt_cv_dlopen_self_static=cross
16478 else
16479 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16480 lt_status=$lt_dlunknown
16481 cat > conftest.$ac_ext <<EOF
16482 #line 16482 "configure"
16483 #include "confdefs.h"
16485 #if HAVE_DLFCN_H
16486 #include <dlfcn.h>
16487 #endif
16489 #include <stdio.h>
16491 #ifdef RTLD_GLOBAL
16492 # define LT_DLGLOBAL RTLD_GLOBAL
16493 #else
16494 # ifdef DL_GLOBAL
16495 # define LT_DLGLOBAL DL_GLOBAL
16496 # else
16497 # define LT_DLGLOBAL 0
16498 # endif
16499 #endif
16501 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16502 find out it does not work in some platform. */
16503 #ifndef LT_DLLAZY_OR_NOW
16504 # ifdef RTLD_LAZY
16505 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16506 # else
16507 # ifdef DL_LAZY
16508 # define LT_DLLAZY_OR_NOW DL_LAZY
16509 # else
16510 # ifdef RTLD_NOW
16511 # define LT_DLLAZY_OR_NOW RTLD_NOW
16512 # else
16513 # ifdef DL_NOW
16514 # define LT_DLLAZY_OR_NOW DL_NOW
16515 # else
16516 # define LT_DLLAZY_OR_NOW 0
16517 # endif
16518 # endif
16519 # endif
16520 # endif
16521 #endif
16523 #ifdef __cplusplus
16524 extern "C" void exit (int);
16525 #endif
16527 void fnord() { int i=42;}
16528 int main ()
16530 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16531 int status = $lt_dlunknown;
16533 if (self)
16535 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16536 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16537 /* dlclose (self); */
16539 else
16540 puts (dlerror ());
16542 exit (status);
16545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16546 (eval $ac_link) 2>&5
16547 ac_status=$?
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16550 (./conftest; exit; ) >&5 2>/dev/null
16551 lt_status=$?
16552 case x$lt_status in
16553 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16554 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16555 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16556 esac
16557 else :
16558 # compilation failed
16559 lt_cv_dlopen_self_static=no
16562 rm -fr conftest*
16566 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16567 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16570 CPPFLAGS="$save_CPPFLAGS"
16571 LDFLAGS="$save_LDFLAGS"
16572 LIBS="$save_LIBS"
16574 esac
16576 case $lt_cv_dlopen_self in
16577 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16578 *) enable_dlopen_self=unknown ;;
16579 esac
16581 case $lt_cv_dlopen_self_static in
16582 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16583 *) enable_dlopen_self_static=unknown ;;
16584 esac
16588 # Report which library types will actually be built
16589 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16590 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16591 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16592 echo "${ECHO_T}$can_build_shared" >&6; }
16594 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16595 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16596 test "$can_build_shared" = "no" && enable_shared=no
16598 # On AIX, shared libraries and static libraries use the same namespace, and
16599 # are all built from PIC.
16600 case $host_os in
16601 aix3*)
16602 test "$enable_shared" = yes && enable_static=no
16603 if test -n "$RANLIB"; then
16604 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16605 postinstall_cmds='$RANLIB $lib'
16609 aix4* | aix5*)
16610 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16611 test "$enable_shared" = yes && enable_static=no
16614 esac
16615 { echo "$as_me:$LINENO: result: $enable_shared" >&5
16616 echo "${ECHO_T}$enable_shared" >&6; }
16618 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16619 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16620 # Make sure either enable_shared or enable_static is yes.
16621 test "$enable_shared" = yes || enable_static=yes
16622 { echo "$as_me:$LINENO: result: $enable_static" >&5
16623 echo "${ECHO_T}$enable_static" >&6; }
16625 # The else clause should only fire when bootstrapping the
16626 # libtool distribution, otherwise you forgot to ship ltmain.sh
16627 # with your package, and you will get complaints that there are
16628 # no rules to generate ltmain.sh.
16629 if test -f "$ltmain"; then
16630 # See if we are running on zsh, and set the options which allow our commands through
16631 # without removal of \ escapes.
16632 if test -n "${ZSH_VERSION+set}" ; then
16633 setopt NO_GLOB_SUBST
16635 # Now quote all the things that may contain metacharacters while being
16636 # careful not to overquote the AC_SUBSTed values. We take copies of the
16637 # variables and quote the copies for generation of the libtool script.
16638 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16639 SED SHELL STRIP \
16640 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16641 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16642 deplibs_check_method reload_flag reload_cmds need_locks \
16643 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16644 lt_cv_sys_global_symbol_to_c_name_address \
16645 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16646 old_postinstall_cmds old_postuninstall_cmds \
16647 compiler \
16648 CC \
16649 LD \
16650 lt_prog_compiler_wl \
16651 lt_prog_compiler_pic \
16652 lt_prog_compiler_static \
16653 lt_prog_compiler_no_builtin_flag \
16654 export_dynamic_flag_spec \
16655 thread_safe_flag_spec \
16656 whole_archive_flag_spec \
16657 enable_shared_with_static_runtimes \
16658 old_archive_cmds \
16659 old_archive_from_new_cmds \
16660 predep_objects \
16661 postdep_objects \
16662 predeps \
16663 postdeps \
16664 compiler_lib_search_path \
16665 archive_cmds \
16666 archive_expsym_cmds \
16667 postinstall_cmds \
16668 postuninstall_cmds \
16669 old_archive_from_expsyms_cmds \
16670 allow_undefined_flag \
16671 no_undefined_flag \
16672 export_symbols_cmds \
16673 hardcode_libdir_flag_spec \
16674 hardcode_libdir_flag_spec_ld \
16675 hardcode_libdir_separator \
16676 hardcode_automatic \
16677 module_cmds \
16678 module_expsym_cmds \
16679 lt_cv_prog_compiler_c_o \
16680 exclude_expsyms \
16681 include_expsyms; do
16683 case $var in
16684 old_archive_cmds | \
16685 old_archive_from_new_cmds | \
16686 archive_cmds | \
16687 archive_expsym_cmds | \
16688 module_cmds | \
16689 module_expsym_cmds | \
16690 old_archive_from_expsyms_cmds | \
16691 export_symbols_cmds | \
16692 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16693 postinstall_cmds | postuninstall_cmds | \
16694 old_postinstall_cmds | old_postuninstall_cmds | \
16695 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16696 # Double-quote double-evaled strings.
16697 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16702 esac
16703 done
16705 case $lt_echo in
16706 *'\$0 --fallback-echo"')
16707 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16709 esac
16711 cfgfile="${ofile}T"
16712 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16713 $rm -f "$cfgfile"
16714 { echo "$as_me:$LINENO: creating $ofile" >&5
16715 echo "$as_me: creating $ofile" >&6;}
16717 cat <<__EOF__ >> "$cfgfile"
16718 #! $SHELL
16720 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16721 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16722 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16724 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16725 # Free Software Foundation, Inc.
16727 # This file is part of GNU Libtool:
16728 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16730 # This program is free software; you can redistribute it and/or modify
16731 # it under the terms of the GNU General Public License as published by
16732 # the Free Software Foundation; either version 2 of the License, or
16733 # (at your option) any later version.
16735 # This program is distributed in the hope that it will be useful, but
16736 # WITHOUT ANY WARRANTY; without even the implied warranty of
16737 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16738 # General Public License for more details.
16740 # You should have received a copy of the GNU General Public License
16741 # along with this program; if not, write to the Free Software
16742 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16744 # As a special exception to the GNU General Public License, if you
16745 # distribute this file as part of a program that contains a
16746 # configuration script generated by Autoconf, you may include it under
16747 # the same distribution terms that you use for the rest of that program.
16749 # A sed program that does not truncate output.
16750 SED=$lt_SED
16752 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16753 Xsed="$SED -e 1s/^X//"
16755 # The HP-UX ksh and POSIX shell print the target directory to stdout
16756 # if CDPATH is set.
16757 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16759 # The names of the tagged configurations supported by this script.
16760 available_tags=
16762 # ### BEGIN LIBTOOL CONFIG
16764 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16766 # Shell to use when invoking shell scripts.
16767 SHELL=$lt_SHELL
16769 # Whether or not to build shared libraries.
16770 build_libtool_libs=$enable_shared
16772 # Whether or not to build static libraries.
16773 build_old_libs=$enable_static
16775 # Whether or not to add -lc for building shared libraries.
16776 build_libtool_need_lc=$archive_cmds_need_lc
16778 # Whether or not to disallow shared libs when runtime libs are static
16779 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16781 # Whether or not to optimize for fast installation.
16782 fast_install=$enable_fast_install
16784 # The host system.
16785 host_alias=$host_alias
16786 host=$host
16787 host_os=$host_os
16789 # The build system.
16790 build_alias=$build_alias
16791 build=$build
16792 build_os=$build_os
16794 # An echo program that does not interpret backslashes.
16795 echo=$lt_echo
16797 # The archiver.
16798 AR=$lt_AR
16799 AR_FLAGS=$lt_AR_FLAGS
16801 # A C compiler.
16802 LTCC=$lt_LTCC
16804 # LTCC compiler flags.
16805 LTCFLAGS=$lt_LTCFLAGS
16807 # A language-specific compiler.
16808 CC=$lt_compiler
16810 # Is the compiler the GNU C compiler?
16811 with_gcc=$GCC
16813 # An ERE matcher.
16814 EGREP=$lt_EGREP
16816 # The linker used to build libraries.
16817 LD=$lt_LD
16819 # Whether we need hard or soft links.
16820 LN_S=$lt_LN_S
16822 # A BSD-compatible nm program.
16823 NM=$lt_NM
16825 # A symbol stripping program
16826 STRIP=$lt_STRIP
16828 # Used to examine libraries when file_magic_cmd begins "file"
16829 MAGIC_CMD=$MAGIC_CMD
16831 # Used on cygwin: DLL creation program.
16832 DLLTOOL="$DLLTOOL"
16834 # Used on cygwin: object dumper.
16835 OBJDUMP="$OBJDUMP"
16837 # Used on cygwin: assembler.
16838 AS="$AS"
16840 # The name of the directory that contains temporary libtool files.
16841 objdir=$objdir
16843 # How to create reloadable object files.
16844 reload_flag=$lt_reload_flag
16845 reload_cmds=$lt_reload_cmds
16847 # How to pass a linker flag through the compiler.
16848 wl=$lt_lt_prog_compiler_wl
16850 # Object file suffix (normally "o").
16851 objext="$ac_objext"
16853 # Old archive suffix (normally "a").
16854 libext="$libext"
16856 # Shared library suffix (normally ".so").
16857 shrext_cmds='$shrext_cmds'
16859 # Executable file suffix (normally "").
16860 exeext="$exeext"
16862 # Additional compiler flags for building library objects.
16863 pic_flag=$lt_lt_prog_compiler_pic
16864 pic_mode=$pic_mode
16866 # What is the maximum length of a command?
16867 max_cmd_len=$lt_cv_sys_max_cmd_len
16869 # Does compiler simultaneously support -c and -o options?
16870 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16872 # Must we lock files when doing compilation?
16873 need_locks=$lt_need_locks
16875 # Do we need the lib prefix for modules?
16876 need_lib_prefix=$need_lib_prefix
16878 # Do we need a version for libraries?
16879 need_version=$need_version
16881 # Whether dlopen is supported.
16882 dlopen_support=$enable_dlopen
16884 # Whether dlopen of programs is supported.
16885 dlopen_self=$enable_dlopen_self
16887 # Whether dlopen of statically linked programs is supported.
16888 dlopen_self_static=$enable_dlopen_self_static
16890 # Compiler flag to prevent dynamic linking.
16891 link_static_flag=$lt_lt_prog_compiler_static
16893 # Compiler flag to turn off builtin functions.
16894 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16896 # Compiler flag to allow reflexive dlopens.
16897 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16899 # Compiler flag to generate shared objects directly from archives.
16900 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16902 # Compiler flag to generate thread-safe objects.
16903 thread_safe_flag_spec=$lt_thread_safe_flag_spec
16905 # Library versioning type.
16906 version_type=$version_type
16908 # Format of library name prefix.
16909 libname_spec=$lt_libname_spec
16911 # List of archive names. First name is the real one, the rest are links.
16912 # The last name is the one that the linker finds with -lNAME.
16913 library_names_spec=$lt_library_names_spec
16915 # The coded name of the library, if different from the real name.
16916 soname_spec=$lt_soname_spec
16918 # Commands used to build and install an old-style archive.
16919 RANLIB=$lt_RANLIB
16920 old_archive_cmds=$lt_old_archive_cmds
16921 old_postinstall_cmds=$lt_old_postinstall_cmds
16922 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16924 # Create an old-style archive from a shared archive.
16925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16927 # Create a temporary old-style archive to link instead of a shared archive.
16928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16930 # Commands used to build and install a shared archive.
16931 archive_cmds=$lt_archive_cmds
16932 archive_expsym_cmds=$lt_archive_expsym_cmds
16933 postinstall_cmds=$lt_postinstall_cmds
16934 postuninstall_cmds=$lt_postuninstall_cmds
16936 # Commands used to build a loadable module (assumed same as above if empty)
16937 module_cmds=$lt_module_cmds
16938 module_expsym_cmds=$lt_module_expsym_cmds
16940 # Commands to strip libraries.
16941 old_striplib=$lt_old_striplib
16942 striplib=$lt_striplib
16944 # Dependencies to place before the objects being linked to create a
16945 # shared library.
16946 predep_objects=$lt_predep_objects
16948 # Dependencies to place after the objects being linked to create a
16949 # shared library.
16950 postdep_objects=$lt_postdep_objects
16952 # Dependencies to place before the objects being linked to create a
16953 # shared library.
16954 predeps=$lt_predeps
16956 # Dependencies to place after the objects being linked to create a
16957 # shared library.
16958 postdeps=$lt_postdeps
16960 # The library search path used internally by the compiler when linking
16961 # a shared library.
16962 compiler_lib_search_path=$lt_compiler_lib_search_path
16964 # Method to check whether dependent libraries are shared objects.
16965 deplibs_check_method=$lt_deplibs_check_method
16967 # Command to use when deplibs_check_method == file_magic.
16968 file_magic_cmd=$lt_file_magic_cmd
16970 # Flag that allows shared libraries with undefined symbols to be built.
16971 allow_undefined_flag=$lt_allow_undefined_flag
16973 # Flag that forces no undefined symbols.
16974 no_undefined_flag=$lt_no_undefined_flag
16976 # Commands used to finish a libtool library installation in a directory.
16977 finish_cmds=$lt_finish_cmds
16979 # Same as above, but a single script fragment to be evaled but not shown.
16980 finish_eval=$lt_finish_eval
16982 # Take the output of nm and produce a listing of raw symbols and C names.
16983 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16985 # Transform the output of nm in a proper C declaration
16986 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16988 # Transform the output of nm in a C name address pair
16989 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16991 # This is the shared library runtime path variable.
16992 runpath_var=$runpath_var
16994 # This is the shared library path variable.
16995 shlibpath_var=$shlibpath_var
16997 # Is shlibpath searched before the hard-coded library search path?
16998 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17000 # How to hardcode a shared library path into an executable.
17001 hardcode_action=$hardcode_action
17003 # Whether we should hardcode library paths into libraries.
17004 hardcode_into_libs=$hardcode_into_libs
17006 # Flag to hardcode \$libdir into a binary during linking.
17007 # This must work even if \$libdir does not exist.
17008 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17010 # If ld is used when linking, flag to hardcode \$libdir into
17011 # a binary during linking. This must work even if \$libdir does
17012 # not exist.
17013 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17015 # Whether we need a single -rpath flag with a separated argument.
17016 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17018 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17019 # resulting binary.
17020 hardcode_direct=$hardcode_direct
17022 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17023 # resulting binary.
17024 hardcode_minus_L=$hardcode_minus_L
17026 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17027 # the resulting binary.
17028 hardcode_shlibpath_var=$hardcode_shlibpath_var
17030 # Set to yes if building a shared library automatically hardcodes DIR into the library
17031 # and all subsequent libraries and executables linked against it.
17032 hardcode_automatic=$hardcode_automatic
17034 # Variables whose values should be saved in libtool wrapper scripts and
17035 # restored at relink time.
17036 variables_saved_for_relink="$variables_saved_for_relink"
17038 # Whether libtool must link a program against all its dependency libraries.
17039 link_all_deplibs=$link_all_deplibs
17041 # Compile-time system search path for libraries
17042 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17044 # Run-time system search path for libraries
17045 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17047 # Fix the shell variable \$srcfile for the compiler.
17048 fix_srcfile_path="$fix_srcfile_path"
17050 # Set to yes if exported symbols are required.
17051 always_export_symbols=$always_export_symbols
17053 # The commands to list exported symbols.
17054 export_symbols_cmds=$lt_export_symbols_cmds
17056 # The commands to extract the exported symbol list from a shared archive.
17057 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17059 # Symbols that should not be listed in the preloaded symbols.
17060 exclude_expsyms=$lt_exclude_expsyms
17062 # Symbols that must always be exported.
17063 include_expsyms=$lt_include_expsyms
17065 # ### END LIBTOOL CONFIG
17067 __EOF__
17070 case $host_os in
17071 aix3*)
17072 cat <<\EOF >> "$cfgfile"
17074 # AIX sometimes has problems with the GCC collect2 program. For some
17075 # reason, if we set the COLLECT_NAMES environment variable, the problems
17076 # vanish in a puff of smoke.
17077 if test "X${COLLECT_NAMES+set}" != Xset; then
17078 COLLECT_NAMES=
17079 export COLLECT_NAMES
17083 esac
17085 # We use sed instead of cat because bash on DJGPP gets confused if
17086 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17087 # text mode, it properly converts lines to CR/LF. This bash problem
17088 # is reportedly fixed, but why not run on old versions too?
17089 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17091 mv -f "$cfgfile" "$ofile" || \
17092 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17093 chmod +x "$ofile"
17095 else
17096 # If there is no Makefile yet, we rely on a make rule to execute
17097 # `config.status --recheck' to rerun these tests and create the
17098 # libtool script then.
17099 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17100 if test -f "$ltmain_in"; then
17101 test -f Makefile && make "$ltmain"
17106 ac_ext=c
17107 ac_cpp='$CPP $CPPFLAGS'
17108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17112 CC="$lt_save_CC"
17115 # Check whether --with-tags was given.
17116 if test "${with_tags+set}" = set; then
17117 withval=$with_tags; tagnames="$withval"
17121 if test -f "$ltmain" && test -n "$tagnames"; then
17122 if test ! -f "${ofile}"; then
17123 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17124 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17127 if test -z "$LTCC"; then
17128 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17129 if test -z "$LTCC"; then
17130 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17131 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17132 else
17133 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17134 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17137 if test -z "$LTCFLAGS"; then
17138 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17141 # Extract list of available tagged configurations in $ofile.
17142 # Note that this assumes the entire list is on one line.
17143 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17146 for tagname in $tagnames; do
17147 IFS="$lt_save_ifs"
17148 # Check whether tagname contains only valid characters
17149 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17150 "") ;;
17151 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17152 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17153 { (exit 1); exit 1; }; }
17155 esac
17157 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17158 then
17159 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17160 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17161 { (exit 1); exit 1; }; }
17164 # Update the list of available tags.
17165 if test -n "$tagname"; then
17166 echo appending configuration tag \"$tagname\" to $ofile
17168 case $tagname in
17169 CXX)
17170 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17171 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17172 (test "X$CXX" != "Xg++"))) ; then
17173 ac_ext=cpp
17174 ac_cpp='$CXXCPP $CPPFLAGS'
17175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17182 archive_cmds_need_lc_CXX=no
17183 allow_undefined_flag_CXX=
17184 always_export_symbols_CXX=no
17185 archive_expsym_cmds_CXX=
17186 export_dynamic_flag_spec_CXX=
17187 hardcode_direct_CXX=no
17188 hardcode_libdir_flag_spec_CXX=
17189 hardcode_libdir_flag_spec_ld_CXX=
17190 hardcode_libdir_separator_CXX=
17191 hardcode_minus_L_CXX=no
17192 hardcode_shlibpath_var_CXX=unsupported
17193 hardcode_automatic_CXX=no
17194 module_cmds_CXX=
17195 module_expsym_cmds_CXX=
17196 link_all_deplibs_CXX=unknown
17197 old_archive_cmds_CXX=$old_archive_cmds
17198 no_undefined_flag_CXX=
17199 whole_archive_flag_spec_CXX=
17200 enable_shared_with_static_runtimes_CXX=no
17202 # Dependencies to place before and after the object being linked:
17203 predep_objects_CXX=
17204 postdep_objects_CXX=
17205 predeps_CXX=
17206 postdeps_CXX=
17207 compiler_lib_search_path_CXX=
17209 # Source file extension for C++ test sources.
17210 ac_ext=cpp
17212 # Object file extension for compiled C++ test sources.
17213 objext=o
17214 objext_CXX=$objext
17216 # Code to be used in simple compile tests
17217 lt_simple_compile_test_code="int some_variable = 0;\n"
17219 # Code to be used in simple link tests
17220 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17222 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17224 # If no C compiler was specified, use CC.
17225 LTCC=${LTCC-"$CC"}
17227 # If no C compiler flags were specified, use CFLAGS.
17228 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17230 # Allow CC to be a program name with arguments.
17231 compiler=$CC
17234 # save warnings/boilerplate of simple test code
17235 ac_outfile=conftest.$ac_objext
17236 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17237 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17238 _lt_compiler_boilerplate=`cat conftest.err`
17239 $rm conftest*
17241 ac_outfile=conftest.$ac_objext
17242 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17243 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17244 _lt_linker_boilerplate=`cat conftest.err`
17245 $rm conftest*
17248 # Allow CC to be a program name with arguments.
17249 lt_save_CC=$CC
17250 lt_save_LD=$LD
17251 lt_save_GCC=$GCC
17252 GCC=$GXX
17253 lt_save_with_gnu_ld=$with_gnu_ld
17254 lt_save_path_LD=$lt_cv_path_LD
17255 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17256 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17257 else
17258 $as_unset lt_cv_prog_gnu_ld
17260 if test -n "${lt_cv_path_LDCXX+set}"; then
17261 lt_cv_path_LD=$lt_cv_path_LDCXX
17262 else
17263 $as_unset lt_cv_path_LD
17265 test -z "${LDCXX+set}" || LD=$LDCXX
17266 CC=${CXX-"c++"}
17267 compiler=$CC
17268 compiler_CXX=$CC
17269 for cc_temp in $compiler""; do
17270 case $cc_temp in
17271 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17272 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17273 \-*) ;;
17274 *) break;;
17275 esac
17276 done
17277 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17280 # We don't want -fno-exception wen compiling C++ code, so set the
17281 # no_builtin_flag separately
17282 if test "$GXX" = yes; then
17283 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17284 else
17285 lt_prog_compiler_no_builtin_flag_CXX=
17288 if test "$GXX" = yes; then
17289 # Set up default GNU C++ configuration
17292 # Check whether --with-gnu-ld was given.
17293 if test "${with_gnu_ld+set}" = set; then
17294 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17295 else
17296 with_gnu_ld=no
17299 ac_prog=ld
17300 if test "$GCC" = yes; then
17301 # Check if gcc -print-prog-name=ld gives a path.
17302 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17303 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17304 case $host in
17305 *-*-mingw*)
17306 # gcc leaves a trailing carriage return which upsets mingw
17307 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17309 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17310 esac
17311 case $ac_prog in
17312 # Accept absolute paths.
17313 [\\/]* | ?:[\\/]*)
17314 re_direlt='/[^/][^/]*/\.\./'
17315 # Canonicalize the pathname of ld
17316 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17317 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17318 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17319 done
17320 test -z "$LD" && LD="$ac_prog"
17323 # If it fails, then pretend we aren't using GCC.
17324 ac_prog=ld
17327 # If it is relative, then search for the first ld in PATH.
17328 with_gnu_ld=unknown
17330 esac
17331 elif test "$with_gnu_ld" = yes; then
17332 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17333 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17334 else
17335 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17336 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17338 if test "${lt_cv_path_LD+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 else
17341 if test -z "$LD"; then
17342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17343 for ac_dir in $PATH; do
17344 IFS="$lt_save_ifs"
17345 test -z "$ac_dir" && ac_dir=.
17346 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17347 lt_cv_path_LD="$ac_dir/$ac_prog"
17348 # Check to see if the program is GNU ld. I'd rather use --version,
17349 # but apparently some variants of GNU ld only accept -v.
17350 # Break only if it was the GNU/non-GNU ld that we prefer.
17351 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17352 *GNU* | *'with BFD'*)
17353 test "$with_gnu_ld" != no && break
17356 test "$with_gnu_ld" != yes && break
17358 esac
17360 done
17361 IFS="$lt_save_ifs"
17362 else
17363 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17367 LD="$lt_cv_path_LD"
17368 if test -n "$LD"; then
17369 { echo "$as_me:$LINENO: result: $LD" >&5
17370 echo "${ECHO_T}$LD" >&6; }
17371 else
17372 { echo "$as_me:$LINENO: result: no" >&5
17373 echo "${ECHO_T}no" >&6; }
17375 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17376 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17377 { (exit 1); exit 1; }; }
17378 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17379 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17380 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17382 else
17383 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17384 case `$LD -v 2>&1 </dev/null` in
17385 *GNU* | *'with BFD'*)
17386 lt_cv_prog_gnu_ld=yes
17389 lt_cv_prog_gnu_ld=no
17391 esac
17393 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17394 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17395 with_gnu_ld=$lt_cv_prog_gnu_ld
17399 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17400 # archiving commands below assume that GNU ld is being used.
17401 if test "$with_gnu_ld" = yes; then
17402 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17403 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'
17405 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17406 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17408 # If archive_cmds runs LD, not CC, wlarc should be empty
17409 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17410 # investigate it a little bit more. (MM)
17411 wlarc='${wl}'
17413 # ancient GNU ld didn't support --whole-archive et. al.
17414 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17415 grep 'no-whole-archive' > /dev/null; then
17416 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17417 else
17418 whole_archive_flag_spec_CXX=
17420 else
17421 with_gnu_ld=no
17422 wlarc=
17424 # A generic and very simple default shared library creation
17425 # command for GNU C++ for the case where it uses the native
17426 # linker, instead of GNU ld. If possible, this setting should
17427 # overridden to take advantage of the native linker features on
17428 # the platform it is being used on.
17429 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17432 # Commands to make compiler produce verbose output that lists
17433 # what "hidden" libraries, object files and flags are used when
17434 # linking a shared library.
17435 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17437 else
17438 GXX=no
17439 with_gnu_ld=no
17440 wlarc=
17443 # PORTME: fill in a description of your system's C++ link characteristics
17444 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17445 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17446 ld_shlibs_CXX=yes
17447 case $host_os in
17448 aix3*)
17449 # FIXME: insert proper C++ library support
17450 ld_shlibs_CXX=no
17452 aix4* | aix5*)
17453 if test "$host_cpu" = ia64; then
17454 # On IA64, the linker does run time linking by default, so we don't
17455 # have to do anything special.
17456 aix_use_runtimelinking=no
17457 exp_sym_flag='-Bexport'
17458 no_entry_flag=""
17459 else
17460 aix_use_runtimelinking=no
17462 # Test if we are trying to use run time linking or normal
17463 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17464 # need to do runtime linking.
17465 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17466 for ld_flag in $LDFLAGS; do
17467 case $ld_flag in
17468 *-brtl*)
17469 aix_use_runtimelinking=yes
17470 break
17472 esac
17473 done
17475 esac
17477 exp_sym_flag='-bexport'
17478 no_entry_flag='-bnoentry'
17481 # When large executables or shared objects are built, AIX ld can
17482 # have problems creating the table of contents. If linking a library
17483 # or program results in "error TOC overflow" add -mminimal-toc to
17484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17487 archive_cmds_CXX=''
17488 hardcode_direct_CXX=yes
17489 hardcode_libdir_separator_CXX=':'
17490 link_all_deplibs_CXX=yes
17492 if test "$GXX" = yes; then
17493 case $host_os in aix4.[012]|aix4.[012].*)
17494 # We only want to do this on AIX 4.2 and lower, the check
17495 # below for broken collect2 doesn't work under 4.3+
17496 collect2name=`${CC} -print-prog-name=collect2`
17497 if test -f "$collect2name" && \
17498 strings "$collect2name" | grep resolve_lib_name >/dev/null
17499 then
17500 # We have reworked collect2
17501 hardcode_direct_CXX=yes
17502 else
17503 # We have old collect2
17504 hardcode_direct_CXX=unsupported
17505 # It fails to find uninstalled libraries when the uninstalled
17506 # path is not listed in the libpath. Setting hardcode_minus_L
17507 # to unsupported forces relinking
17508 hardcode_minus_L_CXX=yes
17509 hardcode_libdir_flag_spec_CXX='-L$libdir'
17510 hardcode_libdir_separator_CXX=
17513 esac
17514 shared_flag='-shared'
17515 if test "$aix_use_runtimelinking" = yes; then
17516 shared_flag="$shared_flag "'${wl}-G'
17518 else
17519 # not using gcc
17520 if test "$host_cpu" = ia64; then
17521 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17522 # chokes on -Wl,-G. The following line is correct:
17523 shared_flag='-G'
17524 else
17525 if test "$aix_use_runtimelinking" = yes; then
17526 shared_flag='${wl}-G'
17527 else
17528 shared_flag='${wl}-bM:SRE'
17533 # It seems that -bexpall does not export symbols beginning with
17534 # underscore (_), so it is better to generate a list of symbols to export.
17535 always_export_symbols_CXX=yes
17536 if test "$aix_use_runtimelinking" = yes; then
17537 # Warning - without using the other runtime loading flags (-brtl),
17538 # -berok will link without error, but may produce a broken library.
17539 allow_undefined_flag_CXX='-berok'
17540 # Determine the default libpath from the value encoded in an empty executable.
17541 cat >conftest.$ac_ext <<_ACEOF
17542 /* confdefs.h. */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17549 main ()
17553 return 0;
17555 _ACEOF
17556 rm -f conftest.$ac_objext conftest$ac_exeext
17557 if { (ac_try="$ac_link"
17558 case "(($ac_try" in
17559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560 *) ac_try_echo=$ac_try;;
17561 esac
17562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563 (eval "$ac_link") 2>conftest.er1
17564 ac_status=$?
17565 grep -v '^ *+' conftest.er1 >conftest.err
17566 rm -f conftest.er1
17567 cat conftest.err >&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } && {
17570 test -z "$ac_cxx_werror_flag" ||
17571 test ! -s conftest.err
17572 } && test -s conftest$ac_exeext &&
17573 $as_test_x conftest$ac_exeext; then
17575 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17577 # Check for a 64-bit object if we didn't find anything.
17578 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; }
17579 }'`; fi
17580 else
17581 echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17588 conftest$ac_exeext conftest.$ac_ext
17589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17591 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17593 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"
17594 else
17595 if test "$host_cpu" = ia64; then
17596 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17597 allow_undefined_flag_CXX="-z nodefs"
17598 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"
17599 else
17600 # Determine the default libpath from the value encoded in an empty executable.
17601 cat >conftest.$ac_ext <<_ACEOF
17602 /* confdefs.h. */
17603 _ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17609 main ()
17613 return 0;
17615 _ACEOF
17616 rm -f conftest.$ac_objext conftest$ac_exeext
17617 if { (ac_try="$ac_link"
17618 case "(($ac_try" in
17619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17620 *) ac_try_echo=$ac_try;;
17621 esac
17622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623 (eval "$ac_link") 2>conftest.er1
17624 ac_status=$?
17625 grep -v '^ *+' conftest.er1 >conftest.err
17626 rm -f conftest.er1
17627 cat conftest.err >&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); } && {
17630 test -z "$ac_cxx_werror_flag" ||
17631 test ! -s conftest.err
17632 } && test -s conftest$ac_exeext &&
17633 $as_test_x conftest$ac_exeext; then
17635 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17637 # Check for a 64-bit object if we didn't find anything.
17638 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; }
17639 }'`; fi
17640 else
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17648 conftest$ac_exeext conftest.$ac_ext
17649 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17651 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17652 # Warning - without using the other run time loading flags,
17653 # -berok will link without error, but may produce a broken library.
17654 no_undefined_flag_CXX=' ${wl}-bernotok'
17655 allow_undefined_flag_CXX=' ${wl}-berok'
17656 # Exported symbols can be pulled into shared objects from archives
17657 whole_archive_flag_spec_CXX='$convenience'
17658 archive_cmds_need_lc_CXX=yes
17659 # This is similar to how AIX traditionally builds its shared libraries.
17660 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'
17665 beos*)
17666 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17667 allow_undefined_flag_CXX=unsupported
17668 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17669 # support --undefined. This deserves some investigation. FIXME
17670 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17671 else
17672 ld_shlibs_CXX=no
17676 chorus*)
17677 case $cc_basename in
17679 # FIXME: insert proper C++ library support
17680 ld_shlibs_CXX=no
17682 esac
17685 cygwin* | mingw* | pw32*)
17686 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17687 # as there is no search path for DLLs.
17688 hardcode_libdir_flag_spec_CXX='-L$libdir'
17689 allow_undefined_flag_CXX=unsupported
17690 always_export_symbols_CXX=no
17691 enable_shared_with_static_runtimes_CXX=yes
17693 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17694 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'
17695 # If the export-symbols file already is a .def file (1st line
17696 # is EXPORTS), use it as is; otherwise, prepend...
17697 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17698 cp $export_symbols $output_objdir/$soname.def;
17699 else
17700 echo EXPORTS > $output_objdir/$soname.def;
17701 cat $export_symbols >> $output_objdir/$soname.def;
17703 $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'
17704 else
17705 ld_shlibs_CXX=no
17708 darwin* | rhapsody*)
17709 case $host_os in
17710 rhapsody* | darwin1.[012])
17711 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17713 *) # Darwin 1.3 on
17714 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17715 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17716 else
17717 case ${MACOSX_DEPLOYMENT_TARGET} in
17718 10.[012])
17719 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17721 10.*)
17722 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17724 esac
17727 esac
17728 archive_cmds_need_lc_CXX=no
17729 hardcode_direct_CXX=no
17730 hardcode_automatic_CXX=yes
17731 hardcode_shlibpath_var_CXX=unsupported
17732 whole_archive_flag_spec_CXX=''
17733 link_all_deplibs_CXX=yes
17735 if test "$GXX" = yes ; then
17736 lt_int_apple_cc_single_mod=no
17737 output_verbose_link_cmd='echo'
17738 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17739 lt_int_apple_cc_single_mod=yes
17741 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17742 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17743 else
17744 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'
17746 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17747 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17748 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17749 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}'
17750 else
17751 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}'
17753 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}'
17754 else
17755 case $cc_basename in
17756 xlc*)
17757 output_verbose_link_cmd='echo'
17758 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'
17759 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17760 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17761 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}'
17762 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}'
17765 ld_shlibs_CXX=no
17767 esac
17771 dgux*)
17772 case $cc_basename in
17773 ec++*)
17774 # FIXME: insert proper C++ library support
17775 ld_shlibs_CXX=no
17777 ghcx*)
17778 # Green Hills C++ Compiler
17779 # FIXME: insert proper C++ library support
17780 ld_shlibs_CXX=no
17783 # FIXME: insert proper C++ library support
17784 ld_shlibs_CXX=no
17786 esac
17788 freebsd[12]*)
17789 # C++ shared libraries reported to be fairly broken before switch to ELF
17790 ld_shlibs_CXX=no
17792 freebsd-elf*)
17793 archive_cmds_need_lc_CXX=no
17795 freebsd* | kfreebsd*-gnu | dragonfly*)
17796 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17797 # conventions
17798 ld_shlibs_CXX=yes
17800 gnu*)
17802 hpux9*)
17803 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17804 hardcode_libdir_separator_CXX=:
17805 export_dynamic_flag_spec_CXX='${wl}-E'
17806 hardcode_direct_CXX=yes
17807 hardcode_minus_L_CXX=yes # Not in the search PATH,
17808 # but as the default
17809 # location of the library.
17811 case $cc_basename in
17812 CC*)
17813 # FIXME: insert proper C++ library support
17814 ld_shlibs_CXX=no
17816 aCC*)
17817 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'
17818 # Commands to make compiler produce verbose output that lists
17819 # what "hidden" libraries, object files and flags are used when
17820 # linking a shared library.
17822 # There doesn't appear to be a way to prevent this compiler from
17823 # explicitly linking system object files so we need to strip them
17824 # from the output so that they don't get included in the library
17825 # dependencies.
17826 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'
17829 if test "$GXX" = yes; then
17830 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'
17831 else
17832 # FIXME: insert proper C++ library support
17833 ld_shlibs_CXX=no
17836 esac
17838 hpux10*|hpux11*)
17839 if test $with_gnu_ld = no; then
17840 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17841 hardcode_libdir_separator_CXX=:
17843 case $host_cpu in
17844 hppa*64*|ia64*)
17845 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17848 export_dynamic_flag_spec_CXX='${wl}-E'
17850 esac
17852 case $host_cpu in
17853 hppa*64*|ia64*)
17854 hardcode_direct_CXX=no
17855 hardcode_shlibpath_var_CXX=no
17858 hardcode_direct_CXX=yes
17859 hardcode_minus_L_CXX=yes # Not in the search PATH,
17860 # but as the default
17861 # location of the library.
17863 esac
17865 case $cc_basename in
17866 CC*)
17867 # FIXME: insert proper C++ library support
17868 ld_shlibs_CXX=no
17870 aCC*)
17871 case $host_cpu in
17872 hppa*64*)
17873 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17875 ia64*)
17876 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17879 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17881 esac
17882 # Commands to make compiler produce verbose output that lists
17883 # what "hidden" libraries, object files and flags are used when
17884 # linking a shared library.
17886 # There doesn't appear to be a way to prevent this compiler from
17887 # explicitly linking system object files so we need to strip them
17888 # from the output so that they don't get included in the library
17889 # dependencies.
17890 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'
17893 if test "$GXX" = yes; then
17894 if test $with_gnu_ld = no; then
17895 case $host_cpu in
17896 hppa*64*)
17897 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17899 ia64*)
17900 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17903 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'
17905 esac
17907 else
17908 # FIXME: insert proper C++ library support
17909 ld_shlibs_CXX=no
17912 esac
17914 interix3*)
17915 hardcode_direct_CXX=no
17916 hardcode_shlibpath_var_CXX=no
17917 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17918 export_dynamic_flag_spec_CXX='${wl}-E'
17919 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17920 # Instead, shared libraries are loaded at an image base (0x10000000 by
17921 # default) and relocated if they conflict, which is a slow very memory
17922 # consuming and fragmenting process. To avoid this, we pick a random,
17923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17924 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17925 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'
17926 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'
17928 irix5* | irix6*)
17929 case $cc_basename in
17930 CC*)
17931 # SGI C++
17932 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'
17934 # Archives containing C++ object files must be created using
17935 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17936 # necessary to make sure instantiated templates are included
17937 # in the archive.
17938 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17941 if test "$GXX" = yes; then
17942 if test "$with_gnu_ld" = no; then
17943 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'
17944 else
17945 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'
17948 link_all_deplibs_CXX=yes
17950 esac
17951 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17952 hardcode_libdir_separator_CXX=:
17954 linux*)
17955 case $cc_basename in
17956 KCC*)
17957 # Kuck and Associates, Inc. (KAI) C++ Compiler
17959 # KCC will only create a shared library if the output file
17960 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17961 # to its proper name (with version) after linking.
17962 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'
17963 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'
17964 # Commands to make compiler produce verbose output that lists
17965 # what "hidden" libraries, object files and flags are used when
17966 # linking a shared library.
17968 # There doesn't appear to be a way to prevent this compiler from
17969 # explicitly linking system object files so we need to strip them
17970 # from the output so that they don't get included in the library
17971 # dependencies.
17972 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'
17974 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17977 # Archives containing C++ object files must be created using
17978 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17979 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17981 icpc*)
17982 # Intel C++
17983 with_gnu_ld=yes
17984 # version 8.0 and above of icpc choke on multiply defined symbols
17985 # if we add $predep_objects and $postdep_objects, however 7.1 and
17986 # earlier do not add the objects themselves.
17987 case `$CC -V 2>&1` in
17988 *"Version 7."*)
17989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17990 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'
17992 *) # Version 8.0 or newer
17993 tmp_idyn=
17994 case $host_cpu in
17995 ia64*) tmp_idyn=' -i_dynamic';;
17996 esac
17997 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17998 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'
18000 esac
18001 archive_cmds_need_lc_CXX=no
18002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18003 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18004 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18006 pgCC*)
18007 # Portland Group C++ compiler
18008 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18009 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'
18011 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18013 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'
18015 cxx*)
18016 # Compaq C++
18017 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18018 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'
18020 runpath_var=LD_RUN_PATH
18021 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18022 hardcode_libdir_separator_CXX=:
18024 # Commands to make compiler produce verbose output that lists
18025 # what "hidden" libraries, object files and flags are used when
18026 # linking a shared library.
18028 # There doesn't appear to be a way to prevent this compiler from
18029 # explicitly linking system object files so we need to strip them
18030 # from the output so that they don't get included in the library
18031 # dependencies.
18032 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'
18034 esac
18036 lynxos*)
18037 # FIXME: insert proper C++ library support
18038 ld_shlibs_CXX=no
18040 m88k*)
18041 # FIXME: insert proper C++ library support
18042 ld_shlibs_CXX=no
18044 mvs*)
18045 case $cc_basename in
18046 cxx*)
18047 # FIXME: insert proper C++ library support
18048 ld_shlibs_CXX=no
18051 # FIXME: insert proper C++ library support
18052 ld_shlibs_CXX=no
18054 esac
18056 netbsd*)
18057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18058 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18059 wlarc=
18060 hardcode_libdir_flag_spec_CXX='-R$libdir'
18061 hardcode_direct_CXX=yes
18062 hardcode_shlibpath_var_CXX=no
18064 # Workaround some broken pre-1.5 toolchains
18065 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18067 openbsd2*)
18068 # C++ shared libraries are fairly broken
18069 ld_shlibs_CXX=no
18071 openbsd*)
18072 hardcode_direct_CXX=yes
18073 hardcode_shlibpath_var_CXX=no
18074 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18075 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18076 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18077 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18078 export_dynamic_flag_spec_CXX='${wl}-E'
18079 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18081 output_verbose_link_cmd='echo'
18083 osf3*)
18084 case $cc_basename in
18085 KCC*)
18086 # Kuck and Associates, Inc. (KAI) C++ Compiler
18088 # KCC will only create a shared library if the output file
18089 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18090 # to its proper name (with version) after linking.
18091 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'
18093 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18094 hardcode_libdir_separator_CXX=:
18096 # Archives containing C++ object files must be created using
18097 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18098 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18101 RCC*)
18102 # Rational C++ 2.4.1
18103 # FIXME: insert proper C++ library support
18104 ld_shlibs_CXX=no
18106 cxx*)
18107 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18108 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'
18110 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18111 hardcode_libdir_separator_CXX=:
18113 # Commands to make compiler produce verbose output that lists
18114 # what "hidden" libraries, object files and flags are used when
18115 # linking a shared library.
18117 # There doesn't appear to be a way to prevent this compiler from
18118 # explicitly linking system object files so we need to strip them
18119 # from the output so that they don't get included in the library
18120 # dependencies.
18121 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'
18124 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18125 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18126 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'
18128 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18129 hardcode_libdir_separator_CXX=:
18131 # Commands to make compiler produce verbose output that lists
18132 # what "hidden" libraries, object files and flags are used when
18133 # linking a shared library.
18134 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18136 else
18137 # FIXME: insert proper C++ library support
18138 ld_shlibs_CXX=no
18141 esac
18143 osf4* | osf5*)
18144 case $cc_basename in
18145 KCC*)
18146 # Kuck and Associates, Inc. (KAI) C++ Compiler
18148 # KCC will only create a shared library if the output file
18149 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18150 # to its proper name (with version) after linking.
18151 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'
18153 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18154 hardcode_libdir_separator_CXX=:
18156 # Archives containing C++ object files must be created using
18157 # the KAI C++ compiler.
18158 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18160 RCC*)
18161 # Rational C++ 2.4.1
18162 # FIXME: insert proper C++ library support
18163 ld_shlibs_CXX=no
18165 cxx*)
18166 allow_undefined_flag_CXX=' -expect_unresolved \*'
18167 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'
18168 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18169 echo "-hidden">> $lib.exp~
18170 $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~
18171 $rm $lib.exp'
18173 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18174 hardcode_libdir_separator_CXX=:
18176 # Commands to make compiler produce verbose output that lists
18177 # what "hidden" libraries, object files and flags are used when
18178 # linking a shared library.
18180 # There doesn't appear to be a way to prevent this compiler from
18181 # explicitly linking system object files so we need to strip them
18182 # from the output so that they don't get included in the library
18183 # dependencies.
18184 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'
18187 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18188 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18189 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'
18191 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18192 hardcode_libdir_separator_CXX=:
18194 # Commands to make compiler produce verbose output that lists
18195 # what "hidden" libraries, object files and flags are used when
18196 # linking a shared library.
18197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18199 else
18200 # FIXME: insert proper C++ library support
18201 ld_shlibs_CXX=no
18204 esac
18206 psos*)
18207 # FIXME: insert proper C++ library support
18208 ld_shlibs_CXX=no
18210 sunos4*)
18211 case $cc_basename in
18212 CC*)
18213 # Sun C++ 4.x
18214 # FIXME: insert proper C++ library support
18215 ld_shlibs_CXX=no
18217 lcc*)
18218 # Lucid
18219 # FIXME: insert proper C++ library support
18220 ld_shlibs_CXX=no
18223 # FIXME: insert proper C++ library support
18224 ld_shlibs_CXX=no
18226 esac
18228 solaris*)
18229 case $cc_basename in
18230 CC*)
18231 # Sun C++ 4.2, 5.x and Centerline C++
18232 archive_cmds_need_lc_CXX=yes
18233 no_undefined_flag_CXX=' -zdefs'
18234 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18235 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18236 $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'
18238 hardcode_libdir_flag_spec_CXX='-R$libdir'
18239 hardcode_shlibpath_var_CXX=no
18240 case $host_os in
18241 solaris2.[0-5] | solaris2.[0-5].*) ;;
18243 # The C++ compiler is used as linker so we must use $wl
18244 # flag to pass the commands to the underlying system
18245 # linker. We must also pass each convience library through
18246 # to the system linker between allextract/defaultextract.
18247 # The C++ compiler will combine linker options so we
18248 # cannot just pass the convience library names through
18249 # without $wl.
18250 # Supported since Solaris 2.6 (maybe 2.5.1?)
18251 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'
18253 esac
18254 link_all_deplibs_CXX=yes
18256 output_verbose_link_cmd='echo'
18258 # Archives containing C++ object files must be created using
18259 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18260 # necessary to make sure instantiated templates are included
18261 # in the archive.
18262 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18264 gcx*)
18265 # Green Hills C++ Compiler
18266 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18268 # The C++ compiler must be used to create the archive.
18269 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18272 # GNU C++ compiler with Solaris linker
18273 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18274 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18275 if $CC --version | grep -v '^2\.7' > /dev/null; then
18276 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18277 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18278 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18280 # Commands to make compiler produce verbose output that lists
18281 # what "hidden" libraries, object files and flags are used when
18282 # linking a shared library.
18283 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18284 else
18285 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18286 # platform.
18287 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18288 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18289 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18291 # Commands to make compiler produce verbose output that lists
18292 # what "hidden" libraries, object files and flags are used when
18293 # linking a shared library.
18294 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18297 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18300 esac
18302 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18303 no_undefined_flag_CXX='${wl}-z,text'
18304 archive_cmds_need_lc_CXX=no
18305 hardcode_shlibpath_var_CXX=no
18306 runpath_var='LD_RUN_PATH'
18308 case $cc_basename in
18309 CC*)
18310 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18311 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18314 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18315 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18317 esac
18319 sysv5* | sco3.2v5* | sco5v6*)
18320 # Note: We can NOT use -z defs as we might desire, because we do not
18321 # link with -lc, and that would cause any symbols used from libc to
18322 # always be unresolved, which means just about no library would
18323 # ever link correctly. If we're not using GNU ld we use -z text
18324 # though, which does catch some bad symbols but isn't as heavy-handed
18325 # as -z defs.
18326 # For security reasons, it is highly recommended that you always
18327 # use absolute paths for naming shared libraries, and exclude the
18328 # DT_RUNPATH tag from executables and libraries. But doing so
18329 # requires that you compile everything twice, which is a pain.
18330 # So that behaviour is only enabled if SCOABSPATH is set to a
18331 # non-empty value in the environment. Most likely only useful for
18332 # creating official distributions of packages.
18333 # This is a hack until libtool officially supports absolute path
18334 # names for shared libraries.
18335 no_undefined_flag_CXX='${wl}-z,text'
18336 allow_undefined_flag_CXX='${wl}-z,nodefs'
18337 archive_cmds_need_lc_CXX=no
18338 hardcode_shlibpath_var_CXX=no
18339 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18340 hardcode_libdir_separator_CXX=':'
18341 link_all_deplibs_CXX=yes
18342 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18343 runpath_var='LD_RUN_PATH'
18345 case $cc_basename in
18346 CC*)
18347 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18348 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18351 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18352 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18354 esac
18356 tandem*)
18357 case $cc_basename in
18358 NCC*)
18359 # NonStop-UX NCC 3.20
18360 # FIXME: insert proper C++ library support
18361 ld_shlibs_CXX=no
18364 # FIXME: insert proper C++ library support
18365 ld_shlibs_CXX=no
18367 esac
18369 vxworks*)
18370 # FIXME: insert proper C++ library support
18371 ld_shlibs_CXX=no
18374 # FIXME: insert proper C++ library support
18375 ld_shlibs_CXX=no
18377 esac
18378 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18379 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18380 test "$ld_shlibs_CXX" = no && can_build_shared=no
18382 GCC_CXX="$GXX"
18383 LD_CXX="$LD"
18386 cat > conftest.$ac_ext <<EOF
18387 class Foo
18389 public:
18390 Foo (void) { a = 0; }
18391 private:
18392 int a;
18396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18397 (eval $ac_compile) 2>&5
18398 ac_status=$?
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; then
18401 # Parse the compiler output and extract the necessary
18402 # objects, libraries and library flags.
18404 # Sentinel used to keep track of whether or not we are before
18405 # the conftest object file.
18406 pre_test_object_deps_done=no
18408 # The `*' in the case matches for architectures that use `case' in
18409 # $output_verbose_cmd can trigger glob expansion during the loop
18410 # eval without this substitution.
18411 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18413 for p in `eval $output_verbose_link_cmd`; do
18414 case $p in
18416 -L* | -R* | -l*)
18417 # Some compilers place space between "-{L,R}" and the path.
18418 # Remove the space.
18419 if test $p = "-L" \
18420 || test $p = "-R"; then
18421 prev=$p
18422 continue
18423 else
18424 prev=
18427 if test "$pre_test_object_deps_done" = no; then
18428 case $p in
18429 -L* | -R*)
18430 # Internal compiler library paths should come after those
18431 # provided the user. The postdeps already come after the
18432 # user supplied libs so there is no need to process them.
18433 if test -z "$compiler_lib_search_path_CXX"; then
18434 compiler_lib_search_path_CXX="${prev}${p}"
18435 else
18436 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18439 # The "-l" case would never come before the object being
18440 # linked, so don't bother handling this case.
18441 esac
18442 else
18443 if test -z "$postdeps_CXX"; then
18444 postdeps_CXX="${prev}${p}"
18445 else
18446 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18451 *.$objext)
18452 # This assumes that the test object file only shows up
18453 # once in the compiler output.
18454 if test "$p" = "conftest.$objext"; then
18455 pre_test_object_deps_done=yes
18456 continue
18459 if test "$pre_test_object_deps_done" = no; then
18460 if test -z "$predep_objects_CXX"; then
18461 predep_objects_CXX="$p"
18462 else
18463 predep_objects_CXX="$predep_objects_CXX $p"
18465 else
18466 if test -z "$postdep_objects_CXX"; then
18467 postdep_objects_CXX="$p"
18468 else
18469 postdep_objects_CXX="$postdep_objects_CXX $p"
18474 *) ;; # Ignore the rest.
18476 esac
18477 done
18479 # Clean up.
18480 rm -f a.out a.exe
18481 else
18482 echo "libtool.m4: error: problem compiling CXX test program"
18485 $rm -f confest.$objext
18487 # PORTME: override above test on systems where it is broken
18488 case $host_os in
18489 interix3*)
18490 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18491 # hack all around it, let's just trust "g++" to DTRT.
18492 predep_objects_CXX=
18493 postdep_objects_CXX=
18494 postdeps_CXX=
18497 solaris*)
18498 case $cc_basename in
18499 CC*)
18500 # Adding this requires a known-good setup of shared libraries for
18501 # Sun compiler versions before 5.6, else PIC objects from an old
18502 # archive will be linked into the output, leading to subtle bugs.
18503 postdeps_CXX='-lCstd -lCrun'
18505 esac
18507 esac
18510 case " $postdeps_CXX " in
18511 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18512 esac
18514 lt_prog_compiler_wl_CXX=
18515 lt_prog_compiler_pic_CXX=
18516 lt_prog_compiler_static_CXX=
18518 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18519 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18521 # C++ specific cases for pic, static, wl, etc.
18522 if test "$GXX" = yes; then
18523 lt_prog_compiler_wl_CXX='-Wl,'
18524 lt_prog_compiler_static_CXX='-static'
18526 case $host_os in
18527 aix*)
18528 # All AIX code is PIC.
18529 if test "$host_cpu" = ia64; then
18530 # AIX 5 now supports IA64 processor
18531 lt_prog_compiler_static_CXX='-Bstatic'
18534 amigaos*)
18535 # FIXME: we need at least 68020 code to build shared libraries, but
18536 # adding the `-m68020' flag to GCC prevents building anything better,
18537 # like `-m68040'.
18538 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18540 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18541 # PIC is the default for these OSes.
18543 mingw* | os2* | pw32*)
18544 # This hack is so that the source file can tell whether it is being
18545 # built for inclusion in a dll (and should export symbols for example).
18546 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18548 darwin* | rhapsody*)
18549 # PIC is the default on this platform
18550 # Common symbols not allowed in MH_DYLIB files
18551 lt_prog_compiler_pic_CXX='-fno-common'
18553 *djgpp*)
18554 # DJGPP does not support shared libraries at all
18555 lt_prog_compiler_pic_CXX=
18557 interix3*)
18558 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18559 # Instead, we relocate shared libraries at runtime.
18561 sysv4*MP*)
18562 if test -d /usr/nec; then
18563 lt_prog_compiler_pic_CXX=-Kconform_pic
18566 hpux*)
18567 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18568 # not for PA HP-UX.
18569 case $host_cpu in
18570 hppa*64*|ia64*)
18573 lt_prog_compiler_pic_CXX='-fPIC'
18575 esac
18578 lt_prog_compiler_pic_CXX='-fPIC'
18580 esac
18581 else
18582 case $host_os in
18583 aix4* | aix5*)
18584 # All AIX code is PIC.
18585 if test "$host_cpu" = ia64; then
18586 # AIX 5 now supports IA64 processor
18587 lt_prog_compiler_static_CXX='-Bstatic'
18588 else
18589 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18592 chorus*)
18593 case $cc_basename in
18594 cxch68*)
18595 # Green Hills C++ Compiler
18596 # _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"
18598 esac
18600 darwin*)
18601 # PIC is the default on this platform
18602 # Common symbols not allowed in MH_DYLIB files
18603 case $cc_basename in
18604 xlc*)
18605 lt_prog_compiler_pic_CXX='-qnocommon'
18606 lt_prog_compiler_wl_CXX='-Wl,'
18608 esac
18610 dgux*)
18611 case $cc_basename in
18612 ec++*)
18613 lt_prog_compiler_pic_CXX='-KPIC'
18615 ghcx*)
18616 # Green Hills C++ Compiler
18617 lt_prog_compiler_pic_CXX='-pic'
18621 esac
18623 freebsd* | kfreebsd*-gnu | dragonfly*)
18624 # FreeBSD uses GNU C++
18626 hpux9* | hpux10* | hpux11*)
18627 case $cc_basename in
18628 CC*)
18629 lt_prog_compiler_wl_CXX='-Wl,'
18630 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18631 if test "$host_cpu" != ia64; then
18632 lt_prog_compiler_pic_CXX='+Z'
18635 aCC*)
18636 lt_prog_compiler_wl_CXX='-Wl,'
18637 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18638 case $host_cpu in
18639 hppa*64*|ia64*)
18640 # +Z the default
18643 lt_prog_compiler_pic_CXX='+Z'
18645 esac
18649 esac
18651 interix*)
18652 # This is c89, which is MS Visual C++ (no shared libs)
18653 # Anyone wants to do a port?
18655 irix5* | irix6* | nonstopux*)
18656 case $cc_basename in
18657 CC*)
18658 lt_prog_compiler_wl_CXX='-Wl,'
18659 lt_prog_compiler_static_CXX='-non_shared'
18660 # CC pic flag -KPIC is the default.
18664 esac
18666 linux*)
18667 case $cc_basename in
18668 KCC*)
18669 # KAI C++ Compiler
18670 lt_prog_compiler_wl_CXX='--backend -Wl,'
18671 lt_prog_compiler_pic_CXX='-fPIC'
18673 icpc* | ecpc*)
18674 # Intel C++
18675 lt_prog_compiler_wl_CXX='-Wl,'
18676 lt_prog_compiler_pic_CXX='-KPIC'
18677 lt_prog_compiler_static_CXX='-static'
18679 pgCC*)
18680 # Portland Group C++ compiler.
18681 lt_prog_compiler_wl_CXX='-Wl,'
18682 lt_prog_compiler_pic_CXX='-fpic'
18683 lt_prog_compiler_static_CXX='-Bstatic'
18685 cxx*)
18686 # Compaq C++
18687 # Make sure the PIC flag is empty. It appears that all Alpha
18688 # Linux and Compaq Tru64 Unix objects are PIC.
18689 lt_prog_compiler_pic_CXX=
18690 lt_prog_compiler_static_CXX='-non_shared'
18694 esac
18696 lynxos*)
18698 m88k*)
18700 mvs*)
18701 case $cc_basename in
18702 cxx*)
18703 lt_prog_compiler_pic_CXX='-W c,exportall'
18707 esac
18709 netbsd*)
18711 osf3* | osf4* | osf5*)
18712 case $cc_basename in
18713 KCC*)
18714 lt_prog_compiler_wl_CXX='--backend -Wl,'
18716 RCC*)
18717 # Rational C++ 2.4.1
18718 lt_prog_compiler_pic_CXX='-pic'
18720 cxx*)
18721 # Digital/Compaq C++
18722 lt_prog_compiler_wl_CXX='-Wl,'
18723 # Make sure the PIC flag is empty. It appears that all Alpha
18724 # Linux and Compaq Tru64 Unix objects are PIC.
18725 lt_prog_compiler_pic_CXX=
18726 lt_prog_compiler_static_CXX='-non_shared'
18730 esac
18732 psos*)
18734 solaris*)
18735 case $cc_basename in
18736 CC*)
18737 # Sun C++ 4.2, 5.x and Centerline C++
18738 lt_prog_compiler_pic_CXX='-KPIC'
18739 lt_prog_compiler_static_CXX='-Bstatic'
18740 lt_prog_compiler_wl_CXX='-Qoption ld '
18742 gcx*)
18743 # Green Hills C++ Compiler
18744 lt_prog_compiler_pic_CXX='-PIC'
18748 esac
18750 sunos4*)
18751 case $cc_basename in
18752 CC*)
18753 # Sun C++ 4.x
18754 lt_prog_compiler_pic_CXX='-pic'
18755 lt_prog_compiler_static_CXX='-Bstatic'
18757 lcc*)
18758 # Lucid
18759 lt_prog_compiler_pic_CXX='-pic'
18763 esac
18765 tandem*)
18766 case $cc_basename in
18767 NCC*)
18768 # NonStop-UX NCC 3.20
18769 lt_prog_compiler_pic_CXX='-KPIC'
18773 esac
18775 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18776 case $cc_basename in
18777 CC*)
18778 lt_prog_compiler_wl_CXX='-Wl,'
18779 lt_prog_compiler_pic_CXX='-KPIC'
18780 lt_prog_compiler_static_CXX='-Bstatic'
18782 esac
18784 vxworks*)
18787 lt_prog_compiler_can_build_shared_CXX=no
18789 esac
18792 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18793 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
18796 # Check to make sure the PIC flag actually works.
18798 if test -n "$lt_prog_compiler_pic_CXX"; then
18800 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18801 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
18802 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805 lt_prog_compiler_pic_works_CXX=no
18806 ac_outfile=conftest.$ac_objext
18807 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18808 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18809 # Insert the option either (1) after the last *FLAGS variable, or
18810 # (2) before a word containing "conftest.", or (3) at the end.
18811 # Note that $ac_compile itself does not contain backslashes and begins
18812 # with a dollar sign (not a hyphen), so the echo should work correctly.
18813 # The option is referenced via a variable to avoid confusing sed.
18814 lt_compile=`echo "$ac_compile" | $SED \
18815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18817 -e 's:$: $lt_compiler_flag:'`
18818 (eval echo "\"\$as_me:18818: $lt_compile\"" >&5)
18819 (eval "$lt_compile" 2>conftest.err)
18820 ac_status=$?
18821 cat conftest.err >&5
18822 echo "$as_me:18822: \$? = $ac_status" >&5
18823 if (exit $ac_status) && test -s "$ac_outfile"; then
18824 # The compiler can only warn and ignore the option if not recognized
18825 # So say no if there are warnings other than the usual output.
18826 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18829 lt_prog_compiler_pic_works_CXX=yes
18832 $rm conftest*
18835 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18836 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
18838 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18839 case $lt_prog_compiler_pic_CXX in
18840 "" | " "*) ;;
18841 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18842 esac
18843 else
18844 lt_prog_compiler_pic_CXX=
18845 lt_prog_compiler_can_build_shared_CXX=no
18849 case $host_os in
18850 # For platforms which do not support PIC, -DPIC is meaningless:
18851 *djgpp*)
18852 lt_prog_compiler_pic_CXX=
18855 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18857 esac
18860 # Check to make sure the static flag actually works.
18862 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18863 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18864 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18865 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18866 echo $ECHO_N "(cached) $ECHO_C" >&6
18867 else
18868 lt_prog_compiler_static_works_CXX=no
18869 save_LDFLAGS="$LDFLAGS"
18870 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18871 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18872 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18873 # The linker can only warn and ignore the option if not recognized
18874 # So say no if there are warnings
18875 if test -s conftest.err; then
18876 # Append any errors to the config.log.
18877 cat conftest.err 1>&5
18878 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18880 if diff conftest.exp conftest.er2 >/dev/null; then
18881 lt_prog_compiler_static_works_CXX=yes
18883 else
18884 lt_prog_compiler_static_works_CXX=yes
18887 $rm conftest*
18888 LDFLAGS="$save_LDFLAGS"
18891 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18892 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18894 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18896 else
18897 lt_prog_compiler_static_CXX=
18901 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18902 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18903 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18905 else
18906 lt_cv_prog_compiler_c_o_CXX=no
18907 $rm -r conftest 2>/dev/null
18908 mkdir conftest
18909 cd conftest
18910 mkdir out
18911 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18913 lt_compiler_flag="-o out/conftest2.$ac_objext"
18914 # Insert the option either (1) after the last *FLAGS variable, or
18915 # (2) before a word containing "conftest.", or (3) at the end.
18916 # Note that $ac_compile itself does not contain backslashes and begins
18917 # with a dollar sign (not a hyphen), so the echo should work correctly.
18918 lt_compile=`echo "$ac_compile" | $SED \
18919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18921 -e 's:$: $lt_compiler_flag:'`
18922 (eval echo "\"\$as_me:18922: $lt_compile\"" >&5)
18923 (eval "$lt_compile" 2>out/conftest.err)
18924 ac_status=$?
18925 cat out/conftest.err >&5
18926 echo "$as_me:18926: \$? = $ac_status" >&5
18927 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18928 then
18929 # The compiler can only warn and ignore the option if not recognized
18930 # So say no if there are warnings
18931 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18934 lt_cv_prog_compiler_c_o_CXX=yes
18937 chmod u+w . 2>&5
18938 $rm conftest*
18939 # SGI C++ compiler will create directory out/ii_files/ for
18940 # template instantiation
18941 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18942 $rm out/* && rmdir out
18943 cd ..
18944 rmdir conftest
18945 $rm conftest*
18948 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18949 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
18952 hard_links="nottested"
18953 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18954 # do not overwrite the value of need_locks provided by the user
18955 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18956 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18957 hard_links=yes
18958 $rm conftest*
18959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18960 touch conftest.a
18961 ln conftest.a conftest.b 2>&5 || hard_links=no
18962 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18963 { echo "$as_me:$LINENO: result: $hard_links" >&5
18964 echo "${ECHO_T}$hard_links" >&6; }
18965 if test "$hard_links" = no; then
18966 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18967 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18968 need_locks=warn
18970 else
18971 need_locks=no
18974 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18975 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18977 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18978 case $host_os in
18979 aix4* | aix5*)
18980 # If we're using GNU nm, then we don't want the "-C" option.
18981 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18982 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18983 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'
18984 else
18985 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'
18988 pw32*)
18989 export_symbols_cmds_CXX="$ltdll_cmds"
18991 cygwin* | mingw*)
18992 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'
18995 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18997 esac
18999 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19000 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19001 test "$ld_shlibs_CXX" = no && can_build_shared=no
19004 # Do we need to explicitly link libc?
19006 case "x$archive_cmds_need_lc_CXX" in
19007 x|xyes)
19008 # Assume -lc should be added
19009 archive_cmds_need_lc_CXX=yes
19011 if test "$enable_shared" = yes && test "$GCC" = yes; then
19012 case $archive_cmds_CXX in
19013 *'~'*)
19014 # FIXME: we may have to deal with multi-command sequences.
19016 '$CC '*)
19017 # Test whether the compiler implicitly links with -lc since on some
19018 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19019 # to ld, don't add -lc before -lgcc.
19020 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19021 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19022 $rm conftest*
19023 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19026 (eval $ac_compile) 2>&5
19027 ac_status=$?
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } 2>conftest.err; then
19030 soname=conftest
19031 lib=conftest
19032 libobjs=conftest.$ac_objext
19033 deplibs=
19034 wl=$lt_prog_compiler_wl_CXX
19035 pic_flag=$lt_prog_compiler_pic_CXX
19036 compiler_flags=-v
19037 linker_flags=-v
19038 verstring=
19039 output_objdir=.
19040 libname=conftest
19041 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19042 allow_undefined_flag_CXX=
19043 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19044 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19045 ac_status=$?
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }
19048 then
19049 archive_cmds_need_lc_CXX=no
19050 else
19051 archive_cmds_need_lc_CXX=yes
19053 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19054 else
19055 cat conftest.err 1>&5
19057 $rm conftest*
19058 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19059 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19061 esac
19064 esac
19066 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19067 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19068 library_names_spec=
19069 libname_spec='lib$name'
19070 soname_spec=
19071 shrext_cmds=".so"
19072 postinstall_cmds=
19073 postuninstall_cmds=
19074 finish_cmds=
19075 finish_eval=
19076 shlibpath_var=
19077 shlibpath_overrides_runpath=unknown
19078 version_type=none
19079 dynamic_linker="$host_os ld.so"
19080 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19081 if test "$GCC" = yes; then
19082 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19083 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19084 # if the path contains ";" then we assume it to be the separator
19085 # otherwise default to the standard path separator (i.e. ":") - it is
19086 # assumed that no part of a normal pathname contains ";" but that should
19087 # okay in the real world where ";" in dirpaths is itself problematic.
19088 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19089 else
19090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19092 else
19093 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19095 need_lib_prefix=unknown
19096 hardcode_into_libs=no
19098 # when you set need_version to no, make sure it does not cause -set_version
19099 # flags to be left without arguments
19100 need_version=unknown
19102 case $host_os in
19103 aix3*)
19104 version_type=linux
19105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19106 shlibpath_var=LIBPATH
19108 # AIX 3 has no versioning support, so we append a major version to the name.
19109 soname_spec='${libname}${release}${shared_ext}$major'
19112 aix4* | aix5*)
19113 version_type=linux
19114 need_lib_prefix=no
19115 need_version=no
19116 hardcode_into_libs=yes
19117 if test "$host_cpu" = ia64; then
19118 # AIX 5 supports IA64
19119 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19120 shlibpath_var=LD_LIBRARY_PATH
19121 else
19122 # With GCC up to 2.95.x, collect2 would create an import file
19123 # for dependence libraries. The import file would start with
19124 # the line `#! .'. This would cause the generated library to
19125 # depend on `.', always an invalid library. This was fixed in
19126 # development snapshots of GCC prior to 3.0.
19127 case $host_os in
19128 aix4 | aix4.[01] | aix4.[01].*)
19129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19130 echo ' yes '
19131 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19133 else
19134 can_build_shared=no
19137 esac
19138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19139 # soname into executable. Probably we can add versioning support to
19140 # collect2, so additional links can be useful in future.
19141 if test "$aix_use_runtimelinking" = yes; then
19142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19143 # instead of lib<name>.a to let people know that these are not
19144 # typical AIX shared libraries.
19145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19146 else
19147 # We preserve .a as extension for shared libraries through AIX4.2
19148 # and later when we are not doing run time linking.
19149 library_names_spec='${libname}${release}.a $libname.a'
19150 soname_spec='${libname}${release}${shared_ext}$major'
19152 shlibpath_var=LIBPATH
19156 amigaos*)
19157 library_names_spec='$libname.ixlibrary $libname.a'
19158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19159 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'
19162 beos*)
19163 library_names_spec='${libname}${shared_ext}'
19164 dynamic_linker="$host_os ld.so"
19165 shlibpath_var=LIBRARY_PATH
19168 bsdi[45]*)
19169 version_type=linux
19170 need_version=no
19171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19172 soname_spec='${libname}${release}${shared_ext}$major'
19173 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19174 shlibpath_var=LD_LIBRARY_PATH
19175 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19176 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19177 # the default ld.so.conf also contains /usr/contrib/lib and
19178 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19179 # libtool to hard-code these into programs
19182 cygwin* | mingw* | pw32*)
19183 version_type=windows
19184 shrext_cmds=".dll"
19185 need_version=no
19186 need_lib_prefix=no
19188 case $GCC,$host_os in
19189 yes,cygwin* | yes,mingw* | yes,pw32*)
19190 library_names_spec='$libname.dll.a'
19191 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19192 postinstall_cmds='base_file=`basename \${file}`~
19193 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19194 dldir=$destdir/`dirname \$dlpath`~
19195 test -d \$dldir || mkdir -p \$dldir~
19196 $install_prog $dir/$dlname \$dldir/$dlname~
19197 chmod a+x \$dldir/$dlname'
19198 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19199 dlpath=$dir/\$dldll~
19200 $rm \$dlpath'
19201 shlibpath_overrides_runpath=yes
19203 case $host_os in
19204 cygwin*)
19205 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19206 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19207 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19209 mingw*)
19210 # MinGW DLLs use traditional 'lib' prefix
19211 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19212 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19213 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19214 # It is most probably a Windows format PATH printed by
19215 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19216 # path with ; separators, and with drive letters. We can handle the
19217 # drive letters (cygwin fileutils understands them), so leave them,
19218 # especially as we might pass files found there to a mingw objdump,
19219 # which wouldn't understand a cygwinified path. Ahh.
19220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19221 else
19222 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19225 pw32*)
19226 # pw32 DLLs use 'pw' prefix rather than 'lib'
19227 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19229 esac
19233 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19235 esac
19236 dynamic_linker='Win32 ld.exe'
19237 # FIXME: first we should search . and the directory the executable is in
19238 shlibpath_var=PATH
19241 darwin* | rhapsody*)
19242 dynamic_linker="$host_os dyld"
19243 version_type=darwin
19244 need_lib_prefix=no
19245 need_version=no
19246 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19247 soname_spec='${libname}${release}${major}$shared_ext'
19248 shlibpath_overrides_runpath=yes
19249 shlibpath_var=DYLD_LIBRARY_PATH
19250 shrext_cmds='.dylib'
19251 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19252 if test "$GCC" = yes; then
19253 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"`
19254 else
19255 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19257 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19260 dgux*)
19261 version_type=linux
19262 need_lib_prefix=no
19263 need_version=no
19264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19265 soname_spec='${libname}${release}${shared_ext}$major'
19266 shlibpath_var=LD_LIBRARY_PATH
19269 freebsd1*)
19270 dynamic_linker=no
19273 kfreebsd*-gnu)
19274 version_type=linux
19275 need_lib_prefix=no
19276 need_version=no
19277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19278 soname_spec='${libname}${release}${shared_ext}$major'
19279 shlibpath_var=LD_LIBRARY_PATH
19280 shlibpath_overrides_runpath=no
19281 hardcode_into_libs=yes
19282 dynamic_linker='GNU ld.so'
19285 freebsd* | dragonfly*)
19286 # DragonFly does not have aout. When/if they implement a new
19287 # versioning mechanism, adjust this.
19288 if test -x /usr/bin/objformat; then
19289 objformat=`/usr/bin/objformat`
19290 else
19291 case $host_os in
19292 freebsd[123]*) objformat=aout ;;
19293 *) objformat=elf ;;
19294 esac
19296 version_type=freebsd-$objformat
19297 case $version_type in
19298 freebsd-elf*)
19299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19300 need_version=no
19301 need_lib_prefix=no
19303 freebsd-*)
19304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19305 need_version=yes
19307 esac
19308 shlibpath_var=LD_LIBRARY_PATH
19309 case $host_os in
19310 freebsd2*)
19311 shlibpath_overrides_runpath=yes
19313 freebsd3.[01]* | freebsdelf3.[01]*)
19314 shlibpath_overrides_runpath=yes
19315 hardcode_into_libs=yes
19317 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19318 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19319 shlibpath_overrides_runpath=no
19320 hardcode_into_libs=yes
19322 freebsd*) # from 4.6 on
19323 shlibpath_overrides_runpath=yes
19324 hardcode_into_libs=yes
19326 esac
19329 gnu*)
19330 version_type=linux
19331 need_lib_prefix=no
19332 need_version=no
19333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19334 soname_spec='${libname}${release}${shared_ext}$major'
19335 shlibpath_var=LD_LIBRARY_PATH
19336 hardcode_into_libs=yes
19339 hpux9* | hpux10* | hpux11*)
19340 # Give a soname corresponding to the major version so that dld.sl refuses to
19341 # link against other versions.
19342 version_type=sunos
19343 need_lib_prefix=no
19344 need_version=no
19345 case $host_cpu in
19346 ia64*)
19347 shrext_cmds='.so'
19348 hardcode_into_libs=yes
19349 dynamic_linker="$host_os dld.so"
19350 shlibpath_var=LD_LIBRARY_PATH
19351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19353 soname_spec='${libname}${release}${shared_ext}$major'
19354 if test "X$HPUX_IA64_MODE" = X32; then
19355 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19356 else
19357 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19361 hppa*64*)
19362 shrext_cmds='.sl'
19363 hardcode_into_libs=yes
19364 dynamic_linker="$host_os dld.sl"
19365 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19368 soname_spec='${libname}${release}${shared_ext}$major'
19369 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19373 shrext_cmds='.sl'
19374 dynamic_linker="$host_os dld.sl"
19375 shlibpath_var=SHLIB_PATH
19376 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19378 soname_spec='${libname}${release}${shared_ext}$major'
19380 esac
19381 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19382 postinstall_cmds='chmod 555 $lib'
19385 interix3*)
19386 version_type=linux
19387 need_lib_prefix=no
19388 need_version=no
19389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19390 soname_spec='${libname}${release}${shared_ext}$major'
19391 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19392 shlibpath_var=LD_LIBRARY_PATH
19393 shlibpath_overrides_runpath=no
19394 hardcode_into_libs=yes
19397 irix5* | irix6* | nonstopux*)
19398 case $host_os in
19399 nonstopux*) version_type=nonstopux ;;
19401 if test "$lt_cv_prog_gnu_ld" = yes; then
19402 version_type=linux
19403 else
19404 version_type=irix
19405 fi ;;
19406 esac
19407 need_lib_prefix=no
19408 need_version=no
19409 soname_spec='${libname}${release}${shared_ext}$major'
19410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19411 case $host_os in
19412 irix5* | nonstopux*)
19413 libsuff= shlibsuff=
19416 case $LD in # libtool.m4 will add one of these switches to LD
19417 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19418 libsuff= shlibsuff= libmagic=32-bit;;
19419 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19420 libsuff=32 shlibsuff=N32 libmagic=N32;;
19421 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19422 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19423 *) libsuff= shlibsuff= libmagic=never-match;;
19424 esac
19426 esac
19427 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19428 shlibpath_overrides_runpath=no
19429 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19430 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19431 hardcode_into_libs=yes
19434 # No shared lib support for Linux oldld, aout, or coff.
19435 linux*oldld* | linux*aout* | linux*coff*)
19436 dynamic_linker=no
19439 # This must be Linux ELF.
19440 linux*)
19441 version_type=linux
19442 need_lib_prefix=no
19443 need_version=no
19444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19445 soname_spec='${libname}${release}${shared_ext}$major'
19446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19447 shlibpath_var=LD_LIBRARY_PATH
19448 shlibpath_overrides_runpath=no
19449 # This implies no fast_install, which is unacceptable.
19450 # Some rework will be needed to allow for fast_install
19451 # before this can be enabled.
19452 hardcode_into_libs=yes
19454 # Append ld.so.conf contents to the search path
19455 if test -f /etc/ld.so.conf; then
19456 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' ' '`
19457 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19460 # We used to test for /lib/ld.so.1 and disable shared libraries on
19461 # powerpc, because MkLinux only supported shared libraries with the
19462 # GNU dynamic linker. Since this was broken with cross compilers,
19463 # most powerpc-linux boxes support dynamic linking these days and
19464 # people can always --disable-shared, the test was removed, and we
19465 # assume the GNU/Linux dynamic linker is in use.
19466 dynamic_linker='GNU/Linux ld.so'
19469 knetbsd*-gnu)
19470 version_type=linux
19471 need_lib_prefix=no
19472 need_version=no
19473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19474 soname_spec='${libname}${release}${shared_ext}$major'
19475 shlibpath_var=LD_LIBRARY_PATH
19476 shlibpath_overrides_runpath=no
19477 hardcode_into_libs=yes
19478 dynamic_linker='GNU ld.so'
19481 netbsd*)
19482 version_type=sunos
19483 need_lib_prefix=no
19484 need_version=no
19485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19488 dynamic_linker='NetBSD (a.out) ld.so'
19489 else
19490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19491 soname_spec='${libname}${release}${shared_ext}$major'
19492 dynamic_linker='NetBSD ld.elf_so'
19494 shlibpath_var=LD_LIBRARY_PATH
19495 shlibpath_overrides_runpath=yes
19496 hardcode_into_libs=yes
19499 newsos6)
19500 version_type=linux
19501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19502 shlibpath_var=LD_LIBRARY_PATH
19503 shlibpath_overrides_runpath=yes
19506 nto-qnx*)
19507 version_type=linux
19508 need_lib_prefix=no
19509 need_version=no
19510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19511 soname_spec='${libname}${release}${shared_ext}$major'
19512 shlibpath_var=LD_LIBRARY_PATH
19513 shlibpath_overrides_runpath=yes
19516 openbsd*)
19517 version_type=sunos
19518 sys_lib_dlsearch_path_spec="/usr/lib"
19519 need_lib_prefix=no
19520 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19521 case $host_os in
19522 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19523 *) need_version=no ;;
19524 esac
19525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19527 shlibpath_var=LD_LIBRARY_PATH
19528 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19529 case $host_os in
19530 openbsd2.[89] | openbsd2.[89].*)
19531 shlibpath_overrides_runpath=no
19534 shlibpath_overrides_runpath=yes
19536 esac
19537 else
19538 shlibpath_overrides_runpath=yes
19542 os2*)
19543 libname_spec='$name'
19544 shrext_cmds=".dll"
19545 need_lib_prefix=no
19546 library_names_spec='$libname${shared_ext} $libname.a'
19547 dynamic_linker='OS/2 ld.exe'
19548 shlibpath_var=LIBPATH
19551 osf3* | osf4* | osf5*)
19552 version_type=osf
19553 need_lib_prefix=no
19554 need_version=no
19555 soname_spec='${libname}${release}${shared_ext}$major'
19556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19557 shlibpath_var=LD_LIBRARY_PATH
19558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19562 solaris*)
19563 version_type=linux
19564 need_lib_prefix=no
19565 need_version=no
19566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19567 soname_spec='${libname}${release}${shared_ext}$major'
19568 shlibpath_var=LD_LIBRARY_PATH
19569 shlibpath_overrides_runpath=yes
19570 hardcode_into_libs=yes
19571 # ldd complains unless libraries are executable
19572 postinstall_cmds='chmod +x $lib'
19575 sunos4*)
19576 version_type=sunos
19577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19578 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19579 shlibpath_var=LD_LIBRARY_PATH
19580 shlibpath_overrides_runpath=yes
19581 if test "$with_gnu_ld" = yes; then
19582 need_lib_prefix=no
19584 need_version=yes
19587 sysv4 | sysv4.3*)
19588 version_type=linux
19589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19590 soname_spec='${libname}${release}${shared_ext}$major'
19591 shlibpath_var=LD_LIBRARY_PATH
19592 case $host_vendor in
19593 sni)
19594 shlibpath_overrides_runpath=no
19595 need_lib_prefix=no
19596 export_dynamic_flag_spec='${wl}-Blargedynsym'
19597 runpath_var=LD_RUN_PATH
19599 siemens)
19600 need_lib_prefix=no
19602 motorola)
19603 need_lib_prefix=no
19604 need_version=no
19605 shlibpath_overrides_runpath=no
19606 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19608 esac
19611 sysv4*MP*)
19612 if test -d /usr/nec ;then
19613 version_type=linux
19614 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19615 soname_spec='$libname${shared_ext}.$major'
19616 shlibpath_var=LD_LIBRARY_PATH
19620 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19621 version_type=freebsd-elf
19622 need_lib_prefix=no
19623 need_version=no
19624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19625 soname_spec='${libname}${release}${shared_ext}$major'
19626 shlibpath_var=LD_LIBRARY_PATH
19627 hardcode_into_libs=yes
19628 if test "$with_gnu_ld" = yes; then
19629 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19630 shlibpath_overrides_runpath=no
19631 else
19632 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19633 shlibpath_overrides_runpath=yes
19634 case $host_os in
19635 sco3.2v5*)
19636 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19638 esac
19640 sys_lib_dlsearch_path_spec='/usr/lib'
19643 uts4*)
19644 version_type=linux
19645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19646 soname_spec='${libname}${release}${shared_ext}$major'
19647 shlibpath_var=LD_LIBRARY_PATH
19651 dynamic_linker=no
19653 esac
19654 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19655 echo "${ECHO_T}$dynamic_linker" >&6; }
19656 test "$dynamic_linker" = no && can_build_shared=no
19658 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19659 if test "$GCC" = yes; then
19660 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19663 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19664 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19665 hardcode_action_CXX=
19666 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19667 test -n "$runpath_var_CXX" || \
19668 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19670 # We can hardcode non-existant directories.
19671 if test "$hardcode_direct_CXX" != no &&
19672 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19673 # have to relink, otherwise we might link with an installed library
19674 # when we should be linking with a yet-to-be-installed one
19675 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19676 test "$hardcode_minus_L_CXX" != no; then
19677 # Linking always hardcodes the temporary library directory.
19678 hardcode_action_CXX=relink
19679 else
19680 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19681 hardcode_action_CXX=immediate
19683 else
19684 # We cannot hardcode anything, or else we can only hardcode existing
19685 # directories.
19686 hardcode_action_CXX=unsupported
19688 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19689 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
19691 if test "$hardcode_action_CXX" = relink; then
19692 # Fast installation is not supported
19693 enable_fast_install=no
19694 elif test "$shlibpath_overrides_runpath" = yes ||
19695 test "$enable_shared" = no; then
19696 # Fast installation is not necessary
19697 enable_fast_install=needless
19701 # The else clause should only fire when bootstrapping the
19702 # libtool distribution, otherwise you forgot to ship ltmain.sh
19703 # with your package, and you will get complaints that there are
19704 # no rules to generate ltmain.sh.
19705 if test -f "$ltmain"; then
19706 # See if we are running on zsh, and set the options which allow our commands through
19707 # without removal of \ escapes.
19708 if test -n "${ZSH_VERSION+set}" ; then
19709 setopt NO_GLOB_SUBST
19711 # Now quote all the things that may contain metacharacters while being
19712 # careful not to overquote the AC_SUBSTed values. We take copies of the
19713 # variables and quote the copies for generation of the libtool script.
19714 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19715 SED SHELL STRIP \
19716 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19717 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19718 deplibs_check_method reload_flag reload_cmds need_locks \
19719 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19720 lt_cv_sys_global_symbol_to_c_name_address \
19721 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19722 old_postinstall_cmds old_postuninstall_cmds \
19723 compiler_CXX \
19724 CC_CXX \
19725 LD_CXX \
19726 lt_prog_compiler_wl_CXX \
19727 lt_prog_compiler_pic_CXX \
19728 lt_prog_compiler_static_CXX \
19729 lt_prog_compiler_no_builtin_flag_CXX \
19730 export_dynamic_flag_spec_CXX \
19731 thread_safe_flag_spec_CXX \
19732 whole_archive_flag_spec_CXX \
19733 enable_shared_with_static_runtimes_CXX \
19734 old_archive_cmds_CXX \
19735 old_archive_from_new_cmds_CXX \
19736 predep_objects_CXX \
19737 postdep_objects_CXX \
19738 predeps_CXX \
19739 postdeps_CXX \
19740 compiler_lib_search_path_CXX \
19741 archive_cmds_CXX \
19742 archive_expsym_cmds_CXX \
19743 postinstall_cmds_CXX \
19744 postuninstall_cmds_CXX \
19745 old_archive_from_expsyms_cmds_CXX \
19746 allow_undefined_flag_CXX \
19747 no_undefined_flag_CXX \
19748 export_symbols_cmds_CXX \
19749 hardcode_libdir_flag_spec_CXX \
19750 hardcode_libdir_flag_spec_ld_CXX \
19751 hardcode_libdir_separator_CXX \
19752 hardcode_automatic_CXX \
19753 module_cmds_CXX \
19754 module_expsym_cmds_CXX \
19755 lt_cv_prog_compiler_c_o_CXX \
19756 exclude_expsyms_CXX \
19757 include_expsyms_CXX; do
19759 case $var in
19760 old_archive_cmds_CXX | \
19761 old_archive_from_new_cmds_CXX | \
19762 archive_cmds_CXX | \
19763 archive_expsym_cmds_CXX | \
19764 module_cmds_CXX | \
19765 module_expsym_cmds_CXX | \
19766 old_archive_from_expsyms_cmds_CXX | \
19767 export_symbols_cmds_CXX | \
19768 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19769 postinstall_cmds | postuninstall_cmds | \
19770 old_postinstall_cmds | old_postuninstall_cmds | \
19771 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19772 # Double-quote double-evaled strings.
19773 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19776 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19778 esac
19779 done
19781 case $lt_echo in
19782 *'\$0 --fallback-echo"')
19783 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19785 esac
19787 cfgfile="$ofile"
19789 cat <<__EOF__ >> "$cfgfile"
19790 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19792 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19794 # Shell to use when invoking shell scripts.
19795 SHELL=$lt_SHELL
19797 # Whether or not to build shared libraries.
19798 build_libtool_libs=$enable_shared
19800 # Whether or not to build static libraries.
19801 build_old_libs=$enable_static
19803 # Whether or not to add -lc for building shared libraries.
19804 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19806 # Whether or not to disallow shared libs when runtime libs are static
19807 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19809 # Whether or not to optimize for fast installation.
19810 fast_install=$enable_fast_install
19812 # The host system.
19813 host_alias=$host_alias
19814 host=$host
19815 host_os=$host_os
19817 # The build system.
19818 build_alias=$build_alias
19819 build=$build
19820 build_os=$build_os
19822 # An echo program that does not interpret backslashes.
19823 echo=$lt_echo
19825 # The archiver.
19826 AR=$lt_AR
19827 AR_FLAGS=$lt_AR_FLAGS
19829 # A C compiler.
19830 LTCC=$lt_LTCC
19832 # LTCC compiler flags.
19833 LTCFLAGS=$lt_LTCFLAGS
19835 # A language-specific compiler.
19836 CC=$lt_compiler_CXX
19838 # Is the compiler the GNU C compiler?
19839 with_gcc=$GCC_CXX
19841 # An ERE matcher.
19842 EGREP=$lt_EGREP
19844 # The linker used to build libraries.
19845 LD=$lt_LD_CXX
19847 # Whether we need hard or soft links.
19848 LN_S=$lt_LN_S
19850 # A BSD-compatible nm program.
19851 NM=$lt_NM
19853 # A symbol stripping program
19854 STRIP=$lt_STRIP
19856 # Used to examine libraries when file_magic_cmd begins "file"
19857 MAGIC_CMD=$MAGIC_CMD
19859 # Used on cygwin: DLL creation program.
19860 DLLTOOL="$DLLTOOL"
19862 # Used on cygwin: object dumper.
19863 OBJDUMP="$OBJDUMP"
19865 # Used on cygwin: assembler.
19866 AS="$AS"
19868 # The name of the directory that contains temporary libtool files.
19869 objdir=$objdir
19871 # How to create reloadable object files.
19872 reload_flag=$lt_reload_flag
19873 reload_cmds=$lt_reload_cmds
19875 # How to pass a linker flag through the compiler.
19876 wl=$lt_lt_prog_compiler_wl_CXX
19878 # Object file suffix (normally "o").
19879 objext="$ac_objext"
19881 # Old archive suffix (normally "a").
19882 libext="$libext"
19884 # Shared library suffix (normally ".so").
19885 shrext_cmds='$shrext_cmds'
19887 # Executable file suffix (normally "").
19888 exeext="$exeext"
19890 # Additional compiler flags for building library objects.
19891 pic_flag=$lt_lt_prog_compiler_pic_CXX
19892 pic_mode=$pic_mode
19894 # What is the maximum length of a command?
19895 max_cmd_len=$lt_cv_sys_max_cmd_len
19897 # Does compiler simultaneously support -c and -o options?
19898 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19900 # Must we lock files when doing compilation?
19901 need_locks=$lt_need_locks
19903 # Do we need the lib prefix for modules?
19904 need_lib_prefix=$need_lib_prefix
19906 # Do we need a version for libraries?
19907 need_version=$need_version
19909 # Whether dlopen is supported.
19910 dlopen_support=$enable_dlopen
19912 # Whether dlopen of programs is supported.
19913 dlopen_self=$enable_dlopen_self
19915 # Whether dlopen of statically linked programs is supported.
19916 dlopen_self_static=$enable_dlopen_self_static
19918 # Compiler flag to prevent dynamic linking.
19919 link_static_flag=$lt_lt_prog_compiler_static_CXX
19921 # Compiler flag to turn off builtin functions.
19922 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19924 # Compiler flag to allow reflexive dlopens.
19925 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19927 # Compiler flag to generate shared objects directly from archives.
19928 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19930 # Compiler flag to generate thread-safe objects.
19931 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19933 # Library versioning type.
19934 version_type=$version_type
19936 # Format of library name prefix.
19937 libname_spec=$lt_libname_spec
19939 # List of archive names. First name is the real one, the rest are links.
19940 # The last name is the one that the linker finds with -lNAME.
19941 library_names_spec=$lt_library_names_spec
19943 # The coded name of the library, if different from the real name.
19944 soname_spec=$lt_soname_spec
19946 # Commands used to build and install an old-style archive.
19947 RANLIB=$lt_RANLIB
19948 old_archive_cmds=$lt_old_archive_cmds_CXX
19949 old_postinstall_cmds=$lt_old_postinstall_cmds
19950 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19952 # Create an old-style archive from a shared archive.
19953 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19955 # Create a temporary old-style archive to link instead of a shared archive.
19956 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19958 # Commands used to build and install a shared archive.
19959 archive_cmds=$lt_archive_cmds_CXX
19960 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19961 postinstall_cmds=$lt_postinstall_cmds
19962 postuninstall_cmds=$lt_postuninstall_cmds
19964 # Commands used to build a loadable module (assumed same as above if empty)
19965 module_cmds=$lt_module_cmds_CXX
19966 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19968 # Commands to strip libraries.
19969 old_striplib=$lt_old_striplib
19970 striplib=$lt_striplib
19972 # Dependencies to place before the objects being linked to create a
19973 # shared library.
19974 predep_objects=$lt_predep_objects_CXX
19976 # Dependencies to place after the objects being linked to create a
19977 # shared library.
19978 postdep_objects=$lt_postdep_objects_CXX
19980 # Dependencies to place before the objects being linked to create a
19981 # shared library.
19982 predeps=$lt_predeps_CXX
19984 # Dependencies to place after the objects being linked to create a
19985 # shared library.
19986 postdeps=$lt_postdeps_CXX
19988 # The library search path used internally by the compiler when linking
19989 # a shared library.
19990 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19992 # Method to check whether dependent libraries are shared objects.
19993 deplibs_check_method=$lt_deplibs_check_method
19995 # Command to use when deplibs_check_method == file_magic.
19996 file_magic_cmd=$lt_file_magic_cmd
19998 # Flag that allows shared libraries with undefined symbols to be built.
19999 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20001 # Flag that forces no undefined symbols.
20002 no_undefined_flag=$lt_no_undefined_flag_CXX
20004 # Commands used to finish a libtool library installation in a directory.
20005 finish_cmds=$lt_finish_cmds
20007 # Same as above, but a single script fragment to be evaled but not shown.
20008 finish_eval=$lt_finish_eval
20010 # Take the output of nm and produce a listing of raw symbols and C names.
20011 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20013 # Transform the output of nm in a proper C declaration
20014 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20016 # Transform the output of nm in a C name address pair
20017 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20019 # This is the shared library runtime path variable.
20020 runpath_var=$runpath_var
20022 # This is the shared library path variable.
20023 shlibpath_var=$shlibpath_var
20025 # Is shlibpath searched before the hard-coded library search path?
20026 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20028 # How to hardcode a shared library path into an executable.
20029 hardcode_action=$hardcode_action_CXX
20031 # Whether we should hardcode library paths into libraries.
20032 hardcode_into_libs=$hardcode_into_libs
20034 # Flag to hardcode \$libdir into a binary during linking.
20035 # This must work even if \$libdir does not exist.
20036 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20038 # If ld is used when linking, flag to hardcode \$libdir into
20039 # a binary during linking. This must work even if \$libdir does
20040 # not exist.
20041 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20043 # Whether we need a single -rpath flag with a separated argument.
20044 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20046 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20047 # resulting binary.
20048 hardcode_direct=$hardcode_direct_CXX
20050 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20051 # resulting binary.
20052 hardcode_minus_L=$hardcode_minus_L_CXX
20054 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20055 # the resulting binary.
20056 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20058 # Set to yes if building a shared library automatically hardcodes DIR into the library
20059 # and all subsequent libraries and executables linked against it.
20060 hardcode_automatic=$hardcode_automatic_CXX
20062 # Variables whose values should be saved in libtool wrapper scripts and
20063 # restored at relink time.
20064 variables_saved_for_relink="$variables_saved_for_relink"
20066 # Whether libtool must link a program against all its dependency libraries.
20067 link_all_deplibs=$link_all_deplibs_CXX
20069 # Compile-time system search path for libraries
20070 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20072 # Run-time system search path for libraries
20073 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20075 # Fix the shell variable \$srcfile for the compiler.
20076 fix_srcfile_path="$fix_srcfile_path_CXX"
20078 # Set to yes if exported symbols are required.
20079 always_export_symbols=$always_export_symbols_CXX
20081 # The commands to list exported symbols.
20082 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20084 # The commands to extract the exported symbol list from a shared archive.
20085 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20087 # Symbols that should not be listed in the preloaded symbols.
20088 exclude_expsyms=$lt_exclude_expsyms_CXX
20090 # Symbols that must always be exported.
20091 include_expsyms=$lt_include_expsyms_CXX
20093 # ### END LIBTOOL TAG CONFIG: $tagname
20095 __EOF__
20098 else
20099 # If there is no Makefile yet, we rely on a make rule to execute
20100 # `config.status --recheck' to rerun these tests and create the
20101 # libtool script then.
20102 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20103 if test -f "$ltmain_in"; then
20104 test -f Makefile && make "$ltmain"
20109 ac_ext=c
20110 ac_cpp='$CPP $CPPFLAGS'
20111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20115 CC=$lt_save_CC
20116 LDCXX=$LD
20117 LD=$lt_save_LD
20118 GCC=$lt_save_GCC
20119 with_gnu_ldcxx=$with_gnu_ld
20120 with_gnu_ld=$lt_save_with_gnu_ld
20121 lt_cv_path_LDCXX=$lt_cv_path_LD
20122 lt_cv_path_LD=$lt_save_path_LD
20123 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20124 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20126 else
20127 tagname=""
20131 F77)
20132 if test -n "$F77" && test "X$F77" != "Xno"; then
20134 ac_ext=f
20135 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20136 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20137 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20140 archive_cmds_need_lc_F77=no
20141 allow_undefined_flag_F77=
20142 always_export_symbols_F77=no
20143 archive_expsym_cmds_F77=
20144 export_dynamic_flag_spec_F77=
20145 hardcode_direct_F77=no
20146 hardcode_libdir_flag_spec_F77=
20147 hardcode_libdir_flag_spec_ld_F77=
20148 hardcode_libdir_separator_F77=
20149 hardcode_minus_L_F77=no
20150 hardcode_automatic_F77=no
20151 module_cmds_F77=
20152 module_expsym_cmds_F77=
20153 link_all_deplibs_F77=unknown
20154 old_archive_cmds_F77=$old_archive_cmds
20155 no_undefined_flag_F77=
20156 whole_archive_flag_spec_F77=
20157 enable_shared_with_static_runtimes_F77=no
20159 # Source file extension for f77 test sources.
20160 ac_ext=f
20162 # Object file extension for compiled f77 test sources.
20163 objext=o
20164 objext_F77=$objext
20166 # Code to be used in simple compile tests
20167 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20169 # Code to be used in simple link tests
20170 lt_simple_link_test_code=" program t\n end\n"
20172 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20174 # If no C compiler was specified, use CC.
20175 LTCC=${LTCC-"$CC"}
20177 # If no C compiler flags were specified, use CFLAGS.
20178 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20180 # Allow CC to be a program name with arguments.
20181 compiler=$CC
20184 # save warnings/boilerplate of simple test code
20185 ac_outfile=conftest.$ac_objext
20186 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20187 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20188 _lt_compiler_boilerplate=`cat conftest.err`
20189 $rm conftest*
20191 ac_outfile=conftest.$ac_objext
20192 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20193 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20194 _lt_linker_boilerplate=`cat conftest.err`
20195 $rm conftest*
20198 # Allow CC to be a program name with arguments.
20199 lt_save_CC="$CC"
20200 CC=${F77-"f77"}
20201 compiler=$CC
20202 compiler_F77=$CC
20203 for cc_temp in $compiler""; do
20204 case $cc_temp in
20205 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20206 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20207 \-*) ;;
20208 *) break;;
20209 esac
20210 done
20211 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20214 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20215 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20216 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20217 echo "${ECHO_T}$can_build_shared" >&6; }
20219 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20220 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20221 test "$can_build_shared" = "no" && enable_shared=no
20223 # On AIX, shared libraries and static libraries use the same namespace, and
20224 # are all built from PIC.
20225 case $host_os in
20226 aix3*)
20227 test "$enable_shared" = yes && enable_static=no
20228 if test -n "$RANLIB"; then
20229 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20230 postinstall_cmds='$RANLIB $lib'
20233 aix4* | aix5*)
20234 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20235 test "$enable_shared" = yes && enable_static=no
20238 esac
20239 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20240 echo "${ECHO_T}$enable_shared" >&6; }
20242 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20243 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20244 # Make sure either enable_shared or enable_static is yes.
20245 test "$enable_shared" = yes || enable_static=yes
20246 { echo "$as_me:$LINENO: result: $enable_static" >&5
20247 echo "${ECHO_T}$enable_static" >&6; }
20249 GCC_F77="$G77"
20250 LD_F77="$LD"
20252 lt_prog_compiler_wl_F77=
20253 lt_prog_compiler_pic_F77=
20254 lt_prog_compiler_static_F77=
20256 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20257 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20259 if test "$GCC" = yes; then
20260 lt_prog_compiler_wl_F77='-Wl,'
20261 lt_prog_compiler_static_F77='-static'
20263 case $host_os in
20264 aix*)
20265 # All AIX code is PIC.
20266 if test "$host_cpu" = ia64; then
20267 # AIX 5 now supports IA64 processor
20268 lt_prog_compiler_static_F77='-Bstatic'
20272 amigaos*)
20273 # FIXME: we need at least 68020 code to build shared libraries, but
20274 # adding the `-m68020' flag to GCC prevents building anything better,
20275 # like `-m68040'.
20276 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20279 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20280 # PIC is the default for these OSes.
20283 mingw* | pw32* | os2*)
20284 # This hack is so that the source file can tell whether it is being
20285 # built for inclusion in a dll (and should export symbols for example).
20286 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20289 darwin* | rhapsody*)
20290 # PIC is the default on this platform
20291 # Common symbols not allowed in MH_DYLIB files
20292 lt_prog_compiler_pic_F77='-fno-common'
20295 interix3*)
20296 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20297 # Instead, we relocate shared libraries at runtime.
20300 msdosdjgpp*)
20301 # Just because we use GCC doesn't mean we suddenly get shared libraries
20302 # on systems that don't support them.
20303 lt_prog_compiler_can_build_shared_F77=no
20304 enable_shared=no
20307 sysv4*MP*)
20308 if test -d /usr/nec; then
20309 lt_prog_compiler_pic_F77=-Kconform_pic
20313 hpux*)
20314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20315 # not for PA HP-UX.
20316 case $host_cpu in
20317 hppa*64*|ia64*)
20318 # +Z the default
20321 lt_prog_compiler_pic_F77='-fPIC'
20323 esac
20327 lt_prog_compiler_pic_F77='-fPIC'
20329 esac
20330 else
20331 # PORTME Check for flag to pass linker flags through the system compiler.
20332 case $host_os in
20333 aix*)
20334 lt_prog_compiler_wl_F77='-Wl,'
20335 if test "$host_cpu" = ia64; then
20336 # AIX 5 now supports IA64 processor
20337 lt_prog_compiler_static_F77='-Bstatic'
20338 else
20339 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20342 darwin*)
20343 # PIC is the default on this platform
20344 # Common symbols not allowed in MH_DYLIB files
20345 case $cc_basename in
20346 xlc*)
20347 lt_prog_compiler_pic_F77='-qnocommon'
20348 lt_prog_compiler_wl_F77='-Wl,'
20350 esac
20353 mingw* | pw32* | os2*)
20354 # This hack is so that the source file can tell whether it is being
20355 # built for inclusion in a dll (and should export symbols for example).
20356 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20359 hpux9* | hpux10* | hpux11*)
20360 lt_prog_compiler_wl_F77='-Wl,'
20361 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20362 # not for PA HP-UX.
20363 case $host_cpu in
20364 hppa*64*|ia64*)
20365 # +Z the default
20368 lt_prog_compiler_pic_F77='+Z'
20370 esac
20371 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20372 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20375 irix5* | irix6* | nonstopux*)
20376 lt_prog_compiler_wl_F77='-Wl,'
20377 # PIC (with -KPIC) is the default.
20378 lt_prog_compiler_static_F77='-non_shared'
20381 newsos6)
20382 lt_prog_compiler_pic_F77='-KPIC'
20383 lt_prog_compiler_static_F77='-Bstatic'
20386 linux*)
20387 case $cc_basename in
20388 icc* | ecc*)
20389 lt_prog_compiler_wl_F77='-Wl,'
20390 lt_prog_compiler_pic_F77='-KPIC'
20391 lt_prog_compiler_static_F77='-static'
20393 pgcc* | pgf77* | pgf90* | pgf95*)
20394 # Portland Group compilers (*not* the Pentium gcc compiler,
20395 # which looks to be a dead project)
20396 lt_prog_compiler_wl_F77='-Wl,'
20397 lt_prog_compiler_pic_F77='-fpic'
20398 lt_prog_compiler_static_F77='-Bstatic'
20400 ccc*)
20401 lt_prog_compiler_wl_F77='-Wl,'
20402 # All Alpha code is PIC.
20403 lt_prog_compiler_static_F77='-non_shared'
20405 esac
20408 osf3* | osf4* | osf5*)
20409 lt_prog_compiler_wl_F77='-Wl,'
20410 # All OSF/1 code is PIC.
20411 lt_prog_compiler_static_F77='-non_shared'
20414 solaris*)
20415 lt_prog_compiler_pic_F77='-KPIC'
20416 lt_prog_compiler_static_F77='-Bstatic'
20417 case $cc_basename in
20418 f77* | f90* | f95*)
20419 lt_prog_compiler_wl_F77='-Qoption ld ';;
20421 lt_prog_compiler_wl_F77='-Wl,';;
20422 esac
20425 sunos4*)
20426 lt_prog_compiler_wl_F77='-Qoption ld '
20427 lt_prog_compiler_pic_F77='-PIC'
20428 lt_prog_compiler_static_F77='-Bstatic'
20431 sysv4 | sysv4.2uw2* | sysv4.3*)
20432 lt_prog_compiler_wl_F77='-Wl,'
20433 lt_prog_compiler_pic_F77='-KPIC'
20434 lt_prog_compiler_static_F77='-Bstatic'
20437 sysv4*MP*)
20438 if test -d /usr/nec ;then
20439 lt_prog_compiler_pic_F77='-Kconform_pic'
20440 lt_prog_compiler_static_F77='-Bstatic'
20444 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20445 lt_prog_compiler_wl_F77='-Wl,'
20446 lt_prog_compiler_pic_F77='-KPIC'
20447 lt_prog_compiler_static_F77='-Bstatic'
20450 unicos*)
20451 lt_prog_compiler_wl_F77='-Wl,'
20452 lt_prog_compiler_can_build_shared_F77=no
20455 uts4*)
20456 lt_prog_compiler_pic_F77='-pic'
20457 lt_prog_compiler_static_F77='-Bstatic'
20461 lt_prog_compiler_can_build_shared_F77=no
20463 esac
20466 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20467 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20470 # Check to make sure the PIC flag actually works.
20472 if test -n "$lt_prog_compiler_pic_F77"; then
20474 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20475 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20476 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20478 else
20479 lt_prog_compiler_pic_works_F77=no
20480 ac_outfile=conftest.$ac_objext
20481 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20482 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20483 # Insert the option either (1) after the last *FLAGS variable, or
20484 # (2) before a word containing "conftest.", or (3) at the end.
20485 # Note that $ac_compile itself does not contain backslashes and begins
20486 # with a dollar sign (not a hyphen), so the echo should work correctly.
20487 # The option is referenced via a variable to avoid confusing sed.
20488 lt_compile=`echo "$ac_compile" | $SED \
20489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20491 -e 's:$: $lt_compiler_flag:'`
20492 (eval echo "\"\$as_me:20492: $lt_compile\"" >&5)
20493 (eval "$lt_compile" 2>conftest.err)
20494 ac_status=$?
20495 cat conftest.err >&5
20496 echo "$as_me:20496: \$? = $ac_status" >&5
20497 if (exit $ac_status) && test -s "$ac_outfile"; then
20498 # The compiler can only warn and ignore the option if not recognized
20499 # So say no if there are warnings other than the usual output.
20500 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20502 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20503 lt_prog_compiler_pic_works_F77=yes
20506 $rm conftest*
20509 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20510 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
20512 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20513 case $lt_prog_compiler_pic_F77 in
20514 "" | " "*) ;;
20515 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20516 esac
20517 else
20518 lt_prog_compiler_pic_F77=
20519 lt_prog_compiler_can_build_shared_F77=no
20523 case $host_os in
20524 # For platforms which do not support PIC, -DPIC is meaningless:
20525 *djgpp*)
20526 lt_prog_compiler_pic_F77=
20529 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20531 esac
20534 # Check to make sure the static flag actually works.
20536 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20537 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20538 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20539 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20540 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 else
20542 lt_prog_compiler_static_works_F77=no
20543 save_LDFLAGS="$LDFLAGS"
20544 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20545 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20546 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20547 # The linker can only warn and ignore the option if not recognized
20548 # So say no if there are warnings
20549 if test -s conftest.err; then
20550 # Append any errors to the config.log.
20551 cat conftest.err 1>&5
20552 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20554 if diff conftest.exp conftest.er2 >/dev/null; then
20555 lt_prog_compiler_static_works_F77=yes
20557 else
20558 lt_prog_compiler_static_works_F77=yes
20561 $rm conftest*
20562 LDFLAGS="$save_LDFLAGS"
20565 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20566 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20568 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20570 else
20571 lt_prog_compiler_static_F77=
20575 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20576 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20577 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 else
20580 lt_cv_prog_compiler_c_o_F77=no
20581 $rm -r conftest 2>/dev/null
20582 mkdir conftest
20583 cd conftest
20584 mkdir out
20585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20587 lt_compiler_flag="-o out/conftest2.$ac_objext"
20588 # Insert the option either (1) after the last *FLAGS variable, or
20589 # (2) before a word containing "conftest.", or (3) at the end.
20590 # Note that $ac_compile itself does not contain backslashes and begins
20591 # with a dollar sign (not a hyphen), so the echo should work correctly.
20592 lt_compile=`echo "$ac_compile" | $SED \
20593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20595 -e 's:$: $lt_compiler_flag:'`
20596 (eval echo "\"\$as_me:20596: $lt_compile\"" >&5)
20597 (eval "$lt_compile" 2>out/conftest.err)
20598 ac_status=$?
20599 cat out/conftest.err >&5
20600 echo "$as_me:20600: \$? = $ac_status" >&5
20601 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20602 then
20603 # The compiler can only warn and ignore the option if not recognized
20604 # So say no if there are warnings
20605 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20606 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20607 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20608 lt_cv_prog_compiler_c_o_F77=yes
20611 chmod u+w . 2>&5
20612 $rm conftest*
20613 # SGI C++ compiler will create directory out/ii_files/ for
20614 # template instantiation
20615 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20616 $rm out/* && rmdir out
20617 cd ..
20618 rmdir conftest
20619 $rm conftest*
20622 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20623 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
20626 hard_links="nottested"
20627 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20628 # do not overwrite the value of need_locks provided by the user
20629 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20630 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20631 hard_links=yes
20632 $rm conftest*
20633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20634 touch conftest.a
20635 ln conftest.a conftest.b 2>&5 || hard_links=no
20636 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20637 { echo "$as_me:$LINENO: result: $hard_links" >&5
20638 echo "${ECHO_T}$hard_links" >&6; }
20639 if test "$hard_links" = no; then
20640 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20641 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20642 need_locks=warn
20644 else
20645 need_locks=no
20648 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20649 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20651 runpath_var=
20652 allow_undefined_flag_F77=
20653 enable_shared_with_static_runtimes_F77=no
20654 archive_cmds_F77=
20655 archive_expsym_cmds_F77=
20656 old_archive_From_new_cmds_F77=
20657 old_archive_from_expsyms_cmds_F77=
20658 export_dynamic_flag_spec_F77=
20659 whole_archive_flag_spec_F77=
20660 thread_safe_flag_spec_F77=
20661 hardcode_libdir_flag_spec_F77=
20662 hardcode_libdir_flag_spec_ld_F77=
20663 hardcode_libdir_separator_F77=
20664 hardcode_direct_F77=no
20665 hardcode_minus_L_F77=no
20666 hardcode_shlibpath_var_F77=unsupported
20667 link_all_deplibs_F77=unknown
20668 hardcode_automatic_F77=no
20669 module_cmds_F77=
20670 module_expsym_cmds_F77=
20671 always_export_symbols_F77=no
20672 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20673 # include_expsyms should be a list of space-separated symbols to be *always*
20674 # included in the symbol list
20675 include_expsyms_F77=
20676 # exclude_expsyms can be an extended regexp of symbols to exclude
20677 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20678 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20679 # as well as any symbol that contains `d'.
20680 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20681 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20682 # platforms (ab)use it in PIC code, but their linkers get confused if
20683 # the symbol is explicitly referenced. Since portable code cannot
20684 # rely on this symbol name, it's probably fine to never include it in
20685 # preloaded symbol tables.
20686 extract_expsyms_cmds=
20687 # Just being paranoid about ensuring that cc_basename is set.
20688 for cc_temp in $compiler""; do
20689 case $cc_temp in
20690 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20691 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20692 \-*) ;;
20693 *) break;;
20694 esac
20695 done
20696 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20698 case $host_os in
20699 cygwin* | mingw* | pw32*)
20700 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20701 # When not using gcc, we currently assume that we are using
20702 # Microsoft Visual C++.
20703 if test "$GCC" != yes; then
20704 with_gnu_ld=no
20707 interix*)
20708 # we just hope/assume this is gcc and not c89 (= MSVC++)
20709 with_gnu_ld=yes
20711 openbsd*)
20712 with_gnu_ld=no
20714 esac
20716 ld_shlibs_F77=yes
20717 if test "$with_gnu_ld" = yes; then
20718 # If archive_cmds runs LD, not CC, wlarc should be empty
20719 wlarc='${wl}'
20721 # Set some defaults for GNU ld with shared library support. These
20722 # are reset later if shared libraries are not supported. Putting them
20723 # here allows them to be overridden if necessary.
20724 runpath_var=LD_RUN_PATH
20725 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20726 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20727 # ancient GNU ld didn't support --whole-archive et. al.
20728 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20729 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20730 else
20731 whole_archive_flag_spec_F77=
20733 supports_anon_versioning=no
20734 case `$LD -v 2>/dev/null` in
20735 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20736 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20737 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20738 *\ 2.11.*) ;; # other 2.11 versions
20739 *) supports_anon_versioning=yes ;;
20740 esac
20742 # See if GNU ld supports shared libraries.
20743 case $host_os in
20744 aix3* | aix4* | aix5*)
20745 # On AIX/PPC, the GNU linker is very broken
20746 if test "$host_cpu" != ia64; then
20747 ld_shlibs_F77=no
20748 cat <<EOF 1>&2
20750 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20751 *** to be unable to reliably create shared libraries on AIX.
20752 *** Therefore, libtool is disabling shared libraries support. If you
20753 *** really care for shared libraries, you may want to modify your PATH
20754 *** so that a non-GNU linker is found, and then restart.
20760 amigaos*)
20761 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)'
20762 hardcode_libdir_flag_spec_F77='-L$libdir'
20763 hardcode_minus_L_F77=yes
20765 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20766 # that the semantics of dynamic libraries on AmigaOS, at least up
20767 # to version 4, is to share data among multiple programs linked
20768 # with the same dynamic library. Since this doesn't match the
20769 # behavior of shared libraries on other platforms, we can't use
20770 # them.
20771 ld_shlibs_F77=no
20774 beos*)
20775 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20776 allow_undefined_flag_F77=unsupported
20777 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20778 # support --undefined. This deserves some investigation. FIXME
20779 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20780 else
20781 ld_shlibs_F77=no
20785 cygwin* | mingw* | pw32*)
20786 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20787 # as there is no search path for DLLs.
20788 hardcode_libdir_flag_spec_F77='-L$libdir'
20789 allow_undefined_flag_F77=unsupported
20790 always_export_symbols_F77=no
20791 enable_shared_with_static_runtimes_F77=yes
20792 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20794 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20795 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20796 # If the export-symbols file already is a .def file (1st line
20797 # is EXPORTS), use it as is; otherwise, prepend...
20798 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20799 cp $export_symbols $output_objdir/$soname.def;
20800 else
20801 echo EXPORTS > $output_objdir/$soname.def;
20802 cat $export_symbols >> $output_objdir/$soname.def;
20804 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20805 else
20806 ld_shlibs_F77=no
20810 interix3*)
20811 hardcode_direct_F77=no
20812 hardcode_shlibpath_var_F77=no
20813 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20814 export_dynamic_flag_spec_F77='${wl}-E'
20815 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20816 # Instead, shared libraries are loaded at an image base (0x10000000 by
20817 # default) and relocated if they conflict, which is a slow very memory
20818 # consuming and fragmenting process. To avoid this, we pick a random,
20819 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20820 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20821 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'
20822 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'
20825 linux*)
20826 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20827 tmp_addflag=
20828 case $cc_basename,$host_cpu in
20829 pgcc*) # Portland Group C compiler
20830 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'
20831 tmp_addflag=' $pic_flag'
20833 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20834 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'
20835 tmp_addflag=' $pic_flag -Mnomain' ;;
20836 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20837 tmp_addflag=' -i_dynamic' ;;
20838 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20839 tmp_addflag=' -i_dynamic -nofor_main' ;;
20840 ifc* | ifort*) # Intel Fortran compiler
20841 tmp_addflag=' -nofor_main' ;;
20842 esac
20843 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20845 if test $supports_anon_versioning = yes; then
20846 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20847 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20848 $echo "local: *; };" >> $output_objdir/$libname.ver~
20849 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20851 else
20852 ld_shlibs_F77=no
20856 netbsd*)
20857 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20858 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20859 wlarc=
20860 else
20861 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20862 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20866 solaris*)
20867 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20868 ld_shlibs_F77=no
20869 cat <<EOF 1>&2
20871 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20872 *** create shared libraries on Solaris systems. Therefore, libtool
20873 *** is disabling shared libraries support. We urge you to upgrade GNU
20874 *** binutils to release 2.9.1 or newer. Another option is to modify
20875 *** your PATH or compiler configuration so that the native linker is
20876 *** used, and then restart.
20879 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20880 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20881 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20882 else
20883 ld_shlibs_F77=no
20887 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20888 case `$LD -v 2>&1` in
20889 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20890 ld_shlibs_F77=no
20891 cat <<_LT_EOF 1>&2
20893 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20894 *** reliably create shared libraries on SCO systems. Therefore, libtool
20895 *** is disabling shared libraries support. We urge you to upgrade GNU
20896 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20897 *** your PATH or compiler configuration so that the native linker is
20898 *** used, and then restart.
20900 _LT_EOF
20903 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20904 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20905 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20906 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20907 else
20908 ld_shlibs_F77=no
20911 esac
20914 sunos4*)
20915 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20916 wlarc=
20917 hardcode_direct_F77=yes
20918 hardcode_shlibpath_var_F77=no
20922 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20923 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20924 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20925 else
20926 ld_shlibs_F77=no
20929 esac
20931 if test "$ld_shlibs_F77" = no; then
20932 runpath_var=
20933 hardcode_libdir_flag_spec_F77=
20934 export_dynamic_flag_spec_F77=
20935 whole_archive_flag_spec_F77=
20937 else
20938 # PORTME fill in a description of your system's linker (not GNU ld)
20939 case $host_os in
20940 aix3*)
20941 allow_undefined_flag_F77=unsupported
20942 always_export_symbols_F77=yes
20943 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'
20944 # Note: this linker hardcodes the directories in LIBPATH if there
20945 # are no directories specified by -L.
20946 hardcode_minus_L_F77=yes
20947 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20948 # Neither direct hardcoding nor static linking is supported with a
20949 # broken collect2.
20950 hardcode_direct_F77=unsupported
20954 aix4* | aix5*)
20955 if test "$host_cpu" = ia64; then
20956 # On IA64, the linker does run time linking by default, so we don't
20957 # have to do anything special.
20958 aix_use_runtimelinking=no
20959 exp_sym_flag='-Bexport'
20960 no_entry_flag=""
20961 else
20962 # If we're using GNU nm, then we don't want the "-C" option.
20963 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20964 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20965 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'
20966 else
20967 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'
20969 aix_use_runtimelinking=no
20971 # Test if we are trying to use run time linking or normal
20972 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20973 # need to do runtime linking.
20974 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20975 for ld_flag in $LDFLAGS; do
20976 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20977 aix_use_runtimelinking=yes
20978 break
20980 done
20982 esac
20984 exp_sym_flag='-bexport'
20985 no_entry_flag='-bnoentry'
20988 # When large executables or shared objects are built, AIX ld can
20989 # have problems creating the table of contents. If linking a library
20990 # or program results in "error TOC overflow" add -mminimal-toc to
20991 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20992 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20994 archive_cmds_F77=''
20995 hardcode_direct_F77=yes
20996 hardcode_libdir_separator_F77=':'
20997 link_all_deplibs_F77=yes
20999 if test "$GCC" = yes; then
21000 case $host_os in aix4.[012]|aix4.[012].*)
21001 # We only want to do this on AIX 4.2 and lower, the check
21002 # below for broken collect2 doesn't work under 4.3+
21003 collect2name=`${CC} -print-prog-name=collect2`
21004 if test -f "$collect2name" && \
21005 strings "$collect2name" | grep resolve_lib_name >/dev/null
21006 then
21007 # We have reworked collect2
21008 hardcode_direct_F77=yes
21009 else
21010 # We have old collect2
21011 hardcode_direct_F77=unsupported
21012 # It fails to find uninstalled libraries when the uninstalled
21013 # path is not listed in the libpath. Setting hardcode_minus_L
21014 # to unsupported forces relinking
21015 hardcode_minus_L_F77=yes
21016 hardcode_libdir_flag_spec_F77='-L$libdir'
21017 hardcode_libdir_separator_F77=
21020 esac
21021 shared_flag='-shared'
21022 if test "$aix_use_runtimelinking" = yes; then
21023 shared_flag="$shared_flag "'${wl}-G'
21025 else
21026 # not using gcc
21027 if test "$host_cpu" = ia64; then
21028 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21029 # chokes on -Wl,-G. The following line is correct:
21030 shared_flag='-G'
21031 else
21032 if test "$aix_use_runtimelinking" = yes; then
21033 shared_flag='${wl}-G'
21034 else
21035 shared_flag='${wl}-bM:SRE'
21040 # It seems that -bexpall does not export symbols beginning with
21041 # underscore (_), so it is better to generate a list of symbols to export.
21042 always_export_symbols_F77=yes
21043 if test "$aix_use_runtimelinking" = yes; then
21044 # Warning - without using the other runtime loading flags (-brtl),
21045 # -berok will link without error, but may produce a broken library.
21046 allow_undefined_flag_F77='-berok'
21047 # Determine the default libpath from the value encoded in an empty executable.
21048 cat >conftest.$ac_ext <<_ACEOF
21049 program main
21052 _ACEOF
21053 rm -f conftest.$ac_objext conftest$ac_exeext
21054 if { (ac_try="$ac_link"
21055 case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21058 esac
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_link") 2>conftest.er1
21061 ac_status=$?
21062 grep -v '^ *+' conftest.er1 >conftest.err
21063 rm -f conftest.er1
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } && {
21067 test -z "$ac_f77_werror_flag" ||
21068 test ! -s conftest.err
21069 } && test -s conftest$ac_exeext &&
21070 $as_test_x conftest$ac_exeext; then
21072 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21074 # Check for a 64-bit object if we didn't find anything.
21075 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; }
21076 }'`; fi
21077 else
21078 echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21085 conftest$ac_exeext conftest.$ac_ext
21086 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21088 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21089 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"
21090 else
21091 if test "$host_cpu" = ia64; then
21092 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21093 allow_undefined_flag_F77="-z nodefs"
21094 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"
21095 else
21096 # Determine the default libpath from the value encoded in an empty executable.
21097 cat >conftest.$ac_ext <<_ACEOF
21098 program main
21101 _ACEOF
21102 rm -f conftest.$ac_objext conftest$ac_exeext
21103 if { (ac_try="$ac_link"
21104 case "(($ac_try" in
21105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106 *) ac_try_echo=$ac_try;;
21107 esac
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109 (eval "$ac_link") 2>conftest.er1
21110 ac_status=$?
21111 grep -v '^ *+' conftest.er1 >conftest.err
21112 rm -f conftest.er1
21113 cat conftest.err >&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); } && {
21116 test -z "$ac_f77_werror_flag" ||
21117 test ! -s conftest.err
21118 } && test -s conftest$ac_exeext &&
21119 $as_test_x conftest$ac_exeext; then
21121 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21123 # Check for a 64-bit object if we didn't find anything.
21124 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; }
21125 }'`; fi
21126 else
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21134 conftest$ac_exeext conftest.$ac_ext
21135 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21137 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21138 # Warning - without using the other run time loading flags,
21139 # -berok will link without error, but may produce a broken library.
21140 no_undefined_flag_F77=' ${wl}-bernotok'
21141 allow_undefined_flag_F77=' ${wl}-berok'
21142 # Exported symbols can be pulled into shared objects from archives
21143 whole_archive_flag_spec_F77='$convenience'
21144 archive_cmds_need_lc_F77=yes
21145 # This is similar to how AIX traditionally builds its shared libraries.
21146 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'
21151 amigaos*)
21152 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)'
21153 hardcode_libdir_flag_spec_F77='-L$libdir'
21154 hardcode_minus_L_F77=yes
21155 # see comment about different semantics on the GNU ld section
21156 ld_shlibs_F77=no
21159 bsdi[45]*)
21160 export_dynamic_flag_spec_F77=-rdynamic
21163 cygwin* | mingw* | pw32*)
21164 # When not using gcc, we currently assume that we are using
21165 # Microsoft Visual C++.
21166 # hardcode_libdir_flag_spec is actually meaningless, as there is
21167 # no search path for DLLs.
21168 hardcode_libdir_flag_spec_F77=' '
21169 allow_undefined_flag_F77=unsupported
21170 # Tell ltmain to make .lib files, not .a files.
21171 libext=lib
21172 # Tell ltmain to make .dll files, not .so files.
21173 shrext_cmds=".dll"
21174 # FIXME: Setting linknames here is a bad hack.
21175 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21176 # The linker will automatically build a .lib file if we build a DLL.
21177 old_archive_From_new_cmds_F77='true'
21178 # FIXME: Should let the user specify the lib program.
21179 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21180 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21181 enable_shared_with_static_runtimes_F77=yes
21184 darwin* | rhapsody*)
21185 case $host_os in
21186 rhapsody* | darwin1.[012])
21187 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21189 *) # Darwin 1.3 on
21190 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21191 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21192 else
21193 case ${MACOSX_DEPLOYMENT_TARGET} in
21194 10.[012])
21195 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21197 10.*)
21198 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21200 esac
21203 esac
21204 archive_cmds_need_lc_F77=no
21205 hardcode_direct_F77=no
21206 hardcode_automatic_F77=yes
21207 hardcode_shlibpath_var_F77=unsupported
21208 whole_archive_flag_spec_F77=''
21209 link_all_deplibs_F77=yes
21210 if test "$GCC" = yes ; then
21211 output_verbose_link_cmd='echo'
21212 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21213 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21214 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21215 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}'
21216 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}'
21217 else
21218 case $cc_basename in
21219 xlc*)
21220 output_verbose_link_cmd='echo'
21221 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21222 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21223 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21224 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}'
21225 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}'
21228 ld_shlibs_F77=no
21230 esac
21234 dgux*)
21235 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21236 hardcode_libdir_flag_spec_F77='-L$libdir'
21237 hardcode_shlibpath_var_F77=no
21240 freebsd1*)
21241 ld_shlibs_F77=no
21244 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21245 # support. Future versions do this automatically, but an explicit c++rt0.o
21246 # does not break anything, and helps significantly (at the cost of a little
21247 # extra space).
21248 freebsd2.2*)
21249 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21250 hardcode_libdir_flag_spec_F77='-R$libdir'
21251 hardcode_direct_F77=yes
21252 hardcode_shlibpath_var_F77=no
21255 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21256 freebsd2*)
21257 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21258 hardcode_direct_F77=yes
21259 hardcode_minus_L_F77=yes
21260 hardcode_shlibpath_var_F77=no
21263 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21264 freebsd* | kfreebsd*-gnu | dragonfly*)
21265 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21266 hardcode_libdir_flag_spec_F77='-R$libdir'
21267 hardcode_direct_F77=yes
21268 hardcode_shlibpath_var_F77=no
21271 hpux9*)
21272 if test "$GCC" = yes; then
21273 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'
21274 else
21275 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'
21277 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21278 hardcode_libdir_separator_F77=:
21279 hardcode_direct_F77=yes
21281 # hardcode_minus_L: Not really in the search PATH,
21282 # but as the default location of the library.
21283 hardcode_minus_L_F77=yes
21284 export_dynamic_flag_spec_F77='${wl}-E'
21287 hpux10*)
21288 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21289 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21290 else
21291 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21293 if test "$with_gnu_ld" = no; then
21294 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21295 hardcode_libdir_separator_F77=:
21297 hardcode_direct_F77=yes
21298 export_dynamic_flag_spec_F77='${wl}-E'
21300 # hardcode_minus_L: Not really in the search PATH,
21301 # but as the default location of the library.
21302 hardcode_minus_L_F77=yes
21306 hpux11*)
21307 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21308 case $host_cpu in
21309 hppa*64*)
21310 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21312 ia64*)
21313 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21316 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21318 esac
21319 else
21320 case $host_cpu in
21321 hppa*64*)
21322 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21324 ia64*)
21325 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21328 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21330 esac
21332 if test "$with_gnu_ld" = no; then
21333 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21334 hardcode_libdir_separator_F77=:
21336 case $host_cpu in
21337 hppa*64*|ia64*)
21338 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21339 hardcode_direct_F77=no
21340 hardcode_shlibpath_var_F77=no
21343 hardcode_direct_F77=yes
21344 export_dynamic_flag_spec_F77='${wl}-E'
21346 # hardcode_minus_L: Not really in the search PATH,
21347 # but as the default location of the library.
21348 hardcode_minus_L_F77=yes
21350 esac
21354 irix5* | irix6* | nonstopux*)
21355 if test "$GCC" = yes; then
21356 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'
21357 else
21358 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'
21359 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21361 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21362 hardcode_libdir_separator_F77=:
21363 link_all_deplibs_F77=yes
21366 netbsd*)
21367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21368 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21369 else
21370 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21372 hardcode_libdir_flag_spec_F77='-R$libdir'
21373 hardcode_direct_F77=yes
21374 hardcode_shlibpath_var_F77=no
21377 newsos6)
21378 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21379 hardcode_direct_F77=yes
21380 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21381 hardcode_libdir_separator_F77=:
21382 hardcode_shlibpath_var_F77=no
21385 openbsd*)
21386 hardcode_direct_F77=yes
21387 hardcode_shlibpath_var_F77=no
21388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21389 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21390 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21391 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21392 export_dynamic_flag_spec_F77='${wl}-E'
21393 else
21394 case $host_os in
21395 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21396 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21397 hardcode_libdir_flag_spec_F77='-R$libdir'
21400 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21401 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21403 esac
21407 os2*)
21408 hardcode_libdir_flag_spec_F77='-L$libdir'
21409 hardcode_minus_L_F77=yes
21410 allow_undefined_flag_F77=unsupported
21411 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'
21412 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21415 osf3*)
21416 if test "$GCC" = yes; then
21417 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21418 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'
21419 else
21420 allow_undefined_flag_F77=' -expect_unresolved \*'
21421 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'
21423 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21424 hardcode_libdir_separator_F77=:
21427 osf4* | osf5*) # as osf3* with the addition of -msym flag
21428 if test "$GCC" = yes; then
21429 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21430 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'
21431 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21432 else
21433 allow_undefined_flag_F77=' -expect_unresolved \*'
21434 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'
21435 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~
21436 $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'
21438 # Both c and cxx compiler support -rpath directly
21439 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21441 hardcode_libdir_separator_F77=:
21444 solaris*)
21445 no_undefined_flag_F77=' -z text'
21446 if test "$GCC" = yes; then
21447 wlarc='${wl}'
21448 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21449 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21450 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21451 else
21452 wlarc=''
21453 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21454 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21455 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21457 hardcode_libdir_flag_spec_F77='-R$libdir'
21458 hardcode_shlibpath_var_F77=no
21459 case $host_os in
21460 solaris2.[0-5] | solaris2.[0-5].*) ;;
21462 # The compiler driver will combine linker options so we
21463 # cannot just pass the convience library names through
21464 # without $wl, iff we do not link with $LD.
21465 # Luckily, gcc supports the same syntax we need for Sun Studio.
21466 # Supported since Solaris 2.6 (maybe 2.5.1?)
21467 case $wlarc in
21469 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21471 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' ;;
21472 esac ;;
21473 esac
21474 link_all_deplibs_F77=yes
21477 sunos4*)
21478 if test "x$host_vendor" = xsequent; then
21479 # Use $CC to link under sequent, because it throws in some extra .o
21480 # files that make .init and .fini sections work.
21481 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21482 else
21483 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21485 hardcode_libdir_flag_spec_F77='-L$libdir'
21486 hardcode_direct_F77=yes
21487 hardcode_minus_L_F77=yes
21488 hardcode_shlibpath_var_F77=no
21491 sysv4)
21492 case $host_vendor in
21493 sni)
21494 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21495 hardcode_direct_F77=yes # is this really true???
21497 siemens)
21498 ## LD is ld it makes a PLAMLIB
21499 ## CC just makes a GrossModule.
21500 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21501 reload_cmds_F77='$CC -r -o $output$reload_objs'
21502 hardcode_direct_F77=no
21504 motorola)
21505 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21506 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21508 esac
21509 runpath_var='LD_RUN_PATH'
21510 hardcode_shlibpath_var_F77=no
21513 sysv4.3*)
21514 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21515 hardcode_shlibpath_var_F77=no
21516 export_dynamic_flag_spec_F77='-Bexport'
21519 sysv4*MP*)
21520 if test -d /usr/nec; then
21521 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21522 hardcode_shlibpath_var_F77=no
21523 runpath_var=LD_RUN_PATH
21524 hardcode_runpath_var=yes
21525 ld_shlibs_F77=yes
21529 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21530 no_undefined_flag_F77='${wl}-z,text'
21531 archive_cmds_need_lc_F77=no
21532 hardcode_shlibpath_var_F77=no
21533 runpath_var='LD_RUN_PATH'
21535 if test "$GCC" = yes; then
21536 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21537 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21538 else
21539 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21540 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21544 sysv5* | sco3.2v5* | sco5v6*)
21545 # Note: We can NOT use -z defs as we might desire, because we do not
21546 # link with -lc, and that would cause any symbols used from libc to
21547 # always be unresolved, which means just about no library would
21548 # ever link correctly. If we're not using GNU ld we use -z text
21549 # though, which does catch some bad symbols but isn't as heavy-handed
21550 # as -z defs.
21551 no_undefined_flag_F77='${wl}-z,text'
21552 allow_undefined_flag_F77='${wl}-z,nodefs'
21553 archive_cmds_need_lc_F77=no
21554 hardcode_shlibpath_var_F77=no
21555 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21556 hardcode_libdir_separator_F77=':'
21557 link_all_deplibs_F77=yes
21558 export_dynamic_flag_spec_F77='${wl}-Bexport'
21559 runpath_var='LD_RUN_PATH'
21561 if test "$GCC" = yes; then
21562 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21563 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21564 else
21565 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21566 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21570 uts4*)
21571 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21572 hardcode_libdir_flag_spec_F77='-L$libdir'
21573 hardcode_shlibpath_var_F77=no
21577 ld_shlibs_F77=no
21579 esac
21582 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21583 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
21584 test "$ld_shlibs_F77" = no && can_build_shared=no
21587 # Do we need to explicitly link libc?
21589 case "x$archive_cmds_need_lc_F77" in
21590 x|xyes)
21591 # Assume -lc should be added
21592 archive_cmds_need_lc_F77=yes
21594 if test "$enable_shared" = yes && test "$GCC" = yes; then
21595 case $archive_cmds_F77 in
21596 *'~'*)
21597 # FIXME: we may have to deal with multi-command sequences.
21599 '$CC '*)
21600 # Test whether the compiler implicitly links with -lc since on some
21601 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21602 # to ld, don't add -lc before -lgcc.
21603 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21604 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21605 $rm conftest*
21606 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21609 (eval $ac_compile) 2>&5
21610 ac_status=$?
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); } 2>conftest.err; then
21613 soname=conftest
21614 lib=conftest
21615 libobjs=conftest.$ac_objext
21616 deplibs=
21617 wl=$lt_prog_compiler_wl_F77
21618 pic_flag=$lt_prog_compiler_pic_F77
21619 compiler_flags=-v
21620 linker_flags=-v
21621 verstring=
21622 output_objdir=.
21623 libname=conftest
21624 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21625 allow_undefined_flag_F77=
21626 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21627 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21628 ac_status=$?
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); }
21631 then
21632 archive_cmds_need_lc_F77=no
21633 else
21634 archive_cmds_need_lc_F77=yes
21636 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21637 else
21638 cat conftest.err 1>&5
21640 $rm conftest*
21641 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21642 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
21644 esac
21647 esac
21649 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21650 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21651 library_names_spec=
21652 libname_spec='lib$name'
21653 soname_spec=
21654 shrext_cmds=".so"
21655 postinstall_cmds=
21656 postuninstall_cmds=
21657 finish_cmds=
21658 finish_eval=
21659 shlibpath_var=
21660 shlibpath_overrides_runpath=unknown
21661 version_type=none
21662 dynamic_linker="$host_os ld.so"
21663 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21664 if test "$GCC" = yes; then
21665 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21666 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21667 # if the path contains ";" then we assume it to be the separator
21668 # otherwise default to the standard path separator (i.e. ":") - it is
21669 # assumed that no part of a normal pathname contains ";" but that should
21670 # okay in the real world where ";" in dirpaths is itself problematic.
21671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21672 else
21673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21675 else
21676 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21678 need_lib_prefix=unknown
21679 hardcode_into_libs=no
21681 # when you set need_version to no, make sure it does not cause -set_version
21682 # flags to be left without arguments
21683 need_version=unknown
21685 case $host_os in
21686 aix3*)
21687 version_type=linux
21688 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21689 shlibpath_var=LIBPATH
21691 # AIX 3 has no versioning support, so we append a major version to the name.
21692 soname_spec='${libname}${release}${shared_ext}$major'
21695 aix4* | aix5*)
21696 version_type=linux
21697 need_lib_prefix=no
21698 need_version=no
21699 hardcode_into_libs=yes
21700 if test "$host_cpu" = ia64; then
21701 # AIX 5 supports IA64
21702 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21703 shlibpath_var=LD_LIBRARY_PATH
21704 else
21705 # With GCC up to 2.95.x, collect2 would create an import file
21706 # for dependence libraries. The import file would start with
21707 # the line `#! .'. This would cause the generated library to
21708 # depend on `.', always an invalid library. This was fixed in
21709 # development snapshots of GCC prior to 3.0.
21710 case $host_os in
21711 aix4 | aix4.[01] | aix4.[01].*)
21712 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21713 echo ' yes '
21714 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21716 else
21717 can_build_shared=no
21720 esac
21721 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21722 # soname into executable. Probably we can add versioning support to
21723 # collect2, so additional links can be useful in future.
21724 if test "$aix_use_runtimelinking" = yes; then
21725 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21726 # instead of lib<name>.a to let people know that these are not
21727 # typical AIX shared libraries.
21728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21729 else
21730 # We preserve .a as extension for shared libraries through AIX4.2
21731 # and later when we are not doing run time linking.
21732 library_names_spec='${libname}${release}.a $libname.a'
21733 soname_spec='${libname}${release}${shared_ext}$major'
21735 shlibpath_var=LIBPATH
21739 amigaos*)
21740 library_names_spec='$libname.ixlibrary $libname.a'
21741 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21742 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'
21745 beos*)
21746 library_names_spec='${libname}${shared_ext}'
21747 dynamic_linker="$host_os ld.so"
21748 shlibpath_var=LIBRARY_PATH
21751 bsdi[45]*)
21752 version_type=linux
21753 need_version=no
21754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21755 soname_spec='${libname}${release}${shared_ext}$major'
21756 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21757 shlibpath_var=LD_LIBRARY_PATH
21758 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21759 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21760 # the default ld.so.conf also contains /usr/contrib/lib and
21761 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21762 # libtool to hard-code these into programs
21765 cygwin* | mingw* | pw32*)
21766 version_type=windows
21767 shrext_cmds=".dll"
21768 need_version=no
21769 need_lib_prefix=no
21771 case $GCC,$host_os in
21772 yes,cygwin* | yes,mingw* | yes,pw32*)
21773 library_names_spec='$libname.dll.a'
21774 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21775 postinstall_cmds='base_file=`basename \${file}`~
21776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21777 dldir=$destdir/`dirname \$dlpath`~
21778 test -d \$dldir || mkdir -p \$dldir~
21779 $install_prog $dir/$dlname \$dldir/$dlname~
21780 chmod a+x \$dldir/$dlname'
21781 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21782 dlpath=$dir/\$dldll~
21783 $rm \$dlpath'
21784 shlibpath_overrides_runpath=yes
21786 case $host_os in
21787 cygwin*)
21788 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21789 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21790 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21792 mingw*)
21793 # MinGW DLLs use traditional 'lib' prefix
21794 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21795 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21796 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21797 # It is most probably a Windows format PATH printed by
21798 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21799 # path with ; separators, and with drive letters. We can handle the
21800 # drive letters (cygwin fileutils understands them), so leave them,
21801 # especially as we might pass files found there to a mingw objdump,
21802 # which wouldn't understand a cygwinified path. Ahh.
21803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21804 else
21805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21808 pw32*)
21809 # pw32 DLLs use 'pw' prefix rather than 'lib'
21810 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21812 esac
21816 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21818 esac
21819 dynamic_linker='Win32 ld.exe'
21820 # FIXME: first we should search . and the directory the executable is in
21821 shlibpath_var=PATH
21824 darwin* | rhapsody*)
21825 dynamic_linker="$host_os dyld"
21826 version_type=darwin
21827 need_lib_prefix=no
21828 need_version=no
21829 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21830 soname_spec='${libname}${release}${major}$shared_ext'
21831 shlibpath_overrides_runpath=yes
21832 shlibpath_var=DYLD_LIBRARY_PATH
21833 shrext_cmds='.dylib'
21834 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21835 if test "$GCC" = yes; then
21836 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"`
21837 else
21838 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21840 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21843 dgux*)
21844 version_type=linux
21845 need_lib_prefix=no
21846 need_version=no
21847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21848 soname_spec='${libname}${release}${shared_ext}$major'
21849 shlibpath_var=LD_LIBRARY_PATH
21852 freebsd1*)
21853 dynamic_linker=no
21856 kfreebsd*-gnu)
21857 version_type=linux
21858 need_lib_prefix=no
21859 need_version=no
21860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21861 soname_spec='${libname}${release}${shared_ext}$major'
21862 shlibpath_var=LD_LIBRARY_PATH
21863 shlibpath_overrides_runpath=no
21864 hardcode_into_libs=yes
21865 dynamic_linker='GNU ld.so'
21868 freebsd* | dragonfly*)
21869 # DragonFly does not have aout. When/if they implement a new
21870 # versioning mechanism, adjust this.
21871 if test -x /usr/bin/objformat; then
21872 objformat=`/usr/bin/objformat`
21873 else
21874 case $host_os in
21875 freebsd[123]*) objformat=aout ;;
21876 *) objformat=elf ;;
21877 esac
21879 version_type=freebsd-$objformat
21880 case $version_type in
21881 freebsd-elf*)
21882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21883 need_version=no
21884 need_lib_prefix=no
21886 freebsd-*)
21887 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21888 need_version=yes
21890 esac
21891 shlibpath_var=LD_LIBRARY_PATH
21892 case $host_os in
21893 freebsd2*)
21894 shlibpath_overrides_runpath=yes
21896 freebsd3.[01]* | freebsdelf3.[01]*)
21897 shlibpath_overrides_runpath=yes
21898 hardcode_into_libs=yes
21900 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21901 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21902 shlibpath_overrides_runpath=no
21903 hardcode_into_libs=yes
21905 freebsd*) # from 4.6 on
21906 shlibpath_overrides_runpath=yes
21907 hardcode_into_libs=yes
21909 esac
21912 gnu*)
21913 version_type=linux
21914 need_lib_prefix=no
21915 need_version=no
21916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21917 soname_spec='${libname}${release}${shared_ext}$major'
21918 shlibpath_var=LD_LIBRARY_PATH
21919 hardcode_into_libs=yes
21922 hpux9* | hpux10* | hpux11*)
21923 # Give a soname corresponding to the major version so that dld.sl refuses to
21924 # link against other versions.
21925 version_type=sunos
21926 need_lib_prefix=no
21927 need_version=no
21928 case $host_cpu in
21929 ia64*)
21930 shrext_cmds='.so'
21931 hardcode_into_libs=yes
21932 dynamic_linker="$host_os dld.so"
21933 shlibpath_var=LD_LIBRARY_PATH
21934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21936 soname_spec='${libname}${release}${shared_ext}$major'
21937 if test "X$HPUX_IA64_MODE" = X32; then
21938 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21939 else
21940 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21942 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21944 hppa*64*)
21945 shrext_cmds='.sl'
21946 hardcode_into_libs=yes
21947 dynamic_linker="$host_os dld.sl"
21948 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21951 soname_spec='${libname}${release}${shared_ext}$major'
21952 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21956 shrext_cmds='.sl'
21957 dynamic_linker="$host_os dld.sl"
21958 shlibpath_var=SHLIB_PATH
21959 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21961 soname_spec='${libname}${release}${shared_ext}$major'
21963 esac
21964 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21965 postinstall_cmds='chmod 555 $lib'
21968 interix3*)
21969 version_type=linux
21970 need_lib_prefix=no
21971 need_version=no
21972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21973 soname_spec='${libname}${release}${shared_ext}$major'
21974 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21975 shlibpath_var=LD_LIBRARY_PATH
21976 shlibpath_overrides_runpath=no
21977 hardcode_into_libs=yes
21980 irix5* | irix6* | nonstopux*)
21981 case $host_os in
21982 nonstopux*) version_type=nonstopux ;;
21984 if test "$lt_cv_prog_gnu_ld" = yes; then
21985 version_type=linux
21986 else
21987 version_type=irix
21988 fi ;;
21989 esac
21990 need_lib_prefix=no
21991 need_version=no
21992 soname_spec='${libname}${release}${shared_ext}$major'
21993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21994 case $host_os in
21995 irix5* | nonstopux*)
21996 libsuff= shlibsuff=
21999 case $LD in # libtool.m4 will add one of these switches to LD
22000 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22001 libsuff= shlibsuff= libmagic=32-bit;;
22002 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22003 libsuff=32 shlibsuff=N32 libmagic=N32;;
22004 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22005 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22006 *) libsuff= shlibsuff= libmagic=never-match;;
22007 esac
22009 esac
22010 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22011 shlibpath_overrides_runpath=no
22012 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22013 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22014 hardcode_into_libs=yes
22017 # No shared lib support for Linux oldld, aout, or coff.
22018 linux*oldld* | linux*aout* | linux*coff*)
22019 dynamic_linker=no
22022 # This must be Linux ELF.
22023 linux*)
22024 version_type=linux
22025 need_lib_prefix=no
22026 need_version=no
22027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22028 soname_spec='${libname}${release}${shared_ext}$major'
22029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22030 shlibpath_var=LD_LIBRARY_PATH
22031 shlibpath_overrides_runpath=no
22032 # This implies no fast_install, which is unacceptable.
22033 # Some rework will be needed to allow for fast_install
22034 # before this can be enabled.
22035 hardcode_into_libs=yes
22037 # Append ld.so.conf contents to the search path
22038 if test -f /etc/ld.so.conf; then
22039 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' ' '`
22040 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22043 # We used to test for /lib/ld.so.1 and disable shared libraries on
22044 # powerpc, because MkLinux only supported shared libraries with the
22045 # GNU dynamic linker. Since this was broken with cross compilers,
22046 # most powerpc-linux boxes support dynamic linking these days and
22047 # people can always --disable-shared, the test was removed, and we
22048 # assume the GNU/Linux dynamic linker is in use.
22049 dynamic_linker='GNU/Linux ld.so'
22052 knetbsd*-gnu)
22053 version_type=linux
22054 need_lib_prefix=no
22055 need_version=no
22056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22057 soname_spec='${libname}${release}${shared_ext}$major'
22058 shlibpath_var=LD_LIBRARY_PATH
22059 shlibpath_overrides_runpath=no
22060 hardcode_into_libs=yes
22061 dynamic_linker='GNU ld.so'
22064 netbsd*)
22065 version_type=sunos
22066 need_lib_prefix=no
22067 need_version=no
22068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22071 dynamic_linker='NetBSD (a.out) ld.so'
22072 else
22073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22074 soname_spec='${libname}${release}${shared_ext}$major'
22075 dynamic_linker='NetBSD ld.elf_so'
22077 shlibpath_var=LD_LIBRARY_PATH
22078 shlibpath_overrides_runpath=yes
22079 hardcode_into_libs=yes
22082 newsos6)
22083 version_type=linux
22084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22085 shlibpath_var=LD_LIBRARY_PATH
22086 shlibpath_overrides_runpath=yes
22089 nto-qnx*)
22090 version_type=linux
22091 need_lib_prefix=no
22092 need_version=no
22093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22094 soname_spec='${libname}${release}${shared_ext}$major'
22095 shlibpath_var=LD_LIBRARY_PATH
22096 shlibpath_overrides_runpath=yes
22099 openbsd*)
22100 version_type=sunos
22101 sys_lib_dlsearch_path_spec="/usr/lib"
22102 need_lib_prefix=no
22103 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22104 case $host_os in
22105 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22106 *) need_version=no ;;
22107 esac
22108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22110 shlibpath_var=LD_LIBRARY_PATH
22111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22112 case $host_os in
22113 openbsd2.[89] | openbsd2.[89].*)
22114 shlibpath_overrides_runpath=no
22117 shlibpath_overrides_runpath=yes
22119 esac
22120 else
22121 shlibpath_overrides_runpath=yes
22125 os2*)
22126 libname_spec='$name'
22127 shrext_cmds=".dll"
22128 need_lib_prefix=no
22129 library_names_spec='$libname${shared_ext} $libname.a'
22130 dynamic_linker='OS/2 ld.exe'
22131 shlibpath_var=LIBPATH
22134 osf3* | osf4* | osf5*)
22135 version_type=osf
22136 need_lib_prefix=no
22137 need_version=no
22138 soname_spec='${libname}${release}${shared_ext}$major'
22139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22140 shlibpath_var=LD_LIBRARY_PATH
22141 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22142 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22145 solaris*)
22146 version_type=linux
22147 need_lib_prefix=no
22148 need_version=no
22149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22150 soname_spec='${libname}${release}${shared_ext}$major'
22151 shlibpath_var=LD_LIBRARY_PATH
22152 shlibpath_overrides_runpath=yes
22153 hardcode_into_libs=yes
22154 # ldd complains unless libraries are executable
22155 postinstall_cmds='chmod +x $lib'
22158 sunos4*)
22159 version_type=sunos
22160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22161 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22162 shlibpath_var=LD_LIBRARY_PATH
22163 shlibpath_overrides_runpath=yes
22164 if test "$with_gnu_ld" = yes; then
22165 need_lib_prefix=no
22167 need_version=yes
22170 sysv4 | sysv4.3*)
22171 version_type=linux
22172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22173 soname_spec='${libname}${release}${shared_ext}$major'
22174 shlibpath_var=LD_LIBRARY_PATH
22175 case $host_vendor in
22176 sni)
22177 shlibpath_overrides_runpath=no
22178 need_lib_prefix=no
22179 export_dynamic_flag_spec='${wl}-Blargedynsym'
22180 runpath_var=LD_RUN_PATH
22182 siemens)
22183 need_lib_prefix=no
22185 motorola)
22186 need_lib_prefix=no
22187 need_version=no
22188 shlibpath_overrides_runpath=no
22189 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22191 esac
22194 sysv4*MP*)
22195 if test -d /usr/nec ;then
22196 version_type=linux
22197 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22198 soname_spec='$libname${shared_ext}.$major'
22199 shlibpath_var=LD_LIBRARY_PATH
22203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22204 version_type=freebsd-elf
22205 need_lib_prefix=no
22206 need_version=no
22207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22208 soname_spec='${libname}${release}${shared_ext}$major'
22209 shlibpath_var=LD_LIBRARY_PATH
22210 hardcode_into_libs=yes
22211 if test "$with_gnu_ld" = yes; then
22212 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22213 shlibpath_overrides_runpath=no
22214 else
22215 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22216 shlibpath_overrides_runpath=yes
22217 case $host_os in
22218 sco3.2v5*)
22219 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22221 esac
22223 sys_lib_dlsearch_path_spec='/usr/lib'
22226 uts4*)
22227 version_type=linux
22228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22229 soname_spec='${libname}${release}${shared_ext}$major'
22230 shlibpath_var=LD_LIBRARY_PATH
22234 dynamic_linker=no
22236 esac
22237 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22238 echo "${ECHO_T}$dynamic_linker" >&6; }
22239 test "$dynamic_linker" = no && can_build_shared=no
22241 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22242 if test "$GCC" = yes; then
22243 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22246 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22247 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22248 hardcode_action_F77=
22249 if test -n "$hardcode_libdir_flag_spec_F77" || \
22250 test -n "$runpath_var_F77" || \
22251 test "X$hardcode_automatic_F77" = "Xyes" ; then
22253 # We can hardcode non-existant directories.
22254 if test "$hardcode_direct_F77" != no &&
22255 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22256 # have to relink, otherwise we might link with an installed library
22257 # when we should be linking with a yet-to-be-installed one
22258 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22259 test "$hardcode_minus_L_F77" != no; then
22260 # Linking always hardcodes the temporary library directory.
22261 hardcode_action_F77=relink
22262 else
22263 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22264 hardcode_action_F77=immediate
22266 else
22267 # We cannot hardcode anything, or else we can only hardcode existing
22268 # directories.
22269 hardcode_action_F77=unsupported
22271 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22272 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22274 if test "$hardcode_action_F77" = relink; then
22275 # Fast installation is not supported
22276 enable_fast_install=no
22277 elif test "$shlibpath_overrides_runpath" = yes ||
22278 test "$enable_shared" = no; then
22279 # Fast installation is not necessary
22280 enable_fast_install=needless
22284 # The else clause should only fire when bootstrapping the
22285 # libtool distribution, otherwise you forgot to ship ltmain.sh
22286 # with your package, and you will get complaints that there are
22287 # no rules to generate ltmain.sh.
22288 if test -f "$ltmain"; then
22289 # See if we are running on zsh, and set the options which allow our commands through
22290 # without removal of \ escapes.
22291 if test -n "${ZSH_VERSION+set}" ; then
22292 setopt NO_GLOB_SUBST
22294 # Now quote all the things that may contain metacharacters while being
22295 # careful not to overquote the AC_SUBSTed values. We take copies of the
22296 # variables and quote the copies for generation of the libtool script.
22297 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22298 SED SHELL STRIP \
22299 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22300 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22301 deplibs_check_method reload_flag reload_cmds need_locks \
22302 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22303 lt_cv_sys_global_symbol_to_c_name_address \
22304 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22305 old_postinstall_cmds old_postuninstall_cmds \
22306 compiler_F77 \
22307 CC_F77 \
22308 LD_F77 \
22309 lt_prog_compiler_wl_F77 \
22310 lt_prog_compiler_pic_F77 \
22311 lt_prog_compiler_static_F77 \
22312 lt_prog_compiler_no_builtin_flag_F77 \
22313 export_dynamic_flag_spec_F77 \
22314 thread_safe_flag_spec_F77 \
22315 whole_archive_flag_spec_F77 \
22316 enable_shared_with_static_runtimes_F77 \
22317 old_archive_cmds_F77 \
22318 old_archive_from_new_cmds_F77 \
22319 predep_objects_F77 \
22320 postdep_objects_F77 \
22321 predeps_F77 \
22322 postdeps_F77 \
22323 compiler_lib_search_path_F77 \
22324 archive_cmds_F77 \
22325 archive_expsym_cmds_F77 \
22326 postinstall_cmds_F77 \
22327 postuninstall_cmds_F77 \
22328 old_archive_from_expsyms_cmds_F77 \
22329 allow_undefined_flag_F77 \
22330 no_undefined_flag_F77 \
22331 export_symbols_cmds_F77 \
22332 hardcode_libdir_flag_spec_F77 \
22333 hardcode_libdir_flag_spec_ld_F77 \
22334 hardcode_libdir_separator_F77 \
22335 hardcode_automatic_F77 \
22336 module_cmds_F77 \
22337 module_expsym_cmds_F77 \
22338 lt_cv_prog_compiler_c_o_F77 \
22339 exclude_expsyms_F77 \
22340 include_expsyms_F77; do
22342 case $var in
22343 old_archive_cmds_F77 | \
22344 old_archive_from_new_cmds_F77 | \
22345 archive_cmds_F77 | \
22346 archive_expsym_cmds_F77 | \
22347 module_cmds_F77 | \
22348 module_expsym_cmds_F77 | \
22349 old_archive_from_expsyms_cmds_F77 | \
22350 export_symbols_cmds_F77 | \
22351 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22352 postinstall_cmds | postuninstall_cmds | \
22353 old_postinstall_cmds | old_postuninstall_cmds | \
22354 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22355 # Double-quote double-evaled strings.
22356 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22359 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22361 esac
22362 done
22364 case $lt_echo in
22365 *'\$0 --fallback-echo"')
22366 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22368 esac
22370 cfgfile="$ofile"
22372 cat <<__EOF__ >> "$cfgfile"
22373 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22375 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22377 # Shell to use when invoking shell scripts.
22378 SHELL=$lt_SHELL
22380 # Whether or not to build shared libraries.
22381 build_libtool_libs=$enable_shared
22383 # Whether or not to build static libraries.
22384 build_old_libs=$enable_static
22386 # Whether or not to add -lc for building shared libraries.
22387 build_libtool_need_lc=$archive_cmds_need_lc_F77
22389 # Whether or not to disallow shared libs when runtime libs are static
22390 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22392 # Whether or not to optimize for fast installation.
22393 fast_install=$enable_fast_install
22395 # The host system.
22396 host_alias=$host_alias
22397 host=$host
22398 host_os=$host_os
22400 # The build system.
22401 build_alias=$build_alias
22402 build=$build
22403 build_os=$build_os
22405 # An echo program that does not interpret backslashes.
22406 echo=$lt_echo
22408 # The archiver.
22409 AR=$lt_AR
22410 AR_FLAGS=$lt_AR_FLAGS
22412 # A C compiler.
22413 LTCC=$lt_LTCC
22415 # LTCC compiler flags.
22416 LTCFLAGS=$lt_LTCFLAGS
22418 # A language-specific compiler.
22419 CC=$lt_compiler_F77
22421 # Is the compiler the GNU C compiler?
22422 with_gcc=$GCC_F77
22424 # An ERE matcher.
22425 EGREP=$lt_EGREP
22427 # The linker used to build libraries.
22428 LD=$lt_LD_F77
22430 # Whether we need hard or soft links.
22431 LN_S=$lt_LN_S
22433 # A BSD-compatible nm program.
22434 NM=$lt_NM
22436 # A symbol stripping program
22437 STRIP=$lt_STRIP
22439 # Used to examine libraries when file_magic_cmd begins "file"
22440 MAGIC_CMD=$MAGIC_CMD
22442 # Used on cygwin: DLL creation program.
22443 DLLTOOL="$DLLTOOL"
22445 # Used on cygwin: object dumper.
22446 OBJDUMP="$OBJDUMP"
22448 # Used on cygwin: assembler.
22449 AS="$AS"
22451 # The name of the directory that contains temporary libtool files.
22452 objdir=$objdir
22454 # How to create reloadable object files.
22455 reload_flag=$lt_reload_flag
22456 reload_cmds=$lt_reload_cmds
22458 # How to pass a linker flag through the compiler.
22459 wl=$lt_lt_prog_compiler_wl_F77
22461 # Object file suffix (normally "o").
22462 objext="$ac_objext"
22464 # Old archive suffix (normally "a").
22465 libext="$libext"
22467 # Shared library suffix (normally ".so").
22468 shrext_cmds='$shrext_cmds'
22470 # Executable file suffix (normally "").
22471 exeext="$exeext"
22473 # Additional compiler flags for building library objects.
22474 pic_flag=$lt_lt_prog_compiler_pic_F77
22475 pic_mode=$pic_mode
22477 # What is the maximum length of a command?
22478 max_cmd_len=$lt_cv_sys_max_cmd_len
22480 # Does compiler simultaneously support -c and -o options?
22481 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22483 # Must we lock files when doing compilation?
22484 need_locks=$lt_need_locks
22486 # Do we need the lib prefix for modules?
22487 need_lib_prefix=$need_lib_prefix
22489 # Do we need a version for libraries?
22490 need_version=$need_version
22492 # Whether dlopen is supported.
22493 dlopen_support=$enable_dlopen
22495 # Whether dlopen of programs is supported.
22496 dlopen_self=$enable_dlopen_self
22498 # Whether dlopen of statically linked programs is supported.
22499 dlopen_self_static=$enable_dlopen_self_static
22501 # Compiler flag to prevent dynamic linking.
22502 link_static_flag=$lt_lt_prog_compiler_static_F77
22504 # Compiler flag to turn off builtin functions.
22505 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22507 # Compiler flag to allow reflexive dlopens.
22508 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22510 # Compiler flag to generate shared objects directly from archives.
22511 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22513 # Compiler flag to generate thread-safe objects.
22514 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22516 # Library versioning type.
22517 version_type=$version_type
22519 # Format of library name prefix.
22520 libname_spec=$lt_libname_spec
22522 # List of archive names. First name is the real one, the rest are links.
22523 # The last name is the one that the linker finds with -lNAME.
22524 library_names_spec=$lt_library_names_spec
22526 # The coded name of the library, if different from the real name.
22527 soname_spec=$lt_soname_spec
22529 # Commands used to build and install an old-style archive.
22530 RANLIB=$lt_RANLIB
22531 old_archive_cmds=$lt_old_archive_cmds_F77
22532 old_postinstall_cmds=$lt_old_postinstall_cmds
22533 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22535 # Create an old-style archive from a shared archive.
22536 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22538 # Create a temporary old-style archive to link instead of a shared archive.
22539 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22541 # Commands used to build and install a shared archive.
22542 archive_cmds=$lt_archive_cmds_F77
22543 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22544 postinstall_cmds=$lt_postinstall_cmds
22545 postuninstall_cmds=$lt_postuninstall_cmds
22547 # Commands used to build a loadable module (assumed same as above if empty)
22548 module_cmds=$lt_module_cmds_F77
22549 module_expsym_cmds=$lt_module_expsym_cmds_F77
22551 # Commands to strip libraries.
22552 old_striplib=$lt_old_striplib
22553 striplib=$lt_striplib
22555 # Dependencies to place before the objects being linked to create a
22556 # shared library.
22557 predep_objects=$lt_predep_objects_F77
22559 # Dependencies to place after the objects being linked to create a
22560 # shared library.
22561 postdep_objects=$lt_postdep_objects_F77
22563 # Dependencies to place before the objects being linked to create a
22564 # shared library.
22565 predeps=$lt_predeps_F77
22567 # Dependencies to place after the objects being linked to create a
22568 # shared library.
22569 postdeps=$lt_postdeps_F77
22571 # The library search path used internally by the compiler when linking
22572 # a shared library.
22573 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22575 # Method to check whether dependent libraries are shared objects.
22576 deplibs_check_method=$lt_deplibs_check_method
22578 # Command to use when deplibs_check_method == file_magic.
22579 file_magic_cmd=$lt_file_magic_cmd
22581 # Flag that allows shared libraries with undefined symbols to be built.
22582 allow_undefined_flag=$lt_allow_undefined_flag_F77
22584 # Flag that forces no undefined symbols.
22585 no_undefined_flag=$lt_no_undefined_flag_F77
22587 # Commands used to finish a libtool library installation in a directory.
22588 finish_cmds=$lt_finish_cmds
22590 # Same as above, but a single script fragment to be evaled but not shown.
22591 finish_eval=$lt_finish_eval
22593 # Take the output of nm and produce a listing of raw symbols and C names.
22594 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22596 # Transform the output of nm in a proper C declaration
22597 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22599 # Transform the output of nm in a C name address pair
22600 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22602 # This is the shared library runtime path variable.
22603 runpath_var=$runpath_var
22605 # This is the shared library path variable.
22606 shlibpath_var=$shlibpath_var
22608 # Is shlibpath searched before the hard-coded library search path?
22609 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22611 # How to hardcode a shared library path into an executable.
22612 hardcode_action=$hardcode_action_F77
22614 # Whether we should hardcode library paths into libraries.
22615 hardcode_into_libs=$hardcode_into_libs
22617 # Flag to hardcode \$libdir into a binary during linking.
22618 # This must work even if \$libdir does not exist.
22619 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22621 # If ld is used when linking, flag to hardcode \$libdir into
22622 # a binary during linking. This must work even if \$libdir does
22623 # not exist.
22624 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22626 # Whether we need a single -rpath flag with a separated argument.
22627 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22629 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22630 # resulting binary.
22631 hardcode_direct=$hardcode_direct_F77
22633 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22634 # resulting binary.
22635 hardcode_minus_L=$hardcode_minus_L_F77
22637 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22638 # the resulting binary.
22639 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22641 # Set to yes if building a shared library automatically hardcodes DIR into the library
22642 # and all subsequent libraries and executables linked against it.
22643 hardcode_automatic=$hardcode_automatic_F77
22645 # Variables whose values should be saved in libtool wrapper scripts and
22646 # restored at relink time.
22647 variables_saved_for_relink="$variables_saved_for_relink"
22649 # Whether libtool must link a program against all its dependency libraries.
22650 link_all_deplibs=$link_all_deplibs_F77
22652 # Compile-time system search path for libraries
22653 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22655 # Run-time system search path for libraries
22656 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22658 # Fix the shell variable \$srcfile for the compiler.
22659 fix_srcfile_path="$fix_srcfile_path_F77"
22661 # Set to yes if exported symbols are required.
22662 always_export_symbols=$always_export_symbols_F77
22664 # The commands to list exported symbols.
22665 export_symbols_cmds=$lt_export_symbols_cmds_F77
22667 # The commands to extract the exported symbol list from a shared archive.
22668 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22670 # Symbols that should not be listed in the preloaded symbols.
22671 exclude_expsyms=$lt_exclude_expsyms_F77
22673 # Symbols that must always be exported.
22674 include_expsyms=$lt_include_expsyms_F77
22676 # ### END LIBTOOL TAG CONFIG: $tagname
22678 __EOF__
22681 else
22682 # If there is no Makefile yet, we rely on a make rule to execute
22683 # `config.status --recheck' to rerun these tests and create the
22684 # libtool script then.
22685 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22686 if test -f "$ltmain_in"; then
22687 test -f Makefile && make "$ltmain"
22692 ac_ext=c
22693 ac_cpp='$CPP $CPPFLAGS'
22694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22698 CC="$lt_save_CC"
22700 else
22701 tagname=""
22705 GCJ)
22706 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22707 ac_ext=c
22708 ac_cpp='$CPP $CPPFLAGS'
22709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22714 # Source file extension for Java test sources.
22715 ac_ext=java
22717 # Object file extension for compiled Java test sources.
22718 objext=o
22719 objext_GCJ=$objext
22721 # Code to be used in simple compile tests
22722 lt_simple_compile_test_code="class foo {}\n"
22724 # Code to be used in simple link tests
22725 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22727 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22729 # If no C compiler was specified, use CC.
22730 LTCC=${LTCC-"$CC"}
22732 # If no C compiler flags were specified, use CFLAGS.
22733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22735 # Allow CC to be a program name with arguments.
22736 compiler=$CC
22739 # save warnings/boilerplate of simple test code
22740 ac_outfile=conftest.$ac_objext
22741 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22742 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22743 _lt_compiler_boilerplate=`cat conftest.err`
22744 $rm conftest*
22746 ac_outfile=conftest.$ac_objext
22747 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22748 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22749 _lt_linker_boilerplate=`cat conftest.err`
22750 $rm conftest*
22753 # Allow CC to be a program name with arguments.
22754 lt_save_CC="$CC"
22755 CC=${GCJ-"gcj"}
22756 compiler=$CC
22757 compiler_GCJ=$CC
22758 for cc_temp in $compiler""; do
22759 case $cc_temp in
22760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22762 \-*) ;;
22763 *) break;;
22764 esac
22765 done
22766 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22769 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22770 archive_cmds_need_lc_GCJ=no
22772 old_archive_cmds_GCJ=$old_archive_cmds
22775 lt_prog_compiler_no_builtin_flag_GCJ=
22777 if test "$GCC" = yes; then
22778 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22781 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22782 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
22783 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22784 echo $ECHO_N "(cached) $ECHO_C" >&6
22785 else
22786 lt_cv_prog_compiler_rtti_exceptions=no
22787 ac_outfile=conftest.$ac_objext
22788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22789 lt_compiler_flag="-fno-rtti -fno-exceptions"
22790 # Insert the option either (1) after the last *FLAGS variable, or
22791 # (2) before a word containing "conftest.", or (3) at the end.
22792 # Note that $ac_compile itself does not contain backslashes and begins
22793 # with a dollar sign (not a hyphen), so the echo should work correctly.
22794 # The option is referenced via a variable to avoid confusing sed.
22795 lt_compile=`echo "$ac_compile" | $SED \
22796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22798 -e 's:$: $lt_compiler_flag:'`
22799 (eval echo "\"\$as_me:22799: $lt_compile\"" >&5)
22800 (eval "$lt_compile" 2>conftest.err)
22801 ac_status=$?
22802 cat conftest.err >&5
22803 echo "$as_me:22803: \$? = $ac_status" >&5
22804 if (exit $ac_status) && test -s "$ac_outfile"; then
22805 # The compiler can only warn and ignore the option if not recognized
22806 # So say no if there are warnings other than the usual output.
22807 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22809 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22810 lt_cv_prog_compiler_rtti_exceptions=yes
22813 $rm conftest*
22816 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22817 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
22819 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22820 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22821 else
22827 lt_prog_compiler_wl_GCJ=
22828 lt_prog_compiler_pic_GCJ=
22829 lt_prog_compiler_static_GCJ=
22831 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22832 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
22834 if test "$GCC" = yes; then
22835 lt_prog_compiler_wl_GCJ='-Wl,'
22836 lt_prog_compiler_static_GCJ='-static'
22838 case $host_os in
22839 aix*)
22840 # All AIX code is PIC.
22841 if test "$host_cpu" = ia64; then
22842 # AIX 5 now supports IA64 processor
22843 lt_prog_compiler_static_GCJ='-Bstatic'
22847 amigaos*)
22848 # FIXME: we need at least 68020 code to build shared libraries, but
22849 # adding the `-m68020' flag to GCC prevents building anything better,
22850 # like `-m68040'.
22851 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22854 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22855 # PIC is the default for these OSes.
22858 mingw* | pw32* | os2*)
22859 # This hack is so that the source file can tell whether it is being
22860 # built for inclusion in a dll (and should export symbols for example).
22861 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22864 darwin* | rhapsody*)
22865 # PIC is the default on this platform
22866 # Common symbols not allowed in MH_DYLIB files
22867 lt_prog_compiler_pic_GCJ='-fno-common'
22870 interix3*)
22871 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22872 # Instead, we relocate shared libraries at runtime.
22875 msdosdjgpp*)
22876 # Just because we use GCC doesn't mean we suddenly get shared libraries
22877 # on systems that don't support them.
22878 lt_prog_compiler_can_build_shared_GCJ=no
22879 enable_shared=no
22882 sysv4*MP*)
22883 if test -d /usr/nec; then
22884 lt_prog_compiler_pic_GCJ=-Kconform_pic
22888 hpux*)
22889 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22890 # not for PA HP-UX.
22891 case $host_cpu in
22892 hppa*64*|ia64*)
22893 # +Z the default
22896 lt_prog_compiler_pic_GCJ='-fPIC'
22898 esac
22902 lt_prog_compiler_pic_GCJ='-fPIC'
22904 esac
22905 else
22906 # PORTME Check for flag to pass linker flags through the system compiler.
22907 case $host_os in
22908 aix*)
22909 lt_prog_compiler_wl_GCJ='-Wl,'
22910 if test "$host_cpu" = ia64; then
22911 # AIX 5 now supports IA64 processor
22912 lt_prog_compiler_static_GCJ='-Bstatic'
22913 else
22914 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22917 darwin*)
22918 # PIC is the default on this platform
22919 # Common symbols not allowed in MH_DYLIB files
22920 case $cc_basename in
22921 xlc*)
22922 lt_prog_compiler_pic_GCJ='-qnocommon'
22923 lt_prog_compiler_wl_GCJ='-Wl,'
22925 esac
22928 mingw* | pw32* | os2*)
22929 # This hack is so that the source file can tell whether it is being
22930 # built for inclusion in a dll (and should export symbols for example).
22931 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22934 hpux9* | hpux10* | hpux11*)
22935 lt_prog_compiler_wl_GCJ='-Wl,'
22936 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22937 # not for PA HP-UX.
22938 case $host_cpu in
22939 hppa*64*|ia64*)
22940 # +Z the default
22943 lt_prog_compiler_pic_GCJ='+Z'
22945 esac
22946 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22947 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22950 irix5* | irix6* | nonstopux*)
22951 lt_prog_compiler_wl_GCJ='-Wl,'
22952 # PIC (with -KPIC) is the default.
22953 lt_prog_compiler_static_GCJ='-non_shared'
22956 newsos6)
22957 lt_prog_compiler_pic_GCJ='-KPIC'
22958 lt_prog_compiler_static_GCJ='-Bstatic'
22961 linux*)
22962 case $cc_basename in
22963 icc* | ecc*)
22964 lt_prog_compiler_wl_GCJ='-Wl,'
22965 lt_prog_compiler_pic_GCJ='-KPIC'
22966 lt_prog_compiler_static_GCJ='-static'
22968 pgcc* | pgf77* | pgf90* | pgf95*)
22969 # Portland Group compilers (*not* the Pentium gcc compiler,
22970 # which looks to be a dead project)
22971 lt_prog_compiler_wl_GCJ='-Wl,'
22972 lt_prog_compiler_pic_GCJ='-fpic'
22973 lt_prog_compiler_static_GCJ='-Bstatic'
22975 ccc*)
22976 lt_prog_compiler_wl_GCJ='-Wl,'
22977 # All Alpha code is PIC.
22978 lt_prog_compiler_static_GCJ='-non_shared'
22980 esac
22983 osf3* | osf4* | osf5*)
22984 lt_prog_compiler_wl_GCJ='-Wl,'
22985 # All OSF/1 code is PIC.
22986 lt_prog_compiler_static_GCJ='-non_shared'
22989 solaris*)
22990 lt_prog_compiler_pic_GCJ='-KPIC'
22991 lt_prog_compiler_static_GCJ='-Bstatic'
22992 case $cc_basename in
22993 f77* | f90* | f95*)
22994 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22996 lt_prog_compiler_wl_GCJ='-Wl,';;
22997 esac
23000 sunos4*)
23001 lt_prog_compiler_wl_GCJ='-Qoption ld '
23002 lt_prog_compiler_pic_GCJ='-PIC'
23003 lt_prog_compiler_static_GCJ='-Bstatic'
23006 sysv4 | sysv4.2uw2* | sysv4.3*)
23007 lt_prog_compiler_wl_GCJ='-Wl,'
23008 lt_prog_compiler_pic_GCJ='-KPIC'
23009 lt_prog_compiler_static_GCJ='-Bstatic'
23012 sysv4*MP*)
23013 if test -d /usr/nec ;then
23014 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23015 lt_prog_compiler_static_GCJ='-Bstatic'
23019 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23020 lt_prog_compiler_wl_GCJ='-Wl,'
23021 lt_prog_compiler_pic_GCJ='-KPIC'
23022 lt_prog_compiler_static_GCJ='-Bstatic'
23025 unicos*)
23026 lt_prog_compiler_wl_GCJ='-Wl,'
23027 lt_prog_compiler_can_build_shared_GCJ=no
23030 uts4*)
23031 lt_prog_compiler_pic_GCJ='-pic'
23032 lt_prog_compiler_static_GCJ='-Bstatic'
23036 lt_prog_compiler_can_build_shared_GCJ=no
23038 esac
23041 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23042 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23045 # Check to make sure the PIC flag actually works.
23047 if test -n "$lt_prog_compiler_pic_GCJ"; then
23049 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23050 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23051 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23052 echo $ECHO_N "(cached) $ECHO_C" >&6
23053 else
23054 lt_prog_compiler_pic_works_GCJ=no
23055 ac_outfile=conftest.$ac_objext
23056 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23057 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23058 # Insert the option either (1) after the last *FLAGS variable, or
23059 # (2) before a word containing "conftest.", or (3) at the end.
23060 # Note that $ac_compile itself does not contain backslashes and begins
23061 # with a dollar sign (not a hyphen), so the echo should work correctly.
23062 # The option is referenced via a variable to avoid confusing sed.
23063 lt_compile=`echo "$ac_compile" | $SED \
23064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23066 -e 's:$: $lt_compiler_flag:'`
23067 (eval echo "\"\$as_me:23067: $lt_compile\"" >&5)
23068 (eval "$lt_compile" 2>conftest.err)
23069 ac_status=$?
23070 cat conftest.err >&5
23071 echo "$as_me:23071: \$? = $ac_status" >&5
23072 if (exit $ac_status) && test -s "$ac_outfile"; then
23073 # The compiler can only warn and ignore the option if not recognized
23074 # So say no if there are warnings other than the usual output.
23075 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23077 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23078 lt_prog_compiler_pic_works_GCJ=yes
23081 $rm conftest*
23084 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23085 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23087 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23088 case $lt_prog_compiler_pic_GCJ in
23089 "" | " "*) ;;
23090 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23091 esac
23092 else
23093 lt_prog_compiler_pic_GCJ=
23094 lt_prog_compiler_can_build_shared_GCJ=no
23098 case $host_os in
23099 # For platforms which do not support PIC, -DPIC is meaningless:
23100 *djgpp*)
23101 lt_prog_compiler_pic_GCJ=
23104 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23106 esac
23109 # Check to make sure the static flag actually works.
23111 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23112 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23113 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23114 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23115 echo $ECHO_N "(cached) $ECHO_C" >&6
23116 else
23117 lt_prog_compiler_static_works_GCJ=no
23118 save_LDFLAGS="$LDFLAGS"
23119 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23120 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23121 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23122 # The linker can only warn and ignore the option if not recognized
23123 # So say no if there are warnings
23124 if test -s conftest.err; then
23125 # Append any errors to the config.log.
23126 cat conftest.err 1>&5
23127 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23128 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23129 if diff conftest.exp conftest.er2 >/dev/null; then
23130 lt_prog_compiler_static_works_GCJ=yes
23132 else
23133 lt_prog_compiler_static_works_GCJ=yes
23136 $rm conftest*
23137 LDFLAGS="$save_LDFLAGS"
23140 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23141 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23143 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23145 else
23146 lt_prog_compiler_static_GCJ=
23150 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23151 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23152 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23153 echo $ECHO_N "(cached) $ECHO_C" >&6
23154 else
23155 lt_cv_prog_compiler_c_o_GCJ=no
23156 $rm -r conftest 2>/dev/null
23157 mkdir conftest
23158 cd conftest
23159 mkdir out
23160 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23162 lt_compiler_flag="-o out/conftest2.$ac_objext"
23163 # Insert the option either (1) after the last *FLAGS variable, or
23164 # (2) before a word containing "conftest.", or (3) at the end.
23165 # Note that $ac_compile itself does not contain backslashes and begins
23166 # with a dollar sign (not a hyphen), so the echo should work correctly.
23167 lt_compile=`echo "$ac_compile" | $SED \
23168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23170 -e 's:$: $lt_compiler_flag:'`
23171 (eval echo "\"\$as_me:23171: $lt_compile\"" >&5)
23172 (eval "$lt_compile" 2>out/conftest.err)
23173 ac_status=$?
23174 cat out/conftest.err >&5
23175 echo "$as_me:23175: \$? = $ac_status" >&5
23176 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23177 then
23178 # The compiler can only warn and ignore the option if not recognized
23179 # So say no if there are warnings
23180 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23183 lt_cv_prog_compiler_c_o_GCJ=yes
23186 chmod u+w . 2>&5
23187 $rm conftest*
23188 # SGI C++ compiler will create directory out/ii_files/ for
23189 # template instantiation
23190 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23191 $rm out/* && rmdir out
23192 cd ..
23193 rmdir conftest
23194 $rm conftest*
23197 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23198 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23201 hard_links="nottested"
23202 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23203 # do not overwrite the value of need_locks provided by the user
23204 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23205 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23206 hard_links=yes
23207 $rm conftest*
23208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23209 touch conftest.a
23210 ln conftest.a conftest.b 2>&5 || hard_links=no
23211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23212 { echo "$as_me:$LINENO: result: $hard_links" >&5
23213 echo "${ECHO_T}$hard_links" >&6; }
23214 if test "$hard_links" = no; then
23215 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23216 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23217 need_locks=warn
23219 else
23220 need_locks=no
23223 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23224 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23226 runpath_var=
23227 allow_undefined_flag_GCJ=
23228 enable_shared_with_static_runtimes_GCJ=no
23229 archive_cmds_GCJ=
23230 archive_expsym_cmds_GCJ=
23231 old_archive_From_new_cmds_GCJ=
23232 old_archive_from_expsyms_cmds_GCJ=
23233 export_dynamic_flag_spec_GCJ=
23234 whole_archive_flag_spec_GCJ=
23235 thread_safe_flag_spec_GCJ=
23236 hardcode_libdir_flag_spec_GCJ=
23237 hardcode_libdir_flag_spec_ld_GCJ=
23238 hardcode_libdir_separator_GCJ=
23239 hardcode_direct_GCJ=no
23240 hardcode_minus_L_GCJ=no
23241 hardcode_shlibpath_var_GCJ=unsupported
23242 link_all_deplibs_GCJ=unknown
23243 hardcode_automatic_GCJ=no
23244 module_cmds_GCJ=
23245 module_expsym_cmds_GCJ=
23246 always_export_symbols_GCJ=no
23247 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23248 # include_expsyms should be a list of space-separated symbols to be *always*
23249 # included in the symbol list
23250 include_expsyms_GCJ=
23251 # exclude_expsyms can be an extended regexp of symbols to exclude
23252 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23253 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23254 # as well as any symbol that contains `d'.
23255 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23256 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23257 # platforms (ab)use it in PIC code, but their linkers get confused if
23258 # the symbol is explicitly referenced. Since portable code cannot
23259 # rely on this symbol name, it's probably fine to never include it in
23260 # preloaded symbol tables.
23261 extract_expsyms_cmds=
23262 # Just being paranoid about ensuring that cc_basename is set.
23263 for cc_temp in $compiler""; do
23264 case $cc_temp in
23265 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23266 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23267 \-*) ;;
23268 *) break;;
23269 esac
23270 done
23271 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23273 case $host_os in
23274 cygwin* | mingw* | pw32*)
23275 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23276 # When not using gcc, we currently assume that we are using
23277 # Microsoft Visual C++.
23278 if test "$GCC" != yes; then
23279 with_gnu_ld=no
23282 interix*)
23283 # we just hope/assume this is gcc and not c89 (= MSVC++)
23284 with_gnu_ld=yes
23286 openbsd*)
23287 with_gnu_ld=no
23289 esac
23291 ld_shlibs_GCJ=yes
23292 if test "$with_gnu_ld" = yes; then
23293 # If archive_cmds runs LD, not CC, wlarc should be empty
23294 wlarc='${wl}'
23296 # Set some defaults for GNU ld with shared library support. These
23297 # are reset later if shared libraries are not supported. Putting them
23298 # here allows them to be overridden if necessary.
23299 runpath_var=LD_RUN_PATH
23300 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23301 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23302 # ancient GNU ld didn't support --whole-archive et. al.
23303 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23304 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23305 else
23306 whole_archive_flag_spec_GCJ=
23308 supports_anon_versioning=no
23309 case `$LD -v 2>/dev/null` in
23310 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23311 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23312 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23313 *\ 2.11.*) ;; # other 2.11 versions
23314 *) supports_anon_versioning=yes ;;
23315 esac
23317 # See if GNU ld supports shared libraries.
23318 case $host_os in
23319 aix3* | aix4* | aix5*)
23320 # On AIX/PPC, the GNU linker is very broken
23321 if test "$host_cpu" != ia64; then
23322 ld_shlibs_GCJ=no
23323 cat <<EOF 1>&2
23325 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23326 *** to be unable to reliably create shared libraries on AIX.
23327 *** Therefore, libtool is disabling shared libraries support. If you
23328 *** really care for shared libraries, you may want to modify your PATH
23329 *** so that a non-GNU linker is found, and then restart.
23335 amigaos*)
23336 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)'
23337 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23338 hardcode_minus_L_GCJ=yes
23340 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23341 # that the semantics of dynamic libraries on AmigaOS, at least up
23342 # to version 4, is to share data among multiple programs linked
23343 # with the same dynamic library. Since this doesn't match the
23344 # behavior of shared libraries on other platforms, we can't use
23345 # them.
23346 ld_shlibs_GCJ=no
23349 beos*)
23350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23351 allow_undefined_flag_GCJ=unsupported
23352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23353 # support --undefined. This deserves some investigation. FIXME
23354 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23355 else
23356 ld_shlibs_GCJ=no
23360 cygwin* | mingw* | pw32*)
23361 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23362 # as there is no search path for DLLs.
23363 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23364 allow_undefined_flag_GCJ=unsupported
23365 always_export_symbols_GCJ=no
23366 enable_shared_with_static_runtimes_GCJ=yes
23367 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23369 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23370 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23371 # If the export-symbols file already is a .def file (1st line
23372 # is EXPORTS), use it as is; otherwise, prepend...
23373 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23374 cp $export_symbols $output_objdir/$soname.def;
23375 else
23376 echo EXPORTS > $output_objdir/$soname.def;
23377 cat $export_symbols >> $output_objdir/$soname.def;
23379 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23380 else
23381 ld_shlibs_GCJ=no
23385 interix3*)
23386 hardcode_direct_GCJ=no
23387 hardcode_shlibpath_var_GCJ=no
23388 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23389 export_dynamic_flag_spec_GCJ='${wl}-E'
23390 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23391 # Instead, shared libraries are loaded at an image base (0x10000000 by
23392 # default) and relocated if they conflict, which is a slow very memory
23393 # consuming and fragmenting process. To avoid this, we pick a random,
23394 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23395 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23396 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'
23397 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'
23400 linux*)
23401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23402 tmp_addflag=
23403 case $cc_basename,$host_cpu in
23404 pgcc*) # Portland Group C compiler
23405 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'
23406 tmp_addflag=' $pic_flag'
23408 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23409 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'
23410 tmp_addflag=' $pic_flag -Mnomain' ;;
23411 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23412 tmp_addflag=' -i_dynamic' ;;
23413 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23414 tmp_addflag=' -i_dynamic -nofor_main' ;;
23415 ifc* | ifort*) # Intel Fortran compiler
23416 tmp_addflag=' -nofor_main' ;;
23417 esac
23418 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23420 if test $supports_anon_versioning = yes; then
23421 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23422 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23423 $echo "local: *; };" >> $output_objdir/$libname.ver~
23424 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23426 else
23427 ld_shlibs_GCJ=no
23431 netbsd*)
23432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23433 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23434 wlarc=
23435 else
23436 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23437 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23441 solaris*)
23442 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23443 ld_shlibs_GCJ=no
23444 cat <<EOF 1>&2
23446 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23447 *** create shared libraries on Solaris systems. Therefore, libtool
23448 *** is disabling shared libraries support. We urge you to upgrade GNU
23449 *** binutils to release 2.9.1 or newer. Another option is to modify
23450 *** your PATH or compiler configuration so that the native linker is
23451 *** used, and then restart.
23454 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23455 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23456 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23457 else
23458 ld_shlibs_GCJ=no
23462 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23463 case `$LD -v 2>&1` in
23464 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23465 ld_shlibs_GCJ=no
23466 cat <<_LT_EOF 1>&2
23468 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23469 *** reliably create shared libraries on SCO systems. Therefore, libtool
23470 *** is disabling shared libraries support. We urge you to upgrade GNU
23471 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23472 *** your PATH or compiler configuration so that the native linker is
23473 *** used, and then restart.
23475 _LT_EOF
23478 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23479 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23480 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23481 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23482 else
23483 ld_shlibs_GCJ=no
23486 esac
23489 sunos4*)
23490 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23491 wlarc=
23492 hardcode_direct_GCJ=yes
23493 hardcode_shlibpath_var_GCJ=no
23497 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23498 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23499 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23500 else
23501 ld_shlibs_GCJ=no
23504 esac
23506 if test "$ld_shlibs_GCJ" = no; then
23507 runpath_var=
23508 hardcode_libdir_flag_spec_GCJ=
23509 export_dynamic_flag_spec_GCJ=
23510 whole_archive_flag_spec_GCJ=
23512 else
23513 # PORTME fill in a description of your system's linker (not GNU ld)
23514 case $host_os in
23515 aix3*)
23516 allow_undefined_flag_GCJ=unsupported
23517 always_export_symbols_GCJ=yes
23518 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'
23519 # Note: this linker hardcodes the directories in LIBPATH if there
23520 # are no directories specified by -L.
23521 hardcode_minus_L_GCJ=yes
23522 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23523 # Neither direct hardcoding nor static linking is supported with a
23524 # broken collect2.
23525 hardcode_direct_GCJ=unsupported
23529 aix4* | aix5*)
23530 if test "$host_cpu" = ia64; then
23531 # On IA64, the linker does run time linking by default, so we don't
23532 # have to do anything special.
23533 aix_use_runtimelinking=no
23534 exp_sym_flag='-Bexport'
23535 no_entry_flag=""
23536 else
23537 # If we're using GNU nm, then we don't want the "-C" option.
23538 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23539 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23540 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'
23541 else
23542 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'
23544 aix_use_runtimelinking=no
23546 # Test if we are trying to use run time linking or normal
23547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23548 # need to do runtime linking.
23549 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23550 for ld_flag in $LDFLAGS; do
23551 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23552 aix_use_runtimelinking=yes
23553 break
23555 done
23557 esac
23559 exp_sym_flag='-bexport'
23560 no_entry_flag='-bnoentry'
23563 # When large executables or shared objects are built, AIX ld can
23564 # have problems creating the table of contents. If linking a library
23565 # or program results in "error TOC overflow" add -mminimal-toc to
23566 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23567 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23569 archive_cmds_GCJ=''
23570 hardcode_direct_GCJ=yes
23571 hardcode_libdir_separator_GCJ=':'
23572 link_all_deplibs_GCJ=yes
23574 if test "$GCC" = yes; then
23575 case $host_os in aix4.[012]|aix4.[012].*)
23576 # We only want to do this on AIX 4.2 and lower, the check
23577 # below for broken collect2 doesn't work under 4.3+
23578 collect2name=`${CC} -print-prog-name=collect2`
23579 if test -f "$collect2name" && \
23580 strings "$collect2name" | grep resolve_lib_name >/dev/null
23581 then
23582 # We have reworked collect2
23583 hardcode_direct_GCJ=yes
23584 else
23585 # We have old collect2
23586 hardcode_direct_GCJ=unsupported
23587 # It fails to find uninstalled libraries when the uninstalled
23588 # path is not listed in the libpath. Setting hardcode_minus_L
23589 # to unsupported forces relinking
23590 hardcode_minus_L_GCJ=yes
23591 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23592 hardcode_libdir_separator_GCJ=
23595 esac
23596 shared_flag='-shared'
23597 if test "$aix_use_runtimelinking" = yes; then
23598 shared_flag="$shared_flag "'${wl}-G'
23600 else
23601 # not using gcc
23602 if test "$host_cpu" = ia64; then
23603 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23604 # chokes on -Wl,-G. The following line is correct:
23605 shared_flag='-G'
23606 else
23607 if test "$aix_use_runtimelinking" = yes; then
23608 shared_flag='${wl}-G'
23609 else
23610 shared_flag='${wl}-bM:SRE'
23615 # It seems that -bexpall does not export symbols beginning with
23616 # underscore (_), so it is better to generate a list of symbols to export.
23617 always_export_symbols_GCJ=yes
23618 if test "$aix_use_runtimelinking" = yes; then
23619 # Warning - without using the other runtime loading flags (-brtl),
23620 # -berok will link without error, but may produce a broken library.
23621 allow_undefined_flag_GCJ='-berok'
23622 # Determine the default libpath from the value encoded in an empty executable.
23623 cat >conftest.$ac_ext <<_ACEOF
23624 /* confdefs.h. */
23625 _ACEOF
23626 cat confdefs.h >>conftest.$ac_ext
23627 cat >>conftest.$ac_ext <<_ACEOF
23628 /* end confdefs.h. */
23631 main ()
23635 return 0;
23637 _ACEOF
23638 rm -f conftest.$ac_objext conftest$ac_exeext
23639 if { (ac_try="$ac_link"
23640 case "(($ac_try" in
23641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23642 *) ac_try_echo=$ac_try;;
23643 esac
23644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23645 (eval "$ac_link") 2>conftest.er1
23646 ac_status=$?
23647 grep -v '^ *+' conftest.er1 >conftest.err
23648 rm -f conftest.er1
23649 cat conftest.err >&5
23650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651 (exit $ac_status); } && {
23652 test -z "$ac_c_werror_flag" ||
23653 test ! -s conftest.err
23654 } && test -s conftest$ac_exeext &&
23655 $as_test_x conftest$ac_exeext; then
23657 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23659 # Check for a 64-bit object if we didn't find anything.
23660 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; }
23661 }'`; fi
23662 else
23663 echo "$as_me: failed program was:" >&5
23664 sed 's/^/| /' conftest.$ac_ext >&5
23669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23670 conftest$ac_exeext conftest.$ac_ext
23671 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23673 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23674 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"
23675 else
23676 if test "$host_cpu" = ia64; then
23677 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23678 allow_undefined_flag_GCJ="-z nodefs"
23679 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"
23680 else
23681 # Determine the default libpath from the value encoded in an empty executable.
23682 cat >conftest.$ac_ext <<_ACEOF
23683 /* confdefs.h. */
23684 _ACEOF
23685 cat confdefs.h >>conftest.$ac_ext
23686 cat >>conftest.$ac_ext <<_ACEOF
23687 /* end confdefs.h. */
23690 main ()
23694 return 0;
23696 _ACEOF
23697 rm -f conftest.$ac_objext conftest$ac_exeext
23698 if { (ac_try="$ac_link"
23699 case "(($ac_try" in
23700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701 *) ac_try_echo=$ac_try;;
23702 esac
23703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23704 (eval "$ac_link") 2>conftest.er1
23705 ac_status=$?
23706 grep -v '^ *+' conftest.er1 >conftest.err
23707 rm -f conftest.er1
23708 cat conftest.err >&5
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); } && {
23711 test -z "$ac_c_werror_flag" ||
23712 test ! -s conftest.err
23713 } && test -s conftest$ac_exeext &&
23714 $as_test_x conftest$ac_exeext; then
23716 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23718 # Check for a 64-bit object if we didn't find anything.
23719 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; }
23720 }'`; fi
23721 else
23722 echo "$as_me: failed program was:" >&5
23723 sed 's/^/| /' conftest.$ac_ext >&5
23728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23729 conftest$ac_exeext conftest.$ac_ext
23730 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23732 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23733 # Warning - without using the other run time loading flags,
23734 # -berok will link without error, but may produce a broken library.
23735 no_undefined_flag_GCJ=' ${wl}-bernotok'
23736 allow_undefined_flag_GCJ=' ${wl}-berok'
23737 # Exported symbols can be pulled into shared objects from archives
23738 whole_archive_flag_spec_GCJ='$convenience'
23739 archive_cmds_need_lc_GCJ=yes
23740 # This is similar to how AIX traditionally builds its shared libraries.
23741 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'
23746 amigaos*)
23747 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)'
23748 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23749 hardcode_minus_L_GCJ=yes
23750 # see comment about different semantics on the GNU ld section
23751 ld_shlibs_GCJ=no
23754 bsdi[45]*)
23755 export_dynamic_flag_spec_GCJ=-rdynamic
23758 cygwin* | mingw* | pw32*)
23759 # When not using gcc, we currently assume that we are using
23760 # Microsoft Visual C++.
23761 # hardcode_libdir_flag_spec is actually meaningless, as there is
23762 # no search path for DLLs.
23763 hardcode_libdir_flag_spec_GCJ=' '
23764 allow_undefined_flag_GCJ=unsupported
23765 # Tell ltmain to make .lib files, not .a files.
23766 libext=lib
23767 # Tell ltmain to make .dll files, not .so files.
23768 shrext_cmds=".dll"
23769 # FIXME: Setting linknames here is a bad hack.
23770 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23771 # The linker will automatically build a .lib file if we build a DLL.
23772 old_archive_From_new_cmds_GCJ='true'
23773 # FIXME: Should let the user specify the lib program.
23774 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23775 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23776 enable_shared_with_static_runtimes_GCJ=yes
23779 darwin* | rhapsody*)
23780 case $host_os in
23781 rhapsody* | darwin1.[012])
23782 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23784 *) # Darwin 1.3 on
23785 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23786 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23787 else
23788 case ${MACOSX_DEPLOYMENT_TARGET} in
23789 10.[012])
23790 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23792 10.*)
23793 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23795 esac
23798 esac
23799 archive_cmds_need_lc_GCJ=no
23800 hardcode_direct_GCJ=no
23801 hardcode_automatic_GCJ=yes
23802 hardcode_shlibpath_var_GCJ=unsupported
23803 whole_archive_flag_spec_GCJ=''
23804 link_all_deplibs_GCJ=yes
23805 if test "$GCC" = yes ; then
23806 output_verbose_link_cmd='echo'
23807 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23808 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23809 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23810 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}'
23811 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}'
23812 else
23813 case $cc_basename in
23814 xlc*)
23815 output_verbose_link_cmd='echo'
23816 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23817 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23818 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23819 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}'
23820 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}'
23823 ld_shlibs_GCJ=no
23825 esac
23829 dgux*)
23830 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23831 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23832 hardcode_shlibpath_var_GCJ=no
23835 freebsd1*)
23836 ld_shlibs_GCJ=no
23839 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23840 # support. Future versions do this automatically, but an explicit c++rt0.o
23841 # does not break anything, and helps significantly (at the cost of a little
23842 # extra space).
23843 freebsd2.2*)
23844 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23845 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23846 hardcode_direct_GCJ=yes
23847 hardcode_shlibpath_var_GCJ=no
23850 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23851 freebsd2*)
23852 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23853 hardcode_direct_GCJ=yes
23854 hardcode_minus_L_GCJ=yes
23855 hardcode_shlibpath_var_GCJ=no
23858 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23859 freebsd* | kfreebsd*-gnu | dragonfly*)
23860 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23861 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23862 hardcode_direct_GCJ=yes
23863 hardcode_shlibpath_var_GCJ=no
23866 hpux9*)
23867 if test "$GCC" = yes; then
23868 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'
23869 else
23870 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'
23872 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23873 hardcode_libdir_separator_GCJ=:
23874 hardcode_direct_GCJ=yes
23876 # hardcode_minus_L: Not really in the search PATH,
23877 # but as the default location of the library.
23878 hardcode_minus_L_GCJ=yes
23879 export_dynamic_flag_spec_GCJ='${wl}-E'
23882 hpux10*)
23883 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23884 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23885 else
23886 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23888 if test "$with_gnu_ld" = no; then
23889 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23890 hardcode_libdir_separator_GCJ=:
23892 hardcode_direct_GCJ=yes
23893 export_dynamic_flag_spec_GCJ='${wl}-E'
23895 # hardcode_minus_L: Not really in the search PATH,
23896 # but as the default location of the library.
23897 hardcode_minus_L_GCJ=yes
23901 hpux11*)
23902 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23903 case $host_cpu in
23904 hppa*64*)
23905 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23907 ia64*)
23908 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23911 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23913 esac
23914 else
23915 case $host_cpu in
23916 hppa*64*)
23917 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23919 ia64*)
23920 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23923 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23925 esac
23927 if test "$with_gnu_ld" = no; then
23928 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23929 hardcode_libdir_separator_GCJ=:
23931 case $host_cpu in
23932 hppa*64*|ia64*)
23933 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23934 hardcode_direct_GCJ=no
23935 hardcode_shlibpath_var_GCJ=no
23938 hardcode_direct_GCJ=yes
23939 export_dynamic_flag_spec_GCJ='${wl}-E'
23941 # hardcode_minus_L: Not really in the search PATH,
23942 # but as the default location of the library.
23943 hardcode_minus_L_GCJ=yes
23945 esac
23949 irix5* | irix6* | nonstopux*)
23950 if test "$GCC" = yes; then
23951 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'
23952 else
23953 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'
23954 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23956 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23957 hardcode_libdir_separator_GCJ=:
23958 link_all_deplibs_GCJ=yes
23961 netbsd*)
23962 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23963 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23964 else
23965 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23967 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23968 hardcode_direct_GCJ=yes
23969 hardcode_shlibpath_var_GCJ=no
23972 newsos6)
23973 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23974 hardcode_direct_GCJ=yes
23975 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23976 hardcode_libdir_separator_GCJ=:
23977 hardcode_shlibpath_var_GCJ=no
23980 openbsd*)
23981 hardcode_direct_GCJ=yes
23982 hardcode_shlibpath_var_GCJ=no
23983 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23984 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23985 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23986 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23987 export_dynamic_flag_spec_GCJ='${wl}-E'
23988 else
23989 case $host_os in
23990 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23991 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23992 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23995 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23996 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23998 esac
24002 os2*)
24003 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24004 hardcode_minus_L_GCJ=yes
24005 allow_undefined_flag_GCJ=unsupported
24006 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'
24007 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24010 osf3*)
24011 if test "$GCC" = yes; then
24012 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24013 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'
24014 else
24015 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24016 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'
24018 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24019 hardcode_libdir_separator_GCJ=:
24022 osf4* | osf5*) # as osf3* with the addition of -msym flag
24023 if test "$GCC" = yes; then
24024 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24025 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'
24026 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24027 else
24028 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24029 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'
24030 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~
24031 $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'
24033 # Both c and cxx compiler support -rpath directly
24034 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24036 hardcode_libdir_separator_GCJ=:
24039 solaris*)
24040 no_undefined_flag_GCJ=' -z text'
24041 if test "$GCC" = yes; then
24042 wlarc='${wl}'
24043 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24044 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24045 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24046 else
24047 wlarc=''
24048 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24049 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24050 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24052 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24053 hardcode_shlibpath_var_GCJ=no
24054 case $host_os in
24055 solaris2.[0-5] | solaris2.[0-5].*) ;;
24057 # The compiler driver will combine linker options so we
24058 # cannot just pass the convience library names through
24059 # without $wl, iff we do not link with $LD.
24060 # Luckily, gcc supports the same syntax we need for Sun Studio.
24061 # Supported since Solaris 2.6 (maybe 2.5.1?)
24062 case $wlarc in
24064 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24066 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' ;;
24067 esac ;;
24068 esac
24069 link_all_deplibs_GCJ=yes
24072 sunos4*)
24073 if test "x$host_vendor" = xsequent; then
24074 # Use $CC to link under sequent, because it throws in some extra .o
24075 # files that make .init and .fini sections work.
24076 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24077 else
24078 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24080 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24081 hardcode_direct_GCJ=yes
24082 hardcode_minus_L_GCJ=yes
24083 hardcode_shlibpath_var_GCJ=no
24086 sysv4)
24087 case $host_vendor in
24088 sni)
24089 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24090 hardcode_direct_GCJ=yes # is this really true???
24092 siemens)
24093 ## LD is ld it makes a PLAMLIB
24094 ## CC just makes a GrossModule.
24095 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24096 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24097 hardcode_direct_GCJ=no
24099 motorola)
24100 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24101 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24103 esac
24104 runpath_var='LD_RUN_PATH'
24105 hardcode_shlibpath_var_GCJ=no
24108 sysv4.3*)
24109 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24110 hardcode_shlibpath_var_GCJ=no
24111 export_dynamic_flag_spec_GCJ='-Bexport'
24114 sysv4*MP*)
24115 if test -d /usr/nec; then
24116 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24117 hardcode_shlibpath_var_GCJ=no
24118 runpath_var=LD_RUN_PATH
24119 hardcode_runpath_var=yes
24120 ld_shlibs_GCJ=yes
24124 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24125 no_undefined_flag_GCJ='${wl}-z,text'
24126 archive_cmds_need_lc_GCJ=no
24127 hardcode_shlibpath_var_GCJ=no
24128 runpath_var='LD_RUN_PATH'
24130 if test "$GCC" = yes; then
24131 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24132 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24133 else
24134 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24135 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24139 sysv5* | sco3.2v5* | sco5v6*)
24140 # Note: We can NOT use -z defs as we might desire, because we do not
24141 # link with -lc, and that would cause any symbols used from libc to
24142 # always be unresolved, which means just about no library would
24143 # ever link correctly. If we're not using GNU ld we use -z text
24144 # though, which does catch some bad symbols but isn't as heavy-handed
24145 # as -z defs.
24146 no_undefined_flag_GCJ='${wl}-z,text'
24147 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24148 archive_cmds_need_lc_GCJ=no
24149 hardcode_shlibpath_var_GCJ=no
24150 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24151 hardcode_libdir_separator_GCJ=':'
24152 link_all_deplibs_GCJ=yes
24153 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24154 runpath_var='LD_RUN_PATH'
24156 if test "$GCC" = yes; then
24157 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24158 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24159 else
24160 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24161 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24165 uts4*)
24166 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24167 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24168 hardcode_shlibpath_var_GCJ=no
24172 ld_shlibs_GCJ=no
24174 esac
24177 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24178 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24179 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24182 # Do we need to explicitly link libc?
24184 case "x$archive_cmds_need_lc_GCJ" in
24185 x|xyes)
24186 # Assume -lc should be added
24187 archive_cmds_need_lc_GCJ=yes
24189 if test "$enable_shared" = yes && test "$GCC" = yes; then
24190 case $archive_cmds_GCJ in
24191 *'~'*)
24192 # FIXME: we may have to deal with multi-command sequences.
24194 '$CC '*)
24195 # Test whether the compiler implicitly links with -lc since on some
24196 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24197 # to ld, don't add -lc before -lgcc.
24198 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24199 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24200 $rm conftest*
24201 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24204 (eval $ac_compile) 2>&5
24205 ac_status=$?
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); } 2>conftest.err; then
24208 soname=conftest
24209 lib=conftest
24210 libobjs=conftest.$ac_objext
24211 deplibs=
24212 wl=$lt_prog_compiler_wl_GCJ
24213 pic_flag=$lt_prog_compiler_pic_GCJ
24214 compiler_flags=-v
24215 linker_flags=-v
24216 verstring=
24217 output_objdir=.
24218 libname=conftest
24219 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24220 allow_undefined_flag_GCJ=
24221 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24222 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24223 ac_status=$?
24224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225 (exit $ac_status); }
24226 then
24227 archive_cmds_need_lc_GCJ=no
24228 else
24229 archive_cmds_need_lc_GCJ=yes
24231 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24232 else
24233 cat conftest.err 1>&5
24235 $rm conftest*
24236 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24237 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24239 esac
24242 esac
24244 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24245 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24246 library_names_spec=
24247 libname_spec='lib$name'
24248 soname_spec=
24249 shrext_cmds=".so"
24250 postinstall_cmds=
24251 postuninstall_cmds=
24252 finish_cmds=
24253 finish_eval=
24254 shlibpath_var=
24255 shlibpath_overrides_runpath=unknown
24256 version_type=none
24257 dynamic_linker="$host_os ld.so"
24258 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24259 if test "$GCC" = yes; then
24260 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24261 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24262 # if the path contains ";" then we assume it to be the separator
24263 # otherwise default to the standard path separator (i.e. ":") - it is
24264 # assumed that no part of a normal pathname contains ";" but that should
24265 # okay in the real world where ";" in dirpaths is itself problematic.
24266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24267 else
24268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24270 else
24271 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24273 need_lib_prefix=unknown
24274 hardcode_into_libs=no
24276 # when you set need_version to no, make sure it does not cause -set_version
24277 # flags to be left without arguments
24278 need_version=unknown
24280 case $host_os in
24281 aix3*)
24282 version_type=linux
24283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24284 shlibpath_var=LIBPATH
24286 # AIX 3 has no versioning support, so we append a major version to the name.
24287 soname_spec='${libname}${release}${shared_ext}$major'
24290 aix4* | aix5*)
24291 version_type=linux
24292 need_lib_prefix=no
24293 need_version=no
24294 hardcode_into_libs=yes
24295 if test "$host_cpu" = ia64; then
24296 # AIX 5 supports IA64
24297 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24298 shlibpath_var=LD_LIBRARY_PATH
24299 else
24300 # With GCC up to 2.95.x, collect2 would create an import file
24301 # for dependence libraries. The import file would start with
24302 # the line `#! .'. This would cause the generated library to
24303 # depend on `.', always an invalid library. This was fixed in
24304 # development snapshots of GCC prior to 3.0.
24305 case $host_os in
24306 aix4 | aix4.[01] | aix4.[01].*)
24307 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24308 echo ' yes '
24309 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24311 else
24312 can_build_shared=no
24315 esac
24316 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24317 # soname into executable. Probably we can add versioning support to
24318 # collect2, so additional links can be useful in future.
24319 if test "$aix_use_runtimelinking" = yes; then
24320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24321 # instead of lib<name>.a to let people know that these are not
24322 # typical AIX shared libraries.
24323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24324 else
24325 # We preserve .a as extension for shared libraries through AIX4.2
24326 # and later when we are not doing run time linking.
24327 library_names_spec='${libname}${release}.a $libname.a'
24328 soname_spec='${libname}${release}${shared_ext}$major'
24330 shlibpath_var=LIBPATH
24334 amigaos*)
24335 library_names_spec='$libname.ixlibrary $libname.a'
24336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24337 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'
24340 beos*)
24341 library_names_spec='${libname}${shared_ext}'
24342 dynamic_linker="$host_os ld.so"
24343 shlibpath_var=LIBRARY_PATH
24346 bsdi[45]*)
24347 version_type=linux
24348 need_version=no
24349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24350 soname_spec='${libname}${release}${shared_ext}$major'
24351 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24352 shlibpath_var=LD_LIBRARY_PATH
24353 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24354 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24355 # the default ld.so.conf also contains /usr/contrib/lib and
24356 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24357 # libtool to hard-code these into programs
24360 cygwin* | mingw* | pw32*)
24361 version_type=windows
24362 shrext_cmds=".dll"
24363 need_version=no
24364 need_lib_prefix=no
24366 case $GCC,$host_os in
24367 yes,cygwin* | yes,mingw* | yes,pw32*)
24368 library_names_spec='$libname.dll.a'
24369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24370 postinstall_cmds='base_file=`basename \${file}`~
24371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24372 dldir=$destdir/`dirname \$dlpath`~
24373 test -d \$dldir || mkdir -p \$dldir~
24374 $install_prog $dir/$dlname \$dldir/$dlname~
24375 chmod a+x \$dldir/$dlname'
24376 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24377 dlpath=$dir/\$dldll~
24378 $rm \$dlpath'
24379 shlibpath_overrides_runpath=yes
24381 case $host_os in
24382 cygwin*)
24383 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24384 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24385 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24387 mingw*)
24388 # MinGW DLLs use traditional 'lib' prefix
24389 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24390 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24391 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24392 # It is most probably a Windows format PATH printed by
24393 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24394 # path with ; separators, and with drive letters. We can handle the
24395 # drive letters (cygwin fileutils understands them), so leave them,
24396 # especially as we might pass files found there to a mingw objdump,
24397 # which wouldn't understand a cygwinified path. Ahh.
24398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24399 else
24400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24403 pw32*)
24404 # pw32 DLLs use 'pw' prefix rather than 'lib'
24405 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24407 esac
24411 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24413 esac
24414 dynamic_linker='Win32 ld.exe'
24415 # FIXME: first we should search . and the directory the executable is in
24416 shlibpath_var=PATH
24419 darwin* | rhapsody*)
24420 dynamic_linker="$host_os dyld"
24421 version_type=darwin
24422 need_lib_prefix=no
24423 need_version=no
24424 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24425 soname_spec='${libname}${release}${major}$shared_ext'
24426 shlibpath_overrides_runpath=yes
24427 shlibpath_var=DYLD_LIBRARY_PATH
24428 shrext_cmds='.dylib'
24429 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24430 if test "$GCC" = yes; then
24431 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"`
24432 else
24433 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24435 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24438 dgux*)
24439 version_type=linux
24440 need_lib_prefix=no
24441 need_version=no
24442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24443 soname_spec='${libname}${release}${shared_ext}$major'
24444 shlibpath_var=LD_LIBRARY_PATH
24447 freebsd1*)
24448 dynamic_linker=no
24451 kfreebsd*-gnu)
24452 version_type=linux
24453 need_lib_prefix=no
24454 need_version=no
24455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24456 soname_spec='${libname}${release}${shared_ext}$major'
24457 shlibpath_var=LD_LIBRARY_PATH
24458 shlibpath_overrides_runpath=no
24459 hardcode_into_libs=yes
24460 dynamic_linker='GNU ld.so'
24463 freebsd* | dragonfly*)
24464 # DragonFly does not have aout. When/if they implement a new
24465 # versioning mechanism, adjust this.
24466 if test -x /usr/bin/objformat; then
24467 objformat=`/usr/bin/objformat`
24468 else
24469 case $host_os in
24470 freebsd[123]*) objformat=aout ;;
24471 *) objformat=elf ;;
24472 esac
24474 version_type=freebsd-$objformat
24475 case $version_type in
24476 freebsd-elf*)
24477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24478 need_version=no
24479 need_lib_prefix=no
24481 freebsd-*)
24482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24483 need_version=yes
24485 esac
24486 shlibpath_var=LD_LIBRARY_PATH
24487 case $host_os in
24488 freebsd2*)
24489 shlibpath_overrides_runpath=yes
24491 freebsd3.[01]* | freebsdelf3.[01]*)
24492 shlibpath_overrides_runpath=yes
24493 hardcode_into_libs=yes
24495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24497 shlibpath_overrides_runpath=no
24498 hardcode_into_libs=yes
24500 freebsd*) # from 4.6 on
24501 shlibpath_overrides_runpath=yes
24502 hardcode_into_libs=yes
24504 esac
24507 gnu*)
24508 version_type=linux
24509 need_lib_prefix=no
24510 need_version=no
24511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24512 soname_spec='${libname}${release}${shared_ext}$major'
24513 shlibpath_var=LD_LIBRARY_PATH
24514 hardcode_into_libs=yes
24517 hpux9* | hpux10* | hpux11*)
24518 # Give a soname corresponding to the major version so that dld.sl refuses to
24519 # link against other versions.
24520 version_type=sunos
24521 need_lib_prefix=no
24522 need_version=no
24523 case $host_cpu in
24524 ia64*)
24525 shrext_cmds='.so'
24526 hardcode_into_libs=yes
24527 dynamic_linker="$host_os dld.so"
24528 shlibpath_var=LD_LIBRARY_PATH
24529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24531 soname_spec='${libname}${release}${shared_ext}$major'
24532 if test "X$HPUX_IA64_MODE" = X32; then
24533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24534 else
24535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24539 hppa*64*)
24540 shrext_cmds='.sl'
24541 hardcode_into_libs=yes
24542 dynamic_linker="$host_os dld.sl"
24543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24546 soname_spec='${libname}${release}${shared_ext}$major'
24547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24551 shrext_cmds='.sl'
24552 dynamic_linker="$host_os dld.sl"
24553 shlibpath_var=SHLIB_PATH
24554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24556 soname_spec='${libname}${release}${shared_ext}$major'
24558 esac
24559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24560 postinstall_cmds='chmod 555 $lib'
24563 interix3*)
24564 version_type=linux
24565 need_lib_prefix=no
24566 need_version=no
24567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24568 soname_spec='${libname}${release}${shared_ext}$major'
24569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24570 shlibpath_var=LD_LIBRARY_PATH
24571 shlibpath_overrides_runpath=no
24572 hardcode_into_libs=yes
24575 irix5* | irix6* | nonstopux*)
24576 case $host_os in
24577 nonstopux*) version_type=nonstopux ;;
24579 if test "$lt_cv_prog_gnu_ld" = yes; then
24580 version_type=linux
24581 else
24582 version_type=irix
24583 fi ;;
24584 esac
24585 need_lib_prefix=no
24586 need_version=no
24587 soname_spec='${libname}${release}${shared_ext}$major'
24588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24589 case $host_os in
24590 irix5* | nonstopux*)
24591 libsuff= shlibsuff=
24594 case $LD in # libtool.m4 will add one of these switches to LD
24595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24596 libsuff= shlibsuff= libmagic=32-bit;;
24597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24598 libsuff=32 shlibsuff=N32 libmagic=N32;;
24599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24601 *) libsuff= shlibsuff= libmagic=never-match;;
24602 esac
24604 esac
24605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24606 shlibpath_overrides_runpath=no
24607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24609 hardcode_into_libs=yes
24612 # No shared lib support for Linux oldld, aout, or coff.
24613 linux*oldld* | linux*aout* | linux*coff*)
24614 dynamic_linker=no
24617 # This must be Linux ELF.
24618 linux*)
24619 version_type=linux
24620 need_lib_prefix=no
24621 need_version=no
24622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24623 soname_spec='${libname}${release}${shared_ext}$major'
24624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24625 shlibpath_var=LD_LIBRARY_PATH
24626 shlibpath_overrides_runpath=no
24627 # This implies no fast_install, which is unacceptable.
24628 # Some rework will be needed to allow for fast_install
24629 # before this can be enabled.
24630 hardcode_into_libs=yes
24632 # Append ld.so.conf contents to the search path
24633 if test -f /etc/ld.so.conf; then
24634 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' ' '`
24635 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24638 # We used to test for /lib/ld.so.1 and disable shared libraries on
24639 # powerpc, because MkLinux only supported shared libraries with the
24640 # GNU dynamic linker. Since this was broken with cross compilers,
24641 # most powerpc-linux boxes support dynamic linking these days and
24642 # people can always --disable-shared, the test was removed, and we
24643 # assume the GNU/Linux dynamic linker is in use.
24644 dynamic_linker='GNU/Linux ld.so'
24647 knetbsd*-gnu)
24648 version_type=linux
24649 need_lib_prefix=no
24650 need_version=no
24651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24652 soname_spec='${libname}${release}${shared_ext}$major'
24653 shlibpath_var=LD_LIBRARY_PATH
24654 shlibpath_overrides_runpath=no
24655 hardcode_into_libs=yes
24656 dynamic_linker='GNU ld.so'
24659 netbsd*)
24660 version_type=sunos
24661 need_lib_prefix=no
24662 need_version=no
24663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24666 dynamic_linker='NetBSD (a.out) ld.so'
24667 else
24668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24669 soname_spec='${libname}${release}${shared_ext}$major'
24670 dynamic_linker='NetBSD ld.elf_so'
24672 shlibpath_var=LD_LIBRARY_PATH
24673 shlibpath_overrides_runpath=yes
24674 hardcode_into_libs=yes
24677 newsos6)
24678 version_type=linux
24679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24680 shlibpath_var=LD_LIBRARY_PATH
24681 shlibpath_overrides_runpath=yes
24684 nto-qnx*)
24685 version_type=linux
24686 need_lib_prefix=no
24687 need_version=no
24688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24689 soname_spec='${libname}${release}${shared_ext}$major'
24690 shlibpath_var=LD_LIBRARY_PATH
24691 shlibpath_overrides_runpath=yes
24694 openbsd*)
24695 version_type=sunos
24696 sys_lib_dlsearch_path_spec="/usr/lib"
24697 need_lib_prefix=no
24698 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24699 case $host_os in
24700 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24701 *) need_version=no ;;
24702 esac
24703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24705 shlibpath_var=LD_LIBRARY_PATH
24706 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24707 case $host_os in
24708 openbsd2.[89] | openbsd2.[89].*)
24709 shlibpath_overrides_runpath=no
24712 shlibpath_overrides_runpath=yes
24714 esac
24715 else
24716 shlibpath_overrides_runpath=yes
24720 os2*)
24721 libname_spec='$name'
24722 shrext_cmds=".dll"
24723 need_lib_prefix=no
24724 library_names_spec='$libname${shared_ext} $libname.a'
24725 dynamic_linker='OS/2 ld.exe'
24726 shlibpath_var=LIBPATH
24729 osf3* | osf4* | osf5*)
24730 version_type=osf
24731 need_lib_prefix=no
24732 need_version=no
24733 soname_spec='${libname}${release}${shared_ext}$major'
24734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24735 shlibpath_var=LD_LIBRARY_PATH
24736 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24737 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24740 solaris*)
24741 version_type=linux
24742 need_lib_prefix=no
24743 need_version=no
24744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24745 soname_spec='${libname}${release}${shared_ext}$major'
24746 shlibpath_var=LD_LIBRARY_PATH
24747 shlibpath_overrides_runpath=yes
24748 hardcode_into_libs=yes
24749 # ldd complains unless libraries are executable
24750 postinstall_cmds='chmod +x $lib'
24753 sunos4*)
24754 version_type=sunos
24755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24757 shlibpath_var=LD_LIBRARY_PATH
24758 shlibpath_overrides_runpath=yes
24759 if test "$with_gnu_ld" = yes; then
24760 need_lib_prefix=no
24762 need_version=yes
24765 sysv4 | sysv4.3*)
24766 version_type=linux
24767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24768 soname_spec='${libname}${release}${shared_ext}$major'
24769 shlibpath_var=LD_LIBRARY_PATH
24770 case $host_vendor in
24771 sni)
24772 shlibpath_overrides_runpath=no
24773 need_lib_prefix=no
24774 export_dynamic_flag_spec='${wl}-Blargedynsym'
24775 runpath_var=LD_RUN_PATH
24777 siemens)
24778 need_lib_prefix=no
24780 motorola)
24781 need_lib_prefix=no
24782 need_version=no
24783 shlibpath_overrides_runpath=no
24784 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24786 esac
24789 sysv4*MP*)
24790 if test -d /usr/nec ;then
24791 version_type=linux
24792 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24793 soname_spec='$libname${shared_ext}.$major'
24794 shlibpath_var=LD_LIBRARY_PATH
24798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24799 version_type=freebsd-elf
24800 need_lib_prefix=no
24801 need_version=no
24802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24803 soname_spec='${libname}${release}${shared_ext}$major'
24804 shlibpath_var=LD_LIBRARY_PATH
24805 hardcode_into_libs=yes
24806 if test "$with_gnu_ld" = yes; then
24807 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24808 shlibpath_overrides_runpath=no
24809 else
24810 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24811 shlibpath_overrides_runpath=yes
24812 case $host_os in
24813 sco3.2v5*)
24814 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24816 esac
24818 sys_lib_dlsearch_path_spec='/usr/lib'
24821 uts4*)
24822 version_type=linux
24823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24824 soname_spec='${libname}${release}${shared_ext}$major'
24825 shlibpath_var=LD_LIBRARY_PATH
24829 dynamic_linker=no
24831 esac
24832 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24833 echo "${ECHO_T}$dynamic_linker" >&6; }
24834 test "$dynamic_linker" = no && can_build_shared=no
24836 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24837 if test "$GCC" = yes; then
24838 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24841 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24842 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24843 hardcode_action_GCJ=
24844 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24845 test -n "$runpath_var_GCJ" || \
24846 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24848 # We can hardcode non-existant directories.
24849 if test "$hardcode_direct_GCJ" != no &&
24850 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24851 # have to relink, otherwise we might link with an installed library
24852 # when we should be linking with a yet-to-be-installed one
24853 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24854 test "$hardcode_minus_L_GCJ" != no; then
24855 # Linking always hardcodes the temporary library directory.
24856 hardcode_action_GCJ=relink
24857 else
24858 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24859 hardcode_action_GCJ=immediate
24861 else
24862 # We cannot hardcode anything, or else we can only hardcode existing
24863 # directories.
24864 hardcode_action_GCJ=unsupported
24866 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24867 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
24869 if test "$hardcode_action_GCJ" = relink; then
24870 # Fast installation is not supported
24871 enable_fast_install=no
24872 elif test "$shlibpath_overrides_runpath" = yes ||
24873 test "$enable_shared" = no; then
24874 # Fast installation is not necessary
24875 enable_fast_install=needless
24879 # The else clause should only fire when bootstrapping the
24880 # libtool distribution, otherwise you forgot to ship ltmain.sh
24881 # with your package, and you will get complaints that there are
24882 # no rules to generate ltmain.sh.
24883 if test -f "$ltmain"; then
24884 # See if we are running on zsh, and set the options which allow our commands through
24885 # without removal of \ escapes.
24886 if test -n "${ZSH_VERSION+set}" ; then
24887 setopt NO_GLOB_SUBST
24889 # Now quote all the things that may contain metacharacters while being
24890 # careful not to overquote the AC_SUBSTed values. We take copies of the
24891 # variables and quote the copies for generation of the libtool script.
24892 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24893 SED SHELL STRIP \
24894 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24895 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24896 deplibs_check_method reload_flag reload_cmds need_locks \
24897 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24898 lt_cv_sys_global_symbol_to_c_name_address \
24899 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24900 old_postinstall_cmds old_postuninstall_cmds \
24901 compiler_GCJ \
24902 CC_GCJ \
24903 LD_GCJ \
24904 lt_prog_compiler_wl_GCJ \
24905 lt_prog_compiler_pic_GCJ \
24906 lt_prog_compiler_static_GCJ \
24907 lt_prog_compiler_no_builtin_flag_GCJ \
24908 export_dynamic_flag_spec_GCJ \
24909 thread_safe_flag_spec_GCJ \
24910 whole_archive_flag_spec_GCJ \
24911 enable_shared_with_static_runtimes_GCJ \
24912 old_archive_cmds_GCJ \
24913 old_archive_from_new_cmds_GCJ \
24914 predep_objects_GCJ \
24915 postdep_objects_GCJ \
24916 predeps_GCJ \
24917 postdeps_GCJ \
24918 compiler_lib_search_path_GCJ \
24919 archive_cmds_GCJ \
24920 archive_expsym_cmds_GCJ \
24921 postinstall_cmds_GCJ \
24922 postuninstall_cmds_GCJ \
24923 old_archive_from_expsyms_cmds_GCJ \
24924 allow_undefined_flag_GCJ \
24925 no_undefined_flag_GCJ \
24926 export_symbols_cmds_GCJ \
24927 hardcode_libdir_flag_spec_GCJ \
24928 hardcode_libdir_flag_spec_ld_GCJ \
24929 hardcode_libdir_separator_GCJ \
24930 hardcode_automatic_GCJ \
24931 module_cmds_GCJ \
24932 module_expsym_cmds_GCJ \
24933 lt_cv_prog_compiler_c_o_GCJ \
24934 exclude_expsyms_GCJ \
24935 include_expsyms_GCJ; do
24937 case $var in
24938 old_archive_cmds_GCJ | \
24939 old_archive_from_new_cmds_GCJ | \
24940 archive_cmds_GCJ | \
24941 archive_expsym_cmds_GCJ | \
24942 module_cmds_GCJ | \
24943 module_expsym_cmds_GCJ | \
24944 old_archive_from_expsyms_cmds_GCJ | \
24945 export_symbols_cmds_GCJ | \
24946 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24947 postinstall_cmds | postuninstall_cmds | \
24948 old_postinstall_cmds | old_postuninstall_cmds | \
24949 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24950 # Double-quote double-evaled strings.
24951 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24954 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24956 esac
24957 done
24959 case $lt_echo in
24960 *'\$0 --fallback-echo"')
24961 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24963 esac
24965 cfgfile="$ofile"
24967 cat <<__EOF__ >> "$cfgfile"
24968 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24970 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24972 # Shell to use when invoking shell scripts.
24973 SHELL=$lt_SHELL
24975 # Whether or not to build shared libraries.
24976 build_libtool_libs=$enable_shared
24978 # Whether or not to build static libraries.
24979 build_old_libs=$enable_static
24981 # Whether or not to add -lc for building shared libraries.
24982 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24984 # Whether or not to disallow shared libs when runtime libs are static
24985 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24987 # Whether or not to optimize for fast installation.
24988 fast_install=$enable_fast_install
24990 # The host system.
24991 host_alias=$host_alias
24992 host=$host
24993 host_os=$host_os
24995 # The build system.
24996 build_alias=$build_alias
24997 build=$build
24998 build_os=$build_os
25000 # An echo program that does not interpret backslashes.
25001 echo=$lt_echo
25003 # The archiver.
25004 AR=$lt_AR
25005 AR_FLAGS=$lt_AR_FLAGS
25007 # A C compiler.
25008 LTCC=$lt_LTCC
25010 # LTCC compiler flags.
25011 LTCFLAGS=$lt_LTCFLAGS
25013 # A language-specific compiler.
25014 CC=$lt_compiler_GCJ
25016 # Is the compiler the GNU C compiler?
25017 with_gcc=$GCC_GCJ
25019 # An ERE matcher.
25020 EGREP=$lt_EGREP
25022 # The linker used to build libraries.
25023 LD=$lt_LD_GCJ
25025 # Whether we need hard or soft links.
25026 LN_S=$lt_LN_S
25028 # A BSD-compatible nm program.
25029 NM=$lt_NM
25031 # A symbol stripping program
25032 STRIP=$lt_STRIP
25034 # Used to examine libraries when file_magic_cmd begins "file"
25035 MAGIC_CMD=$MAGIC_CMD
25037 # Used on cygwin: DLL creation program.
25038 DLLTOOL="$DLLTOOL"
25040 # Used on cygwin: object dumper.
25041 OBJDUMP="$OBJDUMP"
25043 # Used on cygwin: assembler.
25044 AS="$AS"
25046 # The name of the directory that contains temporary libtool files.
25047 objdir=$objdir
25049 # How to create reloadable object files.
25050 reload_flag=$lt_reload_flag
25051 reload_cmds=$lt_reload_cmds
25053 # How to pass a linker flag through the compiler.
25054 wl=$lt_lt_prog_compiler_wl_GCJ
25056 # Object file suffix (normally "o").
25057 objext="$ac_objext"
25059 # Old archive suffix (normally "a").
25060 libext="$libext"
25062 # Shared library suffix (normally ".so").
25063 shrext_cmds='$shrext_cmds'
25065 # Executable file suffix (normally "").
25066 exeext="$exeext"
25068 # Additional compiler flags for building library objects.
25069 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25070 pic_mode=$pic_mode
25072 # What is the maximum length of a command?
25073 max_cmd_len=$lt_cv_sys_max_cmd_len
25075 # Does compiler simultaneously support -c and -o options?
25076 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25078 # Must we lock files when doing compilation?
25079 need_locks=$lt_need_locks
25081 # Do we need the lib prefix for modules?
25082 need_lib_prefix=$need_lib_prefix
25084 # Do we need a version for libraries?
25085 need_version=$need_version
25087 # Whether dlopen is supported.
25088 dlopen_support=$enable_dlopen
25090 # Whether dlopen of programs is supported.
25091 dlopen_self=$enable_dlopen_self
25093 # Whether dlopen of statically linked programs is supported.
25094 dlopen_self_static=$enable_dlopen_self_static
25096 # Compiler flag to prevent dynamic linking.
25097 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25099 # Compiler flag to turn off builtin functions.
25100 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25102 # Compiler flag to allow reflexive dlopens.
25103 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25105 # Compiler flag to generate shared objects directly from archives.
25106 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25108 # Compiler flag to generate thread-safe objects.
25109 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25111 # Library versioning type.
25112 version_type=$version_type
25114 # Format of library name prefix.
25115 libname_spec=$lt_libname_spec
25117 # List of archive names. First name is the real one, the rest are links.
25118 # The last name is the one that the linker finds with -lNAME.
25119 library_names_spec=$lt_library_names_spec
25121 # The coded name of the library, if different from the real name.
25122 soname_spec=$lt_soname_spec
25124 # Commands used to build and install an old-style archive.
25125 RANLIB=$lt_RANLIB
25126 old_archive_cmds=$lt_old_archive_cmds_GCJ
25127 old_postinstall_cmds=$lt_old_postinstall_cmds
25128 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25130 # Create an old-style archive from a shared archive.
25131 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25133 # Create a temporary old-style archive to link instead of a shared archive.
25134 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25136 # Commands used to build and install a shared archive.
25137 archive_cmds=$lt_archive_cmds_GCJ
25138 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25139 postinstall_cmds=$lt_postinstall_cmds
25140 postuninstall_cmds=$lt_postuninstall_cmds
25142 # Commands used to build a loadable module (assumed same as above if empty)
25143 module_cmds=$lt_module_cmds_GCJ
25144 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25146 # Commands to strip libraries.
25147 old_striplib=$lt_old_striplib
25148 striplib=$lt_striplib
25150 # Dependencies to place before the objects being linked to create a
25151 # shared library.
25152 predep_objects=$lt_predep_objects_GCJ
25154 # Dependencies to place after the objects being linked to create a
25155 # shared library.
25156 postdep_objects=$lt_postdep_objects_GCJ
25158 # Dependencies to place before the objects being linked to create a
25159 # shared library.
25160 predeps=$lt_predeps_GCJ
25162 # Dependencies to place after the objects being linked to create a
25163 # shared library.
25164 postdeps=$lt_postdeps_GCJ
25166 # The library search path used internally by the compiler when linking
25167 # a shared library.
25168 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25170 # Method to check whether dependent libraries are shared objects.
25171 deplibs_check_method=$lt_deplibs_check_method
25173 # Command to use when deplibs_check_method == file_magic.
25174 file_magic_cmd=$lt_file_magic_cmd
25176 # Flag that allows shared libraries with undefined symbols to be built.
25177 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25179 # Flag that forces no undefined symbols.
25180 no_undefined_flag=$lt_no_undefined_flag_GCJ
25182 # Commands used to finish a libtool library installation in a directory.
25183 finish_cmds=$lt_finish_cmds
25185 # Same as above, but a single script fragment to be evaled but not shown.
25186 finish_eval=$lt_finish_eval
25188 # Take the output of nm and produce a listing of raw symbols and C names.
25189 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25191 # Transform the output of nm in a proper C declaration
25192 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25194 # Transform the output of nm in a C name address pair
25195 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25197 # This is the shared library runtime path variable.
25198 runpath_var=$runpath_var
25200 # This is the shared library path variable.
25201 shlibpath_var=$shlibpath_var
25203 # Is shlibpath searched before the hard-coded library search path?
25204 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25206 # How to hardcode a shared library path into an executable.
25207 hardcode_action=$hardcode_action_GCJ
25209 # Whether we should hardcode library paths into libraries.
25210 hardcode_into_libs=$hardcode_into_libs
25212 # Flag to hardcode \$libdir into a binary during linking.
25213 # This must work even if \$libdir does not exist.
25214 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25216 # If ld is used when linking, flag to hardcode \$libdir into
25217 # a binary during linking. This must work even if \$libdir does
25218 # not exist.
25219 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25221 # Whether we need a single -rpath flag with a separated argument.
25222 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25224 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25225 # resulting binary.
25226 hardcode_direct=$hardcode_direct_GCJ
25228 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25229 # resulting binary.
25230 hardcode_minus_L=$hardcode_minus_L_GCJ
25232 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25233 # the resulting binary.
25234 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25236 # Set to yes if building a shared library automatically hardcodes DIR into the library
25237 # and all subsequent libraries and executables linked against it.
25238 hardcode_automatic=$hardcode_automatic_GCJ
25240 # Variables whose values should be saved in libtool wrapper scripts and
25241 # restored at relink time.
25242 variables_saved_for_relink="$variables_saved_for_relink"
25244 # Whether libtool must link a program against all its dependency libraries.
25245 link_all_deplibs=$link_all_deplibs_GCJ
25247 # Compile-time system search path for libraries
25248 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25250 # Run-time system search path for libraries
25251 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25253 # Fix the shell variable \$srcfile for the compiler.
25254 fix_srcfile_path="$fix_srcfile_path_GCJ"
25256 # Set to yes if exported symbols are required.
25257 always_export_symbols=$always_export_symbols_GCJ
25259 # The commands to list exported symbols.
25260 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25262 # The commands to extract the exported symbol list from a shared archive.
25263 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25265 # Symbols that should not be listed in the preloaded symbols.
25266 exclude_expsyms=$lt_exclude_expsyms_GCJ
25268 # Symbols that must always be exported.
25269 include_expsyms=$lt_include_expsyms_GCJ
25271 # ### END LIBTOOL TAG CONFIG: $tagname
25273 __EOF__
25276 else
25277 # If there is no Makefile yet, we rely on a make rule to execute
25278 # `config.status --recheck' to rerun these tests and create the
25279 # libtool script then.
25280 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25281 if test -f "$ltmain_in"; then
25282 test -f Makefile && make "$ltmain"
25287 ac_ext=c
25288 ac_cpp='$CPP $CPPFLAGS'
25289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25293 CC="$lt_save_CC"
25295 else
25296 tagname=""
25301 ac_ext=c
25302 ac_cpp='$CPP $CPPFLAGS'
25303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25308 # Source file extension for RC test sources.
25309 ac_ext=rc
25311 # Object file extension for compiled RC test sources.
25312 objext=o
25313 objext_RC=$objext
25315 # Code to be used in simple compile tests
25316 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25318 # Code to be used in simple link tests
25319 lt_simple_link_test_code="$lt_simple_compile_test_code"
25321 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25323 # If no C compiler was specified, use CC.
25324 LTCC=${LTCC-"$CC"}
25326 # If no C compiler flags were specified, use CFLAGS.
25327 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25329 # Allow CC to be a program name with arguments.
25330 compiler=$CC
25333 # save warnings/boilerplate of simple test code
25334 ac_outfile=conftest.$ac_objext
25335 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25336 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25337 _lt_compiler_boilerplate=`cat conftest.err`
25338 $rm conftest*
25340 ac_outfile=conftest.$ac_objext
25341 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25342 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25343 _lt_linker_boilerplate=`cat conftest.err`
25344 $rm conftest*
25347 # Allow CC to be a program name with arguments.
25348 lt_save_CC="$CC"
25349 CC=${RC-"windres"}
25350 compiler=$CC
25351 compiler_RC=$CC
25352 for cc_temp in $compiler""; do
25353 case $cc_temp in
25354 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25355 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25356 \-*) ;;
25357 *) break;;
25358 esac
25359 done
25360 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25362 lt_cv_prog_compiler_c_o_RC=yes
25364 # The else clause should only fire when bootstrapping the
25365 # libtool distribution, otherwise you forgot to ship ltmain.sh
25366 # with your package, and you will get complaints that there are
25367 # no rules to generate ltmain.sh.
25368 if test -f "$ltmain"; then
25369 # See if we are running on zsh, and set the options which allow our commands through
25370 # without removal of \ escapes.
25371 if test -n "${ZSH_VERSION+set}" ; then
25372 setopt NO_GLOB_SUBST
25374 # Now quote all the things that may contain metacharacters while being
25375 # careful not to overquote the AC_SUBSTed values. We take copies of the
25376 # variables and quote the copies for generation of the libtool script.
25377 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25378 SED SHELL STRIP \
25379 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25380 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25381 deplibs_check_method reload_flag reload_cmds need_locks \
25382 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25383 lt_cv_sys_global_symbol_to_c_name_address \
25384 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25385 old_postinstall_cmds old_postuninstall_cmds \
25386 compiler_RC \
25387 CC_RC \
25388 LD_RC \
25389 lt_prog_compiler_wl_RC \
25390 lt_prog_compiler_pic_RC \
25391 lt_prog_compiler_static_RC \
25392 lt_prog_compiler_no_builtin_flag_RC \
25393 export_dynamic_flag_spec_RC \
25394 thread_safe_flag_spec_RC \
25395 whole_archive_flag_spec_RC \
25396 enable_shared_with_static_runtimes_RC \
25397 old_archive_cmds_RC \
25398 old_archive_from_new_cmds_RC \
25399 predep_objects_RC \
25400 postdep_objects_RC \
25401 predeps_RC \
25402 postdeps_RC \
25403 compiler_lib_search_path_RC \
25404 archive_cmds_RC \
25405 archive_expsym_cmds_RC \
25406 postinstall_cmds_RC \
25407 postuninstall_cmds_RC \
25408 old_archive_from_expsyms_cmds_RC \
25409 allow_undefined_flag_RC \
25410 no_undefined_flag_RC \
25411 export_symbols_cmds_RC \
25412 hardcode_libdir_flag_spec_RC \
25413 hardcode_libdir_flag_spec_ld_RC \
25414 hardcode_libdir_separator_RC \
25415 hardcode_automatic_RC \
25416 module_cmds_RC \
25417 module_expsym_cmds_RC \
25418 lt_cv_prog_compiler_c_o_RC \
25419 exclude_expsyms_RC \
25420 include_expsyms_RC; do
25422 case $var in
25423 old_archive_cmds_RC | \
25424 old_archive_from_new_cmds_RC | \
25425 archive_cmds_RC | \
25426 archive_expsym_cmds_RC | \
25427 module_cmds_RC | \
25428 module_expsym_cmds_RC | \
25429 old_archive_from_expsyms_cmds_RC | \
25430 export_symbols_cmds_RC | \
25431 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25432 postinstall_cmds | postuninstall_cmds | \
25433 old_postinstall_cmds | old_postuninstall_cmds | \
25434 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25435 # Double-quote double-evaled strings.
25436 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25439 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25441 esac
25442 done
25444 case $lt_echo in
25445 *'\$0 --fallback-echo"')
25446 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25448 esac
25450 cfgfile="$ofile"
25452 cat <<__EOF__ >> "$cfgfile"
25453 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25455 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25457 # Shell to use when invoking shell scripts.
25458 SHELL=$lt_SHELL
25460 # Whether or not to build shared libraries.
25461 build_libtool_libs=$enable_shared
25463 # Whether or not to build static libraries.
25464 build_old_libs=$enable_static
25466 # Whether or not to add -lc for building shared libraries.
25467 build_libtool_need_lc=$archive_cmds_need_lc_RC
25469 # Whether or not to disallow shared libs when runtime libs are static
25470 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25472 # Whether or not to optimize for fast installation.
25473 fast_install=$enable_fast_install
25475 # The host system.
25476 host_alias=$host_alias
25477 host=$host
25478 host_os=$host_os
25480 # The build system.
25481 build_alias=$build_alias
25482 build=$build
25483 build_os=$build_os
25485 # An echo program that does not interpret backslashes.
25486 echo=$lt_echo
25488 # The archiver.
25489 AR=$lt_AR
25490 AR_FLAGS=$lt_AR_FLAGS
25492 # A C compiler.
25493 LTCC=$lt_LTCC
25495 # LTCC compiler flags.
25496 LTCFLAGS=$lt_LTCFLAGS
25498 # A language-specific compiler.
25499 CC=$lt_compiler_RC
25501 # Is the compiler the GNU C compiler?
25502 with_gcc=$GCC_RC
25504 # An ERE matcher.
25505 EGREP=$lt_EGREP
25507 # The linker used to build libraries.
25508 LD=$lt_LD_RC
25510 # Whether we need hard or soft links.
25511 LN_S=$lt_LN_S
25513 # A BSD-compatible nm program.
25514 NM=$lt_NM
25516 # A symbol stripping program
25517 STRIP=$lt_STRIP
25519 # Used to examine libraries when file_magic_cmd begins "file"
25520 MAGIC_CMD=$MAGIC_CMD
25522 # Used on cygwin: DLL creation program.
25523 DLLTOOL="$DLLTOOL"
25525 # Used on cygwin: object dumper.
25526 OBJDUMP="$OBJDUMP"
25528 # Used on cygwin: assembler.
25529 AS="$AS"
25531 # The name of the directory that contains temporary libtool files.
25532 objdir=$objdir
25534 # How to create reloadable object files.
25535 reload_flag=$lt_reload_flag
25536 reload_cmds=$lt_reload_cmds
25538 # How to pass a linker flag through the compiler.
25539 wl=$lt_lt_prog_compiler_wl_RC
25541 # Object file suffix (normally "o").
25542 objext="$ac_objext"
25544 # Old archive suffix (normally "a").
25545 libext="$libext"
25547 # Shared library suffix (normally ".so").
25548 shrext_cmds='$shrext_cmds'
25550 # Executable file suffix (normally "").
25551 exeext="$exeext"
25553 # Additional compiler flags for building library objects.
25554 pic_flag=$lt_lt_prog_compiler_pic_RC
25555 pic_mode=$pic_mode
25557 # What is the maximum length of a command?
25558 max_cmd_len=$lt_cv_sys_max_cmd_len
25560 # Does compiler simultaneously support -c and -o options?
25561 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25563 # Must we lock files when doing compilation?
25564 need_locks=$lt_need_locks
25566 # Do we need the lib prefix for modules?
25567 need_lib_prefix=$need_lib_prefix
25569 # Do we need a version for libraries?
25570 need_version=$need_version
25572 # Whether dlopen is supported.
25573 dlopen_support=$enable_dlopen
25575 # Whether dlopen of programs is supported.
25576 dlopen_self=$enable_dlopen_self
25578 # Whether dlopen of statically linked programs is supported.
25579 dlopen_self_static=$enable_dlopen_self_static
25581 # Compiler flag to prevent dynamic linking.
25582 link_static_flag=$lt_lt_prog_compiler_static_RC
25584 # Compiler flag to turn off builtin functions.
25585 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25587 # Compiler flag to allow reflexive dlopens.
25588 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25590 # Compiler flag to generate shared objects directly from archives.
25591 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25593 # Compiler flag to generate thread-safe objects.
25594 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25596 # Library versioning type.
25597 version_type=$version_type
25599 # Format of library name prefix.
25600 libname_spec=$lt_libname_spec
25602 # List of archive names. First name is the real one, the rest are links.
25603 # The last name is the one that the linker finds with -lNAME.
25604 library_names_spec=$lt_library_names_spec
25606 # The coded name of the library, if different from the real name.
25607 soname_spec=$lt_soname_spec
25609 # Commands used to build and install an old-style archive.
25610 RANLIB=$lt_RANLIB
25611 old_archive_cmds=$lt_old_archive_cmds_RC
25612 old_postinstall_cmds=$lt_old_postinstall_cmds
25613 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25615 # Create an old-style archive from a shared archive.
25616 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25618 # Create a temporary old-style archive to link instead of a shared archive.
25619 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25621 # Commands used to build and install a shared archive.
25622 archive_cmds=$lt_archive_cmds_RC
25623 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25624 postinstall_cmds=$lt_postinstall_cmds
25625 postuninstall_cmds=$lt_postuninstall_cmds
25627 # Commands used to build a loadable module (assumed same as above if empty)
25628 module_cmds=$lt_module_cmds_RC
25629 module_expsym_cmds=$lt_module_expsym_cmds_RC
25631 # Commands to strip libraries.
25632 old_striplib=$lt_old_striplib
25633 striplib=$lt_striplib
25635 # Dependencies to place before the objects being linked to create a
25636 # shared library.
25637 predep_objects=$lt_predep_objects_RC
25639 # Dependencies to place after the objects being linked to create a
25640 # shared library.
25641 postdep_objects=$lt_postdep_objects_RC
25643 # Dependencies to place before the objects being linked to create a
25644 # shared library.
25645 predeps=$lt_predeps_RC
25647 # Dependencies to place after the objects being linked to create a
25648 # shared library.
25649 postdeps=$lt_postdeps_RC
25651 # The library search path used internally by the compiler when linking
25652 # a shared library.
25653 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25655 # Method to check whether dependent libraries are shared objects.
25656 deplibs_check_method=$lt_deplibs_check_method
25658 # Command to use when deplibs_check_method == file_magic.
25659 file_magic_cmd=$lt_file_magic_cmd
25661 # Flag that allows shared libraries with undefined symbols to be built.
25662 allow_undefined_flag=$lt_allow_undefined_flag_RC
25664 # Flag that forces no undefined symbols.
25665 no_undefined_flag=$lt_no_undefined_flag_RC
25667 # Commands used to finish a libtool library installation in a directory.
25668 finish_cmds=$lt_finish_cmds
25670 # Same as above, but a single script fragment to be evaled but not shown.
25671 finish_eval=$lt_finish_eval
25673 # Take the output of nm and produce a listing of raw symbols and C names.
25674 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25676 # Transform the output of nm in a proper C declaration
25677 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25679 # Transform the output of nm in a C name address pair
25680 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25682 # This is the shared library runtime path variable.
25683 runpath_var=$runpath_var
25685 # This is the shared library path variable.
25686 shlibpath_var=$shlibpath_var
25688 # Is shlibpath searched before the hard-coded library search path?
25689 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25691 # How to hardcode a shared library path into an executable.
25692 hardcode_action=$hardcode_action_RC
25694 # Whether we should hardcode library paths into libraries.
25695 hardcode_into_libs=$hardcode_into_libs
25697 # Flag to hardcode \$libdir into a binary during linking.
25698 # This must work even if \$libdir does not exist.
25699 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25701 # If ld is used when linking, flag to hardcode \$libdir into
25702 # a binary during linking. This must work even if \$libdir does
25703 # not exist.
25704 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25706 # Whether we need a single -rpath flag with a separated argument.
25707 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25709 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25710 # resulting binary.
25711 hardcode_direct=$hardcode_direct_RC
25713 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25714 # resulting binary.
25715 hardcode_minus_L=$hardcode_minus_L_RC
25717 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25718 # the resulting binary.
25719 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25721 # Set to yes if building a shared library automatically hardcodes DIR into the library
25722 # and all subsequent libraries and executables linked against it.
25723 hardcode_automatic=$hardcode_automatic_RC
25725 # Variables whose values should be saved in libtool wrapper scripts and
25726 # restored at relink time.
25727 variables_saved_for_relink="$variables_saved_for_relink"
25729 # Whether libtool must link a program against all its dependency libraries.
25730 link_all_deplibs=$link_all_deplibs_RC
25732 # Compile-time system search path for libraries
25733 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25735 # Run-time system search path for libraries
25736 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25738 # Fix the shell variable \$srcfile for the compiler.
25739 fix_srcfile_path="$fix_srcfile_path_RC"
25741 # Set to yes if exported symbols are required.
25742 always_export_symbols=$always_export_symbols_RC
25744 # The commands to list exported symbols.
25745 export_symbols_cmds=$lt_export_symbols_cmds_RC
25747 # The commands to extract the exported symbol list from a shared archive.
25748 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25750 # Symbols that should not be listed in the preloaded symbols.
25751 exclude_expsyms=$lt_exclude_expsyms_RC
25753 # Symbols that must always be exported.
25754 include_expsyms=$lt_include_expsyms_RC
25756 # ### END LIBTOOL TAG CONFIG: $tagname
25758 __EOF__
25761 else
25762 # If there is no Makefile yet, we rely on a make rule to execute
25763 # `config.status --recheck' to rerun these tests and create the
25764 # libtool script then.
25765 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25766 if test -f "$ltmain_in"; then
25767 test -f Makefile && make "$ltmain"
25772 ac_ext=c
25773 ac_cpp='$CPP $CPPFLAGS'
25774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25778 CC="$lt_save_CC"
25783 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25784 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25785 { (exit 1); exit 1; }; }
25787 esac
25789 # Append the new tag name to the list of available tags.
25790 if test -n "$tagname" ; then
25791 available_tags="$available_tags $tagname"
25794 done
25795 IFS="$lt_save_ifs"
25797 # Now substitute the updated list of available tags.
25798 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25799 mv "${ofile}T" "$ofile"
25800 chmod +x "$ofile"
25801 else
25802 rm -f "${ofile}T"
25803 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25804 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25805 { (exit 1); exit 1; }; }
25811 # This can be used to rebuild libtool when needed
25812 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25814 # Always use our own libtool.
25815 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25817 # Prevent multiple expansion
25839 if test "$lt_cv_dlopen_self" = "yes" ; then
25841 cat >>confdefs.h <<\_ACEOF
25842 #define CAN_DLOPEN_SELF 1
25843 _ACEOF
25847 if test "$WITH_LLVMGCCDIR" = "default" ; then
25848 LLVMGCC="llvm-gcc${EXEEXT}"
25849 LLVMGXX="llvm-g++${EXEEXT}"
25850 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25851 set dummy $LLVMGCC; ac_word=$2
25852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25854 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25855 echo $ECHO_N "(cached) $ECHO_C" >&6
25856 else
25857 case $LLVMGCC in
25858 [\\/]* | ?:[\\/]*)
25859 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25863 for as_dir in $PATH
25865 IFS=$as_save_IFS
25866 test -z "$as_dir" && as_dir=.
25867 for ac_exec_ext in '' $ac_executable_extensions; do
25868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25869 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25871 break 2
25873 done
25874 done
25875 IFS=$as_save_IFS
25878 esac
25880 LLVMGCC=$ac_cv_path_LLVMGCC
25881 if test -n "$LLVMGCC"; then
25882 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25883 echo "${ECHO_T}$LLVMGCC" >&6; }
25884 else
25885 { echo "$as_me:$LINENO: result: no" >&5
25886 echo "${ECHO_T}no" >&6; }
25890 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25891 set dummy $LLVMGXX; ac_word=$2
25892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25894 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25895 echo $ECHO_N "(cached) $ECHO_C" >&6
25896 else
25897 case $LLVMGXX in
25898 [\\/]* | ?:[\\/]*)
25899 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25903 for as_dir in $PATH
25905 IFS=$as_save_IFS
25906 test -z "$as_dir" && as_dir=.
25907 for ac_exec_ext in '' $ac_executable_extensions; do
25908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25909 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25911 break 2
25913 done
25914 done
25915 IFS=$as_save_IFS
25918 esac
25920 LLVMGXX=$ac_cv_path_LLVMGXX
25921 if test -n "$LLVMGXX"; then
25922 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25923 echo "${ECHO_T}$LLVMGXX" >&6; }
25924 else
25925 { echo "$as_me:$LINENO: result: no" >&5
25926 echo "${ECHO_T}no" >&6; }
25930 else
25931 if test -z "$LLVMGCC"; then
25932 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25934 if test -z "$LLVMGXX"; then
25935 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25937 LLVMGCC=$LLVMGCC
25939 LLVMGXX=$LLVMGXX
25943 { echo "$as_me:$LINENO: checking tool compatibility" >&5
25944 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
25946 ICC=no
25947 IXX=no
25948 case $CC in
25949 icc*|icpc*)
25950 ICC=yes
25951 IXX=yes
25955 esac
25957 if test "$GCC" != "yes" && test "$ICC" != "yes"
25958 then
25959 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25960 echo "$as_me: error: gcc|icc required but not found" >&2;}
25961 { (exit 1); exit 1; }; }
25964 if test "$GXX" != "yes" && test "$IXX" != "yes"
25965 then
25966 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25967 echo "$as_me: error: g++|icc required but not found" >&2;}
25968 { (exit 1); exit 1; }; }
25971 if test "$GCC" = "yes"
25972 then
25973 cat >conftest.$ac_ext <<_ACEOF
25974 #if !defined(__GNUC__) || __GNUC__ < 3
25975 #error Unsupported GCC version
25976 #endif
25978 _ACEOF
25979 rm -f conftest.$ac_objext
25980 if { (ac_try="$ac_compile"
25981 case "(($ac_try" in
25982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25983 *) ac_try_echo=$ac_try;;
25984 esac
25985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25986 (eval "$ac_compile") 2>conftest.er1
25987 ac_status=$?
25988 grep -v '^ *+' conftest.er1 >conftest.err
25989 rm -f conftest.er1
25990 cat conftest.err >&5
25991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); } && {
25993 test -z "$ac_c_werror_flag" ||
25994 test ! -s conftest.err
25995 } && test -s conftest.$ac_objext; then
25997 else
25998 echo "$as_me: failed program was:" >&5
25999 sed 's/^/| /' conftest.$ac_ext >&5
26001 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26002 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26003 { (exit 1); exit 1; }; }
26006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26009 if test -z "$llvm_cv_gnu_make_command"
26010 then
26011 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26012 echo "$as_me: error: GNU Make required but not found" >&2;}
26013 { (exit 1); exit 1; }; }
26016 { echo "$as_me:$LINENO: result: ok" >&5
26017 echo "${ECHO_T}ok" >&6; }
26021 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26022 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26023 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26024 echo $ECHO_N "(cached) $ECHO_C" >&6
26025 else
26026 ac_check_lib_save_LIBS=$LIBS
26027 LIBS="-lelf $LIBS"
26028 cat >conftest.$ac_ext <<_ACEOF
26029 /* confdefs.h. */
26030 _ACEOF
26031 cat confdefs.h >>conftest.$ac_ext
26032 cat >>conftest.$ac_ext <<_ACEOF
26033 /* end confdefs.h. */
26035 /* Override any GCC internal prototype to avoid an error.
26036 Use char because int might match the return type of a GCC
26037 builtin and then its argument prototype would still apply. */
26038 #ifdef __cplusplus
26039 extern "C"
26040 #endif
26041 char elf_begin ();
26043 main ()
26045 return elf_begin ();
26047 return 0;
26049 _ACEOF
26050 rm -f conftest.$ac_objext conftest$ac_exeext
26051 if { (ac_try="$ac_link"
26052 case "(($ac_try" in
26053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26054 *) ac_try_echo=$ac_try;;
26055 esac
26056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26057 (eval "$ac_link") 2>conftest.er1
26058 ac_status=$?
26059 grep -v '^ *+' conftest.er1 >conftest.err
26060 rm -f conftest.er1
26061 cat conftest.err >&5
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); } && {
26064 test -z "$ac_c_werror_flag" ||
26065 test ! -s conftest.err
26066 } && test -s conftest$ac_exeext &&
26067 $as_test_x conftest$ac_exeext; then
26068 ac_cv_lib_elf_elf_begin=yes
26069 else
26070 echo "$as_me: failed program was:" >&5
26071 sed 's/^/| /' conftest.$ac_ext >&5
26073 ac_cv_lib_elf_elf_begin=no
26076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26077 conftest$ac_exeext conftest.$ac_ext
26078 LIBS=$ac_check_lib_save_LIBS
26080 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26081 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26082 if test $ac_cv_lib_elf_elf_begin = yes; then
26083 cat >>confdefs.h <<_ACEOF
26084 #define HAVE_LIBELF 1
26085 _ACEOF
26087 LIBS="-lelf $LIBS"
26092 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26093 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26094 if test "${ac_cv_lib_m_sin+set}" = set; then
26095 echo $ECHO_N "(cached) $ECHO_C" >&6
26096 else
26097 ac_check_lib_save_LIBS=$LIBS
26098 LIBS="-lm $LIBS"
26099 cat >conftest.$ac_ext <<_ACEOF
26100 /* confdefs.h. */
26101 _ACEOF
26102 cat confdefs.h >>conftest.$ac_ext
26103 cat >>conftest.$ac_ext <<_ACEOF
26104 /* end confdefs.h. */
26106 /* Override any GCC internal prototype to avoid an error.
26107 Use char because int might match the return type of a GCC
26108 builtin and then its argument prototype would still apply. */
26109 #ifdef __cplusplus
26110 extern "C"
26111 #endif
26112 char sin ();
26114 main ()
26116 return sin ();
26118 return 0;
26120 _ACEOF
26121 rm -f conftest.$ac_objext conftest$ac_exeext
26122 if { (ac_try="$ac_link"
26123 case "(($ac_try" in
26124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26125 *) ac_try_echo=$ac_try;;
26126 esac
26127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26128 (eval "$ac_link") 2>conftest.er1
26129 ac_status=$?
26130 grep -v '^ *+' conftest.er1 >conftest.err
26131 rm -f conftest.er1
26132 cat conftest.err >&5
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); } && {
26135 test -z "$ac_c_werror_flag" ||
26136 test ! -s conftest.err
26137 } && test -s conftest$ac_exeext &&
26138 $as_test_x conftest$ac_exeext; then
26139 ac_cv_lib_m_sin=yes
26140 else
26141 echo "$as_me: failed program was:" >&5
26142 sed 's/^/| /' conftest.$ac_ext >&5
26144 ac_cv_lib_m_sin=no
26147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26148 conftest$ac_exeext conftest.$ac_ext
26149 LIBS=$ac_check_lib_save_LIBS
26151 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26152 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26153 if test $ac_cv_lib_m_sin = yes; then
26154 cat >>confdefs.h <<_ACEOF
26155 #define HAVE_LIBM 1
26156 _ACEOF
26158 LIBS="-lm $LIBS"
26162 if test "$llvm_cv_os_type" = "MingW" ; then
26164 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26165 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26166 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26167 echo $ECHO_N "(cached) $ECHO_C" >&6
26168 else
26169 ac_check_lib_save_LIBS=$LIBS
26170 LIBS="-limagehlp $LIBS"
26171 cat >conftest.$ac_ext <<_ACEOF
26172 /* confdefs.h. */
26173 _ACEOF
26174 cat confdefs.h >>conftest.$ac_ext
26175 cat >>conftest.$ac_ext <<_ACEOF
26176 /* end confdefs.h. */
26180 main ()
26182 return main ();
26184 return 0;
26186 _ACEOF
26187 rm -f conftest.$ac_objext conftest$ac_exeext
26188 if { (ac_try="$ac_link"
26189 case "(($ac_try" in
26190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26191 *) ac_try_echo=$ac_try;;
26192 esac
26193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26194 (eval "$ac_link") 2>conftest.er1
26195 ac_status=$?
26196 grep -v '^ *+' conftest.er1 >conftest.err
26197 rm -f conftest.er1
26198 cat conftest.err >&5
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); } && {
26201 test -z "$ac_c_werror_flag" ||
26202 test ! -s conftest.err
26203 } && test -s conftest$ac_exeext &&
26204 $as_test_x conftest$ac_exeext; then
26205 ac_cv_lib_imagehlp_main=yes
26206 else
26207 echo "$as_me: failed program was:" >&5
26208 sed 's/^/| /' conftest.$ac_ext >&5
26210 ac_cv_lib_imagehlp_main=no
26213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26214 conftest$ac_exeext conftest.$ac_ext
26215 LIBS=$ac_check_lib_save_LIBS
26217 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26218 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26219 if test $ac_cv_lib_imagehlp_main = yes; then
26220 cat >>confdefs.h <<_ACEOF
26221 #define HAVE_LIBIMAGEHLP 1
26222 _ACEOF
26224 LIBS="-limagehlp $LIBS"
26229 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26230 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26231 if test "${ac_cv_lib_psapi_main+set}" = set; then
26232 echo $ECHO_N "(cached) $ECHO_C" >&6
26233 else
26234 ac_check_lib_save_LIBS=$LIBS
26235 LIBS="-lpsapi $LIBS"
26236 cat >conftest.$ac_ext <<_ACEOF
26237 /* confdefs.h. */
26238 _ACEOF
26239 cat confdefs.h >>conftest.$ac_ext
26240 cat >>conftest.$ac_ext <<_ACEOF
26241 /* end confdefs.h. */
26245 main ()
26247 return main ();
26249 return 0;
26251 _ACEOF
26252 rm -f conftest.$ac_objext conftest$ac_exeext
26253 if { (ac_try="$ac_link"
26254 case "(($ac_try" in
26255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26256 *) ac_try_echo=$ac_try;;
26257 esac
26258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26259 (eval "$ac_link") 2>conftest.er1
26260 ac_status=$?
26261 grep -v '^ *+' conftest.er1 >conftest.err
26262 rm -f conftest.er1
26263 cat conftest.err >&5
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); } && {
26266 test -z "$ac_c_werror_flag" ||
26267 test ! -s conftest.err
26268 } && test -s conftest$ac_exeext &&
26269 $as_test_x conftest$ac_exeext; then
26270 ac_cv_lib_psapi_main=yes
26271 else
26272 echo "$as_me: failed program was:" >&5
26273 sed 's/^/| /' conftest.$ac_ext >&5
26275 ac_cv_lib_psapi_main=no
26278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26279 conftest$ac_exeext conftest.$ac_ext
26280 LIBS=$ac_check_lib_save_LIBS
26282 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26283 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26284 if test $ac_cv_lib_psapi_main = yes; then
26285 cat >>confdefs.h <<_ACEOF
26286 #define HAVE_LIBPSAPI 1
26287 _ACEOF
26289 LIBS="-lpsapi $LIBS"
26295 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26296 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
26297 if test "${ac_cv_search_dlopen+set}" = set; then
26298 echo $ECHO_N "(cached) $ECHO_C" >&6
26299 else
26300 ac_func_search_save_LIBS=$LIBS
26301 cat >conftest.$ac_ext <<_ACEOF
26302 /* confdefs.h. */
26303 _ACEOF
26304 cat confdefs.h >>conftest.$ac_ext
26305 cat >>conftest.$ac_ext <<_ACEOF
26306 /* end confdefs.h. */
26308 /* Override any GCC internal prototype to avoid an error.
26309 Use char because int might match the return type of a GCC
26310 builtin and then its argument prototype would still apply. */
26311 #ifdef __cplusplus
26312 extern "C"
26313 #endif
26314 char dlopen ();
26316 main ()
26318 return dlopen ();
26320 return 0;
26322 _ACEOF
26323 for ac_lib in '' dl; do
26324 if test -z "$ac_lib"; then
26325 ac_res="none required"
26326 else
26327 ac_res=-l$ac_lib
26328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26330 rm -f conftest.$ac_objext conftest$ac_exeext
26331 if { (ac_try="$ac_link"
26332 case "(($ac_try" in
26333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26334 *) ac_try_echo=$ac_try;;
26335 esac
26336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26337 (eval "$ac_link") 2>conftest.er1
26338 ac_status=$?
26339 grep -v '^ *+' conftest.er1 >conftest.err
26340 rm -f conftest.er1
26341 cat conftest.err >&5
26342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343 (exit $ac_status); } && {
26344 test -z "$ac_c_werror_flag" ||
26345 test ! -s conftest.err
26346 } && test -s conftest$ac_exeext &&
26347 $as_test_x conftest$ac_exeext; then
26348 ac_cv_search_dlopen=$ac_res
26349 else
26350 echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26357 conftest$ac_exeext
26358 if test "${ac_cv_search_dlopen+set}" = set; then
26359 break
26361 done
26362 if test "${ac_cv_search_dlopen+set}" = set; then
26364 else
26365 ac_cv_search_dlopen=no
26367 rm conftest.$ac_ext
26368 LIBS=$ac_func_search_save_LIBS
26370 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26371 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26372 ac_res=$ac_cv_search_dlopen
26373 if test "$ac_res" != no; then
26374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26376 cat >>confdefs.h <<\_ACEOF
26377 #define HAVE_DLOPEN 1
26378 _ACEOF
26380 else
26381 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26382 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
26386 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
26387 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
26388 if test "${ac_cv_search_ffi_call+set}" = set; then
26389 echo $ECHO_N "(cached) $ECHO_C" >&6
26390 else
26391 ac_func_search_save_LIBS=$LIBS
26392 cat >conftest.$ac_ext <<_ACEOF
26393 /* confdefs.h. */
26394 _ACEOF
26395 cat confdefs.h >>conftest.$ac_ext
26396 cat >>conftest.$ac_ext <<_ACEOF
26397 /* end confdefs.h. */
26399 /* Override any GCC internal prototype to avoid an error.
26400 Use char because int might match the return type of a GCC
26401 builtin and then its argument prototype would still apply. */
26402 #ifdef __cplusplus
26403 extern "C"
26404 #endif
26405 char ffi_call ();
26407 main ()
26409 return ffi_call ();
26411 return 0;
26413 _ACEOF
26414 for ac_lib in '' ffi; do
26415 if test -z "$ac_lib"; then
26416 ac_res="none required"
26417 else
26418 ac_res=-l$ac_lib
26419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26421 rm -f conftest.$ac_objext conftest$ac_exeext
26422 if { (ac_try="$ac_link"
26423 case "(($ac_try" in
26424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425 *) ac_try_echo=$ac_try;;
26426 esac
26427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26428 (eval "$ac_link") 2>conftest.er1
26429 ac_status=$?
26430 grep -v '^ *+' conftest.er1 >conftest.err
26431 rm -f conftest.er1
26432 cat conftest.err >&5
26433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434 (exit $ac_status); } && {
26435 test -z "$ac_c_werror_flag" ||
26436 test ! -s conftest.err
26437 } && test -s conftest$ac_exeext &&
26438 $as_test_x conftest$ac_exeext; then
26439 ac_cv_search_ffi_call=$ac_res
26440 else
26441 echo "$as_me: failed program was:" >&5
26442 sed 's/^/| /' conftest.$ac_ext >&5
26447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26448 conftest$ac_exeext
26449 if test "${ac_cv_search_ffi_call+set}" = set; then
26450 break
26452 done
26453 if test "${ac_cv_search_ffi_call+set}" = set; then
26455 else
26456 ac_cv_search_ffi_call=no
26458 rm conftest.$ac_ext
26459 LIBS=$ac_func_search_save_LIBS
26461 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
26462 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
26463 ac_res=$ac_cv_search_ffi_call
26464 if test "$ac_res" != no; then
26465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26467 cat >>confdefs.h <<\_ACEOF
26468 #define HAVE_LIBFFI 1
26469 _ACEOF
26471 else
26472 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
26473 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
26477 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26478 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
26479 if test "${ac_cv_search_mallinfo+set}" = set; then
26480 echo $ECHO_N "(cached) $ECHO_C" >&6
26481 else
26482 ac_func_search_save_LIBS=$LIBS
26483 cat >conftest.$ac_ext <<_ACEOF
26484 /* confdefs.h. */
26485 _ACEOF
26486 cat confdefs.h >>conftest.$ac_ext
26487 cat >>conftest.$ac_ext <<_ACEOF
26488 /* end confdefs.h. */
26490 /* Override any GCC internal prototype to avoid an error.
26491 Use char because int might match the return type of a GCC
26492 builtin and then its argument prototype would still apply. */
26493 #ifdef __cplusplus
26494 extern "C"
26495 #endif
26496 char mallinfo ();
26498 main ()
26500 return mallinfo ();
26502 return 0;
26504 _ACEOF
26505 for ac_lib in '' malloc; do
26506 if test -z "$ac_lib"; then
26507 ac_res="none required"
26508 else
26509 ac_res=-l$ac_lib
26510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26512 rm -f conftest.$ac_objext conftest$ac_exeext
26513 if { (ac_try="$ac_link"
26514 case "(($ac_try" in
26515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26516 *) ac_try_echo=$ac_try;;
26517 esac
26518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26519 (eval "$ac_link") 2>conftest.er1
26520 ac_status=$?
26521 grep -v '^ *+' conftest.er1 >conftest.err
26522 rm -f conftest.er1
26523 cat conftest.err >&5
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); } && {
26526 test -z "$ac_c_werror_flag" ||
26527 test ! -s conftest.err
26528 } && test -s conftest$ac_exeext &&
26529 $as_test_x conftest$ac_exeext; then
26530 ac_cv_search_mallinfo=$ac_res
26531 else
26532 echo "$as_me: failed program was:" >&5
26533 sed 's/^/| /' conftest.$ac_ext >&5
26538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26539 conftest$ac_exeext
26540 if test "${ac_cv_search_mallinfo+set}" = set; then
26541 break
26543 done
26544 if test "${ac_cv_search_mallinfo+set}" = set; then
26546 else
26547 ac_cv_search_mallinfo=no
26549 rm conftest.$ac_ext
26550 LIBS=$ac_func_search_save_LIBS
26552 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26553 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26554 ac_res=$ac_cv_search_mallinfo
26555 if test "$ac_res" != no; then
26556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26558 cat >>confdefs.h <<\_ACEOF
26559 #define HAVE_MALLINFO 1
26560 _ACEOF
26565 if test "$ENABLE_THREADS" -eq 1 ; then
26567 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26568 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
26569 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26570 echo $ECHO_N "(cached) $ECHO_C" >&6
26571 else
26572 ac_check_lib_save_LIBS=$LIBS
26573 LIBS="-lpthread $LIBS"
26574 cat >conftest.$ac_ext <<_ACEOF
26575 /* confdefs.h. */
26576 _ACEOF
26577 cat confdefs.h >>conftest.$ac_ext
26578 cat >>conftest.$ac_ext <<_ACEOF
26579 /* end confdefs.h. */
26581 /* Override any GCC internal prototype to avoid an error.
26582 Use char because int might match the return type of a GCC
26583 builtin and then its argument prototype would still apply. */
26584 #ifdef __cplusplus
26585 extern "C"
26586 #endif
26587 char pthread_mutex_init ();
26589 main ()
26591 return pthread_mutex_init ();
26593 return 0;
26595 _ACEOF
26596 rm -f conftest.$ac_objext conftest$ac_exeext
26597 if { (ac_try="$ac_link"
26598 case "(($ac_try" in
26599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26600 *) ac_try_echo=$ac_try;;
26601 esac
26602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26603 (eval "$ac_link") 2>conftest.er1
26604 ac_status=$?
26605 grep -v '^ *+' conftest.er1 >conftest.err
26606 rm -f conftest.er1
26607 cat conftest.err >&5
26608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609 (exit $ac_status); } && {
26610 test -z "$ac_c_werror_flag" ||
26611 test ! -s conftest.err
26612 } && test -s conftest$ac_exeext &&
26613 $as_test_x conftest$ac_exeext; then
26614 ac_cv_lib_pthread_pthread_mutex_init=yes
26615 else
26616 echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.$ac_ext >&5
26619 ac_cv_lib_pthread_pthread_mutex_init=no
26622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26623 conftest$ac_exeext conftest.$ac_ext
26624 LIBS=$ac_check_lib_save_LIBS
26626 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26627 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
26628 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26629 cat >>confdefs.h <<_ACEOF
26630 #define HAVE_LIBPTHREAD 1
26631 _ACEOF
26633 LIBS="-lpthread $LIBS"
26637 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26638 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
26639 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26640 echo $ECHO_N "(cached) $ECHO_C" >&6
26641 else
26642 ac_func_search_save_LIBS=$LIBS
26643 cat >conftest.$ac_ext <<_ACEOF
26644 /* confdefs.h. */
26645 _ACEOF
26646 cat confdefs.h >>conftest.$ac_ext
26647 cat >>conftest.$ac_ext <<_ACEOF
26648 /* end confdefs.h. */
26650 /* Override any GCC internal prototype to avoid an error.
26651 Use char because int might match the return type of a GCC
26652 builtin and then its argument prototype would still apply. */
26653 #ifdef __cplusplus
26654 extern "C"
26655 #endif
26656 char pthread_mutex_lock ();
26658 main ()
26660 return pthread_mutex_lock ();
26662 return 0;
26664 _ACEOF
26665 for ac_lib in '' pthread; do
26666 if test -z "$ac_lib"; then
26667 ac_res="none required"
26668 else
26669 ac_res=-l$ac_lib
26670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26672 rm -f conftest.$ac_objext conftest$ac_exeext
26673 if { (ac_try="$ac_link"
26674 case "(($ac_try" in
26675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26676 *) ac_try_echo=$ac_try;;
26677 esac
26678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26679 (eval "$ac_link") 2>conftest.er1
26680 ac_status=$?
26681 grep -v '^ *+' conftest.er1 >conftest.err
26682 rm -f conftest.er1
26683 cat conftest.err >&5
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); } && {
26686 test -z "$ac_c_werror_flag" ||
26687 test ! -s conftest.err
26688 } && test -s conftest$ac_exeext &&
26689 $as_test_x conftest$ac_exeext; then
26690 ac_cv_search_pthread_mutex_lock=$ac_res
26691 else
26692 echo "$as_me: failed program was:" >&5
26693 sed 's/^/| /' conftest.$ac_ext >&5
26698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26699 conftest$ac_exeext
26700 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26701 break
26703 done
26704 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26706 else
26707 ac_cv_search_pthread_mutex_lock=no
26709 rm conftest.$ac_ext
26710 LIBS=$ac_func_search_save_LIBS
26712 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26713 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26714 ac_res=$ac_cv_search_pthread_mutex_lock
26715 if test "$ac_res" != no; then
26716 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26718 cat >>confdefs.h <<\_ACEOF
26719 #define HAVE_PTHREAD_MUTEX_LOCK 1
26720 _ACEOF
26727 # Check whether --with-udis86 was given.
26728 if test "${with_udis86+set}" = set; then
26729 withval=$with_udis86;
26730 USE_UDIS86=1
26732 case "$withval" in
26733 /usr/lib|yes) ;;
26734 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26735 esac
26737 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26738 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26739 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26740 echo $ECHO_N "(cached) $ECHO_C" >&6
26741 else
26742 ac_check_lib_save_LIBS=$LIBS
26743 LIBS="-ludis86 $LIBS"
26744 cat >conftest.$ac_ext <<_ACEOF
26745 /* confdefs.h. */
26746 _ACEOF
26747 cat confdefs.h >>conftest.$ac_ext
26748 cat >>conftest.$ac_ext <<_ACEOF
26749 /* end confdefs.h. */
26751 /* Override any GCC internal prototype to avoid an error.
26752 Use char because int might match the return type of a GCC
26753 builtin and then its argument prototype would still apply. */
26754 #ifdef __cplusplus
26755 extern "C"
26756 #endif
26757 char ud_init ();
26759 main ()
26761 return ud_init ();
26763 return 0;
26765 _ACEOF
26766 rm -f conftest.$ac_objext conftest$ac_exeext
26767 if { (ac_try="$ac_link"
26768 case "(($ac_try" in
26769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26770 *) ac_try_echo=$ac_try;;
26771 esac
26772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26773 (eval "$ac_link") 2>conftest.er1
26774 ac_status=$?
26775 grep -v '^ *+' conftest.er1 >conftest.err
26776 rm -f conftest.er1
26777 cat conftest.err >&5
26778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779 (exit $ac_status); } && {
26780 test -z "$ac_c_werror_flag" ||
26781 test ! -s conftest.err
26782 } && test -s conftest$ac_exeext &&
26783 $as_test_x conftest$ac_exeext; then
26784 ac_cv_lib_udis86_ud_init=yes
26785 else
26786 echo "$as_me: failed program was:" >&5
26787 sed 's/^/| /' conftest.$ac_ext >&5
26789 ac_cv_lib_udis86_ud_init=no
26792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26793 conftest$ac_exeext conftest.$ac_ext
26794 LIBS=$ac_check_lib_save_LIBS
26796 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26797 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26798 if test $ac_cv_lib_udis86_ud_init = yes; then
26799 cat >>confdefs.h <<_ACEOF
26800 #define HAVE_LIBUDIS86 1
26801 _ACEOF
26803 LIBS="-ludis86 $LIBS"
26805 else
26807 echo "Error! You need to have libudis86 around."
26808 exit -1
26813 else
26814 USE_UDIS86=0
26819 cat >>confdefs.h <<_ACEOF
26820 #define USE_UDIS86 $USE_UDIS86
26821 _ACEOF
26830 ac_header_dirent=no
26831 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26832 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26833 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26834 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26836 echo $ECHO_N "(cached) $ECHO_C" >&6
26837 else
26838 cat >conftest.$ac_ext <<_ACEOF
26839 /* confdefs.h. */
26840 _ACEOF
26841 cat confdefs.h >>conftest.$ac_ext
26842 cat >>conftest.$ac_ext <<_ACEOF
26843 /* end confdefs.h. */
26844 #include <sys/types.h>
26845 #include <$ac_hdr>
26848 main ()
26850 if ((DIR *) 0)
26851 return 0;
26853 return 0;
26855 _ACEOF
26856 rm -f conftest.$ac_objext
26857 if { (ac_try="$ac_compile"
26858 case "(($ac_try" in
26859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860 *) ac_try_echo=$ac_try;;
26861 esac
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863 (eval "$ac_compile") 2>conftest.er1
26864 ac_status=$?
26865 grep -v '^ *+' conftest.er1 >conftest.err
26866 rm -f conftest.er1
26867 cat conftest.err >&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); } && {
26870 test -z "$ac_c_werror_flag" ||
26871 test ! -s conftest.err
26872 } && test -s conftest.$ac_objext; then
26873 eval "$as_ac_Header=yes"
26874 else
26875 echo "$as_me: failed program was:" >&5
26876 sed 's/^/| /' conftest.$ac_ext >&5
26878 eval "$as_ac_Header=no"
26881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26883 ac_res=`eval echo '${'$as_ac_Header'}'`
26884 { echo "$as_me:$LINENO: result: $ac_res" >&5
26885 echo "${ECHO_T}$ac_res" >&6; }
26886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26887 cat >>confdefs.h <<_ACEOF
26888 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26889 _ACEOF
26891 ac_header_dirent=$ac_hdr; break
26894 done
26895 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26896 if test $ac_header_dirent = dirent.h; then
26897 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26898 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26899 if test "${ac_cv_search_opendir+set}" = set; then
26900 echo $ECHO_N "(cached) $ECHO_C" >&6
26901 else
26902 ac_func_search_save_LIBS=$LIBS
26903 cat >conftest.$ac_ext <<_ACEOF
26904 /* confdefs.h. */
26905 _ACEOF
26906 cat confdefs.h >>conftest.$ac_ext
26907 cat >>conftest.$ac_ext <<_ACEOF
26908 /* end confdefs.h. */
26910 /* Override any GCC internal prototype to avoid an error.
26911 Use char because int might match the return type of a GCC
26912 builtin and then its argument prototype would still apply. */
26913 #ifdef __cplusplus
26914 extern "C"
26915 #endif
26916 char opendir ();
26918 main ()
26920 return opendir ();
26922 return 0;
26924 _ACEOF
26925 for ac_lib in '' dir; do
26926 if test -z "$ac_lib"; then
26927 ac_res="none required"
26928 else
26929 ac_res=-l$ac_lib
26930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26932 rm -f conftest.$ac_objext conftest$ac_exeext
26933 if { (ac_try="$ac_link"
26934 case "(($ac_try" in
26935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26936 *) ac_try_echo=$ac_try;;
26937 esac
26938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26939 (eval "$ac_link") 2>conftest.er1
26940 ac_status=$?
26941 grep -v '^ *+' conftest.er1 >conftest.err
26942 rm -f conftest.er1
26943 cat conftest.err >&5
26944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945 (exit $ac_status); } && {
26946 test -z "$ac_c_werror_flag" ||
26947 test ! -s conftest.err
26948 } && test -s conftest$ac_exeext &&
26949 $as_test_x conftest$ac_exeext; then
26950 ac_cv_search_opendir=$ac_res
26951 else
26952 echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26959 conftest$ac_exeext
26960 if test "${ac_cv_search_opendir+set}" = set; then
26961 break
26963 done
26964 if test "${ac_cv_search_opendir+set}" = set; then
26966 else
26967 ac_cv_search_opendir=no
26969 rm conftest.$ac_ext
26970 LIBS=$ac_func_search_save_LIBS
26972 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26973 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26974 ac_res=$ac_cv_search_opendir
26975 if test "$ac_res" != no; then
26976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26980 else
26981 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26982 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26983 if test "${ac_cv_search_opendir+set}" = set; then
26984 echo $ECHO_N "(cached) $ECHO_C" >&6
26985 else
26986 ac_func_search_save_LIBS=$LIBS
26987 cat >conftest.$ac_ext <<_ACEOF
26988 /* confdefs.h. */
26989 _ACEOF
26990 cat confdefs.h >>conftest.$ac_ext
26991 cat >>conftest.$ac_ext <<_ACEOF
26992 /* end confdefs.h. */
26994 /* Override any GCC internal prototype to avoid an error.
26995 Use char because int might match the return type of a GCC
26996 builtin and then its argument prototype would still apply. */
26997 #ifdef __cplusplus
26998 extern "C"
26999 #endif
27000 char opendir ();
27002 main ()
27004 return opendir ();
27006 return 0;
27008 _ACEOF
27009 for ac_lib in '' x; do
27010 if test -z "$ac_lib"; then
27011 ac_res="none required"
27012 else
27013 ac_res=-l$ac_lib
27014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27016 rm -f conftest.$ac_objext conftest$ac_exeext
27017 if { (ac_try="$ac_link"
27018 case "(($ac_try" in
27019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27020 *) ac_try_echo=$ac_try;;
27021 esac
27022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27023 (eval "$ac_link") 2>conftest.er1
27024 ac_status=$?
27025 grep -v '^ *+' conftest.er1 >conftest.err
27026 rm -f conftest.er1
27027 cat conftest.err >&5
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); } && {
27030 test -z "$ac_c_werror_flag" ||
27031 test ! -s conftest.err
27032 } && test -s conftest$ac_exeext &&
27033 $as_test_x conftest$ac_exeext; then
27034 ac_cv_search_opendir=$ac_res
27035 else
27036 echo "$as_me: failed program was:" >&5
27037 sed 's/^/| /' conftest.$ac_ext >&5
27042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27043 conftest$ac_exeext
27044 if test "${ac_cv_search_opendir+set}" = set; then
27045 break
27047 done
27048 if test "${ac_cv_search_opendir+set}" = set; then
27050 else
27051 ac_cv_search_opendir=no
27053 rm conftest.$ac_ext
27054 LIBS=$ac_func_search_save_LIBS
27056 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27057 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27058 ac_res=$ac_cv_search_opendir
27059 if test "$ac_res" != no; then
27060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27066 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27067 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27068 if test "${ac_cv_header_mmap_anon+set}" = set; then
27069 echo $ECHO_N "(cached) $ECHO_C" >&6
27070 else
27071 ac_ext=c
27072 ac_cpp='$CPP $CPPFLAGS'
27073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27077 cat >conftest.$ac_ext <<_ACEOF
27078 /* confdefs.h. */
27079 _ACEOF
27080 cat confdefs.h >>conftest.$ac_ext
27081 cat >>conftest.$ac_ext <<_ACEOF
27082 /* end confdefs.h. */
27083 #include <sys/mman.h>
27084 #include <unistd.h>
27085 #include <fcntl.h>
27087 main ()
27089 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27091 return 0;
27093 _ACEOF
27094 rm -f conftest.$ac_objext
27095 if { (ac_try="$ac_compile"
27096 case "(($ac_try" in
27097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27098 *) ac_try_echo=$ac_try;;
27099 esac
27100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27101 (eval "$ac_compile") 2>conftest.er1
27102 ac_status=$?
27103 grep -v '^ *+' conftest.er1 >conftest.err
27104 rm -f conftest.er1
27105 cat conftest.err >&5
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); } && {
27108 test -z "$ac_c_werror_flag" ||
27109 test ! -s conftest.err
27110 } && test -s conftest.$ac_objext; then
27111 ac_cv_header_mmap_anon=yes
27112 else
27113 echo "$as_me: failed program was:" >&5
27114 sed 's/^/| /' conftest.$ac_ext >&5
27116 ac_cv_header_mmap_anon=no
27119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27120 ac_ext=c
27121 ac_cpp='$CPP $CPPFLAGS'
27122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27128 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27129 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27130 if test "$ac_cv_header_mmap_anon" = yes; then
27132 cat >>confdefs.h <<\_ACEOF
27133 #define HAVE_MMAP_ANONYMOUS 1
27134 _ACEOF
27138 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27139 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27140 if test "${ac_cv_header_stat_broken+set}" = set; then
27141 echo $ECHO_N "(cached) $ECHO_C" >&6
27142 else
27143 cat >conftest.$ac_ext <<_ACEOF
27144 /* confdefs.h. */
27145 _ACEOF
27146 cat confdefs.h >>conftest.$ac_ext
27147 cat >>conftest.$ac_ext <<_ACEOF
27148 /* end confdefs.h. */
27149 #include <sys/types.h>
27150 #include <sys/stat.h>
27152 #if defined S_ISBLK && defined S_IFDIR
27153 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
27154 #endif
27156 #if defined S_ISBLK && defined S_IFCHR
27157 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
27158 #endif
27160 #if defined S_ISLNK && defined S_IFREG
27161 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
27162 #endif
27164 #if defined S_ISSOCK && defined S_IFREG
27165 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
27166 #endif
27168 _ACEOF
27169 rm -f conftest.$ac_objext
27170 if { (ac_try="$ac_compile"
27171 case "(($ac_try" in
27172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173 *) ac_try_echo=$ac_try;;
27174 esac
27175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176 (eval "$ac_compile") 2>conftest.er1
27177 ac_status=$?
27178 grep -v '^ *+' conftest.er1 >conftest.err
27179 rm -f conftest.er1
27180 cat conftest.err >&5
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); } && {
27183 test -z "$ac_c_werror_flag" ||
27184 test ! -s conftest.err
27185 } && test -s conftest.$ac_objext; then
27186 ac_cv_header_stat_broken=no
27187 else
27188 echo "$as_me: failed program was:" >&5
27189 sed 's/^/| /' conftest.$ac_ext >&5
27191 ac_cv_header_stat_broken=yes
27194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27196 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27197 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27198 if test $ac_cv_header_stat_broken = yes; then
27200 cat >>confdefs.h <<\_ACEOF
27201 #define STAT_MACROS_BROKEN 1
27202 _ACEOF
27206 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27207 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27208 if test "${ac_cv_header_stdc+set}" = set; then
27209 echo $ECHO_N "(cached) $ECHO_C" >&6
27210 else
27211 cat >conftest.$ac_ext <<_ACEOF
27212 /* confdefs.h. */
27213 _ACEOF
27214 cat confdefs.h >>conftest.$ac_ext
27215 cat >>conftest.$ac_ext <<_ACEOF
27216 /* end confdefs.h. */
27217 #include <stdlib.h>
27218 #include <stdarg.h>
27219 #include <string.h>
27220 #include <float.h>
27223 main ()
27227 return 0;
27229 _ACEOF
27230 rm -f conftest.$ac_objext
27231 if { (ac_try="$ac_compile"
27232 case "(($ac_try" in
27233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27234 *) ac_try_echo=$ac_try;;
27235 esac
27236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27237 (eval "$ac_compile") 2>conftest.er1
27238 ac_status=$?
27239 grep -v '^ *+' conftest.er1 >conftest.err
27240 rm -f conftest.er1
27241 cat conftest.err >&5
27242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243 (exit $ac_status); } && {
27244 test -z "$ac_c_werror_flag" ||
27245 test ! -s conftest.err
27246 } && test -s conftest.$ac_objext; then
27247 ac_cv_header_stdc=yes
27248 else
27249 echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27252 ac_cv_header_stdc=no
27255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27257 if test $ac_cv_header_stdc = yes; then
27258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27259 cat >conftest.$ac_ext <<_ACEOF
27260 /* confdefs.h. */
27261 _ACEOF
27262 cat confdefs.h >>conftest.$ac_ext
27263 cat >>conftest.$ac_ext <<_ACEOF
27264 /* end confdefs.h. */
27265 #include <string.h>
27267 _ACEOF
27268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27269 $EGREP "memchr" >/dev/null 2>&1; then
27271 else
27272 ac_cv_header_stdc=no
27274 rm -f conftest*
27278 if test $ac_cv_header_stdc = yes; then
27279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27280 cat >conftest.$ac_ext <<_ACEOF
27281 /* confdefs.h. */
27282 _ACEOF
27283 cat confdefs.h >>conftest.$ac_ext
27284 cat >>conftest.$ac_ext <<_ACEOF
27285 /* end confdefs.h. */
27286 #include <stdlib.h>
27288 _ACEOF
27289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27290 $EGREP "free" >/dev/null 2>&1; then
27292 else
27293 ac_cv_header_stdc=no
27295 rm -f conftest*
27299 if test $ac_cv_header_stdc = yes; then
27300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27301 if test "$cross_compiling" = yes; then
27303 else
27304 cat >conftest.$ac_ext <<_ACEOF
27305 /* confdefs.h. */
27306 _ACEOF
27307 cat confdefs.h >>conftest.$ac_ext
27308 cat >>conftest.$ac_ext <<_ACEOF
27309 /* end confdefs.h. */
27310 #include <ctype.h>
27311 #include <stdlib.h>
27312 #if ((' ' & 0x0FF) == 0x020)
27313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27314 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27315 #else
27316 # define ISLOWER(c) \
27317 (('a' <= (c) && (c) <= 'i') \
27318 || ('j' <= (c) && (c) <= 'r') \
27319 || ('s' <= (c) && (c) <= 'z'))
27320 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27321 #endif
27323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27325 main ()
27327 int i;
27328 for (i = 0; i < 256; i++)
27329 if (XOR (islower (i), ISLOWER (i))
27330 || toupper (i) != TOUPPER (i))
27331 return 2;
27332 return 0;
27334 _ACEOF
27335 rm -f conftest$ac_exeext
27336 if { (ac_try="$ac_link"
27337 case "(($ac_try" in
27338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27339 *) ac_try_echo=$ac_try;;
27340 esac
27341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27342 (eval "$ac_link") 2>&5
27343 ac_status=$?
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27346 { (case "(($ac_try" in
27347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27348 *) ac_try_echo=$ac_try;;
27349 esac
27350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27351 (eval "$ac_try") 2>&5
27352 ac_status=$?
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); }; }; then
27356 else
27357 echo "$as_me: program exited with status $ac_status" >&5
27358 echo "$as_me: failed program was:" >&5
27359 sed 's/^/| /' conftest.$ac_ext >&5
27361 ( exit $ac_status )
27362 ac_cv_header_stdc=no
27364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27370 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27371 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
27372 if test $ac_cv_header_stdc = yes; then
27374 cat >>confdefs.h <<\_ACEOF
27375 #define STDC_HEADERS 1
27376 _ACEOF
27380 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27381 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
27382 if test "${ac_cv_header_sys_wait_h+set}" = set; then
27383 echo $ECHO_N "(cached) $ECHO_C" >&6
27384 else
27385 cat >conftest.$ac_ext <<_ACEOF
27386 /* confdefs.h. */
27387 _ACEOF
27388 cat confdefs.h >>conftest.$ac_ext
27389 cat >>conftest.$ac_ext <<_ACEOF
27390 /* end confdefs.h. */
27391 #include <sys/types.h>
27392 #include <sys/wait.h>
27393 #ifndef WEXITSTATUS
27394 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
27395 #endif
27396 #ifndef WIFEXITED
27397 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27398 #endif
27401 main ()
27403 int s;
27404 wait (&s);
27405 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27407 return 0;
27409 _ACEOF
27410 rm -f conftest.$ac_objext
27411 if { (ac_try="$ac_compile"
27412 case "(($ac_try" in
27413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27414 *) ac_try_echo=$ac_try;;
27415 esac
27416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27417 (eval "$ac_compile") 2>conftest.er1
27418 ac_status=$?
27419 grep -v '^ *+' conftest.er1 >conftest.err
27420 rm -f conftest.er1
27421 cat conftest.err >&5
27422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423 (exit $ac_status); } && {
27424 test -z "$ac_c_werror_flag" ||
27425 test ! -s conftest.err
27426 } && test -s conftest.$ac_objext; then
27427 ac_cv_header_sys_wait_h=yes
27428 else
27429 echo "$as_me: failed program was:" >&5
27430 sed 's/^/| /' conftest.$ac_ext >&5
27432 ac_cv_header_sys_wait_h=no
27435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27437 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27438 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
27439 if test $ac_cv_header_sys_wait_h = yes; then
27441 cat >>confdefs.h <<\_ACEOF
27442 #define HAVE_SYS_WAIT_H 1
27443 _ACEOF
27447 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27448 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
27449 if test "${ac_cv_header_time+set}" = set; then
27450 echo $ECHO_N "(cached) $ECHO_C" >&6
27451 else
27452 cat >conftest.$ac_ext <<_ACEOF
27453 /* confdefs.h. */
27454 _ACEOF
27455 cat confdefs.h >>conftest.$ac_ext
27456 cat >>conftest.$ac_ext <<_ACEOF
27457 /* end confdefs.h. */
27458 #include <sys/types.h>
27459 #include <sys/time.h>
27460 #include <time.h>
27463 main ()
27465 if ((struct tm *) 0)
27466 return 0;
27468 return 0;
27470 _ACEOF
27471 rm -f conftest.$ac_objext
27472 if { (ac_try="$ac_compile"
27473 case "(($ac_try" in
27474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475 *) ac_try_echo=$ac_try;;
27476 esac
27477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478 (eval "$ac_compile") 2>conftest.er1
27479 ac_status=$?
27480 grep -v '^ *+' conftest.er1 >conftest.err
27481 rm -f conftest.er1
27482 cat conftest.err >&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); } && {
27485 test -z "$ac_c_werror_flag" ||
27486 test ! -s conftest.err
27487 } && test -s conftest.$ac_objext; then
27488 ac_cv_header_time=yes
27489 else
27490 echo "$as_me: failed program was:" >&5
27491 sed 's/^/| /' conftest.$ac_ext >&5
27493 ac_cv_header_time=no
27496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27498 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27499 echo "${ECHO_T}$ac_cv_header_time" >&6; }
27500 if test $ac_cv_header_time = yes; then
27502 cat >>confdefs.h <<\_ACEOF
27503 #define TIME_WITH_SYS_TIME 1
27504 _ACEOF
27515 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27522 echo $ECHO_N "(cached) $ECHO_C" >&6
27524 ac_res=`eval echo '${'$as_ac_Header'}'`
27525 { echo "$as_me:$LINENO: result: $ac_res" >&5
27526 echo "${ECHO_T}$ac_res" >&6; }
27527 else
27528 # Is the header compilable?
27529 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27531 cat >conftest.$ac_ext <<_ACEOF
27532 /* confdefs.h. */
27533 _ACEOF
27534 cat confdefs.h >>conftest.$ac_ext
27535 cat >>conftest.$ac_ext <<_ACEOF
27536 /* end confdefs.h. */
27537 $ac_includes_default
27538 #include <$ac_header>
27539 _ACEOF
27540 rm -f conftest.$ac_objext
27541 if { (ac_try="$ac_compile"
27542 case "(($ac_try" in
27543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27544 *) ac_try_echo=$ac_try;;
27545 esac
27546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27547 (eval "$ac_compile") 2>conftest.er1
27548 ac_status=$?
27549 grep -v '^ *+' conftest.er1 >conftest.err
27550 rm -f conftest.er1
27551 cat conftest.err >&5
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); } && {
27554 test -z "$ac_c_werror_flag" ||
27555 test ! -s conftest.err
27556 } && test -s conftest.$ac_objext; then
27557 ac_header_compiler=yes
27558 else
27559 echo "$as_me: failed program was:" >&5
27560 sed 's/^/| /' conftest.$ac_ext >&5
27562 ac_header_compiler=no
27565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27567 echo "${ECHO_T}$ac_header_compiler" >&6; }
27569 # Is the header present?
27570 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27572 cat >conftest.$ac_ext <<_ACEOF
27573 /* confdefs.h. */
27574 _ACEOF
27575 cat confdefs.h >>conftest.$ac_ext
27576 cat >>conftest.$ac_ext <<_ACEOF
27577 /* end confdefs.h. */
27578 #include <$ac_header>
27579 _ACEOF
27580 if { (ac_try="$ac_cpp conftest.$ac_ext"
27581 case "(($ac_try" in
27582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583 *) ac_try_echo=$ac_try;;
27584 esac
27585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27587 ac_status=$?
27588 grep -v '^ *+' conftest.er1 >conftest.err
27589 rm -f conftest.er1
27590 cat conftest.err >&5
27591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592 (exit $ac_status); } >/dev/null && {
27593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27594 test ! -s conftest.err
27595 }; then
27596 ac_header_preproc=yes
27597 else
27598 echo "$as_me: failed program was:" >&5
27599 sed 's/^/| /' conftest.$ac_ext >&5
27601 ac_header_preproc=no
27604 rm -f conftest.err conftest.$ac_ext
27605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27606 echo "${ECHO_T}$ac_header_preproc" >&6; }
27608 # So? What about this header?
27609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27610 yes:no: )
27611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27615 ac_header_preproc=yes
27617 no:yes:* )
27618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27630 ( cat <<\_ASBOX
27631 ## ----------------------------------- ##
27632 ## Report this to llvmbugs@cs.uiuc.edu ##
27633 ## ----------------------------------- ##
27634 _ASBOX
27635 ) | sed "s/^/$as_me: WARNING: /" >&2
27637 esac
27638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27641 echo $ECHO_N "(cached) $ECHO_C" >&6
27642 else
27643 eval "$as_ac_Header=\$ac_header_preproc"
27645 ac_res=`eval echo '${'$as_ac_Header'}'`
27646 { echo "$as_me:$LINENO: result: $ac_res" >&5
27647 echo "${ECHO_T}$ac_res" >&6; }
27650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27651 cat >>confdefs.h <<_ACEOF
27652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27653 _ACEOF
27657 done
27665 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27672 echo $ECHO_N "(cached) $ECHO_C" >&6
27674 ac_res=`eval echo '${'$as_ac_Header'}'`
27675 { echo "$as_me:$LINENO: result: $ac_res" >&5
27676 echo "${ECHO_T}$ac_res" >&6; }
27677 else
27678 # Is the header compilable?
27679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27681 cat >conftest.$ac_ext <<_ACEOF
27682 /* confdefs.h. */
27683 _ACEOF
27684 cat confdefs.h >>conftest.$ac_ext
27685 cat >>conftest.$ac_ext <<_ACEOF
27686 /* end confdefs.h. */
27687 $ac_includes_default
27688 #include <$ac_header>
27689 _ACEOF
27690 rm -f conftest.$ac_objext
27691 if { (ac_try="$ac_compile"
27692 case "(($ac_try" in
27693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694 *) ac_try_echo=$ac_try;;
27695 esac
27696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27697 (eval "$ac_compile") 2>conftest.er1
27698 ac_status=$?
27699 grep -v '^ *+' conftest.er1 >conftest.err
27700 rm -f conftest.er1
27701 cat conftest.err >&5
27702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703 (exit $ac_status); } && {
27704 test -z "$ac_c_werror_flag" ||
27705 test ! -s conftest.err
27706 } && test -s conftest.$ac_objext; then
27707 ac_header_compiler=yes
27708 else
27709 echo "$as_me: failed program was:" >&5
27710 sed 's/^/| /' conftest.$ac_ext >&5
27712 ac_header_compiler=no
27715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27717 echo "${ECHO_T}$ac_header_compiler" >&6; }
27719 # Is the header present?
27720 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27722 cat >conftest.$ac_ext <<_ACEOF
27723 /* confdefs.h. */
27724 _ACEOF
27725 cat confdefs.h >>conftest.$ac_ext
27726 cat >>conftest.$ac_ext <<_ACEOF
27727 /* end confdefs.h. */
27728 #include <$ac_header>
27729 _ACEOF
27730 if { (ac_try="$ac_cpp conftest.$ac_ext"
27731 case "(($ac_try" in
27732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27733 *) ac_try_echo=$ac_try;;
27734 esac
27735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27737 ac_status=$?
27738 grep -v '^ *+' conftest.er1 >conftest.err
27739 rm -f conftest.er1
27740 cat conftest.err >&5
27741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742 (exit $ac_status); } >/dev/null && {
27743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27744 test ! -s conftest.err
27745 }; then
27746 ac_header_preproc=yes
27747 else
27748 echo "$as_me: failed program was:" >&5
27749 sed 's/^/| /' conftest.$ac_ext >&5
27751 ac_header_preproc=no
27754 rm -f conftest.err conftest.$ac_ext
27755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27756 echo "${ECHO_T}$ac_header_preproc" >&6; }
27758 # So? What about this header?
27759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27760 yes:no: )
27761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27765 ac_header_preproc=yes
27767 no:yes:* )
27768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27780 ( cat <<\_ASBOX
27781 ## ----------------------------------- ##
27782 ## Report this to llvmbugs@cs.uiuc.edu ##
27783 ## ----------------------------------- ##
27784 _ASBOX
27785 ) | sed "s/^/$as_me: WARNING: /" >&2
27787 esac
27788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27791 echo $ECHO_N "(cached) $ECHO_C" >&6
27792 else
27793 eval "$as_ac_Header=\$ac_header_preproc"
27795 ac_res=`eval echo '${'$as_ac_Header'}'`
27796 { echo "$as_me:$LINENO: result: $ac_res" >&5
27797 echo "${ECHO_T}$ac_res" >&6; }
27800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27801 cat >>confdefs.h <<_ACEOF
27802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27803 _ACEOF
27807 done
27810 for ac_header in windows.h
27812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27817 echo $ECHO_N "(cached) $ECHO_C" >&6
27819 ac_res=`eval echo '${'$as_ac_Header'}'`
27820 { echo "$as_me:$LINENO: result: $ac_res" >&5
27821 echo "${ECHO_T}$ac_res" >&6; }
27822 else
27823 # Is the header compilable?
27824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27826 cat >conftest.$ac_ext <<_ACEOF
27827 /* confdefs.h. */
27828 _ACEOF
27829 cat confdefs.h >>conftest.$ac_ext
27830 cat >>conftest.$ac_ext <<_ACEOF
27831 /* end confdefs.h. */
27832 $ac_includes_default
27833 #include <$ac_header>
27834 _ACEOF
27835 rm -f conftest.$ac_objext
27836 if { (ac_try="$ac_compile"
27837 case "(($ac_try" in
27838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27839 *) ac_try_echo=$ac_try;;
27840 esac
27841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27842 (eval "$ac_compile") 2>conftest.er1
27843 ac_status=$?
27844 grep -v '^ *+' conftest.er1 >conftest.err
27845 rm -f conftest.er1
27846 cat conftest.err >&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); } && {
27849 test -z "$ac_c_werror_flag" ||
27850 test ! -s conftest.err
27851 } && test -s conftest.$ac_objext; then
27852 ac_header_compiler=yes
27853 else
27854 echo "$as_me: failed program was:" >&5
27855 sed 's/^/| /' conftest.$ac_ext >&5
27857 ac_header_compiler=no
27860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27862 echo "${ECHO_T}$ac_header_compiler" >&6; }
27864 # Is the header present?
27865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27867 cat >conftest.$ac_ext <<_ACEOF
27868 /* confdefs.h. */
27869 _ACEOF
27870 cat confdefs.h >>conftest.$ac_ext
27871 cat >>conftest.$ac_ext <<_ACEOF
27872 /* end confdefs.h. */
27873 #include <$ac_header>
27874 _ACEOF
27875 if { (ac_try="$ac_cpp conftest.$ac_ext"
27876 case "(($ac_try" in
27877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27878 *) ac_try_echo=$ac_try;;
27879 esac
27880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27882 ac_status=$?
27883 grep -v '^ *+' conftest.er1 >conftest.err
27884 rm -f conftest.er1
27885 cat conftest.err >&5
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); } >/dev/null && {
27888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27889 test ! -s conftest.err
27890 }; then
27891 ac_header_preproc=yes
27892 else
27893 echo "$as_me: failed program was:" >&5
27894 sed 's/^/| /' conftest.$ac_ext >&5
27896 ac_header_preproc=no
27899 rm -f conftest.err conftest.$ac_ext
27900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27901 echo "${ECHO_T}$ac_header_preproc" >&6; }
27903 # So? What about this header?
27904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27905 yes:no: )
27906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27910 ac_header_preproc=yes
27912 no:yes:* )
27913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27925 ( cat <<\_ASBOX
27926 ## ----------------------------------- ##
27927 ## Report this to llvmbugs@cs.uiuc.edu ##
27928 ## ----------------------------------- ##
27929 _ASBOX
27930 ) | sed "s/^/$as_me: WARNING: /" >&2
27932 esac
27933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27936 echo $ECHO_N "(cached) $ECHO_C" >&6
27937 else
27938 eval "$as_ac_Header=\$ac_header_preproc"
27940 ac_res=`eval echo '${'$as_ac_Header'}'`
27941 { echo "$as_me:$LINENO: result: $ac_res" >&5
27942 echo "${ECHO_T}$ac_res" >&6; }
27945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27946 cat >>confdefs.h <<_ACEOF
27947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27948 _ACEOF
27952 done
27958 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
27960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27965 echo $ECHO_N "(cached) $ECHO_C" >&6
27967 ac_res=`eval echo '${'$as_ac_Header'}'`
27968 { echo "$as_me:$LINENO: result: $ac_res" >&5
27969 echo "${ECHO_T}$ac_res" >&6; }
27970 else
27971 # Is the header compilable?
27972 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27974 cat >conftest.$ac_ext <<_ACEOF
27975 /* confdefs.h. */
27976 _ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h. */
27980 $ac_includes_default
27981 #include <$ac_header>
27982 _ACEOF
27983 rm -f conftest.$ac_objext
27984 if { (ac_try="$ac_compile"
27985 case "(($ac_try" in
27986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27987 *) ac_try_echo=$ac_try;;
27988 esac
27989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27990 (eval "$ac_compile") 2>conftest.er1
27991 ac_status=$?
27992 grep -v '^ *+' conftest.er1 >conftest.err
27993 rm -f conftest.er1
27994 cat conftest.err >&5
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); } && {
27997 test -z "$ac_c_werror_flag" ||
27998 test ! -s conftest.err
27999 } && test -s conftest.$ac_objext; then
28000 ac_header_compiler=yes
28001 else
28002 echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28005 ac_header_compiler=no
28008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28010 echo "${ECHO_T}$ac_header_compiler" >&6; }
28012 # Is the header present?
28013 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28015 cat >conftest.$ac_ext <<_ACEOF
28016 /* confdefs.h. */
28017 _ACEOF
28018 cat confdefs.h >>conftest.$ac_ext
28019 cat >>conftest.$ac_ext <<_ACEOF
28020 /* end confdefs.h. */
28021 #include <$ac_header>
28022 _ACEOF
28023 if { (ac_try="$ac_cpp conftest.$ac_ext"
28024 case "(($ac_try" in
28025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28026 *) ac_try_echo=$ac_try;;
28027 esac
28028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28030 ac_status=$?
28031 grep -v '^ *+' conftest.er1 >conftest.err
28032 rm -f conftest.er1
28033 cat conftest.err >&5
28034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035 (exit $ac_status); } >/dev/null && {
28036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28037 test ! -s conftest.err
28038 }; then
28039 ac_header_preproc=yes
28040 else
28041 echo "$as_me: failed program was:" >&5
28042 sed 's/^/| /' conftest.$ac_ext >&5
28044 ac_header_preproc=no
28047 rm -f conftest.err conftest.$ac_ext
28048 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28049 echo "${ECHO_T}$ac_header_preproc" >&6; }
28051 # So? What about this header?
28052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28053 yes:no: )
28054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28058 ac_header_preproc=yes
28060 no:yes:* )
28061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28073 ( cat <<\_ASBOX
28074 ## ----------------------------------- ##
28075 ## Report this to llvmbugs@cs.uiuc.edu ##
28076 ## ----------------------------------- ##
28077 _ASBOX
28078 ) | sed "s/^/$as_me: WARNING: /" >&2
28080 esac
28081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28084 echo $ECHO_N "(cached) $ECHO_C" >&6
28085 else
28086 eval "$as_ac_Header=\$ac_header_preproc"
28088 ac_res=`eval echo '${'$as_ac_Header'}'`
28089 { echo "$as_me:$LINENO: result: $ac_res" >&5
28090 echo "${ECHO_T}$ac_res" >&6; }
28093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28094 cat >>confdefs.h <<_ACEOF
28095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28096 _ACEOF
28100 done
28105 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28112 echo $ECHO_N "(cached) $ECHO_C" >&6
28114 ac_res=`eval echo '${'$as_ac_Header'}'`
28115 { echo "$as_me:$LINENO: result: $ac_res" >&5
28116 echo "${ECHO_T}$ac_res" >&6; }
28117 else
28118 # Is the header compilable?
28119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28121 cat >conftest.$ac_ext <<_ACEOF
28122 /* confdefs.h. */
28123 _ACEOF
28124 cat confdefs.h >>conftest.$ac_ext
28125 cat >>conftest.$ac_ext <<_ACEOF
28126 /* end confdefs.h. */
28127 $ac_includes_default
28128 #include <$ac_header>
28129 _ACEOF
28130 rm -f conftest.$ac_objext
28131 if { (ac_try="$ac_compile"
28132 case "(($ac_try" in
28133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28134 *) ac_try_echo=$ac_try;;
28135 esac
28136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28137 (eval "$ac_compile") 2>conftest.er1
28138 ac_status=$?
28139 grep -v '^ *+' conftest.er1 >conftest.err
28140 rm -f conftest.er1
28141 cat conftest.err >&5
28142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143 (exit $ac_status); } && {
28144 test -z "$ac_c_werror_flag" ||
28145 test ! -s conftest.err
28146 } && test -s conftest.$ac_objext; then
28147 ac_header_compiler=yes
28148 else
28149 echo "$as_me: failed program was:" >&5
28150 sed 's/^/| /' conftest.$ac_ext >&5
28152 ac_header_compiler=no
28155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28157 echo "${ECHO_T}$ac_header_compiler" >&6; }
28159 # Is the header present?
28160 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28162 cat >conftest.$ac_ext <<_ACEOF
28163 /* confdefs.h. */
28164 _ACEOF
28165 cat confdefs.h >>conftest.$ac_ext
28166 cat >>conftest.$ac_ext <<_ACEOF
28167 /* end confdefs.h. */
28168 #include <$ac_header>
28169 _ACEOF
28170 if { (ac_try="$ac_cpp conftest.$ac_ext"
28171 case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28174 esac
28175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28177 ac_status=$?
28178 grep -v '^ *+' conftest.er1 >conftest.err
28179 rm -f conftest.er1
28180 cat conftest.err >&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); } >/dev/null && {
28183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28184 test ! -s conftest.err
28185 }; then
28186 ac_header_preproc=yes
28187 else
28188 echo "$as_me: failed program was:" >&5
28189 sed 's/^/| /' conftest.$ac_ext >&5
28191 ac_header_preproc=no
28194 rm -f conftest.err conftest.$ac_ext
28195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28196 echo "${ECHO_T}$ac_header_preproc" >&6; }
28198 # So? What about this header?
28199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28200 yes:no: )
28201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28205 ac_header_preproc=yes
28207 no:yes:* )
28208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28220 ( cat <<\_ASBOX
28221 ## ----------------------------------- ##
28222 ## Report this to llvmbugs@cs.uiuc.edu ##
28223 ## ----------------------------------- ##
28224 _ASBOX
28225 ) | sed "s/^/$as_me: WARNING: /" >&2
28227 esac
28228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28231 echo $ECHO_N "(cached) $ECHO_C" >&6
28232 else
28233 eval "$as_ac_Header=\$ac_header_preproc"
28235 ac_res=`eval echo '${'$as_ac_Header'}'`
28236 { echo "$as_me:$LINENO: result: $ac_res" >&5
28237 echo "${ECHO_T}$ac_res" >&6; }
28240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28241 cat >>confdefs.h <<_ACEOF
28242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28243 _ACEOF
28247 done
28249 if test "$ENABLE_THREADS" -eq 1 ; then
28251 for ac_header in pthread.h
28253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28258 echo $ECHO_N "(cached) $ECHO_C" >&6
28260 ac_res=`eval echo '${'$as_ac_Header'}'`
28261 { echo "$as_me:$LINENO: result: $ac_res" >&5
28262 echo "${ECHO_T}$ac_res" >&6; }
28263 else
28264 # Is the header compilable?
28265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28267 cat >conftest.$ac_ext <<_ACEOF
28268 /* confdefs.h. */
28269 _ACEOF
28270 cat confdefs.h >>conftest.$ac_ext
28271 cat >>conftest.$ac_ext <<_ACEOF
28272 /* end confdefs.h. */
28273 $ac_includes_default
28274 #include <$ac_header>
28275 _ACEOF
28276 rm -f conftest.$ac_objext
28277 if { (ac_try="$ac_compile"
28278 case "(($ac_try" in
28279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28280 *) ac_try_echo=$ac_try;;
28281 esac
28282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28283 (eval "$ac_compile") 2>conftest.er1
28284 ac_status=$?
28285 grep -v '^ *+' conftest.er1 >conftest.err
28286 rm -f conftest.er1
28287 cat conftest.err >&5
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); } && {
28290 test -z "$ac_c_werror_flag" ||
28291 test ! -s conftest.err
28292 } && test -s conftest.$ac_objext; then
28293 ac_header_compiler=yes
28294 else
28295 echo "$as_me: failed program was:" >&5
28296 sed 's/^/| /' conftest.$ac_ext >&5
28298 ac_header_compiler=no
28301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28303 echo "${ECHO_T}$ac_header_compiler" >&6; }
28305 # Is the header present?
28306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28308 cat >conftest.$ac_ext <<_ACEOF
28309 /* confdefs.h. */
28310 _ACEOF
28311 cat confdefs.h >>conftest.$ac_ext
28312 cat >>conftest.$ac_ext <<_ACEOF
28313 /* end confdefs.h. */
28314 #include <$ac_header>
28315 _ACEOF
28316 if { (ac_try="$ac_cpp conftest.$ac_ext"
28317 case "(($ac_try" in
28318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28319 *) ac_try_echo=$ac_try;;
28320 esac
28321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28323 ac_status=$?
28324 grep -v '^ *+' conftest.er1 >conftest.err
28325 rm -f conftest.er1
28326 cat conftest.err >&5
28327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328 (exit $ac_status); } >/dev/null && {
28329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28330 test ! -s conftest.err
28331 }; then
28332 ac_header_preproc=yes
28333 else
28334 echo "$as_me: failed program was:" >&5
28335 sed 's/^/| /' conftest.$ac_ext >&5
28337 ac_header_preproc=no
28340 rm -f conftest.err conftest.$ac_ext
28341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28342 echo "${ECHO_T}$ac_header_preproc" >&6; }
28344 # So? What about this header?
28345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28346 yes:no: )
28347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28351 ac_header_preproc=yes
28353 no:yes:* )
28354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28366 ( cat <<\_ASBOX
28367 ## ----------------------------------- ##
28368 ## Report this to llvmbugs@cs.uiuc.edu ##
28369 ## ----------------------------------- ##
28370 _ASBOX
28371 ) | sed "s/^/$as_me: WARNING: /" >&2
28373 esac
28374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28377 echo $ECHO_N "(cached) $ECHO_C" >&6
28378 else
28379 eval "$as_ac_Header=\$ac_header_preproc"
28381 ac_res=`eval echo '${'$as_ac_Header'}'`
28382 { echo "$as_me:$LINENO: result: $ac_res" >&5
28383 echo "${ECHO_T}$ac_res" >&6; }
28386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28387 cat >>confdefs.h <<_ACEOF
28388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28389 _ACEOF
28390 HAVE_PTHREAD=1
28392 else
28393 HAVE_PTHREAD=0
28397 done
28399 else
28400 HAVE_PTHREAD=0
28404 if test "${ac_cv_header_ffi_ffi_h+set}" = set; then
28405 { echo "$as_me:$LINENO: checking for ffi/ffi.h" >&5
28406 echo $ECHO_N "checking for ffi/ffi.h... $ECHO_C" >&6; }
28407 if test "${ac_cv_header_ffi_ffi_h+set}" = set; then
28408 echo $ECHO_N "(cached) $ECHO_C" >&6
28410 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_ffi_h" >&5
28411 echo "${ECHO_T}$ac_cv_header_ffi_ffi_h" >&6; }
28412 else
28413 # Is the header compilable?
28414 { echo "$as_me:$LINENO: checking ffi/ffi.h usability" >&5
28415 echo $ECHO_N "checking ffi/ffi.h usability... $ECHO_C" >&6; }
28416 cat >conftest.$ac_ext <<_ACEOF
28417 /* confdefs.h. */
28418 _ACEOF
28419 cat confdefs.h >>conftest.$ac_ext
28420 cat >>conftest.$ac_ext <<_ACEOF
28421 /* end confdefs.h. */
28422 $ac_includes_default
28423 #include <ffi/ffi.h>
28424 _ACEOF
28425 rm -f conftest.$ac_objext
28426 if { (ac_try="$ac_compile"
28427 case "(($ac_try" in
28428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429 *) ac_try_echo=$ac_try;;
28430 esac
28431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432 (eval "$ac_compile") 2>conftest.er1
28433 ac_status=$?
28434 grep -v '^ *+' conftest.er1 >conftest.err
28435 rm -f conftest.er1
28436 cat conftest.err >&5
28437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438 (exit $ac_status); } && {
28439 test -z "$ac_c_werror_flag" ||
28440 test ! -s conftest.err
28441 } && test -s conftest.$ac_objext; then
28442 ac_header_compiler=yes
28443 else
28444 echo "$as_me: failed program was:" >&5
28445 sed 's/^/| /' conftest.$ac_ext >&5
28447 ac_header_compiler=no
28450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28452 echo "${ECHO_T}$ac_header_compiler" >&6; }
28454 # Is the header present?
28455 { echo "$as_me:$LINENO: checking ffi/ffi.h presence" >&5
28456 echo $ECHO_N "checking ffi/ffi.h presence... $ECHO_C" >&6; }
28457 cat >conftest.$ac_ext <<_ACEOF
28458 /* confdefs.h. */
28459 _ACEOF
28460 cat confdefs.h >>conftest.$ac_ext
28461 cat >>conftest.$ac_ext <<_ACEOF
28462 /* end confdefs.h. */
28463 #include <ffi/ffi.h>
28464 _ACEOF
28465 if { (ac_try="$ac_cpp conftest.$ac_ext"
28466 case "(($ac_try" in
28467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28468 *) ac_try_echo=$ac_try;;
28469 esac
28470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28472 ac_status=$?
28473 grep -v '^ *+' conftest.er1 >conftest.err
28474 rm -f conftest.er1
28475 cat conftest.err >&5
28476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 (exit $ac_status); } >/dev/null && {
28478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28479 test ! -s conftest.err
28480 }; then
28481 ac_header_preproc=yes
28482 else
28483 echo "$as_me: failed program was:" >&5
28484 sed 's/^/| /' conftest.$ac_ext >&5
28486 ac_header_preproc=no
28489 rm -f conftest.err conftest.$ac_ext
28490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28491 echo "${ECHO_T}$ac_header_preproc" >&6; }
28493 # So? What about this header?
28494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28495 yes:no: )
28496 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
28497 echo "$as_me: WARNING: ffi/ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28498 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: proceeding with the compiler's result" >&5
28499 echo "$as_me: WARNING: ffi/ffi.h: proceeding with the compiler's result" >&2;}
28500 ac_header_preproc=yes
28502 no:yes:* )
28503 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: present but cannot be compiled" >&5
28504 echo "$as_me: WARNING: ffi/ffi.h: present but cannot be compiled" >&2;}
28505 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: check for missing prerequisite headers?" >&5
28506 echo "$as_me: WARNING: ffi/ffi.h: check for missing prerequisite headers?" >&2;}
28507 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: see the Autoconf documentation" >&5
28508 echo "$as_me: WARNING: ffi/ffi.h: see the Autoconf documentation" >&2;}
28509 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: section \"Present But Cannot Be Compiled\"" >&5
28510 echo "$as_me: WARNING: ffi/ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
28511 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: proceeding with the preprocessor's result" >&5
28512 echo "$as_me: WARNING: ffi/ffi.h: proceeding with the preprocessor's result" >&2;}
28513 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: in the future, the compiler will take precedence" >&5
28514 echo "$as_me: WARNING: ffi/ffi.h: in the future, the compiler will take precedence" >&2;}
28515 ( cat <<\_ASBOX
28516 ## ----------------------------------- ##
28517 ## Report this to llvmbugs@cs.uiuc.edu ##
28518 ## ----------------------------------- ##
28519 _ASBOX
28520 ) | sed "s/^/$as_me: WARNING: /" >&2
28522 esac
28523 { echo "$as_me:$LINENO: checking for ffi/ffi.h" >&5
28524 echo $ECHO_N "checking for ffi/ffi.h... $ECHO_C" >&6; }
28525 if test "${ac_cv_header_ffi_ffi_h+set}" = set; then
28526 echo $ECHO_N "(cached) $ECHO_C" >&6
28527 else
28528 ac_cv_header_ffi_ffi_h=$ac_header_preproc
28530 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_ffi_h" >&5
28531 echo "${ECHO_T}$ac_cv_header_ffi_ffi_h" >&6; }
28534 if test $ac_cv_header_ffi_ffi_h = yes; then
28536 cat >>confdefs.h <<\_ACEOF
28537 #define FFI_HEADER "ffi/ffi.h"
28538 _ACEOF
28543 if test "${ac_cv_header_ffi_h+set}" = set; then
28544 { echo "$as_me:$LINENO: checking for ffi.h" >&5
28545 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
28546 if test "${ac_cv_header_ffi_h+set}" = set; then
28547 echo $ECHO_N "(cached) $ECHO_C" >&6
28549 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
28550 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
28551 else
28552 # Is the header compilable?
28553 { echo "$as_me:$LINENO: checking ffi.h usability" >&5
28554 echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6; }
28555 cat >conftest.$ac_ext <<_ACEOF
28556 /* confdefs.h. */
28557 _ACEOF
28558 cat confdefs.h >>conftest.$ac_ext
28559 cat >>conftest.$ac_ext <<_ACEOF
28560 /* end confdefs.h. */
28561 $ac_includes_default
28562 #include <ffi.h>
28563 _ACEOF
28564 rm -f conftest.$ac_objext
28565 if { (ac_try="$ac_compile"
28566 case "(($ac_try" in
28567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28568 *) ac_try_echo=$ac_try;;
28569 esac
28570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28571 (eval "$ac_compile") 2>conftest.er1
28572 ac_status=$?
28573 grep -v '^ *+' conftest.er1 >conftest.err
28574 rm -f conftest.er1
28575 cat conftest.err >&5
28576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); } && {
28578 test -z "$ac_c_werror_flag" ||
28579 test ! -s conftest.err
28580 } && test -s conftest.$ac_objext; then
28581 ac_header_compiler=yes
28582 else
28583 echo "$as_me: failed program was:" >&5
28584 sed 's/^/| /' conftest.$ac_ext >&5
28586 ac_header_compiler=no
28589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28591 echo "${ECHO_T}$ac_header_compiler" >&6; }
28593 # Is the header present?
28594 { echo "$as_me:$LINENO: checking ffi.h presence" >&5
28595 echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6; }
28596 cat >conftest.$ac_ext <<_ACEOF
28597 /* confdefs.h. */
28598 _ACEOF
28599 cat confdefs.h >>conftest.$ac_ext
28600 cat >>conftest.$ac_ext <<_ACEOF
28601 /* end confdefs.h. */
28602 #include <ffi.h>
28603 _ACEOF
28604 if { (ac_try="$ac_cpp conftest.$ac_ext"
28605 case "(($ac_try" in
28606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607 *) ac_try_echo=$ac_try;;
28608 esac
28609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28611 ac_status=$?
28612 grep -v '^ *+' conftest.er1 >conftest.err
28613 rm -f conftest.er1
28614 cat conftest.err >&5
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); } >/dev/null && {
28617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28618 test ! -s conftest.err
28619 }; then
28620 ac_header_preproc=yes
28621 else
28622 echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28625 ac_header_preproc=no
28628 rm -f conftest.err conftest.$ac_ext
28629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28630 echo "${ECHO_T}$ac_header_preproc" >&6; }
28632 # So? What about this header?
28633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28634 yes:no: )
28635 { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
28636 echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28637 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5
28638 echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;}
28639 ac_header_preproc=yes
28641 no:yes:* )
28642 { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
28643 echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
28644 { echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
28645 echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
28646 { echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5
28647 echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;}
28648 { echo "$as_me:$LINENO: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&5
28649 echo "$as_me: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
28650 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
28651 echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
28652 { echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5
28653 echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;}
28654 ( cat <<\_ASBOX
28655 ## ----------------------------------- ##
28656 ## Report this to llvmbugs@cs.uiuc.edu ##
28657 ## ----------------------------------- ##
28658 _ASBOX
28659 ) | sed "s/^/$as_me: WARNING: /" >&2
28661 esac
28662 { echo "$as_me:$LINENO: checking for ffi.h" >&5
28663 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
28664 if test "${ac_cv_header_ffi_h+set}" = set; then
28665 echo $ECHO_N "(cached) $ECHO_C" >&6
28666 else
28667 ac_cv_header_ffi_h=$ac_header_preproc
28669 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
28670 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
28673 if test $ac_cv_header_ffi_h = yes; then
28675 cat >>confdefs.h <<\_ACEOF
28676 #define FFI_HEADER "ffi.h"
28677 _ACEOF
28686 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28687 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28688 if test "${ac_cv_huge_val_sanity+set}" = set; then
28689 echo $ECHO_N "(cached) $ECHO_C" >&6
28690 else
28692 ac_ext=cpp
28693 ac_cpp='$CXXCPP $CPPFLAGS'
28694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28698 CXXFLAGS=-pedantic
28699 if test "$cross_compiling" = yes; then
28700 ac_cv_huge_val_sanity=yes
28701 else
28702 cat >conftest.$ac_ext <<_ACEOF
28703 /* confdefs.h. */
28704 _ACEOF
28705 cat confdefs.h >>conftest.$ac_ext
28706 cat >>conftest.$ac_ext <<_ACEOF
28707 /* end confdefs.h. */
28708 #include <math.h>
28710 main ()
28712 double x = HUGE_VAL; return x != x;
28714 return 0;
28716 _ACEOF
28717 rm -f conftest$ac_exeext
28718 if { (ac_try="$ac_link"
28719 case "(($ac_try" in
28720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721 *) ac_try_echo=$ac_try;;
28722 esac
28723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724 (eval "$ac_link") 2>&5
28725 ac_status=$?
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28728 { (case "(($ac_try" in
28729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730 *) ac_try_echo=$ac_try;;
28731 esac
28732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733 (eval "$ac_try") 2>&5
28734 ac_status=$?
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); }; }; then
28737 ac_cv_huge_val_sanity=yes
28738 else
28739 echo "$as_me: program exited with status $ac_status" >&5
28740 echo "$as_me: failed program was:" >&5
28741 sed 's/^/| /' conftest.$ac_ext >&5
28743 ( exit $ac_status )
28744 ac_cv_huge_val_sanity=no
28746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28750 ac_ext=c
28751 ac_cpp='$CPP $CPPFLAGS'
28752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28758 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28759 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28760 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28763 { echo "$as_me:$LINENO: checking for pid_t" >&5
28764 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
28765 if test "${ac_cv_type_pid_t+set}" = set; then
28766 echo $ECHO_N "(cached) $ECHO_C" >&6
28767 else
28768 cat >conftest.$ac_ext <<_ACEOF
28769 /* confdefs.h. */
28770 _ACEOF
28771 cat confdefs.h >>conftest.$ac_ext
28772 cat >>conftest.$ac_ext <<_ACEOF
28773 /* end confdefs.h. */
28774 $ac_includes_default
28775 typedef pid_t ac__type_new_;
28777 main ()
28779 if ((ac__type_new_ *) 0)
28780 return 0;
28781 if (sizeof (ac__type_new_))
28782 return 0;
28784 return 0;
28786 _ACEOF
28787 rm -f conftest.$ac_objext
28788 if { (ac_try="$ac_compile"
28789 case "(($ac_try" in
28790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28791 *) ac_try_echo=$ac_try;;
28792 esac
28793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28794 (eval "$ac_compile") 2>conftest.er1
28795 ac_status=$?
28796 grep -v '^ *+' conftest.er1 >conftest.err
28797 rm -f conftest.er1
28798 cat conftest.err >&5
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); } && {
28801 test -z "$ac_c_werror_flag" ||
28802 test ! -s conftest.err
28803 } && test -s conftest.$ac_objext; then
28804 ac_cv_type_pid_t=yes
28805 else
28806 echo "$as_me: failed program was:" >&5
28807 sed 's/^/| /' conftest.$ac_ext >&5
28809 ac_cv_type_pid_t=no
28812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28814 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28815 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
28816 if test $ac_cv_type_pid_t = yes; then
28818 else
28820 cat >>confdefs.h <<_ACEOF
28821 #define pid_t int
28822 _ACEOF
28826 { echo "$as_me:$LINENO: checking for size_t" >&5
28827 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28828 if test "${ac_cv_type_size_t+set}" = set; then
28829 echo $ECHO_N "(cached) $ECHO_C" >&6
28830 else
28831 cat >conftest.$ac_ext <<_ACEOF
28832 /* confdefs.h. */
28833 _ACEOF
28834 cat confdefs.h >>conftest.$ac_ext
28835 cat >>conftest.$ac_ext <<_ACEOF
28836 /* end confdefs.h. */
28837 $ac_includes_default
28838 typedef size_t ac__type_new_;
28840 main ()
28842 if ((ac__type_new_ *) 0)
28843 return 0;
28844 if (sizeof (ac__type_new_))
28845 return 0;
28847 return 0;
28849 _ACEOF
28850 rm -f conftest.$ac_objext
28851 if { (ac_try="$ac_compile"
28852 case "(($ac_try" in
28853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28854 *) ac_try_echo=$ac_try;;
28855 esac
28856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28857 (eval "$ac_compile") 2>conftest.er1
28858 ac_status=$?
28859 grep -v '^ *+' conftest.er1 >conftest.err
28860 rm -f conftest.er1
28861 cat conftest.err >&5
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); } && {
28864 test -z "$ac_c_werror_flag" ||
28865 test ! -s conftest.err
28866 } && test -s conftest.$ac_objext; then
28867 ac_cv_type_size_t=yes
28868 else
28869 echo "$as_me: failed program was:" >&5
28870 sed 's/^/| /' conftest.$ac_ext >&5
28872 ac_cv_type_size_t=no
28875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28877 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28878 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28879 if test $ac_cv_type_size_t = yes; then
28881 else
28883 cat >>confdefs.h <<_ACEOF
28884 #define size_t unsigned int
28885 _ACEOF
28889 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28890 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
28891 if test "${ac_cv_type_signal+set}" = set; then
28892 echo $ECHO_N "(cached) $ECHO_C" >&6
28893 else
28894 cat >conftest.$ac_ext <<_ACEOF
28895 /* confdefs.h. */
28896 _ACEOF
28897 cat confdefs.h >>conftest.$ac_ext
28898 cat >>conftest.$ac_ext <<_ACEOF
28899 /* end confdefs.h. */
28900 #include <sys/types.h>
28901 #include <signal.h>
28904 main ()
28906 return *(signal (0, 0)) (0) == 1;
28908 return 0;
28910 _ACEOF
28911 rm -f conftest.$ac_objext
28912 if { (ac_try="$ac_compile"
28913 case "(($ac_try" in
28914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28915 *) ac_try_echo=$ac_try;;
28916 esac
28917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28918 (eval "$ac_compile") 2>conftest.er1
28919 ac_status=$?
28920 grep -v '^ *+' conftest.er1 >conftest.err
28921 rm -f conftest.er1
28922 cat conftest.err >&5
28923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924 (exit $ac_status); } && {
28925 test -z "$ac_c_werror_flag" ||
28926 test ! -s conftest.err
28927 } && test -s conftest.$ac_objext; then
28928 ac_cv_type_signal=int
28929 else
28930 echo "$as_me: failed program was:" >&5
28931 sed 's/^/| /' conftest.$ac_ext >&5
28933 ac_cv_type_signal=void
28936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28938 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28939 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
28941 cat >>confdefs.h <<_ACEOF
28942 #define RETSIGTYPE $ac_cv_type_signal
28943 _ACEOF
28946 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28947 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
28948 if test "${ac_cv_struct_tm+set}" = set; then
28949 echo $ECHO_N "(cached) $ECHO_C" >&6
28950 else
28951 cat >conftest.$ac_ext <<_ACEOF
28952 /* confdefs.h. */
28953 _ACEOF
28954 cat confdefs.h >>conftest.$ac_ext
28955 cat >>conftest.$ac_ext <<_ACEOF
28956 /* end confdefs.h. */
28957 #include <sys/types.h>
28958 #include <time.h>
28961 main ()
28963 struct tm tm;
28964 int *p = &tm.tm_sec;
28965 return !p;
28967 return 0;
28969 _ACEOF
28970 rm -f conftest.$ac_objext
28971 if { (ac_try="$ac_compile"
28972 case "(($ac_try" in
28973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974 *) ac_try_echo=$ac_try;;
28975 esac
28976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28977 (eval "$ac_compile") 2>conftest.er1
28978 ac_status=$?
28979 grep -v '^ *+' conftest.er1 >conftest.err
28980 rm -f conftest.er1
28981 cat conftest.err >&5
28982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983 (exit $ac_status); } && {
28984 test -z "$ac_c_werror_flag" ||
28985 test ! -s conftest.err
28986 } && test -s conftest.$ac_objext; then
28987 ac_cv_struct_tm=time.h
28988 else
28989 echo "$as_me: failed program was:" >&5
28990 sed 's/^/| /' conftest.$ac_ext >&5
28992 ac_cv_struct_tm=sys/time.h
28995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28997 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28998 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
28999 if test $ac_cv_struct_tm = sys/time.h; then
29001 cat >>confdefs.h <<\_ACEOF
29002 #define TM_IN_SYS_TIME 1
29003 _ACEOF
29007 { echo "$as_me:$LINENO: checking for int64_t" >&5
29008 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29009 if test "${ac_cv_type_int64_t+set}" = set; then
29010 echo $ECHO_N "(cached) $ECHO_C" >&6
29011 else
29012 cat >conftest.$ac_ext <<_ACEOF
29013 /* confdefs.h. */
29014 _ACEOF
29015 cat confdefs.h >>conftest.$ac_ext
29016 cat >>conftest.$ac_ext <<_ACEOF
29017 /* end confdefs.h. */
29018 $ac_includes_default
29019 typedef int64_t ac__type_new_;
29021 main ()
29023 if ((ac__type_new_ *) 0)
29024 return 0;
29025 if (sizeof (ac__type_new_))
29026 return 0;
29028 return 0;
29030 _ACEOF
29031 rm -f conftest.$ac_objext
29032 if { (ac_try="$ac_compile"
29033 case "(($ac_try" in
29034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29035 *) ac_try_echo=$ac_try;;
29036 esac
29037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29038 (eval "$ac_compile") 2>conftest.er1
29039 ac_status=$?
29040 grep -v '^ *+' conftest.er1 >conftest.err
29041 rm -f conftest.er1
29042 cat conftest.err >&5
29043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044 (exit $ac_status); } && {
29045 test -z "$ac_c_werror_flag" ||
29046 test ! -s conftest.err
29047 } && test -s conftest.$ac_objext; then
29048 ac_cv_type_int64_t=yes
29049 else
29050 echo "$as_me: failed program was:" >&5
29051 sed 's/^/| /' conftest.$ac_ext >&5
29053 ac_cv_type_int64_t=no
29056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29058 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29059 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29060 if test $ac_cv_type_int64_t = yes; then
29062 cat >>confdefs.h <<_ACEOF
29063 #define HAVE_INT64_T 1
29064 _ACEOF
29067 else
29068 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29069 echo "$as_me: error: Type int64_t required but not found" >&2;}
29070 { (exit 1); exit 1; }; }
29073 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29074 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29075 if test "${ac_cv_type_uint64_t+set}" = set; then
29076 echo $ECHO_N "(cached) $ECHO_C" >&6
29077 else
29078 cat >conftest.$ac_ext <<_ACEOF
29079 /* confdefs.h. */
29080 _ACEOF
29081 cat confdefs.h >>conftest.$ac_ext
29082 cat >>conftest.$ac_ext <<_ACEOF
29083 /* end confdefs.h. */
29084 $ac_includes_default
29085 typedef uint64_t ac__type_new_;
29087 main ()
29089 if ((ac__type_new_ *) 0)
29090 return 0;
29091 if (sizeof (ac__type_new_))
29092 return 0;
29094 return 0;
29096 _ACEOF
29097 rm -f conftest.$ac_objext
29098 if { (ac_try="$ac_compile"
29099 case "(($ac_try" in
29100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29101 *) ac_try_echo=$ac_try;;
29102 esac
29103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29104 (eval "$ac_compile") 2>conftest.er1
29105 ac_status=$?
29106 grep -v '^ *+' conftest.er1 >conftest.err
29107 rm -f conftest.er1
29108 cat conftest.err >&5
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); } && {
29111 test -z "$ac_c_werror_flag" ||
29112 test ! -s conftest.err
29113 } && test -s conftest.$ac_objext; then
29114 ac_cv_type_uint64_t=yes
29115 else
29116 echo "$as_me: failed program was:" >&5
29117 sed 's/^/| /' conftest.$ac_ext >&5
29119 ac_cv_type_uint64_t=no
29122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29124 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29125 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29126 if test $ac_cv_type_uint64_t = yes; then
29128 cat >>confdefs.h <<_ACEOF
29129 #define HAVE_UINT64_T 1
29130 _ACEOF
29133 else
29134 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29135 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29136 if test "${ac_cv_type_u_int64_t+set}" = set; then
29137 echo $ECHO_N "(cached) $ECHO_C" >&6
29138 else
29139 cat >conftest.$ac_ext <<_ACEOF
29140 /* confdefs.h. */
29141 _ACEOF
29142 cat confdefs.h >>conftest.$ac_ext
29143 cat >>conftest.$ac_ext <<_ACEOF
29144 /* end confdefs.h. */
29145 $ac_includes_default
29146 typedef u_int64_t ac__type_new_;
29148 main ()
29150 if ((ac__type_new_ *) 0)
29151 return 0;
29152 if (sizeof (ac__type_new_))
29153 return 0;
29155 return 0;
29157 _ACEOF
29158 rm -f conftest.$ac_objext
29159 if { (ac_try="$ac_compile"
29160 case "(($ac_try" in
29161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162 *) ac_try_echo=$ac_try;;
29163 esac
29164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29165 (eval "$ac_compile") 2>conftest.er1
29166 ac_status=$?
29167 grep -v '^ *+' conftest.er1 >conftest.err
29168 rm -f conftest.er1
29169 cat conftest.err >&5
29170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171 (exit $ac_status); } && {
29172 test -z "$ac_c_werror_flag" ||
29173 test ! -s conftest.err
29174 } && test -s conftest.$ac_objext; then
29175 ac_cv_type_u_int64_t=yes
29176 else
29177 echo "$as_me: failed program was:" >&5
29178 sed 's/^/| /' conftest.$ac_ext >&5
29180 ac_cv_type_u_int64_t=no
29183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29185 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29186 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29187 if test $ac_cv_type_u_int64_t = yes; then
29189 cat >>confdefs.h <<_ACEOF
29190 #define HAVE_U_INT64_T 1
29191 _ACEOF
29194 else
29195 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29196 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29197 { (exit 1); exit 1; }; }
29211 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29217 echo $ECHO_N "(cached) $ECHO_C" >&6
29218 else
29219 cat >conftest.$ac_ext <<_ACEOF
29220 /* confdefs.h. */
29221 _ACEOF
29222 cat confdefs.h >>conftest.$ac_ext
29223 cat >>conftest.$ac_ext <<_ACEOF
29224 /* end confdefs.h. */
29225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29227 #define $ac_func innocuous_$ac_func
29229 /* System header to define __stub macros and hopefully few prototypes,
29230 which can conflict with char $ac_func (); below.
29231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29232 <limits.h> exists even on freestanding compilers. */
29234 #ifdef __STDC__
29235 # include <limits.h>
29236 #else
29237 # include <assert.h>
29238 #endif
29240 #undef $ac_func
29242 /* Override any GCC internal prototype to avoid an error.
29243 Use char because int might match the return type of a GCC
29244 builtin and then its argument prototype would still apply. */
29245 #ifdef __cplusplus
29246 extern "C"
29247 #endif
29248 char $ac_func ();
29249 /* The GNU C library defines this for functions which it implements
29250 to always fail with ENOSYS. Some functions are actually named
29251 something starting with __ and the normal name is an alias. */
29252 #if defined __stub_$ac_func || defined __stub___$ac_func
29253 choke me
29254 #endif
29257 main ()
29259 return $ac_func ();
29261 return 0;
29263 _ACEOF
29264 rm -f conftest.$ac_objext conftest$ac_exeext
29265 if { (ac_try="$ac_link"
29266 case "(($ac_try" in
29267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29268 *) ac_try_echo=$ac_try;;
29269 esac
29270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271 (eval "$ac_link") 2>conftest.er1
29272 ac_status=$?
29273 grep -v '^ *+' conftest.er1 >conftest.err
29274 rm -f conftest.er1
29275 cat conftest.err >&5
29276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277 (exit $ac_status); } && {
29278 test -z "$ac_c_werror_flag" ||
29279 test ! -s conftest.err
29280 } && test -s conftest$ac_exeext &&
29281 $as_test_x conftest$ac_exeext; then
29282 eval "$as_ac_var=yes"
29283 else
29284 echo "$as_me: failed program was:" >&5
29285 sed 's/^/| /' conftest.$ac_ext >&5
29287 eval "$as_ac_var=no"
29290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29291 conftest$ac_exeext conftest.$ac_ext
29293 ac_res=`eval echo '${'$as_ac_var'}'`
29294 { echo "$as_me:$LINENO: result: $ac_res" >&5
29295 echo "${ECHO_T}$ac_res" >&6; }
29296 if test `eval echo '${'$as_ac_var'}'` = yes; then
29297 cat >>confdefs.h <<_ACEOF
29298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29299 _ACEOF
29302 done
29308 for ac_func in powf fmodf strtof round
29310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29314 echo $ECHO_N "(cached) $ECHO_C" >&6
29315 else
29316 cat >conftest.$ac_ext <<_ACEOF
29317 /* confdefs.h. */
29318 _ACEOF
29319 cat confdefs.h >>conftest.$ac_ext
29320 cat >>conftest.$ac_ext <<_ACEOF
29321 /* end confdefs.h. */
29322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29324 #define $ac_func innocuous_$ac_func
29326 /* System header to define __stub macros and hopefully few prototypes,
29327 which can conflict with char $ac_func (); below.
29328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29329 <limits.h> exists even on freestanding compilers. */
29331 #ifdef __STDC__
29332 # include <limits.h>
29333 #else
29334 # include <assert.h>
29335 #endif
29337 #undef $ac_func
29339 /* Override any GCC internal prototype to avoid an error.
29340 Use char because int might match the return type of a GCC
29341 builtin and then its argument prototype would still apply. */
29342 #ifdef __cplusplus
29343 extern "C"
29344 #endif
29345 char $ac_func ();
29346 /* The GNU C library defines this for functions which it implements
29347 to always fail with ENOSYS. Some functions are actually named
29348 something starting with __ and the normal name is an alias. */
29349 #if defined __stub_$ac_func || defined __stub___$ac_func
29350 choke me
29351 #endif
29354 main ()
29356 return $ac_func ();
29358 return 0;
29360 _ACEOF
29361 rm -f conftest.$ac_objext conftest$ac_exeext
29362 if { (ac_try="$ac_link"
29363 case "(($ac_try" in
29364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29365 *) ac_try_echo=$ac_try;;
29366 esac
29367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29368 (eval "$ac_link") 2>conftest.er1
29369 ac_status=$?
29370 grep -v '^ *+' conftest.er1 >conftest.err
29371 rm -f conftest.er1
29372 cat conftest.err >&5
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); } && {
29375 test -z "$ac_c_werror_flag" ||
29376 test ! -s conftest.err
29377 } && test -s conftest$ac_exeext &&
29378 $as_test_x conftest$ac_exeext; then
29379 eval "$as_ac_var=yes"
29380 else
29381 echo "$as_me: failed program was:" >&5
29382 sed 's/^/| /' conftest.$ac_ext >&5
29384 eval "$as_ac_var=no"
29387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29388 conftest$ac_exeext conftest.$ac_ext
29390 ac_res=`eval echo '${'$as_ac_var'}'`
29391 { echo "$as_me:$LINENO: result: $ac_res" >&5
29392 echo "${ECHO_T}$ac_res" >&6; }
29393 if test `eval echo '${'$as_ac_var'}'` = yes; then
29394 cat >>confdefs.h <<_ACEOF
29395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29396 _ACEOF
29399 done
29406 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
29408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29412 echo $ECHO_N "(cached) $ECHO_C" >&6
29413 else
29414 cat >conftest.$ac_ext <<_ACEOF
29415 /* confdefs.h. */
29416 _ACEOF
29417 cat confdefs.h >>conftest.$ac_ext
29418 cat >>conftest.$ac_ext <<_ACEOF
29419 /* end confdefs.h. */
29420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29422 #define $ac_func innocuous_$ac_func
29424 /* System header to define __stub macros and hopefully few prototypes,
29425 which can conflict with char $ac_func (); below.
29426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29427 <limits.h> exists even on freestanding compilers. */
29429 #ifdef __STDC__
29430 # include <limits.h>
29431 #else
29432 # include <assert.h>
29433 #endif
29435 #undef $ac_func
29437 /* Override any GCC internal prototype to avoid an error.
29438 Use char because int might match the return type of a GCC
29439 builtin and then its argument prototype would still apply. */
29440 #ifdef __cplusplus
29441 extern "C"
29442 #endif
29443 char $ac_func ();
29444 /* The GNU C library defines this for functions which it implements
29445 to always fail with ENOSYS. Some functions are actually named
29446 something starting with __ and the normal name is an alias. */
29447 #if defined __stub_$ac_func || defined __stub___$ac_func
29448 choke me
29449 #endif
29452 main ()
29454 return $ac_func ();
29456 return 0;
29458 _ACEOF
29459 rm -f conftest.$ac_objext conftest$ac_exeext
29460 if { (ac_try="$ac_link"
29461 case "(($ac_try" in
29462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29463 *) ac_try_echo=$ac_try;;
29464 esac
29465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29466 (eval "$ac_link") 2>conftest.er1
29467 ac_status=$?
29468 grep -v '^ *+' conftest.er1 >conftest.err
29469 rm -f conftest.er1
29470 cat conftest.err >&5
29471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472 (exit $ac_status); } && {
29473 test -z "$ac_c_werror_flag" ||
29474 test ! -s conftest.err
29475 } && test -s conftest$ac_exeext &&
29476 $as_test_x conftest$ac_exeext; then
29477 eval "$as_ac_var=yes"
29478 else
29479 echo "$as_me: failed program was:" >&5
29480 sed 's/^/| /' conftest.$ac_ext >&5
29482 eval "$as_ac_var=no"
29485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29486 conftest$ac_exeext conftest.$ac_ext
29488 ac_res=`eval echo '${'$as_ac_var'}'`
29489 { echo "$as_me:$LINENO: result: $ac_res" >&5
29490 echo "${ECHO_T}$ac_res" >&6; }
29491 if test `eval echo '${'$as_ac_var'}'` = yes; then
29492 cat >>confdefs.h <<_ACEOF
29493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29494 _ACEOF
29497 done
29502 for ac_func in isatty mkdtemp mkstemp
29504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29508 echo $ECHO_N "(cached) $ECHO_C" >&6
29509 else
29510 cat >conftest.$ac_ext <<_ACEOF
29511 /* confdefs.h. */
29512 _ACEOF
29513 cat confdefs.h >>conftest.$ac_ext
29514 cat >>conftest.$ac_ext <<_ACEOF
29515 /* end confdefs.h. */
29516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29518 #define $ac_func innocuous_$ac_func
29520 /* System header to define __stub macros and hopefully few prototypes,
29521 which can conflict with char $ac_func (); below.
29522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29523 <limits.h> exists even on freestanding compilers. */
29525 #ifdef __STDC__
29526 # include <limits.h>
29527 #else
29528 # include <assert.h>
29529 #endif
29531 #undef $ac_func
29533 /* Override any GCC internal prototype to avoid an error.
29534 Use char because int might match the return type of a GCC
29535 builtin and then its argument prototype would still apply. */
29536 #ifdef __cplusplus
29537 extern "C"
29538 #endif
29539 char $ac_func ();
29540 /* The GNU C library defines this for functions which it implements
29541 to always fail with ENOSYS. Some functions are actually named
29542 something starting with __ and the normal name is an alias. */
29543 #if defined __stub_$ac_func || defined __stub___$ac_func
29544 choke me
29545 #endif
29548 main ()
29550 return $ac_func ();
29552 return 0;
29554 _ACEOF
29555 rm -f conftest.$ac_objext conftest$ac_exeext
29556 if { (ac_try="$ac_link"
29557 case "(($ac_try" in
29558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559 *) ac_try_echo=$ac_try;;
29560 esac
29561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562 (eval "$ac_link") 2>conftest.er1
29563 ac_status=$?
29564 grep -v '^ *+' conftest.er1 >conftest.err
29565 rm -f conftest.er1
29566 cat conftest.err >&5
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); } && {
29569 test -z "$ac_c_werror_flag" ||
29570 test ! -s conftest.err
29571 } && test -s conftest$ac_exeext &&
29572 $as_test_x conftest$ac_exeext; then
29573 eval "$as_ac_var=yes"
29574 else
29575 echo "$as_me: failed program was:" >&5
29576 sed 's/^/| /' conftest.$ac_ext >&5
29578 eval "$as_ac_var=no"
29581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29582 conftest$ac_exeext conftest.$ac_ext
29584 ac_res=`eval echo '${'$as_ac_var'}'`
29585 { echo "$as_me:$LINENO: result: $ac_res" >&5
29586 echo "${ECHO_T}$ac_res" >&6; }
29587 if test `eval echo '${'$as_ac_var'}'` = yes; then
29588 cat >>confdefs.h <<_ACEOF
29589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29590 _ACEOF
29593 done
29602 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
29604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29608 echo $ECHO_N "(cached) $ECHO_C" >&6
29609 else
29610 cat >conftest.$ac_ext <<_ACEOF
29611 /* confdefs.h. */
29612 _ACEOF
29613 cat confdefs.h >>conftest.$ac_ext
29614 cat >>conftest.$ac_ext <<_ACEOF
29615 /* end confdefs.h. */
29616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29618 #define $ac_func innocuous_$ac_func
29620 /* System header to define __stub macros and hopefully few prototypes,
29621 which can conflict with char $ac_func (); below.
29622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29623 <limits.h> exists even on freestanding compilers. */
29625 #ifdef __STDC__
29626 # include <limits.h>
29627 #else
29628 # include <assert.h>
29629 #endif
29631 #undef $ac_func
29633 /* Override any GCC internal prototype to avoid an error.
29634 Use char because int might match the return type of a GCC
29635 builtin and then its argument prototype would still apply. */
29636 #ifdef __cplusplus
29637 extern "C"
29638 #endif
29639 char $ac_func ();
29640 /* The GNU C library defines this for functions which it implements
29641 to always fail with ENOSYS. Some functions are actually named
29642 something starting with __ and the normal name is an alias. */
29643 #if defined __stub_$ac_func || defined __stub___$ac_func
29644 choke me
29645 #endif
29648 main ()
29650 return $ac_func ();
29652 return 0;
29654 _ACEOF
29655 rm -f conftest.$ac_objext conftest$ac_exeext
29656 if { (ac_try="$ac_link"
29657 case "(($ac_try" in
29658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29659 *) ac_try_echo=$ac_try;;
29660 esac
29661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29662 (eval "$ac_link") 2>conftest.er1
29663 ac_status=$?
29664 grep -v '^ *+' conftest.er1 >conftest.err
29665 rm -f conftest.er1
29666 cat conftest.err >&5
29667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668 (exit $ac_status); } && {
29669 test -z "$ac_c_werror_flag" ||
29670 test ! -s conftest.err
29671 } && test -s conftest$ac_exeext &&
29672 $as_test_x conftest$ac_exeext; then
29673 eval "$as_ac_var=yes"
29674 else
29675 echo "$as_me: failed program was:" >&5
29676 sed 's/^/| /' conftest.$ac_ext >&5
29678 eval "$as_ac_var=no"
29681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29682 conftest$ac_exeext conftest.$ac_ext
29684 ac_res=`eval echo '${'$as_ac_var'}'`
29685 { echo "$as_me:$LINENO: result: $ac_res" >&5
29686 echo "${ECHO_T}$ac_res" >&6; }
29687 if test `eval echo '${'$as_ac_var'}'` = yes; then
29688 cat >>confdefs.h <<_ACEOF
29689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29690 _ACEOF
29693 done
29699 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
29701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29705 echo $ECHO_N "(cached) $ECHO_C" >&6
29706 else
29707 cat >conftest.$ac_ext <<_ACEOF
29708 /* confdefs.h. */
29709 _ACEOF
29710 cat confdefs.h >>conftest.$ac_ext
29711 cat >>conftest.$ac_ext <<_ACEOF
29712 /* end confdefs.h. */
29713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29715 #define $ac_func innocuous_$ac_func
29717 /* System header to define __stub macros and hopefully few prototypes,
29718 which can conflict with char $ac_func (); below.
29719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29720 <limits.h> exists even on freestanding compilers. */
29722 #ifdef __STDC__
29723 # include <limits.h>
29724 #else
29725 # include <assert.h>
29726 #endif
29728 #undef $ac_func
29730 /* Override any GCC internal prototype to avoid an error.
29731 Use char because int might match the return type of a GCC
29732 builtin and then its argument prototype would still apply. */
29733 #ifdef __cplusplus
29734 extern "C"
29735 #endif
29736 char $ac_func ();
29737 /* The GNU C library defines this for functions which it implements
29738 to always fail with ENOSYS. Some functions are actually named
29739 something starting with __ and the normal name is an alias. */
29740 #if defined __stub_$ac_func || defined __stub___$ac_func
29741 choke me
29742 #endif
29745 main ()
29747 return $ac_func ();
29749 return 0;
29751 _ACEOF
29752 rm -f conftest.$ac_objext conftest$ac_exeext
29753 if { (ac_try="$ac_link"
29754 case "(($ac_try" in
29755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29756 *) ac_try_echo=$ac_try;;
29757 esac
29758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29759 (eval "$ac_link") 2>conftest.er1
29760 ac_status=$?
29761 grep -v '^ *+' conftest.er1 >conftest.err
29762 rm -f conftest.er1
29763 cat conftest.err >&5
29764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765 (exit $ac_status); } && {
29766 test -z "$ac_c_werror_flag" ||
29767 test ! -s conftest.err
29768 } && test -s conftest$ac_exeext &&
29769 $as_test_x conftest$ac_exeext; then
29770 eval "$as_ac_var=yes"
29771 else
29772 echo "$as_me: failed program was:" >&5
29773 sed 's/^/| /' conftest.$ac_ext >&5
29775 eval "$as_ac_var=no"
29778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29779 conftest$ac_exeext conftest.$ac_ext
29781 ac_res=`eval echo '${'$as_ac_var'}'`
29782 { echo "$as_me:$LINENO: result: $ac_res" >&5
29783 echo "${ECHO_T}$ac_res" >&6; }
29784 if test `eval echo '${'$as_ac_var'}'` = yes; then
29785 cat >>confdefs.h <<_ACEOF
29786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29787 _ACEOF
29790 done
29796 for ac_func in setjmp longjmp sigsetjmp siglongjmp
29798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29802 echo $ECHO_N "(cached) $ECHO_C" >&6
29803 else
29804 cat >conftest.$ac_ext <<_ACEOF
29805 /* confdefs.h. */
29806 _ACEOF
29807 cat confdefs.h >>conftest.$ac_ext
29808 cat >>conftest.$ac_ext <<_ACEOF
29809 /* end confdefs.h. */
29810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29812 #define $ac_func innocuous_$ac_func
29814 /* System header to define __stub macros and hopefully few prototypes,
29815 which can conflict with char $ac_func (); below.
29816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29817 <limits.h> exists even on freestanding compilers. */
29819 #ifdef __STDC__
29820 # include <limits.h>
29821 #else
29822 # include <assert.h>
29823 #endif
29825 #undef $ac_func
29827 /* Override any GCC internal prototype to avoid an error.
29828 Use char because int might match the return type of a GCC
29829 builtin and then its argument prototype would still apply. */
29830 #ifdef __cplusplus
29831 extern "C"
29832 #endif
29833 char $ac_func ();
29834 /* The GNU C library defines this for functions which it implements
29835 to always fail with ENOSYS. Some functions are actually named
29836 something starting with __ and the normal name is an alias. */
29837 #if defined __stub_$ac_func || defined __stub___$ac_func
29838 choke me
29839 #endif
29842 main ()
29844 return $ac_func ();
29846 return 0;
29848 _ACEOF
29849 rm -f conftest.$ac_objext conftest$ac_exeext
29850 if { (ac_try="$ac_link"
29851 case "(($ac_try" in
29852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853 *) ac_try_echo=$ac_try;;
29854 esac
29855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856 (eval "$ac_link") 2>conftest.er1
29857 ac_status=$?
29858 grep -v '^ *+' conftest.er1 >conftest.err
29859 rm -f conftest.er1
29860 cat conftest.err >&5
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); } && {
29863 test -z "$ac_c_werror_flag" ||
29864 test ! -s conftest.err
29865 } && test -s conftest$ac_exeext &&
29866 $as_test_x conftest$ac_exeext; then
29867 eval "$as_ac_var=yes"
29868 else
29869 echo "$as_me: failed program was:" >&5
29870 sed 's/^/| /' conftest.$ac_ext >&5
29872 eval "$as_ac_var=no"
29875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29876 conftest$ac_exeext conftest.$ac_ext
29878 ac_res=`eval echo '${'$as_ac_var'}'`
29879 { echo "$as_me:$LINENO: result: $ac_res" >&5
29880 echo "${ECHO_T}$ac_res" >&6; }
29881 if test `eval echo '${'$as_ac_var'}'` = yes; then
29882 cat >>confdefs.h <<_ACEOF
29883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29884 _ACEOF
29887 done
29889 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29890 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
29891 if test "${llvm_cv_c_printf_a+set}" = set; then
29892 echo $ECHO_N "(cached) $ECHO_C" >&6
29893 else
29894 ac_ext=c
29895 ac_cpp='$CPP $CPPFLAGS'
29896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29900 if test "$cross_compiling" = yes; then
29901 llvmac_cv_c_printf_a=no
29902 else
29903 cat >conftest.$ac_ext <<_ACEOF
29905 /* confdefs.h. */
29906 _ACEOF
29907 cat confdefs.h >>conftest.$ac_ext
29908 cat >>conftest.$ac_ext <<_ACEOF
29909 /* end confdefs.h. */
29911 #include <stdio.h>
29912 #include <stdlib.h>
29915 main ()
29918 volatile double A, B;
29919 char Buffer[100];
29920 A = 1;
29921 A /= 10.0;
29922 sprintf(Buffer, "%a", A);
29923 B = atof(Buffer);
29924 if (A != B)
29925 return (1);
29926 if (A != 0x1.999999999999ap-4)
29927 return (1);
29928 return (0);
29930 return 0;
29932 _ACEOF
29933 rm -f conftest$ac_exeext
29934 if { (ac_try="$ac_link"
29935 case "(($ac_try" in
29936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29937 *) ac_try_echo=$ac_try;;
29938 esac
29939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29940 (eval "$ac_link") 2>&5
29941 ac_status=$?
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29944 { (case "(($ac_try" in
29945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29946 *) ac_try_echo=$ac_try;;
29947 esac
29948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29949 (eval "$ac_try") 2>&5
29950 ac_status=$?
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); }; }; then
29953 llvm_cv_c_printf_a=yes
29954 else
29955 echo "$as_me: program exited with status $ac_status" >&5
29956 echo "$as_me: failed program was:" >&5
29957 sed 's/^/| /' conftest.$ac_ext >&5
29959 ( exit $ac_status )
29960 llvmac_cv_c_printf_a=no
29962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29966 ac_ext=c
29967 ac_cpp='$CPP $CPPFLAGS'
29968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29973 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29974 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
29975 if test "$llvm_cv_c_printf_a" = "yes"; then
29977 cat >>confdefs.h <<\_ACEOF
29978 #define HAVE_PRINTF_A 1
29979 _ACEOF
29983 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29984 # for constant arguments. Useless!
29985 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
29986 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
29987 if test "${ac_cv_working_alloca_h+set}" = set; then
29988 echo $ECHO_N "(cached) $ECHO_C" >&6
29989 else
29990 cat >conftest.$ac_ext <<_ACEOF
29991 /* confdefs.h. */
29992 _ACEOF
29993 cat confdefs.h >>conftest.$ac_ext
29994 cat >>conftest.$ac_ext <<_ACEOF
29995 /* end confdefs.h. */
29996 #include <alloca.h>
29998 main ()
30000 char *p = (char *) alloca (2 * sizeof (int));
30001 if (p) return 0;
30003 return 0;
30005 _ACEOF
30006 rm -f conftest.$ac_objext conftest$ac_exeext
30007 if { (ac_try="$ac_link"
30008 case "(($ac_try" in
30009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30010 *) ac_try_echo=$ac_try;;
30011 esac
30012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30013 (eval "$ac_link") 2>conftest.er1
30014 ac_status=$?
30015 grep -v '^ *+' conftest.er1 >conftest.err
30016 rm -f conftest.er1
30017 cat conftest.err >&5
30018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019 (exit $ac_status); } && {
30020 test -z "$ac_c_werror_flag" ||
30021 test ! -s conftest.err
30022 } && test -s conftest$ac_exeext &&
30023 $as_test_x conftest$ac_exeext; then
30024 ac_cv_working_alloca_h=yes
30025 else
30026 echo "$as_me: failed program was:" >&5
30027 sed 's/^/| /' conftest.$ac_ext >&5
30029 ac_cv_working_alloca_h=no
30032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30033 conftest$ac_exeext conftest.$ac_ext
30035 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30036 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30037 if test $ac_cv_working_alloca_h = yes; then
30039 cat >>confdefs.h <<\_ACEOF
30040 #define HAVE_ALLOCA_H 1
30041 _ACEOF
30045 { echo "$as_me:$LINENO: checking for alloca" >&5
30046 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30047 if test "${ac_cv_func_alloca_works+set}" = set; then
30048 echo $ECHO_N "(cached) $ECHO_C" >&6
30049 else
30050 cat >conftest.$ac_ext <<_ACEOF
30051 /* confdefs.h. */
30052 _ACEOF
30053 cat confdefs.h >>conftest.$ac_ext
30054 cat >>conftest.$ac_ext <<_ACEOF
30055 /* end confdefs.h. */
30056 #ifdef __GNUC__
30057 # define alloca __builtin_alloca
30058 #else
30059 # ifdef _MSC_VER
30060 # include <malloc.h>
30061 # define alloca _alloca
30062 # else
30063 # ifdef HAVE_ALLOCA_H
30064 # include <alloca.h>
30065 # else
30066 # ifdef _AIX
30067 #pragma alloca
30068 # else
30069 # ifndef alloca /* predefined by HP cc +Olibcalls */
30070 char *alloca ();
30071 # endif
30072 # endif
30073 # endif
30074 # endif
30075 #endif
30078 main ()
30080 char *p = (char *) alloca (1);
30081 if (p) return 0;
30083 return 0;
30085 _ACEOF
30086 rm -f conftest.$ac_objext conftest$ac_exeext
30087 if { (ac_try="$ac_link"
30088 case "(($ac_try" in
30089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30090 *) ac_try_echo=$ac_try;;
30091 esac
30092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30093 (eval "$ac_link") 2>conftest.er1
30094 ac_status=$?
30095 grep -v '^ *+' conftest.er1 >conftest.err
30096 rm -f conftest.er1
30097 cat conftest.err >&5
30098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 (exit $ac_status); } && {
30100 test -z "$ac_c_werror_flag" ||
30101 test ! -s conftest.err
30102 } && test -s conftest$ac_exeext &&
30103 $as_test_x conftest$ac_exeext; then
30104 ac_cv_func_alloca_works=yes
30105 else
30106 echo "$as_me: failed program was:" >&5
30107 sed 's/^/| /' conftest.$ac_ext >&5
30109 ac_cv_func_alloca_works=no
30112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30113 conftest$ac_exeext conftest.$ac_ext
30115 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30116 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30118 if test $ac_cv_func_alloca_works = yes; then
30120 cat >>confdefs.h <<\_ACEOF
30121 #define HAVE_ALLOCA 1
30122 _ACEOF
30124 else
30125 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30126 # that cause trouble. Some versions do not even contain alloca or
30127 # contain a buggy version. If you still want to use their alloca,
30128 # use ar to extract alloca.o from them instead of compiling alloca.c.
30130 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30132 cat >>confdefs.h <<\_ACEOF
30133 #define C_ALLOCA 1
30134 _ACEOF
30137 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30138 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30139 if test "${ac_cv_os_cray+set}" = set; then
30140 echo $ECHO_N "(cached) $ECHO_C" >&6
30141 else
30142 cat >conftest.$ac_ext <<_ACEOF
30143 /* confdefs.h. */
30144 _ACEOF
30145 cat confdefs.h >>conftest.$ac_ext
30146 cat >>conftest.$ac_ext <<_ACEOF
30147 /* end confdefs.h. */
30148 #if defined CRAY && ! defined CRAY2
30149 webecray
30150 #else
30151 wenotbecray
30152 #endif
30154 _ACEOF
30155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30156 $EGREP "webecray" >/dev/null 2>&1; then
30157 ac_cv_os_cray=yes
30158 else
30159 ac_cv_os_cray=no
30161 rm -f conftest*
30164 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30165 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30166 if test $ac_cv_os_cray = yes; then
30167 for ac_func in _getb67 GETB67 getb67; do
30168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30172 echo $ECHO_N "(cached) $ECHO_C" >&6
30173 else
30174 cat >conftest.$ac_ext <<_ACEOF
30175 /* confdefs.h. */
30176 _ACEOF
30177 cat confdefs.h >>conftest.$ac_ext
30178 cat >>conftest.$ac_ext <<_ACEOF
30179 /* end confdefs.h. */
30180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30182 #define $ac_func innocuous_$ac_func
30184 /* System header to define __stub macros and hopefully few prototypes,
30185 which can conflict with char $ac_func (); below.
30186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30187 <limits.h> exists even on freestanding compilers. */
30189 #ifdef __STDC__
30190 # include <limits.h>
30191 #else
30192 # include <assert.h>
30193 #endif
30195 #undef $ac_func
30197 /* Override any GCC internal prototype to avoid an error.
30198 Use char because int might match the return type of a GCC
30199 builtin and then its argument prototype would still apply. */
30200 #ifdef __cplusplus
30201 extern "C"
30202 #endif
30203 char $ac_func ();
30204 /* The GNU C library defines this for functions which it implements
30205 to always fail with ENOSYS. Some functions are actually named
30206 something starting with __ and the normal name is an alias. */
30207 #if defined __stub_$ac_func || defined __stub___$ac_func
30208 choke me
30209 #endif
30212 main ()
30214 return $ac_func ();
30216 return 0;
30218 _ACEOF
30219 rm -f conftest.$ac_objext conftest$ac_exeext
30220 if { (ac_try="$ac_link"
30221 case "(($ac_try" in
30222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30223 *) ac_try_echo=$ac_try;;
30224 esac
30225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30226 (eval "$ac_link") 2>conftest.er1
30227 ac_status=$?
30228 grep -v '^ *+' conftest.er1 >conftest.err
30229 rm -f conftest.er1
30230 cat conftest.err >&5
30231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232 (exit $ac_status); } && {
30233 test -z "$ac_c_werror_flag" ||
30234 test ! -s conftest.err
30235 } && test -s conftest$ac_exeext &&
30236 $as_test_x conftest$ac_exeext; then
30237 eval "$as_ac_var=yes"
30238 else
30239 echo "$as_me: failed program was:" >&5
30240 sed 's/^/| /' conftest.$ac_ext >&5
30242 eval "$as_ac_var=no"
30245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30246 conftest$ac_exeext conftest.$ac_ext
30248 ac_res=`eval echo '${'$as_ac_var'}'`
30249 { echo "$as_me:$LINENO: result: $ac_res" >&5
30250 echo "${ECHO_T}$ac_res" >&6; }
30251 if test `eval echo '${'$as_ac_var'}'` = yes; then
30253 cat >>confdefs.h <<_ACEOF
30254 #define CRAY_STACKSEG_END $ac_func
30255 _ACEOF
30257 break
30260 done
30263 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30264 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30265 if test "${ac_cv_c_stack_direction+set}" = set; then
30266 echo $ECHO_N "(cached) $ECHO_C" >&6
30267 else
30268 if test "$cross_compiling" = yes; then
30269 ac_cv_c_stack_direction=0
30270 else
30271 cat >conftest.$ac_ext <<_ACEOF
30272 /* confdefs.h. */
30273 _ACEOF
30274 cat confdefs.h >>conftest.$ac_ext
30275 cat >>conftest.$ac_ext <<_ACEOF
30276 /* end confdefs.h. */
30277 $ac_includes_default
30279 find_stack_direction ()
30281 static char *addr = 0;
30282 auto char dummy;
30283 if (addr == 0)
30285 addr = &dummy;
30286 return find_stack_direction ();
30288 else
30289 return (&dummy > addr) ? 1 : -1;
30293 main ()
30295 return find_stack_direction () < 0;
30297 _ACEOF
30298 rm -f conftest$ac_exeext
30299 if { (ac_try="$ac_link"
30300 case "(($ac_try" in
30301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30302 *) ac_try_echo=$ac_try;;
30303 esac
30304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30305 (eval "$ac_link") 2>&5
30306 ac_status=$?
30307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30309 { (case "(($ac_try" in
30310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30311 *) ac_try_echo=$ac_try;;
30312 esac
30313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30314 (eval "$ac_try") 2>&5
30315 ac_status=$?
30316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317 (exit $ac_status); }; }; then
30318 ac_cv_c_stack_direction=1
30319 else
30320 echo "$as_me: program exited with status $ac_status" >&5
30321 echo "$as_me: failed program was:" >&5
30322 sed 's/^/| /' conftest.$ac_ext >&5
30324 ( exit $ac_status )
30325 ac_cv_c_stack_direction=-1
30327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30332 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30333 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30335 cat >>confdefs.h <<_ACEOF
30336 #define STACK_DIRECTION $ac_cv_c_stack_direction
30337 _ACEOF
30343 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30344 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30345 if test "${ac_cv_func_rand48+set}" = set; then
30346 echo $ECHO_N "(cached) $ECHO_C" >&6
30347 else
30348 ac_ext=cpp
30349 ac_cpp='$CXXCPP $CPPFLAGS'
30350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30354 cat >conftest.$ac_ext <<_ACEOF
30355 /* confdefs.h. */
30356 _ACEOF
30357 cat confdefs.h >>conftest.$ac_ext
30358 cat >>conftest.$ac_ext <<_ACEOF
30359 /* end confdefs.h. */
30360 #include <stdlib.h>
30362 main ()
30364 srand48(0);lrand48();drand48();
30366 return 0;
30368 _ACEOF
30369 rm -f conftest.$ac_objext
30370 if { (ac_try="$ac_compile"
30371 case "(($ac_try" in
30372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30373 *) ac_try_echo=$ac_try;;
30374 esac
30375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30376 (eval "$ac_compile") 2>conftest.er1
30377 ac_status=$?
30378 grep -v '^ *+' conftest.er1 >conftest.err
30379 rm -f conftest.er1
30380 cat conftest.err >&5
30381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30382 (exit $ac_status); } && {
30383 test -z "$ac_cxx_werror_flag" ||
30384 test ! -s conftest.err
30385 } && test -s conftest.$ac_objext; then
30386 ac_cv_func_rand48=yes
30387 else
30388 echo "$as_me: failed program was:" >&5
30389 sed 's/^/| /' conftest.$ac_ext >&5
30391 ac_cv_func_rand48=no
30394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30395 ac_ext=c
30396 ac_cpp='$CPP $CPPFLAGS'
30397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30402 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30403 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
30405 if test "$ac_cv_func_rand48" = "yes" ; then
30407 cat >>confdefs.h <<\_ACEOF
30408 #define HAVE_RAND48 1
30409 _ACEOF
30414 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30415 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
30416 if test "${ac_cv_cxx_namespaces+set}" = set; then
30417 echo $ECHO_N "(cached) $ECHO_C" >&6
30418 else
30419 ac_ext=cpp
30420 ac_cpp='$CXXCPP $CPPFLAGS'
30421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30425 cat >conftest.$ac_ext <<_ACEOF
30426 /* confdefs.h. */
30427 _ACEOF
30428 cat confdefs.h >>conftest.$ac_ext
30429 cat >>conftest.$ac_ext <<_ACEOF
30430 /* end confdefs.h. */
30431 namespace Outer { namespace Inner { int i = 0; }}
30433 main ()
30435 using namespace Outer::Inner; return i;
30437 return 0;
30439 _ACEOF
30440 rm -f conftest.$ac_objext
30441 if { (ac_try="$ac_compile"
30442 case "(($ac_try" in
30443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30444 *) ac_try_echo=$ac_try;;
30445 esac
30446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30447 (eval "$ac_compile") 2>conftest.er1
30448 ac_status=$?
30449 grep -v '^ *+' conftest.er1 >conftest.err
30450 rm -f conftest.er1
30451 cat conftest.err >&5
30452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453 (exit $ac_status); } && {
30454 test -z "$ac_cxx_werror_flag" ||
30455 test ! -s conftest.err
30456 } && test -s conftest.$ac_objext; then
30457 ac_cv_cxx_namespaces=yes
30458 else
30459 echo "$as_me: failed program was:" >&5
30460 sed 's/^/| /' conftest.$ac_ext >&5
30462 ac_cv_cxx_namespaces=no
30465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30466 ac_ext=c
30467 ac_cpp='$CPP $CPPFLAGS'
30468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30474 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
30475 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
30476 if test "$ac_cv_cxx_namespaces" = yes; then
30478 cat >>confdefs.h <<\_ACEOF
30479 #define HAVE_NAMESPACES
30480 _ACEOF
30484 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
30485 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
30486 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
30487 echo $ECHO_N "(cached) $ECHO_C" >&6
30488 else
30490 ac_ext=cpp
30491 ac_cpp='$CXXCPP $CPPFLAGS'
30492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30496 cat >conftest.$ac_ext <<_ACEOF
30497 /* confdefs.h. */
30498 _ACEOF
30499 cat confdefs.h >>conftest.$ac_ext
30500 cat >>conftest.$ac_ext <<_ACEOF
30501 /* end confdefs.h. */
30502 #include <ext/hash_map>
30503 #ifdef HAVE_NAMESPACES
30504 using namespace std;
30505 #endif
30507 main ()
30509 hash_map<int, int> t;
30511 return 0;
30513 _ACEOF
30514 rm -f conftest.$ac_objext
30515 if { (ac_try="$ac_compile"
30516 case "(($ac_try" in
30517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30518 *) ac_try_echo=$ac_try;;
30519 esac
30520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30521 (eval "$ac_compile") 2>conftest.er1
30522 ac_status=$?
30523 grep -v '^ *+' conftest.er1 >conftest.err
30524 rm -f conftest.er1
30525 cat conftest.err >&5
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527 (exit $ac_status); } && {
30528 test -z "$ac_cxx_werror_flag" ||
30529 test ! -s conftest.err
30530 } && test -s conftest.$ac_objext; then
30531 ac_cv_cxx_have_std_ext_hash_map=yes
30532 else
30533 echo "$as_me: failed program was:" >&5
30534 sed 's/^/| /' conftest.$ac_ext >&5
30536 ac_cv_cxx_have_std_ext_hash_map=no
30539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30540 ac_ext=c
30541 ac_cpp='$CPP $CPPFLAGS'
30542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30547 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
30548 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
30549 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
30550 then
30552 cat >>confdefs.h <<\_ACEOF
30553 #define HAVE_STD_EXT_HASH_MAP 1
30554 _ACEOF
30556 else
30558 cat >>confdefs.h <<\_ACEOF
30559 #define HAVE_STD_EXT_HASH_MAP 0
30560 _ACEOF
30564 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
30565 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
30566 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30567 echo $ECHO_N "(cached) $ECHO_C" >&6
30568 else
30570 ac_ext=cpp
30571 ac_cpp='$CXXCPP $CPPFLAGS'
30572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30576 cat >conftest.$ac_ext <<_ACEOF
30577 /* confdefs.h. */
30578 _ACEOF
30579 cat confdefs.h >>conftest.$ac_ext
30580 cat >>conftest.$ac_ext <<_ACEOF
30581 /* end confdefs.h. */
30582 #include <ext/hash_map>
30583 #ifdef HAVE_NAMESPACES
30584 using namespace __gnu_cxx;
30585 #endif
30587 main ()
30589 hash_map<int,int> t;
30591 return 0;
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 test -z "$ac_cxx_werror_flag" ||
30609 test ! -s conftest.err
30610 } && test -s conftest.$ac_objext; then
30611 ac_cv_cxx_have_gnu_ext_hash_map=yes
30612 else
30613 echo "$as_me: failed program was:" >&5
30614 sed 's/^/| /' conftest.$ac_ext >&5
30616 ac_cv_cxx_have_gnu_ext_hash_map=no
30619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30620 ac_ext=c
30621 ac_cpp='$CPP $CPPFLAGS'
30622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30627 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30628 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
30629 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30630 then
30632 cat >>confdefs.h <<\_ACEOF
30633 #define HAVE_GNU_EXT_HASH_MAP 1
30634 _ACEOF
30636 else
30638 cat >>confdefs.h <<\_ACEOF
30639 #define HAVE_GNU_EXT_HASH_MAP 0
30640 _ACEOF
30644 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
30645 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
30646 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30647 echo $ECHO_N "(cached) $ECHO_C" >&6
30648 else
30650 ac_ext=cpp
30651 ac_cpp='$CXXCPP $CPPFLAGS'
30652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30656 cat >conftest.$ac_ext <<_ACEOF
30657 /* confdefs.h. */
30658 _ACEOF
30659 cat confdefs.h >>conftest.$ac_ext
30660 cat >>conftest.$ac_ext <<_ACEOF
30661 /* end confdefs.h. */
30662 #include <hash_map>
30664 main ()
30666 hash_map<int,int> t;
30668 return 0;
30670 _ACEOF
30671 rm -f conftest.$ac_objext
30672 if { (ac_try="$ac_compile"
30673 case "(($ac_try" in
30674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30675 *) ac_try_echo=$ac_try;;
30676 esac
30677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30678 (eval "$ac_compile") 2>conftest.er1
30679 ac_status=$?
30680 grep -v '^ *+' conftest.er1 >conftest.err
30681 rm -f conftest.er1
30682 cat conftest.err >&5
30683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684 (exit $ac_status); } && {
30685 test -z "$ac_cxx_werror_flag" ||
30686 test ! -s conftest.err
30687 } && test -s conftest.$ac_objext; then
30688 ac_cv_cxx_have_global_hash_map=yes
30689 else
30690 echo "$as_me: failed program was:" >&5
30691 sed 's/^/| /' conftest.$ac_ext >&5
30693 ac_cv_cxx_have_global_hash_map=no
30696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30697 ac_ext=c
30698 ac_cpp='$CPP $CPPFLAGS'
30699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30704 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
30705 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
30706 if test "$ac_cv_cxx_have_global_hash_map" = yes
30707 then
30709 cat >>confdefs.h <<\_ACEOF
30710 #define HAVE_GLOBAL_HASH_MAP 1
30711 _ACEOF
30713 else
30715 cat >>confdefs.h <<\_ACEOF
30716 #define HAVE_GLOBAL_HASH_MAP 0
30717 _ACEOF
30721 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
30722 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
30723 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
30724 echo $ECHO_N "(cached) $ECHO_C" >&6
30725 else
30727 ac_ext=cpp
30728 ac_cpp='$CXXCPP $CPPFLAGS'
30729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30733 cat >conftest.$ac_ext <<_ACEOF
30734 /* confdefs.h. */
30735 _ACEOF
30736 cat confdefs.h >>conftest.$ac_ext
30737 cat >>conftest.$ac_ext <<_ACEOF
30738 /* end confdefs.h. */
30739 #include <ext/hash_set>
30740 #ifdef HAVE_NAMESPACES
30741 using namespace std;
30742 #endif
30744 main ()
30746 hash_set<int> t;
30748 return 0;
30750 _ACEOF
30751 rm -f conftest.$ac_objext
30752 if { (ac_try="$ac_compile"
30753 case "(($ac_try" in
30754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30755 *) ac_try_echo=$ac_try;;
30756 esac
30757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30758 (eval "$ac_compile") 2>conftest.er1
30759 ac_status=$?
30760 grep -v '^ *+' conftest.er1 >conftest.err
30761 rm -f conftest.er1
30762 cat conftest.err >&5
30763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764 (exit $ac_status); } && {
30765 test -z "$ac_cxx_werror_flag" ||
30766 test ! -s conftest.err
30767 } && test -s conftest.$ac_objext; then
30768 ac_cv_cxx_have_std_ext_hash_set=yes
30769 else
30770 echo "$as_me: failed program was:" >&5
30771 sed 's/^/| /' conftest.$ac_ext >&5
30773 ac_cv_cxx_have_std_ext_hash_set=no
30776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30777 ac_ext=c
30778 ac_cpp='$CPP $CPPFLAGS'
30779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30784 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
30785 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
30786 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30787 then
30789 cat >>confdefs.h <<\_ACEOF
30790 #define HAVE_STD_EXT_HASH_SET 1
30791 _ACEOF
30793 else
30795 cat >>confdefs.h <<\_ACEOF
30796 #define HAVE_STD_EXT_HASH_SET 0
30797 _ACEOF
30801 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
30802 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
30803 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30804 echo $ECHO_N "(cached) $ECHO_C" >&6
30805 else
30807 ac_ext=cpp
30808 ac_cpp='$CXXCPP $CPPFLAGS'
30809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30813 cat >conftest.$ac_ext <<_ACEOF
30814 /* confdefs.h. */
30815 _ACEOF
30816 cat confdefs.h >>conftest.$ac_ext
30817 cat >>conftest.$ac_ext <<_ACEOF
30818 /* end confdefs.h. */
30819 #include <ext/hash_set>
30820 #ifdef HAVE_NAMESPACES
30821 using namespace __gnu_cxx;
30822 #endif
30824 main ()
30826 hash_set<int> t;
30828 return 0;
30830 _ACEOF
30831 rm -f conftest.$ac_objext
30832 if { (ac_try="$ac_compile"
30833 case "(($ac_try" in
30834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30835 *) ac_try_echo=$ac_try;;
30836 esac
30837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30838 (eval "$ac_compile") 2>conftest.er1
30839 ac_status=$?
30840 grep -v '^ *+' conftest.er1 >conftest.err
30841 rm -f conftest.er1
30842 cat conftest.err >&5
30843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844 (exit $ac_status); } && {
30845 test -z "$ac_cxx_werror_flag" ||
30846 test ! -s conftest.err
30847 } && test -s conftest.$ac_objext; then
30848 ac_cv_cxx_have_gnu_ext_hash_set=yes
30849 else
30850 echo "$as_me: failed program was:" >&5
30851 sed 's/^/| /' conftest.$ac_ext >&5
30853 ac_cv_cxx_have_gnu_ext_hash_set=no
30856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30857 ac_ext=c
30858 ac_cpp='$CPP $CPPFLAGS'
30859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30864 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30865 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
30866 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30867 then
30869 cat >>confdefs.h <<\_ACEOF
30870 #define HAVE_GNU_EXT_HASH_SET 1
30871 _ACEOF
30873 else
30875 cat >>confdefs.h <<\_ACEOF
30876 #define HAVE_GNU_EXT_HASH_SET 0
30877 _ACEOF
30881 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
30882 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
30883 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30884 echo $ECHO_N "(cached) $ECHO_C" >&6
30885 else
30887 ac_ext=cpp
30888 ac_cpp='$CXXCPP $CPPFLAGS'
30889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30893 cat >conftest.$ac_ext <<_ACEOF
30894 /* confdefs.h. */
30895 _ACEOF
30896 cat confdefs.h >>conftest.$ac_ext
30897 cat >>conftest.$ac_ext <<_ACEOF
30898 /* end confdefs.h. */
30899 #include <hash_set>
30901 main ()
30903 hash_set<int> t; return 0;
30905 return 0;
30907 _ACEOF
30908 rm -f conftest.$ac_objext
30909 if { (ac_try="$ac_compile"
30910 case "(($ac_try" in
30911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30912 *) ac_try_echo=$ac_try;;
30913 esac
30914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30915 (eval "$ac_compile") 2>conftest.er1
30916 ac_status=$?
30917 grep -v '^ *+' conftest.er1 >conftest.err
30918 rm -f conftest.er1
30919 cat conftest.err >&5
30920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921 (exit $ac_status); } && {
30922 test -z "$ac_cxx_werror_flag" ||
30923 test ! -s conftest.err
30924 } && test -s conftest.$ac_objext; then
30925 ac_cv_cxx_have_global_hash_set=yes
30926 else
30927 echo "$as_me: failed program was:" >&5
30928 sed 's/^/| /' conftest.$ac_ext >&5
30930 ac_cv_cxx_have_global_hash_set=no
30933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30934 ac_ext=c
30935 ac_cpp='$CPP $CPPFLAGS'
30936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30941 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
30942 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
30943 if test "$ac_cv_cxx_have_global_hash_set" = yes
30944 then
30946 cat >>confdefs.h <<\_ACEOF
30947 #define HAVE_GLOBAL_HASH_SET 1
30948 _ACEOF
30950 else
30952 cat >>confdefs.h <<\_ACEOF
30953 #define HAVE_GLOBAL_HASH_SET 0
30954 _ACEOF
30958 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30959 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
30960 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30961 echo $ECHO_N "(cached) $ECHO_C" >&6
30962 else
30964 ac_ext=cpp
30965 ac_cpp='$CXXCPP $CPPFLAGS'
30966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30970 cat >conftest.$ac_ext <<_ACEOF
30971 /* confdefs.h. */
30972 _ACEOF
30973 cat confdefs.h >>conftest.$ac_ext
30974 cat >>conftest.$ac_ext <<_ACEOF
30975 /* end confdefs.h. */
30976 #include <iterator>
30977 #ifdef HAVE_NAMESPACES
30978 using namespace std;
30979 #endif
30981 main ()
30983 iterator<int,int,int> t; return 0;
30985 return 0;
30987 _ACEOF
30988 rm -f conftest.$ac_objext
30989 if { (ac_try="$ac_compile"
30990 case "(($ac_try" in
30991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30992 *) ac_try_echo=$ac_try;;
30993 esac
30994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30995 (eval "$ac_compile") 2>conftest.er1
30996 ac_status=$?
30997 grep -v '^ *+' conftest.er1 >conftest.err
30998 rm -f conftest.er1
30999 cat conftest.err >&5
31000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001 (exit $ac_status); } && {
31002 test -z "$ac_cxx_werror_flag" ||
31003 test ! -s conftest.err
31004 } && test -s conftest.$ac_objext; then
31005 ac_cv_cxx_have_std_iterator=yes
31006 else
31007 echo "$as_me: failed program was:" >&5
31008 sed 's/^/| /' conftest.$ac_ext >&5
31010 ac_cv_cxx_have_std_iterator=no
31013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31014 ac_ext=c
31015 ac_cpp='$CPP $CPPFLAGS'
31016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31022 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31023 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31024 if test "$ac_cv_cxx_have_std_iterator" = yes
31025 then
31027 cat >>confdefs.h <<\_ACEOF
31028 #define HAVE_STD_ITERATOR 1
31029 _ACEOF
31031 else
31033 cat >>confdefs.h <<\_ACEOF
31034 #define HAVE_STD_ITERATOR 0
31035 _ACEOF
31039 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31040 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31041 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31042 echo $ECHO_N "(cached) $ECHO_C" >&6
31043 else
31045 ac_ext=cpp
31046 ac_cpp='$CXXCPP $CPPFLAGS'
31047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31051 cat >conftest.$ac_ext <<_ACEOF
31052 /* confdefs.h. */
31053 _ACEOF
31054 cat confdefs.h >>conftest.$ac_ext
31055 cat >>conftest.$ac_ext <<_ACEOF
31056 /* end confdefs.h. */
31057 #include <iterator>
31058 #ifdef HAVE_NAMESPACES
31059 using namespace std;
31060 #endif
31062 main ()
31064 bidirectional_iterator<int,int> t; return 0;
31066 return 0;
31068 _ACEOF
31069 rm -f conftest.$ac_objext
31070 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
31077 ac_status=$?
31078 grep -v '^ *+' conftest.er1 >conftest.err
31079 rm -f conftest.er1
31080 cat conftest.err >&5
31081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082 (exit $ac_status); } && {
31083 test -z "$ac_cxx_werror_flag" ||
31084 test ! -s conftest.err
31085 } && test -s conftest.$ac_objext; then
31086 ac_cv_cxx_have_bi_iterator=yes
31087 else
31088 echo "$as_me: failed program was:" >&5
31089 sed 's/^/| /' conftest.$ac_ext >&5
31091 ac_cv_cxx_have_bi_iterator=no
31094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31095 ac_ext=c
31096 ac_cpp='$CPP $CPPFLAGS'
31097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31103 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31104 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31105 if test "$ac_cv_cxx_have_bi_iterator" = yes
31106 then
31108 cat >>confdefs.h <<\_ACEOF
31109 #define HAVE_BI_ITERATOR 1
31110 _ACEOF
31112 else
31114 cat >>confdefs.h <<\_ACEOF
31115 #define HAVE_BI_ITERATOR 0
31116 _ACEOF
31120 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31121 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
31122 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31123 echo $ECHO_N "(cached) $ECHO_C" >&6
31124 else
31126 ac_ext=cpp
31127 ac_cpp='$CXXCPP $CPPFLAGS'
31128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31132 cat >conftest.$ac_ext <<_ACEOF
31133 /* confdefs.h. */
31134 _ACEOF
31135 cat confdefs.h >>conftest.$ac_ext
31136 cat >>conftest.$ac_ext <<_ACEOF
31137 /* end confdefs.h. */
31138 #include <iterator>
31139 #ifdef HAVE_NAMESPACES
31140 using namespace std;
31141 #endif
31143 main ()
31145 forward_iterator<int,int> t; return 0;
31147 return 0;
31149 _ACEOF
31150 rm -f conftest.$ac_objext
31151 if { (ac_try="$ac_compile"
31152 case "(($ac_try" in
31153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154 *) ac_try_echo=$ac_try;;
31155 esac
31156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157 (eval "$ac_compile") 2>conftest.er1
31158 ac_status=$?
31159 grep -v '^ *+' conftest.er1 >conftest.err
31160 rm -f conftest.er1
31161 cat conftest.err >&5
31162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31163 (exit $ac_status); } && {
31164 test -z "$ac_cxx_werror_flag" ||
31165 test ! -s conftest.err
31166 } && test -s conftest.$ac_objext; then
31167 ac_cv_cxx_have_fwd_iterator=yes
31168 else
31169 echo "$as_me: failed program was:" >&5
31170 sed 's/^/| /' conftest.$ac_ext >&5
31172 ac_cv_cxx_have_fwd_iterator=no
31175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31176 ac_ext=c
31177 ac_cpp='$CPP $CPPFLAGS'
31178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31184 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31185 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31186 if test "$ac_cv_cxx_have_fwd_iterator" = yes
31187 then
31189 cat >>confdefs.h <<\_ACEOF
31190 #define HAVE_FWD_ITERATOR 1
31191 _ACEOF
31193 else
31195 cat >>confdefs.h <<\_ACEOF
31196 #define HAVE_FWD_ITERATOR 0
31197 _ACEOF
31202 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31203 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
31204 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31205 echo $ECHO_N "(cached) $ECHO_C" >&6
31206 else
31207 ac_ext=cpp
31208 ac_cpp='$CXXCPP $CPPFLAGS'
31209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31213 cat >conftest.$ac_ext <<_ACEOF
31214 /* confdefs.h. */
31215 _ACEOF
31216 cat confdefs.h >>conftest.$ac_ext
31217 cat >>conftest.$ac_ext <<_ACEOF
31218 /* end confdefs.h. */
31219 #include <math.h>
31221 main ()
31223 float f; isnan(f);
31225 return 0;
31227 _ACEOF
31228 rm -f conftest.$ac_objext
31229 if { (ac_try="$ac_compile"
31230 case "(($ac_try" in
31231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31232 *) ac_try_echo=$ac_try;;
31233 esac
31234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31235 (eval "$ac_compile") 2>conftest.er1
31236 ac_status=$?
31237 grep -v '^ *+' conftest.er1 >conftest.err
31238 rm -f conftest.er1
31239 cat conftest.err >&5
31240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241 (exit $ac_status); } && {
31242 test -z "$ac_cxx_werror_flag" ||
31243 test ! -s conftest.err
31244 } && test -s conftest.$ac_objext; then
31245 ac_cv_func_isnan_in_math_h=yes
31246 else
31247 echo "$as_me: failed program was:" >&5
31248 sed 's/^/| /' conftest.$ac_ext >&5
31250 ac_cv_func_isnan_in_math_h=no
31253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31254 ac_ext=c
31255 ac_cpp='$CPP $CPPFLAGS'
31256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31261 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
31262 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
31265 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
31267 cat >>confdefs.h <<\_ACEOF
31268 #define HAVE_ISNAN_IN_MATH_H 1
31269 _ACEOF
31273 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
31274 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
31275 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
31276 echo $ECHO_N "(cached) $ECHO_C" >&6
31277 else
31278 ac_ext=cpp
31279 ac_cpp='$CXXCPP $CPPFLAGS'
31280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31284 cat >conftest.$ac_ext <<_ACEOF
31285 /* confdefs.h. */
31286 _ACEOF
31287 cat confdefs.h >>conftest.$ac_ext
31288 cat >>conftest.$ac_ext <<_ACEOF
31289 /* end confdefs.h. */
31290 #include <cmath>
31292 main ()
31294 float f; isnan(f);
31296 return 0;
31298 _ACEOF
31299 rm -f conftest.$ac_objext
31300 if { (ac_try="$ac_compile"
31301 case "(($ac_try" in
31302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31303 *) ac_try_echo=$ac_try;;
31304 esac
31305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31306 (eval "$ac_compile") 2>conftest.er1
31307 ac_status=$?
31308 grep -v '^ *+' conftest.er1 >conftest.err
31309 rm -f conftest.er1
31310 cat conftest.err >&5
31311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31312 (exit $ac_status); } && {
31313 test -z "$ac_cxx_werror_flag" ||
31314 test ! -s conftest.err
31315 } && test -s conftest.$ac_objext; then
31316 ac_cv_func_isnan_in_cmath=yes
31317 else
31318 echo "$as_me: failed program was:" >&5
31319 sed 's/^/| /' conftest.$ac_ext >&5
31321 ac_cv_func_isnan_in_cmath=no
31324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31325 ac_ext=c
31326 ac_cpp='$CPP $CPPFLAGS'
31327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31332 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
31333 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
31335 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
31337 cat >>confdefs.h <<\_ACEOF
31338 #define HAVE_ISNAN_IN_CMATH 1
31339 _ACEOF
31343 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
31344 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
31345 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
31346 echo $ECHO_N "(cached) $ECHO_C" >&6
31347 else
31348 ac_ext=cpp
31349 ac_cpp='$CXXCPP $CPPFLAGS'
31350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31354 cat >conftest.$ac_ext <<_ACEOF
31355 /* confdefs.h. */
31356 _ACEOF
31357 cat confdefs.h >>conftest.$ac_ext
31358 cat >>conftest.$ac_ext <<_ACEOF
31359 /* end confdefs.h. */
31360 #include <cmath>
31362 main ()
31364 float f; std::isnan(f);
31366 return 0;
31368 _ACEOF
31369 rm -f conftest.$ac_objext
31370 if { (ac_try="$ac_compile"
31371 case "(($ac_try" in
31372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31373 *) ac_try_echo=$ac_try;;
31374 esac
31375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31376 (eval "$ac_compile") 2>conftest.er1
31377 ac_status=$?
31378 grep -v '^ *+' conftest.er1 >conftest.err
31379 rm -f conftest.er1
31380 cat conftest.err >&5
31381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382 (exit $ac_status); } && {
31383 test -z "$ac_cxx_werror_flag" ||
31384 test ! -s conftest.err
31385 } && test -s conftest.$ac_objext; then
31386 ac_cv_func_std_isnan_in_cmath=yes
31387 else
31388 echo "$as_me: failed program was:" >&5
31389 sed 's/^/| /' conftest.$ac_ext >&5
31391 ac_cv_func_std_isnan_in_cmath=no
31394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31395 ac_ext=c
31396 ac_cpp='$CPP $CPPFLAGS'
31397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31402 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
31403 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
31405 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
31407 cat >>confdefs.h <<\_ACEOF
31408 #define HAVE_STD_ISNAN_IN_CMATH 1
31409 _ACEOF
31414 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
31415 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
31416 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
31417 echo $ECHO_N "(cached) $ECHO_C" >&6
31418 else
31419 ac_ext=cpp
31420 ac_cpp='$CXXCPP $CPPFLAGS'
31421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31425 cat >conftest.$ac_ext <<_ACEOF
31426 /* confdefs.h. */
31427 _ACEOF
31428 cat confdefs.h >>conftest.$ac_ext
31429 cat >>conftest.$ac_ext <<_ACEOF
31430 /* end confdefs.h. */
31431 #include <math.h>
31433 main ()
31435 float f; isinf(f);
31437 return 0;
31439 _ACEOF
31440 rm -f conftest.$ac_objext
31441 if { (ac_try="$ac_compile"
31442 case "(($ac_try" in
31443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31444 *) ac_try_echo=$ac_try;;
31445 esac
31446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31447 (eval "$ac_compile") 2>conftest.er1
31448 ac_status=$?
31449 grep -v '^ *+' conftest.er1 >conftest.err
31450 rm -f conftest.er1
31451 cat conftest.err >&5
31452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453 (exit $ac_status); } && {
31454 test -z "$ac_cxx_werror_flag" ||
31455 test ! -s conftest.err
31456 } && test -s conftest.$ac_objext; then
31457 ac_cv_func_isinf_in_math_h=yes
31458 else
31459 echo "$as_me: failed program was:" >&5
31460 sed 's/^/| /' conftest.$ac_ext >&5
31462 ac_cv_func_isinf_in_math_h=no
31465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31466 ac_ext=c
31467 ac_cpp='$CPP $CPPFLAGS'
31468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31473 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
31474 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
31476 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
31478 cat >>confdefs.h <<\_ACEOF
31479 #define HAVE_ISINF_IN_MATH_H 1
31480 _ACEOF
31484 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
31485 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
31486 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
31487 echo $ECHO_N "(cached) $ECHO_C" >&6
31488 else
31489 ac_ext=cpp
31490 ac_cpp='$CXXCPP $CPPFLAGS'
31491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31495 cat >conftest.$ac_ext <<_ACEOF
31496 /* confdefs.h. */
31497 _ACEOF
31498 cat confdefs.h >>conftest.$ac_ext
31499 cat >>conftest.$ac_ext <<_ACEOF
31500 /* end confdefs.h. */
31501 #include <cmath>
31503 main ()
31505 float f; isinf(f);
31507 return 0;
31509 _ACEOF
31510 rm -f conftest.$ac_objext
31511 if { (ac_try="$ac_compile"
31512 case "(($ac_try" in
31513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31514 *) ac_try_echo=$ac_try;;
31515 esac
31516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31517 (eval "$ac_compile") 2>conftest.er1
31518 ac_status=$?
31519 grep -v '^ *+' conftest.er1 >conftest.err
31520 rm -f conftest.er1
31521 cat conftest.err >&5
31522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523 (exit $ac_status); } && {
31524 test -z "$ac_cxx_werror_flag" ||
31525 test ! -s conftest.err
31526 } && test -s conftest.$ac_objext; then
31527 ac_cv_func_isinf_in_cmath=yes
31528 else
31529 echo "$as_me: failed program was:" >&5
31530 sed 's/^/| /' conftest.$ac_ext >&5
31532 ac_cv_func_isinf_in_cmath=no
31535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31536 ac_ext=c
31537 ac_cpp='$CPP $CPPFLAGS'
31538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31543 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
31544 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
31546 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
31548 cat >>confdefs.h <<\_ACEOF
31549 #define HAVE_ISINF_IN_CMATH 1
31550 _ACEOF
31554 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
31555 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
31556 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
31557 echo $ECHO_N "(cached) $ECHO_C" >&6
31558 else
31559 ac_ext=cpp
31560 ac_cpp='$CXXCPP $CPPFLAGS'
31561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31565 cat >conftest.$ac_ext <<_ACEOF
31566 /* confdefs.h. */
31567 _ACEOF
31568 cat confdefs.h >>conftest.$ac_ext
31569 cat >>conftest.$ac_ext <<_ACEOF
31570 /* end confdefs.h. */
31571 #include <cmath>
31573 main ()
31575 float f; std::isinf(f)}
31577 return 0;
31579 _ACEOF
31580 rm -f conftest.$ac_objext
31581 if { (ac_try="$ac_compile"
31582 case "(($ac_try" in
31583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31584 *) ac_try_echo=$ac_try;;
31585 esac
31586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31587 (eval "$ac_compile") 2>conftest.er1
31588 ac_status=$?
31589 grep -v '^ *+' conftest.er1 >conftest.err
31590 rm -f conftest.er1
31591 cat conftest.err >&5
31592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31593 (exit $ac_status); } && {
31594 test -z "$ac_cxx_werror_flag" ||
31595 test ! -s conftest.err
31596 } && test -s conftest.$ac_objext; then
31597 ac_cv_func_std_isinf_in_cmath=yes
31598 else
31599 echo "$as_me: failed program was:" >&5
31600 sed 's/^/| /' conftest.$ac_ext >&5
31602 ac_cv_func_std_isinf_in_cmath=no
31605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31606 ac_ext=c
31607 ac_cpp='$CPP $CPPFLAGS'
31608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31613 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
31614 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
31616 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
31618 cat >>confdefs.h <<\_ACEOF
31619 #define HAVE_STD_ISINF_IN_CMATH 1
31620 _ACEOF
31624 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
31625 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
31626 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31627 echo $ECHO_N "(cached) $ECHO_C" >&6
31628 else
31629 ac_ext=cpp
31630 ac_cpp='$CXXCPP $CPPFLAGS'
31631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31635 cat >conftest.$ac_ext <<_ACEOF
31636 /* confdefs.h. */
31637 _ACEOF
31638 cat confdefs.h >>conftest.$ac_ext
31639 cat >>conftest.$ac_ext <<_ACEOF
31640 /* end confdefs.h. */
31641 #include <ieeefp.h>
31643 main ()
31645 float f; finite(f);
31647 return 0;
31649 _ACEOF
31650 rm -f conftest.$ac_objext
31651 if { (ac_try="$ac_compile"
31652 case "(($ac_try" in
31653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654 *) ac_try_echo=$ac_try;;
31655 esac
31656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657 (eval "$ac_compile") 2>conftest.er1
31658 ac_status=$?
31659 grep -v '^ *+' conftest.er1 >conftest.err
31660 rm -f conftest.er1
31661 cat conftest.err >&5
31662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663 (exit $ac_status); } && {
31664 test -z "$ac_cxx_werror_flag" ||
31665 test ! -s conftest.err
31666 } && test -s conftest.$ac_objext; then
31667 ac_cv_func_finite_in_ieeefp_h=yes
31668 else
31669 echo "$as_me: failed program was:" >&5
31670 sed 's/^/| /' conftest.$ac_ext >&5
31672 ac_cv_func_finite_in_ieeefp_h=no
31675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31676 ac_ext=c
31677 ac_cpp='$CPP $CPPFLAGS'
31678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31683 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
31684 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
31686 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
31688 cat >>confdefs.h <<\_ACEOF
31689 #define HAVE_FINITE_IN_IEEEFP_H 1
31690 _ACEOF
31696 if test "$llvm_cv_platform_type" = "Unix" ; then
31699 for ac_header in stdlib.h unistd.h
31701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31706 echo $ECHO_N "(cached) $ECHO_C" >&6
31708 ac_res=`eval echo '${'$as_ac_Header'}'`
31709 { echo "$as_me:$LINENO: result: $ac_res" >&5
31710 echo "${ECHO_T}$ac_res" >&6; }
31711 else
31712 # Is the header compilable?
31713 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31715 cat >conftest.$ac_ext <<_ACEOF
31716 /* confdefs.h. */
31717 _ACEOF
31718 cat confdefs.h >>conftest.$ac_ext
31719 cat >>conftest.$ac_ext <<_ACEOF
31720 /* end confdefs.h. */
31721 $ac_includes_default
31722 #include <$ac_header>
31723 _ACEOF
31724 rm -f conftest.$ac_objext
31725 if { (ac_try="$ac_compile"
31726 case "(($ac_try" in
31727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31728 *) ac_try_echo=$ac_try;;
31729 esac
31730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31731 (eval "$ac_compile") 2>conftest.er1
31732 ac_status=$?
31733 grep -v '^ *+' conftest.er1 >conftest.err
31734 rm -f conftest.er1
31735 cat conftest.err >&5
31736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737 (exit $ac_status); } && {
31738 test -z "$ac_c_werror_flag" ||
31739 test ! -s conftest.err
31740 } && test -s conftest.$ac_objext; then
31741 ac_header_compiler=yes
31742 else
31743 echo "$as_me: failed program was:" >&5
31744 sed 's/^/| /' conftest.$ac_ext >&5
31746 ac_header_compiler=no
31749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31751 echo "${ECHO_T}$ac_header_compiler" >&6; }
31753 # Is the header present?
31754 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31756 cat >conftest.$ac_ext <<_ACEOF
31757 /* confdefs.h. */
31758 _ACEOF
31759 cat confdefs.h >>conftest.$ac_ext
31760 cat >>conftest.$ac_ext <<_ACEOF
31761 /* end confdefs.h. */
31762 #include <$ac_header>
31763 _ACEOF
31764 if { (ac_try="$ac_cpp conftest.$ac_ext"
31765 case "(($ac_try" in
31766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31767 *) ac_try_echo=$ac_try;;
31768 esac
31769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31771 ac_status=$?
31772 grep -v '^ *+' conftest.er1 >conftest.err
31773 rm -f conftest.er1
31774 cat conftest.err >&5
31775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776 (exit $ac_status); } >/dev/null && {
31777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31778 test ! -s conftest.err
31779 }; then
31780 ac_header_preproc=yes
31781 else
31782 echo "$as_me: failed program was:" >&5
31783 sed 's/^/| /' conftest.$ac_ext >&5
31785 ac_header_preproc=no
31788 rm -f conftest.err conftest.$ac_ext
31789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31790 echo "${ECHO_T}$ac_header_preproc" >&6; }
31792 # So? What about this header?
31793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31794 yes:no: )
31795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31799 ac_header_preproc=yes
31801 no:yes:* )
31802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31814 ( cat <<\_ASBOX
31815 ## ----------------------------------- ##
31816 ## Report this to llvmbugs@cs.uiuc.edu ##
31817 ## ----------------------------------- ##
31818 _ASBOX
31819 ) | sed "s/^/$as_me: WARNING: /" >&2
31821 esac
31822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31825 echo $ECHO_N "(cached) $ECHO_C" >&6
31826 else
31827 eval "$as_ac_Header=\$ac_header_preproc"
31829 ac_res=`eval echo '${'$as_ac_Header'}'`
31830 { echo "$as_me:$LINENO: result: $ac_res" >&5
31831 echo "${ECHO_T}$ac_res" >&6; }
31834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31835 cat >>confdefs.h <<_ACEOF
31836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31837 _ACEOF
31841 done
31844 for ac_func in getpagesize
31846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31850 echo $ECHO_N "(cached) $ECHO_C" >&6
31851 else
31852 cat >conftest.$ac_ext <<_ACEOF
31853 /* confdefs.h. */
31854 _ACEOF
31855 cat confdefs.h >>conftest.$ac_ext
31856 cat >>conftest.$ac_ext <<_ACEOF
31857 /* end confdefs.h. */
31858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31860 #define $ac_func innocuous_$ac_func
31862 /* System header to define __stub macros and hopefully few prototypes,
31863 which can conflict with char $ac_func (); below.
31864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31865 <limits.h> exists even on freestanding compilers. */
31867 #ifdef __STDC__
31868 # include <limits.h>
31869 #else
31870 # include <assert.h>
31871 #endif
31873 #undef $ac_func
31875 /* Override any GCC internal prototype to avoid an error.
31876 Use char because int might match the return type of a GCC
31877 builtin and then its argument prototype would still apply. */
31878 #ifdef __cplusplus
31879 extern "C"
31880 #endif
31881 char $ac_func ();
31882 /* The GNU C library defines this for functions which it implements
31883 to always fail with ENOSYS. Some functions are actually named
31884 something starting with __ and the normal name is an alias. */
31885 #if defined __stub_$ac_func || defined __stub___$ac_func
31886 choke me
31887 #endif
31890 main ()
31892 return $ac_func ();
31894 return 0;
31896 _ACEOF
31897 rm -f conftest.$ac_objext conftest$ac_exeext
31898 if { (ac_try="$ac_link"
31899 case "(($ac_try" in
31900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31901 *) ac_try_echo=$ac_try;;
31902 esac
31903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31904 (eval "$ac_link") 2>conftest.er1
31905 ac_status=$?
31906 grep -v '^ *+' conftest.er1 >conftest.err
31907 rm -f conftest.er1
31908 cat conftest.err >&5
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); } && {
31911 test -z "$ac_c_werror_flag" ||
31912 test ! -s conftest.err
31913 } && test -s conftest$ac_exeext &&
31914 $as_test_x conftest$ac_exeext; then
31915 eval "$as_ac_var=yes"
31916 else
31917 echo "$as_me: failed program was:" >&5
31918 sed 's/^/| /' conftest.$ac_ext >&5
31920 eval "$as_ac_var=no"
31923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31924 conftest$ac_exeext conftest.$ac_ext
31926 ac_res=`eval echo '${'$as_ac_var'}'`
31927 { echo "$as_me:$LINENO: result: $ac_res" >&5
31928 echo "${ECHO_T}$ac_res" >&6; }
31929 if test `eval echo '${'$as_ac_var'}'` = yes; then
31930 cat >>confdefs.h <<_ACEOF
31931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31932 _ACEOF
31935 done
31937 { echo "$as_me:$LINENO: checking for working mmap" >&5
31938 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
31939 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31940 echo $ECHO_N "(cached) $ECHO_C" >&6
31941 else
31942 if test "$cross_compiling" = yes; then
31943 ac_cv_func_mmap_fixed_mapped=no
31944 else
31945 cat >conftest.$ac_ext <<_ACEOF
31946 /* confdefs.h. */
31947 _ACEOF
31948 cat confdefs.h >>conftest.$ac_ext
31949 cat >>conftest.$ac_ext <<_ACEOF
31950 /* end confdefs.h. */
31951 $ac_includes_default
31952 /* malloc might have been renamed as rpl_malloc. */
31953 #undef malloc
31955 /* Thanks to Mike Haertel and Jim Avera for this test.
31956 Here is a matrix of mmap possibilities:
31957 mmap private not fixed
31958 mmap private fixed at somewhere currently unmapped
31959 mmap private fixed at somewhere already mapped
31960 mmap shared not fixed
31961 mmap shared fixed at somewhere currently unmapped
31962 mmap shared fixed at somewhere already mapped
31963 For private mappings, we should verify that changes cannot be read()
31964 back from the file, nor mmap's back from the file at a different
31965 address. (There have been systems where private was not correctly
31966 implemented like the infamous i386 svr4.0, and systems where the
31967 VM page cache was not coherent with the file system buffer cache
31968 like early versions of FreeBSD and possibly contemporary NetBSD.)
31969 For shared mappings, we should conversely verify that changes get
31970 propagated back to all the places they're supposed to be.
31972 Grep wants private fixed already mapped.
31973 The main things grep needs to know about mmap are:
31974 * does it exist and is it safe to write into the mmap'd area
31975 * how to use it (BSD variants) */
31977 #include <fcntl.h>
31978 #include <sys/mman.h>
31980 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
31981 char *malloc ();
31982 #endif
31984 /* This mess was copied from the GNU getpagesize.h. */
31985 #ifndef HAVE_GETPAGESIZE
31986 /* Assume that all systems that can run configure have sys/param.h. */
31987 # ifndef HAVE_SYS_PARAM_H
31988 # define HAVE_SYS_PARAM_H 1
31989 # endif
31991 # ifdef _SC_PAGESIZE
31992 # define getpagesize() sysconf(_SC_PAGESIZE)
31993 # else /* no _SC_PAGESIZE */
31994 # ifdef HAVE_SYS_PARAM_H
31995 # include <sys/param.h>
31996 # ifdef EXEC_PAGESIZE
31997 # define getpagesize() EXEC_PAGESIZE
31998 # else /* no EXEC_PAGESIZE */
31999 # ifdef NBPG
32000 # define getpagesize() NBPG * CLSIZE
32001 # ifndef CLSIZE
32002 # define CLSIZE 1
32003 # endif /* no CLSIZE */
32004 # else /* no NBPG */
32005 # ifdef NBPC
32006 # define getpagesize() NBPC
32007 # else /* no NBPC */
32008 # ifdef PAGESIZE
32009 # define getpagesize() PAGESIZE
32010 # endif /* PAGESIZE */
32011 # endif /* no NBPC */
32012 # endif /* no NBPG */
32013 # endif /* no EXEC_PAGESIZE */
32014 # else /* no HAVE_SYS_PARAM_H */
32015 # define getpagesize() 8192 /* punt totally */
32016 # endif /* no HAVE_SYS_PARAM_H */
32017 # endif /* no _SC_PAGESIZE */
32019 #endif /* no HAVE_GETPAGESIZE */
32022 main ()
32024 char *data, *data2, *data3;
32025 int i, pagesize;
32026 int fd;
32028 pagesize = getpagesize ();
32030 /* First, make a file with some known garbage in it. */
32031 data = (char *) malloc (pagesize);
32032 if (!data)
32033 return 1;
32034 for (i = 0; i < pagesize; ++i)
32035 *(data + i) = rand ();
32036 umask (0);
32037 fd = creat ("conftest.mmap", 0600);
32038 if (fd < 0)
32039 return 1;
32040 if (write (fd, data, pagesize) != pagesize)
32041 return 1;
32042 close (fd);
32044 /* Next, try to mmap the file at a fixed address which already has
32045 something else allocated at it. If we can, also make sure that
32046 we see the same garbage. */
32047 fd = open ("conftest.mmap", O_RDWR);
32048 if (fd < 0)
32049 return 1;
32050 data2 = (char *) malloc (2 * pagesize);
32051 if (!data2)
32052 return 1;
32053 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
32054 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
32055 MAP_PRIVATE | MAP_FIXED, fd, 0L))
32056 return 1;
32057 for (i = 0; i < pagesize; ++i)
32058 if (*(data + i) != *(data2 + i))
32059 return 1;
32061 /* Finally, make sure that changes to the mapped area do not
32062 percolate back to the file as seen by read(). (This is a bug on
32063 some variants of i386 svr4.0.) */
32064 for (i = 0; i < pagesize; ++i)
32065 *(data2 + i) = *(data2 + i) + 1;
32066 data3 = (char *) malloc (pagesize);
32067 if (!data3)
32068 return 1;
32069 if (read (fd, data3, pagesize) != pagesize)
32070 return 1;
32071 for (i = 0; i < pagesize; ++i)
32072 if (*(data + i) != *(data3 + i))
32073 return 1;
32074 close (fd);
32075 return 0;
32077 _ACEOF
32078 rm -f conftest$ac_exeext
32079 if { (ac_try="$ac_link"
32080 case "(($ac_try" in
32081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32082 *) ac_try_echo=$ac_try;;
32083 esac
32084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32085 (eval "$ac_link") 2>&5
32086 ac_status=$?
32087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32089 { (case "(($ac_try" in
32090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32091 *) ac_try_echo=$ac_try;;
32092 esac
32093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32094 (eval "$ac_try") 2>&5
32095 ac_status=$?
32096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097 (exit $ac_status); }; }; then
32098 ac_cv_func_mmap_fixed_mapped=yes
32099 else
32100 echo "$as_me: program exited with status $ac_status" >&5
32101 echo "$as_me: failed program was:" >&5
32102 sed 's/^/| /' conftest.$ac_ext >&5
32104 ( exit $ac_status )
32105 ac_cv_func_mmap_fixed_mapped=no
32107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32112 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
32113 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
32114 if test $ac_cv_func_mmap_fixed_mapped = yes; then
32116 cat >>confdefs.h <<\_ACEOF
32117 #define HAVE_MMAP 1
32118 _ACEOF
32121 rm -f conftest.mmap
32123 { echo "$as_me:$LINENO: checking for mmap of files" >&5
32124 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
32125 if test "${ac_cv_func_mmap_file+set}" = set; then
32126 echo $ECHO_N "(cached) $ECHO_C" >&6
32127 else
32128 ac_ext=c
32129 ac_cpp='$CPP $CPPFLAGS'
32130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32134 if test "$cross_compiling" = yes; then
32135 ac_cv_func_mmap_file=no
32136 else
32137 cat >conftest.$ac_ext <<_ACEOF
32139 /* confdefs.h. */
32140 _ACEOF
32141 cat confdefs.h >>conftest.$ac_ext
32142 cat >>conftest.$ac_ext <<_ACEOF
32143 /* end confdefs.h. */
32145 #include <sys/types.h>
32146 #include <sys/mman.h>
32147 #include <fcntl.h>
32150 main ()
32153 int fd;
32154 fd = creat ("foo",0777);
32155 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
32156 unlink ("foo");
32157 return (fd != (int) MAP_FAILED);
32159 return 0;
32161 _ACEOF
32162 rm -f conftest$ac_exeext
32163 if { (ac_try="$ac_link"
32164 case "(($ac_try" in
32165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32166 *) ac_try_echo=$ac_try;;
32167 esac
32168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32169 (eval "$ac_link") 2>&5
32170 ac_status=$?
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32173 { (case "(($ac_try" in
32174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32175 *) ac_try_echo=$ac_try;;
32176 esac
32177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32178 (eval "$ac_try") 2>&5
32179 ac_status=$?
32180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 (exit $ac_status); }; }; then
32182 ac_cv_func_mmap_file=yes
32183 else
32184 echo "$as_me: program exited with status $ac_status" >&5
32185 echo "$as_me: failed program was:" >&5
32186 sed 's/^/| /' conftest.$ac_ext >&5
32188 ( exit $ac_status )
32189 ac_cv_func_mmap_file=no
32191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32195 ac_ext=c
32196 ac_cpp='$CPP $CPPFLAGS'
32197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32203 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
32204 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
32205 if test "$ac_cv_func_mmap_file" = yes; then
32207 cat >>confdefs.h <<\_ACEOF
32208 #define HAVE_MMAP_FILE
32209 _ACEOF
32211 MMAP_FILE=yes
32215 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
32216 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
32217 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
32218 echo $ECHO_N "(cached) $ECHO_C" >&6
32219 else
32220 if test "$llvm_cv_os_type" = "Interix" ; then
32221 ac_cv_need_dev_zero_for_mmap=yes
32222 else
32223 ac_cv_need_dev_zero_for_mmap=no
32227 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
32228 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
32229 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
32231 cat >>confdefs.h <<\_ACEOF
32232 #define NEED_DEV_ZERO_FOR_MMAP 1
32233 _ACEOF
32237 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
32238 then
32239 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
32240 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
32242 if test "$ac_cv_func_mmap_file" = "no"
32243 then
32244 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
32245 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
32251 for ac_func in __dso_handle
32253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32254 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32257 echo $ECHO_N "(cached) $ECHO_C" >&6
32258 else
32259 cat >conftest.$ac_ext <<_ACEOF
32260 /* confdefs.h. */
32261 _ACEOF
32262 cat confdefs.h >>conftest.$ac_ext
32263 cat >>conftest.$ac_ext <<_ACEOF
32264 /* end confdefs.h. */
32265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32267 #define $ac_func innocuous_$ac_func
32269 /* System header to define __stub macros and hopefully few prototypes,
32270 which can conflict with char $ac_func (); below.
32271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32272 <limits.h> exists even on freestanding compilers. */
32274 #ifdef __STDC__
32275 # include <limits.h>
32276 #else
32277 # include <assert.h>
32278 #endif
32280 #undef $ac_func
32282 /* Override any GCC internal prototype to avoid an error.
32283 Use char because int might match the return type of a GCC
32284 builtin and then its argument prototype would still apply. */
32285 #ifdef __cplusplus
32286 extern "C"
32287 #endif
32288 char $ac_func ();
32289 /* The GNU C library defines this for functions which it implements
32290 to always fail with ENOSYS. Some functions are actually named
32291 something starting with __ and the normal name is an alias. */
32292 #if defined __stub_$ac_func || defined __stub___$ac_func
32293 choke me
32294 #endif
32297 main ()
32299 return $ac_func ();
32301 return 0;
32303 _ACEOF
32304 rm -f conftest.$ac_objext conftest$ac_exeext
32305 if { (ac_try="$ac_link"
32306 case "(($ac_try" in
32307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32308 *) ac_try_echo=$ac_try;;
32309 esac
32310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32311 (eval "$ac_link") 2>conftest.er1
32312 ac_status=$?
32313 grep -v '^ *+' conftest.er1 >conftest.err
32314 rm -f conftest.er1
32315 cat conftest.err >&5
32316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317 (exit $ac_status); } && {
32318 test -z "$ac_c_werror_flag" ||
32319 test ! -s conftest.err
32320 } && test -s conftest$ac_exeext &&
32321 $as_test_x conftest$ac_exeext; then
32322 eval "$as_ac_var=yes"
32323 else
32324 echo "$as_me: failed program was:" >&5
32325 sed 's/^/| /' conftest.$ac_ext >&5
32327 eval "$as_ac_var=no"
32330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32331 conftest$ac_exeext conftest.$ac_ext
32333 ac_res=`eval echo '${'$as_ac_var'}'`
32334 { echo "$as_me:$LINENO: result: $ac_res" >&5
32335 echo "${ECHO_T}$ac_res" >&6; }
32336 if test `eval echo '${'$as_ac_var'}'` = yes; then
32337 cat >>confdefs.h <<_ACEOF
32338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32339 _ACEOF
32342 done
32345 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
32346 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
32347 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
32348 echo $ECHO_N "(cached) $ECHO_C" >&6
32349 else
32350 llvm_cv_llvmgcc_sanity="no"
32351 if test -x "$LLVMGCC" ; then
32352 cp /dev/null conftest.c
32353 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
32354 grep 'target datalayout =' > /dev/null 2>&1
32355 if test $? -eq 0 ; then
32356 llvm_cv_llvmgcc_sanity="yes"
32358 rm conftest.c
32361 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
32362 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
32364 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
32365 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
32366 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
32367 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
32368 LLVMCC1=$llvmcc1path
32370 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
32371 LLVMCC1PLUS=$llvmcc1pluspath
32373 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
32374 LLVMGCCDIR=$llvmgccdir
32376 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
32377 LLVMGCCLIBEXEC=$llvmgcclibexec
32379 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
32380 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
32381 LLVMGCC_VERSION=$llvmgccversion
32383 LLVMGCC_MAJVERS=$llvmgccmajvers
32385 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
32386 LLVMGCC_LANGS=$llvmgcclangs
32388 { echo "$as_me:$LINENO: result: ok" >&5
32389 echo "${ECHO_T}ok" >&6; }
32392 SHLIBEXT=$libltdl_cv_shlibext
32395 # Translate the various configuration directories and other basic
32396 # information into substitutions that will end up in Makefile.config.in
32397 # that these configured values can be used by the makefiles
32398 if test "${prefix}" = "NONE" ; then
32399 prefix="/usr/local"
32401 eval LLVM_PREFIX="${prefix}";
32402 eval LLVM_BINDIR="${prefix}/bin";
32403 eval LLVM_LIBDIR="${prefix}/lib";
32404 eval LLVM_DATADIR="${prefix}/share/llvm";
32405 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
32406 eval LLVM_ETCDIR="${prefix}/etc/llvm";
32407 eval LLVM_INCLUDEDIR="${prefix}/include";
32408 eval LLVM_INFODIR="${prefix}/info";
32409 eval LLVM_MANDIR="${prefix}/man";
32410 LLVM_CONFIGTIME=`date`
32422 # Place the various directores into the config.h file as #defines so that we
32423 # can know about the installation paths within LLVM.
32425 cat >>confdefs.h <<_ACEOF
32426 #define LLVM_PREFIX "$LLVM_PREFIX"
32427 _ACEOF
32430 cat >>confdefs.h <<_ACEOF
32431 #define LLVM_BINDIR "$LLVM_BINDIR"
32432 _ACEOF
32435 cat >>confdefs.h <<_ACEOF
32436 #define LLVM_LIBDIR "$LLVM_LIBDIR"
32437 _ACEOF
32440 cat >>confdefs.h <<_ACEOF
32441 #define LLVM_DATADIR "$LLVM_DATADIR"
32442 _ACEOF
32445 cat >>confdefs.h <<_ACEOF
32446 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
32447 _ACEOF
32450 cat >>confdefs.h <<_ACEOF
32451 #define LLVM_ETCDIR "$LLVM_ETCDIR"
32452 _ACEOF
32455 cat >>confdefs.h <<_ACEOF
32456 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
32457 _ACEOF
32460 cat >>confdefs.h <<_ACEOF
32461 #define LLVM_INFODIR "$LLVM_INFODIR"
32462 _ACEOF
32465 cat >>confdefs.h <<_ACEOF
32466 #define LLVM_MANDIR "$LLVM_MANDIR"
32467 _ACEOF
32470 cat >>confdefs.h <<_ACEOF
32471 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
32472 _ACEOF
32475 cat >>confdefs.h <<_ACEOF
32476 #define LLVM_HOSTTRIPLE "$host"
32477 _ACEOF
32480 # Determine which bindings to build.
32481 if test "$BINDINGS_TO_BUILD" = auto ; then
32482 BINDINGS_TO_BUILD=""
32483 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
32484 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
32487 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
32490 # This isn't really configurey, but it avoids having to repeat the list in
32491 # other files.
32492 ALL_BINDINGS=ocaml
32495 # Do any work necessary to ensure that bindings have what they need.
32496 binding_prereqs_failed=0
32497 for a_binding in $BINDINGS_TO_BUILD ; do
32498 case "$a_binding" in
32499 ocaml)
32500 if test "x$OCAMLC" = x ; then
32501 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
32502 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
32503 binding_prereqs_failed=1
32505 if test "x$OCAMLDEP" = x ; then
32506 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
32507 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
32508 binding_prereqs_failed=1
32510 if test "x$OCAMLOPT" = x ; then
32511 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
32512 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
32514 if test "x$with_ocaml_libdir" != xauto ; then
32515 OCAML_LIBDIR=$with_ocaml_libdir
32517 else
32518 ocaml_stdlib="`"$OCAMLC" -where`"
32519 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
32520 then
32521 # ocaml stdlib is beneath our prefix; use stdlib
32522 OCAML_LIBDIR=$ocaml_stdlib
32524 else
32525 # ocaml stdlib is outside our prefix; use libdir/ocaml
32526 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
32531 esac
32532 done
32533 if test "$binding_prereqs_failed" = 1 ; then
32534 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
32535 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
32536 { (exit 1); exit 1; }; }
32539 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
32540 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
32541 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
32542 echo $ECHO_N "(cached) $ECHO_C" >&6
32543 else
32544 ac_ext=cpp
32545 ac_cpp='$CXXCPP $CPPFLAGS'
32546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32550 oldcxxflags="$CXXFLAGS"
32551 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
32552 cat >conftest.$ac_ext <<_ACEOF
32553 /* confdefs.h. */
32554 _ACEOF
32555 cat confdefs.h >>conftest.$ac_ext
32556 cat >>conftest.$ac_ext <<_ACEOF
32557 /* end confdefs.h. */
32560 main ()
32564 return 0;
32566 _ACEOF
32567 rm -f conftest.$ac_objext
32568 if { (ac_try="$ac_compile"
32569 case "(($ac_try" in
32570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32571 *) ac_try_echo=$ac_try;;
32572 esac
32573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32574 (eval "$ac_compile") 2>conftest.er1
32575 ac_status=$?
32576 grep -v '^ *+' conftest.er1 >conftest.err
32577 rm -f conftest.er1
32578 cat conftest.err >&5
32579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580 (exit $ac_status); } && {
32581 test -z "$ac_cxx_werror_flag" ||
32582 test ! -s conftest.err
32583 } && test -s conftest.$ac_objext; then
32584 llvm_cv_cxx_visibility_inlines_hidden=yes
32585 else
32586 echo "$as_me: failed program was:" >&5
32587 sed 's/^/| /' conftest.$ac_ext >&5
32589 llvm_cv_cxx_visibility_inlines_hidden=no
32592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32593 CXXFLAGS="$oldcxxflags"
32594 ac_ext=c
32595 ac_cpp='$CPP $CPPFLAGS'
32596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32602 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
32603 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
32604 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
32605 ENABLE_VISIBILITY_INLINES_HIDDEN=1
32607 else
32608 ENABLE_VISIBILITY_INLINES_HIDDEN=0
32614 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
32616 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
32618 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
32620 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
32622 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
32625 ac_config_files="$ac_config_files Makefile.config"
32628 ac_config_files="$ac_config_files llvm.spec"
32631 ac_config_files="$ac_config_files docs/doxygen.cfg"
32634 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
32637 ac_config_commands="$ac_config_commands setup"
32639 ac_config_commands="$ac_config_commands Makefile"
32642 ac_config_commands="$ac_config_commands Makefile.common"
32645 ac_config_commands="$ac_config_commands examples/Makefile"
32648 ac_config_commands="$ac_config_commands lib/Makefile"
32651 ac_config_commands="$ac_config_commands runtime/Makefile"
32654 ac_config_commands="$ac_config_commands test/Makefile"
32657 ac_config_commands="$ac_config_commands test/Makefile.tests"
32660 ac_config_commands="$ac_config_commands unittests/Makefile"
32663 ac_config_commands="$ac_config_commands tools/Makefile"
32666 ac_config_commands="$ac_config_commands utils/Makefile"
32669 ac_config_commands="$ac_config_commands projects/Makefile"
32672 ac_config_commands="$ac_config_commands bindings/Makefile"
32675 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
32679 cat >confcache <<\_ACEOF
32680 # This file is a shell script that caches the results of configure
32681 # tests run on this system so they can be shared between configure
32682 # scripts and configure runs, see configure's option --config-cache.
32683 # It is not useful on other systems. If it contains results you don't
32684 # want to keep, you may remove or edit it.
32686 # config.status only pays attention to the cache file if you give it
32687 # the --recheck option to rerun configure.
32689 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32690 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32691 # following values.
32693 _ACEOF
32695 # The following way of writing the cache mishandles newlines in values,
32696 # but we know of no workaround that is simple, portable, and efficient.
32697 # So, we kill variables containing newlines.
32698 # Ultrix sh set writes to stderr and can't be redirected directly,
32699 # and sets the high bit in the cache file unless we assign to the vars.
32701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32702 eval ac_val=\$$ac_var
32703 case $ac_val in #(
32704 *${as_nl}*)
32705 case $ac_var in #(
32706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32708 esac
32709 case $ac_var in #(
32710 _ | IFS | as_nl) ;; #(
32711 *) $as_unset $ac_var ;;
32712 esac ;;
32713 esac
32714 done
32716 (set) 2>&1 |
32717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32718 *${as_nl}ac_space=\ *)
32719 # `set' does not quote correctly, so add quotes (double-quote
32720 # substitution turns \\\\ into \\, and sed turns \\ into \).
32721 sed -n \
32722 "s/'/'\\\\''/g;
32723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32724 ;; #(
32726 # `set' quotes correctly as required by POSIX, so do not add quotes.
32727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32729 esac |
32730 sort
32732 sed '
32733 /^ac_cv_env_/b end
32734 t clear
32735 :clear
32736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32737 t end
32738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32739 :end' >>confcache
32740 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32741 if test -w "$cache_file"; then
32742 test "x$cache_file" != "x/dev/null" &&
32743 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32744 echo "$as_me: updating cache $cache_file" >&6;}
32745 cat confcache >$cache_file
32746 else
32747 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32748 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32751 rm -f confcache
32753 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32754 # Let make expand exec_prefix.
32755 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32757 DEFS=-DHAVE_CONFIG_H
32759 ac_libobjs=
32760 ac_ltlibobjs=
32761 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32762 # 1. Remove the extension, and $U if already installed.
32763 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32764 ac_i=`echo "$ac_i" | sed "$ac_script"`
32765 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32766 # will be set to the directory where LIBOBJS objects are built.
32767 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32768 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32769 done
32770 LIBOBJS=$ac_libobjs
32772 LTLIBOBJS=$ac_ltlibobjs
32775 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32776 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32777 Usually this means the macro was only invoked conditionally." >&5
32778 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32779 Usually this means the macro was only invoked conditionally." >&2;}
32780 { (exit 1); exit 1; }; }
32782 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32783 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32784 Usually this means the macro was only invoked conditionally." >&5
32785 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32786 Usually this means the macro was only invoked conditionally." >&2;}
32787 { (exit 1); exit 1; }; }
32790 : ${CONFIG_STATUS=./config.status}
32791 ac_clean_files_save=$ac_clean_files
32792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32793 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32794 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32795 cat >$CONFIG_STATUS <<_ACEOF
32796 #! $SHELL
32797 # Generated by $as_me.
32798 # Run this file to recreate the current configuration.
32799 # Compiler output produced by configure, useful for debugging
32800 # configure, is in config.log if it exists.
32802 debug=false
32803 ac_cs_recheck=false
32804 ac_cs_silent=false
32805 SHELL=\${CONFIG_SHELL-$SHELL}
32806 _ACEOF
32808 cat >>$CONFIG_STATUS <<\_ACEOF
32809 ## --------------------- ##
32810 ## M4sh Initialization. ##
32811 ## --------------------- ##
32813 # Be more Bourne compatible
32814 DUALCASE=1; export DUALCASE # for MKS sh
32815 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32816 emulate sh
32817 NULLCMD=:
32818 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32819 # is contrary to our usage. Disable this feature.
32820 alias -g '${1+"$@"}'='"$@"'
32821 setopt NO_GLOB_SUBST
32822 else
32823 case `(set -o) 2>/dev/null` in
32824 *posix*) set -o posix ;;
32825 esac
32832 # PATH needs CR
32833 # Avoid depending upon Character Ranges.
32834 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32835 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32836 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32837 as_cr_digits='0123456789'
32838 as_cr_alnum=$as_cr_Letters$as_cr_digits
32840 # The user is always right.
32841 if test "${PATH_SEPARATOR+set}" != set; then
32842 echo "#! /bin/sh" >conf$$.sh
32843 echo "exit 0" >>conf$$.sh
32844 chmod +x conf$$.sh
32845 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32846 PATH_SEPARATOR=';'
32847 else
32848 PATH_SEPARATOR=:
32850 rm -f conf$$.sh
32853 # Support unset when possible.
32854 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32855 as_unset=unset
32856 else
32857 as_unset=false
32861 # IFS
32862 # We need space, tab and new line, in precisely that order. Quoting is
32863 # there to prevent editors from complaining about space-tab.
32864 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32865 # splitting by setting IFS to empty value.)
32866 as_nl='
32868 IFS=" "" $as_nl"
32870 # Find who we are. Look in the path if we contain no directory separator.
32871 case $0 in
32872 *[\\/]* ) as_myself=$0 ;;
32873 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32874 for as_dir in $PATH
32876 IFS=$as_save_IFS
32877 test -z "$as_dir" && as_dir=.
32878 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32879 done
32880 IFS=$as_save_IFS
32883 esac
32884 # We did not find ourselves, most probably we were run as `sh COMMAND'
32885 # in which case we are not to be found in the path.
32886 if test "x$as_myself" = x; then
32887 as_myself=$0
32889 if test ! -f "$as_myself"; then
32890 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32891 { (exit 1); exit 1; }
32894 # Work around bugs in pre-3.0 UWIN ksh.
32895 for as_var in ENV MAIL MAILPATH
32896 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32897 done
32898 PS1='$ '
32899 PS2='> '
32900 PS4='+ '
32902 # NLS nuisances.
32903 for as_var in \
32904 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32905 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32906 LC_TELEPHONE LC_TIME
32908 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32909 eval $as_var=C; export $as_var
32910 else
32911 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32913 done
32915 # Required to use basename.
32916 if expr a : '\(a\)' >/dev/null 2>&1 &&
32917 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32918 as_expr=expr
32919 else
32920 as_expr=false
32923 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32924 as_basename=basename
32925 else
32926 as_basename=false
32930 # Name of the executable.
32931 as_me=`$as_basename -- "$0" ||
32932 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32933 X"$0" : 'X\(//\)$' \| \
32934 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32935 echo X/"$0" |
32936 sed '/^.*\/\([^/][^/]*\)\/*$/{
32937 s//\1/
32940 /^X\/\(\/\/\)$/{
32941 s//\1/
32944 /^X\/\(\/\).*/{
32945 s//\1/
32948 s/.*/./; q'`
32950 # CDPATH.
32951 $as_unset CDPATH
32955 as_lineno_1=$LINENO
32956 as_lineno_2=$LINENO
32957 test "x$as_lineno_1" != "x$as_lineno_2" &&
32958 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32960 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32961 # uniformly replaced by the line number. The first 'sed' inserts a
32962 # line-number line after each line using $LINENO; the second 'sed'
32963 # does the real work. The second script uses 'N' to pair each
32964 # line-number line with the line containing $LINENO, and appends
32965 # trailing '-' during substitution so that $LINENO is not a special
32966 # case at line end.
32967 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32968 # scripts with optimization help from Paolo Bonzini. Blame Lee
32969 # E. McMahon (1931-1989) for sed's syntax. :-)
32970 sed -n '
32972 /[$]LINENO/=
32973 ' <$as_myself |
32974 sed '
32975 s/[$]LINENO.*/&-/
32976 t lineno
32978 :lineno
32980 :loop
32981 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32982 t loop
32983 s/-\n.*//
32984 ' >$as_me.lineno &&
32985 chmod +x "$as_me.lineno" ||
32986 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32987 { (exit 1); exit 1; }; }
32989 # Don't try to exec as it changes $[0], causing all sort of problems
32990 # (the dirname of $[0] is not the place where we might find the
32991 # original and so on. Autoconf is especially sensitive to this).
32992 . "./$as_me.lineno"
32993 # Exit status is that of the last command.
32994 exit
32998 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32999 as_dirname=dirname
33000 else
33001 as_dirname=false
33004 ECHO_C= ECHO_N= ECHO_T=
33005 case `echo -n x` in
33006 -n*)
33007 case `echo 'x\c'` in
33008 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33009 *) ECHO_C='\c';;
33010 esac;;
33012 ECHO_N='-n';;
33013 esac
33015 if expr a : '\(a\)' >/dev/null 2>&1 &&
33016 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33017 as_expr=expr
33018 else
33019 as_expr=false
33022 rm -f conf$$ conf$$.exe conf$$.file
33023 if test -d conf$$.dir; then
33024 rm -f conf$$.dir/conf$$.file
33025 else
33026 rm -f conf$$.dir
33027 mkdir conf$$.dir
33029 echo >conf$$.file
33030 if ln -s conf$$.file conf$$ 2>/dev/null; then
33031 as_ln_s='ln -s'
33032 # ... but there are two gotchas:
33033 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33034 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33035 # In both cases, we have to default to `cp -p'.
33036 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33037 as_ln_s='cp -p'
33038 elif ln conf$$.file conf$$ 2>/dev/null; then
33039 as_ln_s=ln
33040 else
33041 as_ln_s='cp -p'
33043 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33044 rmdir conf$$.dir 2>/dev/null
33046 if mkdir -p . 2>/dev/null; then
33047 as_mkdir_p=:
33048 else
33049 test -d ./-p && rmdir ./-p
33050 as_mkdir_p=false
33053 if test -x / >/dev/null 2>&1; then
33054 as_test_x='test -x'
33055 else
33056 if ls -dL / >/dev/null 2>&1; then
33057 as_ls_L_option=L
33058 else
33059 as_ls_L_option=
33061 as_test_x='
33062 eval sh -c '\''
33063 if test -d "$1"; then
33064 test -d "$1/.";
33065 else
33066 case $1 in
33067 -*)set "./$1";;
33068 esac;
33069 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33070 ???[sx]*):;;*)false;;esac;fi
33071 '\'' sh
33074 as_executable_p=$as_test_x
33076 # Sed expression to map a string onto a valid CPP name.
33077 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33079 # Sed expression to map a string onto a valid variable name.
33080 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33083 exec 6>&1
33085 # Save the log message, to keep $[0] and so on meaningful, and to
33086 # report actual input values of CONFIG_FILES etc. instead of their
33087 # values after options handling.
33088 ac_log="
33089 This file was extended by llvm $as_me 2.5svn, which was
33090 generated by GNU Autoconf 2.61. Invocation command line was
33092 CONFIG_FILES = $CONFIG_FILES
33093 CONFIG_HEADERS = $CONFIG_HEADERS
33094 CONFIG_LINKS = $CONFIG_LINKS
33095 CONFIG_COMMANDS = $CONFIG_COMMANDS
33096 $ $0 $@
33098 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33101 _ACEOF
33103 cat >>$CONFIG_STATUS <<_ACEOF
33104 # Files that config.status was made for.
33105 config_files="$ac_config_files"
33106 config_headers="$ac_config_headers"
33107 config_commands="$ac_config_commands"
33109 _ACEOF
33111 cat >>$CONFIG_STATUS <<\_ACEOF
33112 ac_cs_usage="\
33113 \`$as_me' instantiates files from templates according to the
33114 current configuration.
33116 Usage: $0 [OPTIONS] [FILE]...
33118 -h, --help print this help, then exit
33119 -V, --version print version number and configuration settings, then exit
33120 -q, --quiet do not print progress messages
33121 -d, --debug don't remove temporary files
33122 --recheck update $as_me by reconfiguring in the same conditions
33123 --file=FILE[:TEMPLATE]
33124 instantiate the configuration file FILE
33125 --header=FILE[:TEMPLATE]
33126 instantiate the configuration header FILE
33128 Configuration files:
33129 $config_files
33131 Configuration headers:
33132 $config_headers
33134 Configuration commands:
33135 $config_commands
33137 Report bugs to <bug-autoconf@gnu.org>."
33139 _ACEOF
33140 cat >>$CONFIG_STATUS <<_ACEOF
33141 ac_cs_version="\\
33142 llvm config.status 2.5svn
33143 configured by $0, generated by GNU Autoconf 2.61,
33144 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33146 Copyright (C) 2006 Free Software Foundation, Inc.
33147 This config.status script is free software; the Free Software Foundation
33148 gives unlimited permission to copy, distribute and modify it."
33150 ac_pwd='$ac_pwd'
33151 srcdir='$srcdir'
33152 INSTALL='$INSTALL'
33153 _ACEOF
33155 cat >>$CONFIG_STATUS <<\_ACEOF
33156 # If no file are specified by the user, then we need to provide default
33157 # value. By we need to know if files were specified by the user.
33158 ac_need_defaults=:
33159 while test $# != 0
33161 case $1 in
33162 --*=*)
33163 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33164 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33165 ac_shift=:
33168 ac_option=$1
33169 ac_optarg=$2
33170 ac_shift=shift
33172 esac
33174 case $ac_option in
33175 # Handling of the options.
33176 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33177 ac_cs_recheck=: ;;
33178 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33179 echo "$ac_cs_version"; exit ;;
33180 --debug | --debu | --deb | --de | --d | -d )
33181 debug=: ;;
33182 --file | --fil | --fi | --f )
33183 $ac_shift
33184 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33185 ac_need_defaults=false;;
33186 --header | --heade | --head | --hea )
33187 $ac_shift
33188 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33189 ac_need_defaults=false;;
33190 --he | --h)
33191 # Conflict between --help and --header
33192 { echo "$as_me: error: ambiguous option: $1
33193 Try \`$0 --help' for more information." >&2
33194 { (exit 1); exit 1; }; };;
33195 --help | --hel | -h )
33196 echo "$ac_cs_usage"; exit ;;
33197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33198 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33199 ac_cs_silent=: ;;
33201 # This is an error.
33202 -*) { echo "$as_me: error: unrecognized option: $1
33203 Try \`$0 --help' for more information." >&2
33204 { (exit 1); exit 1; }; } ;;
33206 *) ac_config_targets="$ac_config_targets $1"
33207 ac_need_defaults=false ;;
33209 esac
33210 shift
33211 done
33213 ac_configure_extra_args=
33215 if $ac_cs_silent; then
33216 exec 6>/dev/null
33217 ac_configure_extra_args="$ac_configure_extra_args --silent"
33220 _ACEOF
33221 cat >>$CONFIG_STATUS <<_ACEOF
33222 if \$ac_cs_recheck; then
33223 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33224 CONFIG_SHELL=$SHELL
33225 export CONFIG_SHELL
33226 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33229 _ACEOF
33230 cat >>$CONFIG_STATUS <<\_ACEOF
33231 exec 5>>config.log
33233 echo
33234 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33235 ## Running $as_me. ##
33236 _ASBOX
33237 echo "$ac_log"
33238 } >&5
33240 _ACEOF
33241 cat >>$CONFIG_STATUS <<_ACEOF
33243 # INIT-COMMANDS
33245 llvm_src="${srcdir}"
33247 _ACEOF
33249 cat >>$CONFIG_STATUS <<\_ACEOF
33251 # Handling of arguments.
33252 for ac_config_target in $ac_config_targets
33254 case $ac_config_target in
33255 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
33256 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
33257 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
33258 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
33259 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
33260 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
33261 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
33262 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
33263 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
33264 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
33265 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
33266 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
33267 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
33268 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
33269 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
33270 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
33271 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
33272 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
33273 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
33274 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
33275 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
33276 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
33277 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
33279 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33280 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33281 { (exit 1); exit 1; }; };;
33282 esac
33283 done
33286 # If the user did not use the arguments to specify the items to instantiate,
33287 # then the envvar interface is used. Set only those that are not.
33288 # We use the long form for the default assignment because of an extremely
33289 # bizarre bug on SunOS 4.1.3.
33290 if $ac_need_defaults; then
33291 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33292 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33293 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33296 # Have a temporary directory for convenience. Make it in the build tree
33297 # simply because there is no reason against having it here, and in addition,
33298 # creating and moving files from /tmp can sometimes cause problems.
33299 # Hook for its removal unless debugging.
33300 # Note that there is a small window in which the directory will not be cleaned:
33301 # after its creation but before its name has been assigned to `$tmp'.
33302 $debug ||
33304 tmp=
33305 trap 'exit_status=$?
33306 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33308 trap '{ (exit 1); exit 1; }' 1 2 13 15
33310 # Create a (secure) tmp directory for tmp files.
33313 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33314 test -n "$tmp" && test -d "$tmp"
33315 } ||
33317 tmp=./conf$$-$RANDOM
33318 (umask 077 && mkdir "$tmp")
33319 } ||
33321 echo "$me: cannot create a temporary directory in ." >&2
33322 { (exit 1); exit 1; }
33326 # Set up the sed scripts for CONFIG_FILES section.
33329 # No need to generate the scripts if there are no CONFIG_FILES.
33330 # This happens for instance when ./config.status config.h
33331 if test -n "$CONFIG_FILES"; then
33333 _ACEOF
33337 ac_delim='%!_!# '
33338 for ac_last_try in false false false false false :; do
33339 cat >conf$$subs.sed <<_ACEOF
33340 SHELL!$SHELL$ac_delim
33341 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
33342 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
33343 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
33344 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
33345 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
33346 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
33347 exec_prefix!$exec_prefix$ac_delim
33348 prefix!$prefix$ac_delim
33349 program_transform_name!$program_transform_name$ac_delim
33350 bindir!$bindir$ac_delim
33351 sbindir!$sbindir$ac_delim
33352 libexecdir!$libexecdir$ac_delim
33353 datarootdir!$datarootdir$ac_delim
33354 datadir!$datadir$ac_delim
33355 sysconfdir!$sysconfdir$ac_delim
33356 sharedstatedir!$sharedstatedir$ac_delim
33357 localstatedir!$localstatedir$ac_delim
33358 includedir!$includedir$ac_delim
33359 oldincludedir!$oldincludedir$ac_delim
33360 docdir!$docdir$ac_delim
33361 infodir!$infodir$ac_delim
33362 htmldir!$htmldir$ac_delim
33363 dvidir!$dvidir$ac_delim
33364 pdfdir!$pdfdir$ac_delim
33365 psdir!$psdir$ac_delim
33366 libdir!$libdir$ac_delim
33367 localedir!$localedir$ac_delim
33368 mandir!$mandir$ac_delim
33369 DEFS!$DEFS$ac_delim
33370 ECHO_C!$ECHO_C$ac_delim
33371 ECHO_N!$ECHO_N$ac_delim
33372 ECHO_T!$ECHO_T$ac_delim
33373 LIBS!$LIBS$ac_delim
33374 build_alias!$build_alias$ac_delim
33375 host_alias!$host_alias$ac_delim
33376 target_alias!$target_alias$ac_delim
33377 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
33378 subdirs!$subdirs$ac_delim
33379 build!$build$ac_delim
33380 build_cpu!$build_cpu$ac_delim
33381 build_vendor!$build_vendor$ac_delim
33382 build_os!$build_os$ac_delim
33383 host!$host$ac_delim
33384 host_cpu!$host_cpu$ac_delim
33385 host_vendor!$host_vendor$ac_delim
33386 host_os!$host_os$ac_delim
33387 target!$target$ac_delim
33388 target_cpu!$target_cpu$ac_delim
33389 target_vendor!$target_vendor$ac_delim
33390 target_os!$target_os$ac_delim
33391 OS!$OS$ac_delim
33392 LINKALL!$LINKALL$ac_delim
33393 NOLINKALL!$NOLINKALL$ac_delim
33394 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
33395 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
33396 ARCH!$ARCH$ac_delim
33397 ENDIAN!$ENDIAN$ac_delim
33398 CC!$CC$ac_delim
33399 CFLAGS!$CFLAGS$ac_delim
33400 LDFLAGS!$LDFLAGS$ac_delim
33401 CPPFLAGS!$CPPFLAGS$ac_delim
33402 ac_ct_CC!$ac_ct_CC$ac_delim
33403 EXEEXT!$EXEEXT$ac_delim
33404 OBJEXT!$OBJEXT$ac_delim
33405 CPP!$CPP$ac_delim
33406 GREP!$GREP$ac_delim
33407 EGREP!$EGREP$ac_delim
33408 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
33409 BUILD_CC!$BUILD_CC$ac_delim
33410 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
33411 BUILD_CXX!$BUILD_CXX$ac_delim
33412 CVSBUILD!$CVSBUILD$ac_delim
33413 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
33414 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
33415 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
33416 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
33417 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
33418 JIT!$JIT$ac_delim
33419 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
33420 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
33421 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
33422 ENABLE_PIC!$ENABLE_PIC$ac_delim
33423 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
33424 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
33425 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
33426 CXX!$CXX$ac_delim
33427 CXXFLAGS!$CXXFLAGS$ac_delim
33428 ac_ct_CXX!$ac_ct_CXX$ac_delim
33429 LEX!$LEX$ac_delim
33430 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
33431 LEXLIB!$LEXLIB$ac_delim
33432 FLEX!$FLEX$ac_delim
33433 YACC!$YACC$ac_delim
33434 YFLAGS!$YFLAGS$ac_delim
33435 BISON!$BISON$ac_delim
33436 NM!$NM$ac_delim
33437 _ACEOF
33439 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33440 break
33441 elif $ac_last_try; then
33442 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33443 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33444 { (exit 1); exit 1; }; }
33445 else
33446 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33448 done
33450 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33451 if test -n "$ac_eof"; then
33452 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33453 ac_eof=`expr $ac_eof + 1`
33456 cat >>$CONFIG_STATUS <<_ACEOF
33457 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
33458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33459 _ACEOF
33460 sed '
33461 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33462 s/^/s,@/; s/!/@,|#_!!_#|/
33465 s/'"$ac_delim"'$/,g/; t
33466 s/$/\\/; p
33467 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33468 ' >>$CONFIG_STATUS <conf$$subs.sed
33469 rm -f conf$$subs.sed
33470 cat >>$CONFIG_STATUS <<_ACEOF
33471 CEOF$ac_eof
33472 _ACEOF
33475 ac_delim='%!_!# '
33476 for ac_last_try in false false false false false :; do
33477 cat >conf$$subs.sed <<_ACEOF
33478 ifGNUmake!$ifGNUmake$ac_delim
33479 LN_S!$LN_S$ac_delim
33480 CMP!$CMP$ac_delim
33481 CP!$CP$ac_delim
33482 DATE!$DATE$ac_delim
33483 FIND!$FIND$ac_delim
33484 MKDIR!$MKDIR$ac_delim
33485 MV!$MV$ac_delim
33486 RANLIB!$RANLIB$ac_delim
33487 RM!$RM$ac_delim
33488 SED!$SED$ac_delim
33489 TAR!$TAR$ac_delim
33490 BINPWD!$BINPWD$ac_delim
33491 GRAPHVIZ!$GRAPHVIZ$ac_delim
33492 DOT!$DOT$ac_delim
33493 GV!$GV$ac_delim
33494 DOTTY!$DOTTY$ac_delim
33495 PERL!$PERL$ac_delim
33496 HAVE_PERL!$HAVE_PERL$ac_delim
33497 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
33498 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
33499 INSTALL_DATA!$INSTALL_DATA$ac_delim
33500 BZIP2!$BZIP2$ac_delim
33501 DOXYGEN!$DOXYGEN$ac_delim
33502 GROFF!$GROFF$ac_delim
33503 GZIP!$GZIP$ac_delim
33504 POD2HTML!$POD2HTML$ac_delim
33505 POD2MAN!$POD2MAN$ac_delim
33506 RUNTEST!$RUNTEST$ac_delim
33507 TCLSH!$TCLSH$ac_delim
33508 ZIP!$ZIP$ac_delim
33509 OCAMLC!$OCAMLC$ac_delim
33510 OCAMLOPT!$OCAMLOPT$ac_delim
33511 OCAMLDEP!$OCAMLDEP$ac_delim
33512 OCAMLDOC!$OCAMLDOC$ac_delim
33513 GAS!$GAS$ac_delim
33514 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
33515 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
33516 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
33517 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
33518 LIBADD_DL!$LIBADD_DL$ac_delim
33519 ECHO!$ECHO$ac_delim
33520 AR!$AR$ac_delim
33521 STRIP!$STRIP$ac_delim
33522 CXXCPP!$CXXCPP$ac_delim
33523 F77!$F77$ac_delim
33524 FFLAGS!$FFLAGS$ac_delim
33525 ac_ct_F77!$ac_ct_F77$ac_delim
33526 LIBTOOL!$LIBTOOL$ac_delim
33527 LLVMGCC!$LLVMGCC$ac_delim
33528 LLVMGXX!$LLVMGXX$ac_delim
33529 USE_UDIS86!$USE_UDIS86$ac_delim
33530 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
33531 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
33532 ALLOCA!$ALLOCA$ac_delim
33533 MMAP_FILE!$MMAP_FILE$ac_delim
33534 LLVMCC1!$LLVMCC1$ac_delim
33535 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
33536 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
33537 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
33538 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
33539 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
33540 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
33541 SHLIBEXT!$SHLIBEXT$ac_delim
33542 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
33543 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
33544 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
33545 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
33546 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
33547 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
33548 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
33549 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
33550 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
33551 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
33552 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
33553 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
33554 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
33555 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
33556 LIBOBJS!$LIBOBJS$ac_delim
33557 LTLIBOBJS!$LTLIBOBJS$ac_delim
33558 _ACEOF
33560 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
33561 break
33562 elif $ac_last_try; then
33563 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33564 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33565 { (exit 1); exit 1; }; }
33566 else
33567 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33569 done
33571 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33572 if test -n "$ac_eof"; then
33573 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33574 ac_eof=`expr $ac_eof + 1`
33577 cat >>$CONFIG_STATUS <<_ACEOF
33578 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
33579 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
33580 _ACEOF
33581 sed '
33582 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33583 s/^/s,@/; s/!/@,|#_!!_#|/
33586 s/'"$ac_delim"'$/,g/; t
33587 s/$/\\/; p
33588 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33589 ' >>$CONFIG_STATUS <conf$$subs.sed
33590 rm -f conf$$subs.sed
33591 cat >>$CONFIG_STATUS <<_ACEOF
33592 :end
33593 s/|#_!!_#|//g
33594 CEOF$ac_eof
33595 _ACEOF
33598 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33599 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33600 # trailing colons and then remove the whole line if VPATH becomes empty
33601 # (actually we leave an empty line to preserve line numbers).
33602 if test "x$srcdir" = x.; then
33603 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33604 s/:*\$(srcdir):*/:/
33605 s/:*\${srcdir}:*/:/
33606 s/:*@srcdir@:*/:/
33607 s/^\([^=]*=[ ]*\):*/\1/
33608 s/:*$//
33609 s/^[^=]*=[ ]*$//
33613 cat >>$CONFIG_STATUS <<\_ACEOF
33614 fi # test -n "$CONFIG_FILES"
33617 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
33619 case $ac_tag in
33620 :[FHLC]) ac_mode=$ac_tag; continue;;
33621 esac
33622 case $ac_mode$ac_tag in
33623 :[FHL]*:*);;
33624 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33625 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33626 { (exit 1); exit 1; }; };;
33627 :[FH]-) ac_tag=-:-;;
33628 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33629 esac
33630 ac_save_IFS=$IFS
33631 IFS=:
33632 set x $ac_tag
33633 IFS=$ac_save_IFS
33634 shift
33635 ac_file=$1
33636 shift
33638 case $ac_mode in
33639 :L) ac_source=$1;;
33640 :[FH])
33641 ac_file_inputs=
33642 for ac_f
33644 case $ac_f in
33645 -) ac_f="$tmp/stdin";;
33646 *) # Look for the file first in the build tree, then in the source tree
33647 # (if the path is not absolute). The absolute path cannot be DOS-style,
33648 # because $ac_f cannot contain `:'.
33649 test -f "$ac_f" ||
33650 case $ac_f in
33651 [\\/$]*) false;;
33652 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33653 esac ||
33654 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33655 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33656 { (exit 1); exit 1; }; };;
33657 esac
33658 ac_file_inputs="$ac_file_inputs $ac_f"
33659 done
33661 # Let's still pretend it is `configure' which instantiates (i.e., don't
33662 # use $as_me), people would be surprised to read:
33663 # /* config.h. Generated by config.status. */
33664 configure_input="Generated from "`IFS=:
33665 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33666 if test x"$ac_file" != x-; then
33667 configure_input="$ac_file. $configure_input"
33668 { echo "$as_me:$LINENO: creating $ac_file" >&5
33669 echo "$as_me: creating $ac_file" >&6;}
33672 case $ac_tag in
33673 *:-:* | *:-) cat >"$tmp/stdin";;
33674 esac
33676 esac
33678 ac_dir=`$as_dirname -- "$ac_file" ||
33679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33680 X"$ac_file" : 'X\(//\)[^/]' \| \
33681 X"$ac_file" : 'X\(//\)$' \| \
33682 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33683 echo X"$ac_file" |
33684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33685 s//\1/
33688 /^X\(\/\/\)[^/].*/{
33689 s//\1/
33692 /^X\(\/\/\)$/{
33693 s//\1/
33696 /^X\(\/\).*/{
33697 s//\1/
33700 s/.*/./; q'`
33701 { as_dir="$ac_dir"
33702 case $as_dir in #(
33703 -*) as_dir=./$as_dir;;
33704 esac
33705 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33706 as_dirs=
33707 while :; do
33708 case $as_dir in #(
33709 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33710 *) as_qdir=$as_dir;;
33711 esac
33712 as_dirs="'$as_qdir' $as_dirs"
33713 as_dir=`$as_dirname -- "$as_dir" ||
33714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33715 X"$as_dir" : 'X\(//\)[^/]' \| \
33716 X"$as_dir" : 'X\(//\)$' \| \
33717 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33718 echo X"$as_dir" |
33719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33720 s//\1/
33723 /^X\(\/\/\)[^/].*/{
33724 s//\1/
33727 /^X\(\/\/\)$/{
33728 s//\1/
33731 /^X\(\/\).*/{
33732 s//\1/
33735 s/.*/./; q'`
33736 test -d "$as_dir" && break
33737 done
33738 test -z "$as_dirs" || eval "mkdir $as_dirs"
33739 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33740 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33741 { (exit 1); exit 1; }; }; }
33742 ac_builddir=.
33744 case "$ac_dir" in
33745 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33747 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33748 # A ".." for each directory in $ac_dir_suffix.
33749 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33750 case $ac_top_builddir_sub in
33751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33753 esac ;;
33754 esac
33755 ac_abs_top_builddir=$ac_pwd
33756 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33757 # for backward compatibility:
33758 ac_top_builddir=$ac_top_build_prefix
33760 case $srcdir in
33761 .) # We are building in place.
33762 ac_srcdir=.
33763 ac_top_srcdir=$ac_top_builddir_sub
33764 ac_abs_top_srcdir=$ac_pwd ;;
33765 [\\/]* | ?:[\\/]* ) # Absolute name.
33766 ac_srcdir=$srcdir$ac_dir_suffix;
33767 ac_top_srcdir=$srcdir
33768 ac_abs_top_srcdir=$srcdir ;;
33769 *) # Relative name.
33770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33771 ac_top_srcdir=$ac_top_build_prefix$srcdir
33772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33773 esac
33774 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33777 case $ac_mode in
33780 # CONFIG_FILE
33783 case $INSTALL in
33784 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33785 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33786 esac
33787 _ACEOF
33789 cat >>$CONFIG_STATUS <<\_ACEOF
33790 # If the template does not know about datarootdir, expand it.
33791 # FIXME: This hack should be removed a few years after 2.60.
33792 ac_datarootdir_hack=; ac_datarootdir_seen=
33794 case `sed -n '/datarootdir/ {
33798 /@datadir@/p
33799 /@docdir@/p
33800 /@infodir@/p
33801 /@localedir@/p
33802 /@mandir@/p
33803 ' $ac_file_inputs` in
33804 *datarootdir*) ac_datarootdir_seen=yes;;
33805 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33806 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33807 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33808 _ACEOF
33809 cat >>$CONFIG_STATUS <<_ACEOF
33810 ac_datarootdir_hack='
33811 s&@datadir@&$datadir&g
33812 s&@docdir@&$docdir&g
33813 s&@infodir@&$infodir&g
33814 s&@localedir@&$localedir&g
33815 s&@mandir@&$mandir&g
33816 s&\\\${datarootdir}&$datarootdir&g' ;;
33817 esac
33818 _ACEOF
33820 # Neutralize VPATH when `$srcdir' = `.'.
33821 # Shell code in configure.ac might set extrasub.
33822 # FIXME: do we really want to maintain this feature?
33823 cat >>$CONFIG_STATUS <<_ACEOF
33824 sed "$ac_vpsub
33825 $extrasub
33826 _ACEOF
33827 cat >>$CONFIG_STATUS <<\_ACEOF
33829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33830 s&@configure_input@&$configure_input&;t t
33831 s&@top_builddir@&$ac_top_builddir_sub&;t t
33832 s&@srcdir@&$ac_srcdir&;t t
33833 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33834 s&@top_srcdir@&$ac_top_srcdir&;t t
33835 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33836 s&@builddir@&$ac_builddir&;t t
33837 s&@abs_builddir@&$ac_abs_builddir&;t t
33838 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33839 s&@INSTALL@&$ac_INSTALL&;t t
33840 $ac_datarootdir_hack
33841 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33843 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33844 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33845 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33846 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33847 which seems to be undefined. Please make sure it is defined." >&5
33848 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33849 which seems to be undefined. Please make sure it is defined." >&2;}
33851 rm -f "$tmp/stdin"
33852 case $ac_file in
33853 -) cat "$tmp/out"; rm -f "$tmp/out";;
33854 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33855 esac
33859 # CONFIG_HEADER
33861 _ACEOF
33863 # Transform confdefs.h into a sed script `conftest.defines', that
33864 # substitutes the proper values into config.h.in to produce config.h.
33865 rm -f conftest.defines conftest.tail
33866 # First, append a space to every undef/define line, to ease matching.
33867 echo 's/$/ /' >conftest.defines
33868 # Then, protect against being on the right side of a sed subst, or in
33869 # an unquoted here document, in config.status. If some macros were
33870 # called several times there might be several #defines for the same
33871 # symbol, which is useless. But do not sort them, since the last
33872 # AC_DEFINE must be honored.
33873 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33874 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33875 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33876 # PARAMS is the parameter list in the macro definition--in most cases, it's
33877 # just an empty string.
33878 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33879 ac_dB='\\)[ (].*,\\1define\\2'
33880 ac_dC=' '
33881 ac_dD=' ,'
33883 uniq confdefs.h |
33884 sed -n '
33885 t rset
33886 :rset
33887 s/^[ ]*#[ ]*define[ ][ ]*//
33888 t ok
33891 s/[\\&,]/\\&/g
33892 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33893 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33894 ' >>conftest.defines
33896 # Remove the space that was appended to ease matching.
33897 # Then replace #undef with comments. This is necessary, for
33898 # example, in the case of _POSIX_SOURCE, which is predefined and required
33899 # on some systems where configure will not decide to define it.
33900 # (The regexp can be short, since the line contains either #define or #undef.)
33901 echo 's/ $//
33902 s,^[ #]*u.*,/* & */,' >>conftest.defines
33904 # Break up conftest.defines:
33905 ac_max_sed_lines=50
33907 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33908 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33909 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33910 # et cetera.
33911 ac_in='$ac_file_inputs'
33912 ac_out='"$tmp/out1"'
33913 ac_nxt='"$tmp/out2"'
33915 while :
33917 # Write a here document:
33918 cat >>$CONFIG_STATUS <<_ACEOF
33919 # First, check the format of the line:
33920 cat >"\$tmp/defines.sed" <<\\CEOF
33921 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33922 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33924 :def
33925 _ACEOF
33926 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33927 echo 'CEOF
33928 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33929 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33930 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33931 grep . conftest.tail >/dev/null || break
33932 rm -f conftest.defines
33933 mv conftest.tail conftest.defines
33934 done
33935 rm -f conftest.defines conftest.tail
33937 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33938 cat >>$CONFIG_STATUS <<\_ACEOF
33939 if test x"$ac_file" != x-; then
33940 echo "/* $configure_input */" >"$tmp/config.h"
33941 cat "$ac_result" >>"$tmp/config.h"
33942 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33943 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33944 echo "$as_me: $ac_file is unchanged" >&6;}
33945 else
33946 rm -f $ac_file
33947 mv "$tmp/config.h" $ac_file
33949 else
33950 echo "/* $configure_input */"
33951 cat "$ac_result"
33953 rm -f "$tmp/out12"
33956 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33957 echo "$as_me: executing $ac_file commands" >&6;}
33959 esac
33962 case $ac_file$ac_mode in
33963 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33964 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33965 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33966 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33967 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33968 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33969 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33970 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
33971 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33972 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
33973 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33974 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33975 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33976 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33977 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
33978 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
33979 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33980 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33981 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33982 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33983 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33984 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
33985 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33986 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33987 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33988 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
33990 esac
33991 done # for ac_tag
33994 { (exit 0); exit 0; }
33995 _ACEOF
33996 chmod +x $CONFIG_STATUS
33997 ac_clean_files=$ac_clean_files_save
34000 # configure is writing to config.log, and then calls config.status.
34001 # config.status does its own redirection, appending to config.log.
34002 # Unfortunately, on DOS this fails, as config.log is still kept open
34003 # by configure, so config.status won't be able to write to it; its
34004 # output is simply discarded. So we exec the FD to /dev/null,
34005 # effectively closing config.log, so it can be properly (re)opened and
34006 # appended to by config.status. When coming back to configure, we
34007 # need to make the FD available again.
34008 if test "$no_create" != yes; then
34009 ac_cs_success=:
34010 ac_config_status_args=
34011 test "$silent" = yes &&
34012 ac_config_status_args="$ac_config_status_args --quiet"
34013 exec 5>/dev/null
34014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34015 exec 5>>config.log
34016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34017 # would make configure fail if this is the last instruction.
34018 $ac_cs_success || { (exit 1); exit 1; }
34022 # CONFIG_SUBDIRS section.
34024 if test "$no_recursion" != yes; then
34026 # Remove --cache-file and --srcdir arguments so they do not pile up.
34027 ac_sub_configure_args=
34028 ac_prev=
34029 eval "set x $ac_configure_args"
34030 shift
34031 for ac_arg
34033 if test -n "$ac_prev"; then
34034 ac_prev=
34035 continue
34037 case $ac_arg in
34038 -cache-file | --cache-file | --cache-fil | --cache-fi \
34039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34040 ac_prev=cache_file ;;
34041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34043 | --c=*)
34045 --config-cache | -C)
34047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34048 ac_prev=srcdir ;;
34049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34052 ac_prev=prefix ;;
34053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34056 case $ac_arg in
34057 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34058 esac
34059 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34060 esac
34061 done
34063 # Always prepend --prefix to ensure using the same prefix
34064 # in subdir configurations.
34065 ac_arg="--prefix=$prefix"
34066 case $ac_arg in
34067 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34068 esac
34069 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
34071 # Pass --silent
34072 if test "$silent" = yes; then
34073 ac_sub_configure_args="--silent $ac_sub_configure_args"
34076 ac_popdir=`pwd`
34077 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34079 # Do not complain, so a configure script can configure whichever
34080 # parts of a large source tree are present.
34081 test -d "$srcdir/$ac_dir" || continue
34083 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34084 echo "$as_me:$LINENO: $ac_msg" >&5
34085 echo "$ac_msg" >&6
34086 { as_dir="$ac_dir"
34087 case $as_dir in #(
34088 -*) as_dir=./$as_dir;;
34089 esac
34090 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34091 as_dirs=
34092 while :; do
34093 case $as_dir in #(
34094 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34095 *) as_qdir=$as_dir;;
34096 esac
34097 as_dirs="'$as_qdir' $as_dirs"
34098 as_dir=`$as_dirname -- "$as_dir" ||
34099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34100 X"$as_dir" : 'X\(//\)[^/]' \| \
34101 X"$as_dir" : 'X\(//\)$' \| \
34102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34103 echo X"$as_dir" |
34104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34105 s//\1/
34108 /^X\(\/\/\)[^/].*/{
34109 s//\1/
34112 /^X\(\/\/\)$/{
34113 s//\1/
34116 /^X\(\/\).*/{
34117 s//\1/
34120 s/.*/./; q'`
34121 test -d "$as_dir" && break
34122 done
34123 test -z "$as_dirs" || eval "mkdir $as_dirs"
34124 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34125 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34126 { (exit 1); exit 1; }; }; }
34127 ac_builddir=.
34129 case "$ac_dir" in
34130 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34132 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34133 # A ".." for each directory in $ac_dir_suffix.
34134 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34135 case $ac_top_builddir_sub in
34136 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34137 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34138 esac ;;
34139 esac
34140 ac_abs_top_builddir=$ac_pwd
34141 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34142 # for backward compatibility:
34143 ac_top_builddir=$ac_top_build_prefix
34145 case $srcdir in
34146 .) # We are building in place.
34147 ac_srcdir=.
34148 ac_top_srcdir=$ac_top_builddir_sub
34149 ac_abs_top_srcdir=$ac_pwd ;;
34150 [\\/]* | ?:[\\/]* ) # Absolute name.
34151 ac_srcdir=$srcdir$ac_dir_suffix;
34152 ac_top_srcdir=$srcdir
34153 ac_abs_top_srcdir=$srcdir ;;
34154 *) # Relative name.
34155 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34156 ac_top_srcdir=$ac_top_build_prefix$srcdir
34157 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34158 esac
34159 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34162 cd "$ac_dir"
34164 # Check for guested configure; otherwise get Cygnus style configure.
34165 if test -f "$ac_srcdir/configure.gnu"; then
34166 ac_sub_configure=$ac_srcdir/configure.gnu
34167 elif test -f "$ac_srcdir/configure"; then
34168 ac_sub_configure=$ac_srcdir/configure
34169 elif test -f "$ac_srcdir/configure.in"; then
34170 # This should be Cygnus configure.
34171 ac_sub_configure=$ac_aux_dir/configure
34172 else
34173 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34174 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34175 ac_sub_configure=
34178 # The recursion is here.
34179 if test -n "$ac_sub_configure"; then
34180 # Make the cache file name correct relative to the subdirectory.
34181 case $cache_file in
34182 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34183 *) # Relative name.
34184 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34185 esac
34187 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34188 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34189 # The eval makes quoting arguments work.
34190 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34191 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34192 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34193 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34194 { (exit 1); exit 1; }; }
34197 cd "$ac_popdir"
34198 done