Fix reversed logic spotted by Owen Anderson.
[llvm.git] / configure
blob6399c932ef6a10dda88cfec443a22f37bc6427f8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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-2009 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
275 (as_func_return () {
276 (exit $1)
278 as_func_success () {
279 as_func_return 0
281 as_func_failure () {
282 as_func_return 1
284 as_func_ret_success () {
285 return 0
287 as_func_ret_failure () {
288 return 1
291 exitcode=0
292 if as_func_success; then
294 else
295 exitcode=1
296 echo as_func_success failed.
299 if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
306 else
307 exitcode=1
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 else
319 exitcode=1
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
331 _ASEOF
332 }; then
333 break
338 done
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
365 (exit \$1)
367 as_func_success () {
368 as_func_return 0
370 as_func_failure () {
371 as_func_return 1
373 as_func_ret_success () {
374 return 0
376 as_func_ret_failure () {
377 return 1
380 exitcode=0
381 if as_func_success; then
383 else
384 exitcode=1
385 echo as_func_success failed.
388 if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
395 else
396 exitcode=1
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 else
408 exitcode=1
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
444 :lineno
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
478 ECHO_N='-n';;
479 esac
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484 else
485 as_expr=false
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491 else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506 else
507 as_ln_s='cp -p'
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528 else
529 as_executable_p=:
531 rm -f conf$$.file
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
545 case X$ECHO in
546 X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
550 esac
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
562 else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
573 exit 0
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
591 done
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
598 else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
607 IFS="$lt_save_ifs"
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
615 done
616 IFS="$lt_save_ifs"
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
664 prev="$cmd"
665 done
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
703 # Initializations.
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.7svn'
719 PACKAGE_STRING='llvm 2.7svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 # include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 # include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
811 HOST_OS
812 TARGET_OS
813 LINKALL
814 NOLINKALL
815 LLVM_ON_UNIX
816 LLVM_ON_WIN32
817 ARCH
818 ENDIAN
820 CFLAGS
821 LDFLAGS
822 CPPFLAGS
823 ac_ct_CC
824 EXEEXT
825 OBJEXT
827 GREP
828 EGREP
829 LLVM_CROSS_COMPILING
830 BUILD_CC
831 BUILD_EXEEXT
832 BUILD_CXX
833 CVSBUILD
834 ENABLE_OPTIMIZED
835 ENABLE_PROFILING
836 DISABLE_ASSERTIONS
837 ENABLE_EXPENSIVE_CHECKS
838 EXPENSIVE_CHECKS
839 DEBUG_RUNTIME
840 DEBUG_SYMBOLS
842 TARGET_HAS_JIT
843 ENABLE_DOXYGEN
844 ENABLE_THREADS
845 ENABLE_PIC
846 TARGETS_TO_BUILD
847 LLVM_ENUM_TARGETS
848 LLVM_ENUM_ASM_PRINTERS
849 LLVM_ENUM_ASM_PARSERS
850 ENABLE_CBE_PRINTF_A
851 EXTRA_OPTIONS
852 BINUTILS_INCDIR
853 ENABLE_LLVMC_DYNAMIC
854 ENABLE_LLVMC_DYNAMIC_PLUGINS
856 CXXFLAGS
857 ac_ct_CXX
859 ifGNUmake
860 LN_S
863 DATE
864 FIND
865 MKDIR
867 RANLIB
871 BINPWD
872 GRAPHVIZ
875 NEATO
876 TWOPI
877 CIRCO
879 DOTTY
880 PERL
881 HAVE_PERL
882 INSTALL_PROGRAM
883 INSTALL_SCRIPT
884 INSTALL_DATA
885 BZIP2
886 DOXYGEN
887 GROFF
888 GZIP
889 POD2HTML
890 POD2MAN
891 RUNTEST
892 TCLSH
894 OCAMLC
895 OCAMLOPT
896 OCAMLDEP
897 OCAMLDOC
899 INSTALL_LTDL_TRUE
900 INSTALL_LTDL_FALSE
901 CONVENIENCE_LTDL_TRUE
902 CONVENIENCE_LTDL_FALSE
903 LIBADD_DL
904 ECHO
906 STRIP
907 CXXCPP
909 FFLAGS
910 ac_ct_F77
911 LIBTOOL
912 LLVMGCCCOMMAND
913 LLVMGXXCOMMAND
914 LLVMGCC
915 LLVMGXX
916 NO_VARIADIC_MACROS
917 NO_MISSING_FIELD_INITIALIZERS
918 USE_UDIS86
919 USE_OPROFILE
920 HAVE_PTHREAD
921 HUGE_VAL_SANITY
922 ALLOCA
923 MMAP_FILE
924 LLVMCC1
925 LLVMCC1PLUS
926 LLVMGCCDIR
927 LLVMGCCLIBEXEC
928 LLVMGCC_VERSION
929 LLVMGCC_MAJVERS
930 LLVMGCC_LANGS
931 SHLIBEXT
932 LLVM_PREFIX
933 LLVM_BINDIR
934 LLVM_LIBDIR
935 LLVM_DATADIR
936 LLVM_DOCSDIR
937 LLVM_ETCDIR
938 LLVM_INCLUDEDIR
939 LLVM_INFODIR
940 LLVM_MANDIR
941 LLVM_CONFIGTIME
942 BINDINGS_TO_BUILD
943 ALL_BINDINGS
944 OCAML_LIBDIR
945 ENABLE_VISIBILITY_INLINES_HIDDEN
946 RPATH
947 RDYNAMIC
948 LIBOBJS
949 LTLIBOBJS'
950 ac_subst_files=''
951 ac_precious_vars='build_alias
952 host_alias
953 target_alias
955 CFLAGS
956 LDFLAGS
957 CPPFLAGS
960 CXXFLAGS
962 CXXCPP
964 FFLAGS'
965 ac_subdirs_all='projects/sample
966 projects/privbracket
967 projects/llvm-stacker
968 projects/llvm-test
969 projects/test-suite
970 projects/llvm-reopt
971 projects/llvm-gcc
972 projects/llvm-java
973 projects/llvm-tv
974 projects/llvm-poolalloc
975 projects/poolalloc
976 projects/llvm-kernel'
978 # Initialize some variables set by options.
979 ac_init_help=
980 ac_init_version=false
981 # The variables have the same names as the options, with
982 # dashes changed to underlines.
983 cache_file=/dev/null
984 exec_prefix=NONE
985 no_create=
986 no_recursion=
987 prefix=NONE
988 program_prefix=NONE
989 program_suffix=NONE
990 program_transform_name=s,x,x,
991 silent=
992 site=
993 srcdir=
994 verbose=
995 x_includes=NONE
996 x_libraries=NONE
998 # Installation directory options.
999 # These are left unexpanded so users can "make install exec_prefix=/foo"
1000 # and all the variables that are supposed to be based on exec_prefix
1001 # by default will actually change.
1002 # Use braces instead of parens because sh, perl, etc. also accept them.
1003 # (The list follows the same order as the GNU Coding Standards.)
1004 bindir='${exec_prefix}/bin'
1005 sbindir='${exec_prefix}/sbin'
1006 libexecdir='${exec_prefix}/libexec'
1007 datarootdir='${prefix}/share'
1008 datadir='${datarootdir}'
1009 sysconfdir='${prefix}/etc'
1010 sharedstatedir='${prefix}/com'
1011 localstatedir='${prefix}/var'
1012 includedir='${prefix}/include'
1013 oldincludedir='/usr/include'
1014 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1015 infodir='${datarootdir}/info'
1016 htmldir='${docdir}'
1017 dvidir='${docdir}'
1018 pdfdir='${docdir}'
1019 psdir='${docdir}'
1020 libdir='${exec_prefix}/lib'
1021 localedir='${datarootdir}/locale'
1022 mandir='${datarootdir}/man'
1024 ac_prev=
1025 ac_dashdash=
1026 for ac_option
1028 # If the previous option needs an argument, assign it.
1029 if test -n "$ac_prev"; then
1030 eval $ac_prev=\$ac_option
1031 ac_prev=
1032 continue
1035 case $ac_option in
1036 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1037 *) ac_optarg=yes ;;
1038 esac
1040 # Accept the important Cygnus configure options, so we can diagnose typos.
1042 case $ac_dashdash$ac_option in
1044 ac_dashdash=yes ;;
1046 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1047 ac_prev=bindir ;;
1048 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1049 bindir=$ac_optarg ;;
1051 -build | --build | --buil | --bui | --bu)
1052 ac_prev=build_alias ;;
1053 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1054 build_alias=$ac_optarg ;;
1056 -cache-file | --cache-file | --cache-fil | --cache-fi \
1057 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1058 ac_prev=cache_file ;;
1059 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1060 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1061 cache_file=$ac_optarg ;;
1063 --config-cache | -C)
1064 cache_file=config.cache ;;
1066 -datadir | --datadir | --datadi | --datad)
1067 ac_prev=datadir ;;
1068 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1069 datadir=$ac_optarg ;;
1071 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1072 | --dataroo | --dataro | --datar)
1073 ac_prev=datarootdir ;;
1074 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1075 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1076 datarootdir=$ac_optarg ;;
1078 -disable-* | --disable-*)
1079 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1082 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1083 { (exit 1); exit 1; }; }
1084 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1085 eval enable_$ac_feature=no ;;
1087 -docdir | --docdir | --docdi | --doc | --do)
1088 ac_prev=docdir ;;
1089 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1090 docdir=$ac_optarg ;;
1092 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1093 ac_prev=dvidir ;;
1094 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1095 dvidir=$ac_optarg ;;
1097 -enable-* | --enable-*)
1098 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1101 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1102 { (exit 1); exit 1; }; }
1103 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1104 eval enable_$ac_feature=\$ac_optarg ;;
1106 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1107 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1108 | --exec | --exe | --ex)
1109 ac_prev=exec_prefix ;;
1110 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1111 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1112 | --exec=* | --exe=* | --ex=*)
1113 exec_prefix=$ac_optarg ;;
1115 -gas | --gas | --ga | --g)
1116 # Obsolete; use --with-gas.
1117 with_gas=yes ;;
1119 -help | --help | --hel | --he | -h)
1120 ac_init_help=long ;;
1121 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1122 ac_init_help=recursive ;;
1123 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1124 ac_init_help=short ;;
1126 -host | --host | --hos | --ho)
1127 ac_prev=host_alias ;;
1128 -host=* | --host=* | --hos=* | --ho=*)
1129 host_alias=$ac_optarg ;;
1131 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1132 ac_prev=htmldir ;;
1133 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1134 | --ht=*)
1135 htmldir=$ac_optarg ;;
1137 -includedir | --includedir | --includedi | --included | --include \
1138 | --includ | --inclu | --incl | --inc)
1139 ac_prev=includedir ;;
1140 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1141 | --includ=* | --inclu=* | --incl=* | --inc=*)
1142 includedir=$ac_optarg ;;
1144 -infodir | --infodir | --infodi | --infod | --info | --inf)
1145 ac_prev=infodir ;;
1146 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1147 infodir=$ac_optarg ;;
1149 -libdir | --libdir | --libdi | --libd)
1150 ac_prev=libdir ;;
1151 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1152 libdir=$ac_optarg ;;
1154 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1155 | --libexe | --libex | --libe)
1156 ac_prev=libexecdir ;;
1157 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1158 | --libexe=* | --libex=* | --libe=*)
1159 libexecdir=$ac_optarg ;;
1161 -localedir | --localedir | --localedi | --localed | --locale)
1162 ac_prev=localedir ;;
1163 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1164 localedir=$ac_optarg ;;
1166 -localstatedir | --localstatedir | --localstatedi | --localstated \
1167 | --localstate | --localstat | --localsta | --localst | --locals)
1168 ac_prev=localstatedir ;;
1169 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1170 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1171 localstatedir=$ac_optarg ;;
1173 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1174 ac_prev=mandir ;;
1175 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1176 mandir=$ac_optarg ;;
1178 -nfp | --nfp | --nf)
1179 # Obsolete; use --without-fp.
1180 with_fp=no ;;
1182 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1183 | --no-cr | --no-c | -n)
1184 no_create=yes ;;
1186 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1187 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1188 no_recursion=yes ;;
1190 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1191 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1192 | --oldin | --oldi | --old | --ol | --o)
1193 ac_prev=oldincludedir ;;
1194 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1195 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1196 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1197 oldincludedir=$ac_optarg ;;
1199 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1200 ac_prev=prefix ;;
1201 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1202 prefix=$ac_optarg ;;
1204 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1205 | --program-pre | --program-pr | --program-p)
1206 ac_prev=program_prefix ;;
1207 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1208 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1209 program_prefix=$ac_optarg ;;
1211 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1212 | --program-suf | --program-su | --program-s)
1213 ac_prev=program_suffix ;;
1214 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1215 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1216 program_suffix=$ac_optarg ;;
1218 -program-transform-name | --program-transform-name \
1219 | --program-transform-nam | --program-transform-na \
1220 | --program-transform-n | --program-transform- \
1221 | --program-transform | --program-transfor \
1222 | --program-transfo | --program-transf \
1223 | --program-trans | --program-tran \
1224 | --progr-tra | --program-tr | --program-t)
1225 ac_prev=program_transform_name ;;
1226 -program-transform-name=* | --program-transform-name=* \
1227 | --program-transform-nam=* | --program-transform-na=* \
1228 | --program-transform-n=* | --program-transform-=* \
1229 | --program-transform=* | --program-transfor=* \
1230 | --program-transfo=* | --program-transf=* \
1231 | --program-trans=* | --program-tran=* \
1232 | --progr-tra=* | --program-tr=* | --program-t=*)
1233 program_transform_name=$ac_optarg ;;
1235 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1236 ac_prev=pdfdir ;;
1237 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1238 pdfdir=$ac_optarg ;;
1240 -psdir | --psdir | --psdi | --psd | --ps)
1241 ac_prev=psdir ;;
1242 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1243 psdir=$ac_optarg ;;
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1247 silent=yes ;;
1249 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1250 ac_prev=sbindir ;;
1251 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1252 | --sbi=* | --sb=*)
1253 sbindir=$ac_optarg ;;
1255 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1256 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1257 | --sharedst | --shareds | --shared | --share | --shar \
1258 | --sha | --sh)
1259 ac_prev=sharedstatedir ;;
1260 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1261 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1262 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1263 | --sha=* | --sh=*)
1264 sharedstatedir=$ac_optarg ;;
1266 -site | --site | --sit)
1267 ac_prev=site ;;
1268 -site=* | --site=* | --sit=*)
1269 site=$ac_optarg ;;
1271 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1272 ac_prev=srcdir ;;
1273 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1274 srcdir=$ac_optarg ;;
1276 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1277 | --syscon | --sysco | --sysc | --sys | --sy)
1278 ac_prev=sysconfdir ;;
1279 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1280 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1281 sysconfdir=$ac_optarg ;;
1283 -target | --target | --targe | --targ | --tar | --ta | --t)
1284 ac_prev=target_alias ;;
1285 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1286 target_alias=$ac_optarg ;;
1288 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1289 verbose=yes ;;
1291 -version | --version | --versio | --versi | --vers | -V)
1292 ac_init_version=: ;;
1294 -with-* | --with-*)
1295 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1298 { echo "$as_me: error: invalid package name: $ac_package" >&2
1299 { (exit 1); exit 1; }; }
1300 ac_package=`echo $ac_package| sed 's/-/_/g'`
1301 eval with_$ac_package=\$ac_optarg ;;
1303 -without-* | --without-*)
1304 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1307 { echo "$as_me: error: invalid package name: $ac_package" >&2
1308 { (exit 1); exit 1; }; }
1309 ac_package=`echo $ac_package | sed 's/-/_/g'`
1310 eval with_$ac_package=no ;;
1312 --x)
1313 # Obsolete; use --with-x.
1314 with_x=yes ;;
1316 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317 | --x-incl | --x-inc | --x-in | --x-i)
1318 ac_prev=x_includes ;;
1319 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321 x_includes=$ac_optarg ;;
1323 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325 ac_prev=x_libraries ;;
1326 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328 x_libraries=$ac_optarg ;;
1330 -*) { echo "$as_me: error: unrecognized option: $ac_option
1331 Try \`$0 --help' for more information." >&2
1332 { (exit 1); exit 1; }; }
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1339 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1340 { (exit 1); exit 1; }; }
1341 eval $ac_envvar=\$ac_optarg
1342 export $ac_envvar ;;
1345 # FIXME: should be removed in autoconf 3.0.
1346 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1352 esac
1353 done
1355 if test -n "$ac_prev"; then
1356 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357 { echo "$as_me: error: missing argument to $ac_option" >&2
1358 { (exit 1); exit 1; }; }
1361 # Be sure to have absolute directory names.
1362 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363 datadir sysconfdir sharedstatedir localstatedir includedir \
1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365 libdir localedir mandir
1367 eval ac_val=\$$ac_var
1368 case $ac_val in
1369 [\\/$]* | ?:[\\/]* ) continue;;
1370 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371 esac
1372 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1373 { (exit 1); exit 1; }; }
1374 done
1376 # There might be people who depend on the old broken behavior: `$host'
1377 # used to hold the argument of --host etc.
1378 # FIXME: To remove some day.
1379 build=$build_alias
1380 host=$host_alias
1381 target=$target_alias
1383 # FIXME: To remove some day.
1384 if test "x$host_alias" != x; then
1385 if test "x$build_alias" = x; then
1386 cross_compiling=maybe
1387 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1388 If a cross compiler is detected then cross compile mode will be used." >&2
1389 elif test "x$build_alias" != "x$host_alias"; then
1390 cross_compiling=yes
1394 ac_tool_prefix=
1395 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1397 test "$silent" = yes && exec 6>/dev/null
1400 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1401 ac_ls_di=`ls -di .` &&
1402 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1403 { echo "$as_me: error: Working directory cannot be determined" >&2
1404 { (exit 1); exit 1; }; }
1405 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1406 { echo "$as_me: error: pwd does not report name of working directory" >&2
1407 { (exit 1); exit 1; }; }
1410 # Find the source files, if location was not specified.
1411 if test -z "$srcdir"; then
1412 ac_srcdir_defaulted=yes
1413 # Try the directory containing this script, then the parent directory.
1414 ac_confdir=`$as_dirname -- "$0" ||
1415 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416 X"$0" : 'X\(//\)[^/]' \| \
1417 X"$0" : 'X\(//\)$' \| \
1418 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1419 echo X"$0" |
1420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 s//\1/
1424 /^X\(\/\/\)[^/].*/{
1425 s//\1/
1428 /^X\(\/\/\)$/{
1429 s//\1/
1432 /^X\(\/\).*/{
1433 s//\1/
1436 s/.*/./; q'`
1437 srcdir=$ac_confdir
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 srcdir=..
1441 else
1442 ac_srcdir_defaulted=no
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1447 { (exit 1); exit 1; }; }
1449 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1450 ac_abs_confdir=`(
1451 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1452 { (exit 1); exit 1; }; }
1453 pwd)`
1454 # When building in place, set srcdir=.
1455 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 srcdir=.
1458 # Remove unnecessary trailing slashes from srcdir.
1459 # Double slashes in file names in object file debugging info
1460 # mess up M-x gdb in Emacs.
1461 case $srcdir in
1462 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463 esac
1464 for ac_var in $ac_precious_vars; do
1465 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_env_${ac_var}_value=\$${ac_var}
1467 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1469 done
1472 # Report the --help message.
1474 if test "$ac_init_help" = "long"; then
1475 # Omit some internal or obsolete options to make the list less imposing.
1476 # This message is too long to be a string in the A/UX 3.1 sh.
1477 cat <<_ACEOF
1478 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1480 Usage: $0 [OPTION]... [VAR=VALUE]...
1482 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1483 VAR=VALUE. See below for descriptions of some of the useful variables.
1485 Defaults for the options are specified in brackets.
1487 Configuration:
1488 -h, --help display this help and exit
1489 --help=short display options specific to this package
1490 --help=recursive display the short help of all the included packages
1491 -V, --version display version information and exit
1492 -q, --quiet, --silent do not print \`checking...' messages
1493 --cache-file=FILE cache test results in FILE [disabled]
1494 -C, --config-cache alias for \`--cache-file=config.cache'
1495 -n, --no-create do not create output files
1496 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1498 Installation directories:
1499 --prefix=PREFIX install architecture-independent files in PREFIX
1500 [$ac_default_prefix]
1501 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1502 [PREFIX]
1504 By default, \`make install' will install all the files in
1505 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1506 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1507 for instance \`--prefix=\$HOME'.
1509 For better control, use the options below.
1511 Fine tuning of the installation directories:
1512 --bindir=DIR user executables [EPREFIX/bin]
1513 --sbindir=DIR system admin executables [EPREFIX/sbin]
1514 --libexecdir=DIR program executables [EPREFIX/libexec]
1515 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1516 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1517 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1518 --libdir=DIR object code libraries [EPREFIX/lib]
1519 --includedir=DIR C header files [PREFIX/include]
1520 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1521 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1522 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1523 --infodir=DIR info documentation [DATAROOTDIR/info]
1524 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1525 --mandir=DIR man documentation [DATAROOTDIR/man]
1526 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1527 --htmldir=DIR html documentation [DOCDIR]
1528 --dvidir=DIR dvi documentation [DOCDIR]
1529 --pdfdir=DIR pdf documentation [DOCDIR]
1530 --psdir=DIR ps documentation [DOCDIR]
1531 _ACEOF
1533 cat <<\_ACEOF
1535 System types:
1536 --build=BUILD configure for building on BUILD [guessed]
1537 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1538 --target=TARGET configure for building compilers for TARGET [HOST]
1539 _ACEOF
1542 if test -n "$ac_init_help"; then
1543 case $ac_init_help in
1544 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1545 esac
1546 cat <<\_ACEOF
1548 Optional Features:
1549 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1550 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1551 --enable-optimized Compile with optimizations enabled (default is NO)
1552 --enable-profiling Compile with profiling enabled (default is NO)
1553 --enable-assertions Compile with assertion checks enabled (default is
1554 YES)
1555 --enable-expensive-checks
1556 Compile with expensive debug checks enabled (default
1557 is NO)
1558 --enable-debug-runtime Build runtime libs with debug symbols (default is
1560 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1561 optimization is on and YES if it's off)
1562 --enable-jit Enable Just In Time Compiling (default is YES)
1563 --enable-doxygen Build doxygen documentation (default is NO)
1564 --enable-threads Use threads if available (default is YES)
1565 --enable-pic Build LLVM with Position Independent Code (default
1566 is YES)
1567 --enable-targets Build specific host targets: all or
1568 target1,target2,... Valid targets are: host, x86,
1569 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1570 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1571 and cpp (default=all)
1572 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1573 %a (default is YES)
1574 --enable-bindings Build specific language bindings:
1575 all,auto,none,{binding-name} (default=auto)
1576 --enable-libffi Check for the presence of libffi (default is YES)
1577 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1578 Win32)
1579 --enable-llvmc-dynamic-plugins
1580 Enable dynamic LLVMC plugins (default is YES)
1581 --enable-ltdl-install install libltdl
1582 --enable-shared[=PKGS] build shared libraries
1583 [default=yes]
1584 --enable-static[=PKGS] build static libraries
1585 [default=yes]
1586 --enable-fast-install[=PKGS]
1587 optimize for fast installation
1588 [default=yes]
1589 --disable-libtool-lock avoid locking (might break parallel builds)
1591 Optional Packages:
1592 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1593 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1594 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1595 searches PATH)
1596 --with-llvmgcc Specify location of llvm-gcc driver (default
1597 searches PATH)
1598 --with-llvmgxx Specify location of llvm-g++ driver (default
1599 searches PATH)
1600 --with-extra-options Specify additional options to compile LLVM with
1601 --with-ocaml-libdir Specify install location for ocaml bindings (default
1602 is stdlib)
1603 --with-binutils-include Specify path to binutils/include/ containing
1604 plugin-api.h file for gold plugin.
1605 --with-tclinclude directory where tcl headers are
1606 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1607 --with-pic try to use only PIC/non-PIC objects [default=use
1608 both]
1609 --with-tags[=TAGS] include additional configurations [automatic]
1610 --with-udis86=<path> Use udis86 external x86 disassembler library
1611 --with-oprofile=<prefix>
1612 Tell OProfile >= 0.9.4 how to symbolize JIT output
1614 Some influential environment variables:
1615 CC C compiler command
1616 CFLAGS C compiler flags
1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1618 nonstandard directory <lib dir>
1619 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1620 you have headers in a nonstandard directory <include dir>
1621 CPP C preprocessor
1622 CXX C++ compiler command
1623 CXXFLAGS C++ compiler flags
1624 CXXCPP C++ preprocessor
1625 F77 Fortran 77 compiler command
1626 FFLAGS Fortran 77 compiler flags
1628 Use these variables to override the choices made by `configure' or to help
1629 it to find libraries and programs with nonstandard names/locations.
1631 Report bugs to <llvmbugs@cs.uiuc.edu>.
1632 _ACEOF
1633 ac_status=$?
1636 if test "$ac_init_help" = "recursive"; then
1637 # If there are subdirs, report their specific --help.
1638 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1639 test -d "$ac_dir" || continue
1640 ac_builddir=.
1642 case "$ac_dir" in
1643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1646 # A ".." for each directory in $ac_dir_suffix.
1647 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1648 case $ac_top_builddir_sub in
1649 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 esac ;;
1652 esac
1653 ac_abs_top_builddir=$ac_pwd
1654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655 # for backward compatibility:
1656 ac_top_builddir=$ac_top_build_prefix
1658 case $srcdir in
1659 .) # We are building in place.
1660 ac_srcdir=.
1661 ac_top_srcdir=$ac_top_builddir_sub
1662 ac_abs_top_srcdir=$ac_pwd ;;
1663 [\\/]* | ?:[\\/]* ) # Absolute name.
1664 ac_srcdir=$srcdir$ac_dir_suffix;
1665 ac_top_srcdir=$srcdir
1666 ac_abs_top_srcdir=$srcdir ;;
1667 *) # Relative name.
1668 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669 ac_top_srcdir=$ac_top_build_prefix$srcdir
1670 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1671 esac
1672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1674 cd "$ac_dir" || { ac_status=$?; continue; }
1675 # Check for guested configure.
1676 if test -f "$ac_srcdir/configure.gnu"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679 elif test -f "$ac_srcdir/configure"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure" --help=recursive
1682 else
1683 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684 fi || ac_status=$?
1685 cd "$ac_pwd" || { ac_status=$?; break; }
1686 done
1689 test -n "$ac_init_help" && exit $ac_status
1690 if $ac_init_version; then
1691 cat <<\_ACEOF
1692 llvm configure 2.7svn
1693 generated by GNU Autoconf 2.60
1695 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1696 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1700 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1701 _ACEOF
1702 exit
1704 cat >config.log <<_ACEOF
1705 This file contains any messages produced by compilers while
1706 running configure, to aid debugging if configure makes a mistake.
1708 It was created by llvm $as_me 2.7svn, which was
1709 generated by GNU Autoconf 2.60. Invocation command line was
1711 $ $0 $@
1713 _ACEOF
1714 exec 5>>config.log
1716 cat <<_ASUNAME
1717 ## --------- ##
1718 ## Platform. ##
1719 ## --------- ##
1721 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1722 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1723 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1724 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1725 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1727 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1728 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1730 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1731 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1732 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1733 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1734 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1735 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1736 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1738 _ASUNAME
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1743 IFS=$as_save_IFS
1744 test -z "$as_dir" && as_dir=.
1745 echo "PATH: $as_dir"
1746 done
1747 IFS=$as_save_IFS
1749 } >&5
1751 cat >&5 <<_ACEOF
1754 ## ----------- ##
1755 ## Core tests. ##
1756 ## ----------- ##
1758 _ACEOF
1761 # Keep a trace of the command line.
1762 # Strip out --no-create and --no-recursion so they do not pile up.
1763 # Strip out --silent because we don't want to record it for future runs.
1764 # Also quote any args containing shell meta-characters.
1765 # Make two passes to allow for proper duplicate-argument suppression.
1766 ac_configure_args=
1767 ac_configure_args0=
1768 ac_configure_args1=
1769 ac_must_keep_next=false
1770 for ac_pass in 1 2
1772 for ac_arg
1774 case $ac_arg in
1775 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1776 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1777 | -silent | --silent | --silen | --sile | --sil)
1778 continue ;;
1779 *\'*)
1780 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 esac
1782 case $ac_pass in
1783 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1785 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1786 if test $ac_must_keep_next = true; then
1787 ac_must_keep_next=false # Got value, back to normal.
1788 else
1789 case $ac_arg in
1790 *=* | --config-cache | -C | -disable-* | --disable-* \
1791 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1792 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1793 | -with-* | --with-* | -without-* | --without-* | --x)
1794 case "$ac_configure_args0 " in
1795 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1796 esac
1798 -* ) ac_must_keep_next=true ;;
1799 esac
1801 ac_configure_args="$ac_configure_args '$ac_arg'"
1803 esac
1804 done
1805 done
1806 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1807 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1809 # When interrupted or exit'd, cleanup temporary files, and complete
1810 # config.log. We remove comments because anyway the quotes in there
1811 # would cause problems or look ugly.
1812 # WARNING: Use '\'' to represent an apostrophe within the trap.
1813 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1814 trap 'exit_status=$?
1815 # Save into config.log some information that might help in debugging.
1817 echo
1819 cat <<\_ASBOX
1820 ## ---------------- ##
1821 ## Cache variables. ##
1822 ## ---------------- ##
1823 _ASBOX
1824 echo
1825 # The following way of writing the cache mishandles newlines in values,
1827 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1828 eval ac_val=\$$ac_var
1829 case $ac_val in #(
1830 *${as_nl}*)
1831 case $ac_var in #(
1832 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1833 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1834 esac
1835 case $ac_var in #(
1836 _ | IFS | as_nl) ;; #(
1837 *) $as_unset $ac_var ;;
1838 esac ;;
1839 esac
1840 done
1841 (set) 2>&1 |
1842 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1843 *${as_nl}ac_space=\ *)
1844 sed -n \
1845 "s/'\''/'\''\\\\'\'''\''/g;
1846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1847 ;; #(
1849 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1851 esac |
1852 sort
1854 echo
1856 cat <<\_ASBOX
1857 ## ----------------- ##
1858 ## Output variables. ##
1859 ## ----------------- ##
1860 _ASBOX
1861 echo
1862 for ac_var in $ac_subst_vars
1864 eval ac_val=\$$ac_var
1865 case $ac_val in
1866 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1867 esac
1868 echo "$ac_var='\''$ac_val'\''"
1869 done | sort
1870 echo
1872 if test -n "$ac_subst_files"; then
1873 cat <<\_ASBOX
1874 ## ------------------- ##
1875 ## File substitutions. ##
1876 ## ------------------- ##
1877 _ASBOX
1878 echo
1879 for ac_var in $ac_subst_files
1881 eval ac_val=\$$ac_var
1882 case $ac_val in
1883 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1884 esac
1885 echo "$ac_var='\''$ac_val'\''"
1886 done | sort
1887 echo
1890 if test -s confdefs.h; then
1891 cat <<\_ASBOX
1892 ## ----------- ##
1893 ## confdefs.h. ##
1894 ## ----------- ##
1895 _ASBOX
1896 echo
1897 cat confdefs.h
1898 echo
1900 test "$ac_signal" != 0 &&
1901 echo "$as_me: caught signal $ac_signal"
1902 echo "$as_me: exit $exit_status"
1903 } >&5
1904 rm -f core *.core core.conftest.* &&
1905 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1906 exit $exit_status
1908 for ac_signal in 1 2 13 15; do
1909 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1910 done
1911 ac_signal=0
1913 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1914 rm -f -r conftest* confdefs.h
1916 # Predefined preprocessor variables.
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_NAME "$PACKAGE_NAME"
1920 _ACEOF
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1925 _ACEOF
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1930 _ACEOF
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_STRING "$PACKAGE_STRING"
1935 _ACEOF
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1940 _ACEOF
1943 # Let the site file select an alternate cache file if it wants to.
1944 # Prefer explicitly selected file to automatically selected ones.
1945 if test -n "$CONFIG_SITE"; then
1946 set x "$CONFIG_SITE"
1947 elif test "x$prefix" != xNONE; then
1948 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1949 else
1950 set x "$ac_default_prefix/share/config.site" \
1951 "$ac_default_prefix/etc/config.site"
1953 shift
1954 for ac_site_file
1956 if test -r "$ac_site_file"; then
1957 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1958 echo "$as_me: loading site script $ac_site_file" >&6;}
1959 sed 's/^/| /' "$ac_site_file" >&5
1960 . "$ac_site_file"
1962 done
1964 if test -r "$cache_file"; then
1965 # Some versions of bash will fail to source /dev/null (special
1966 # files actually), so we avoid doing that.
1967 if test -f "$cache_file"; then
1968 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1969 echo "$as_me: loading cache $cache_file" >&6;}
1970 case $cache_file in
1971 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1972 *) . "./$cache_file";;
1973 esac
1975 else
1976 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1977 echo "$as_me: creating cache $cache_file" >&6;}
1978 >$cache_file
1981 # Check that the precious variables saved in the cache have kept the same
1982 # value.
1983 ac_cache_corrupted=false
1984 for ac_var in $ac_precious_vars; do
1985 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1986 eval ac_new_set=\$ac_env_${ac_var}_set
1987 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1988 eval ac_new_val=\$ac_env_${ac_var}_value
1989 case $ac_old_set,$ac_new_set in
1990 set,)
1991 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1992 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1993 ac_cache_corrupted=: ;;
1994 ,set)
1995 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1996 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1997 ac_cache_corrupted=: ;;
1998 ,);;
2000 if test "x$ac_old_val" != "x$ac_new_val"; then
2001 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2002 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2003 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2004 echo "$as_me: former value: $ac_old_val" >&2;}
2005 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2006 echo "$as_me: current value: $ac_new_val" >&2;}
2007 ac_cache_corrupted=:
2008 fi;;
2009 esac
2010 # Pass precious variables to config.status.
2011 if test "$ac_new_set" = set; then
2012 case $ac_new_val in
2013 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2014 *) ac_arg=$ac_var=$ac_new_val ;;
2015 esac
2016 case " $ac_configure_args " in
2017 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2018 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2019 esac
2021 done
2022 if $ac_cache_corrupted; then
2023 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2024 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2025 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2026 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2027 { (exit 1); exit 1; }; }
2054 ac_ext=c
2055 ac_cpp='$CPP $CPPFLAGS'
2056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2062 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2070 ac_aux_dir=
2071 for ac_dir in autoconf "$srcdir"/autoconf; do
2072 if test -f "$ac_dir/install-sh"; then
2073 ac_aux_dir=$ac_dir
2074 ac_install_sh="$ac_aux_dir/install-sh -c"
2075 break
2076 elif test -f "$ac_dir/install.sh"; then
2077 ac_aux_dir=$ac_dir
2078 ac_install_sh="$ac_aux_dir/install.sh -c"
2079 break
2080 elif test -f "$ac_dir/shtool"; then
2081 ac_aux_dir=$ac_dir
2082 ac_install_sh="$ac_aux_dir/shtool install -c"
2083 break
2085 done
2086 if test -z "$ac_aux_dir"; then
2087 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2088 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2089 { (exit 1); exit 1; }; }
2092 # These three variables are undocumented and unsupported,
2093 # and are intended to be withdrawn in a future Autoconf release.
2094 # They can cause serious problems if a builder's source tree is in a directory
2095 # whose full name contains unusual characters.
2096 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2097 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2098 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2102 if test ${srcdir} != "." ; then
2103 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2104 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2105 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2106 { (exit 1); exit 1; }; }
2110 for i in `ls ${srcdir}/projects`
2112 if test -d ${srcdir}/projects/${i} ; then
2113 case ${i} in
2114 CVS) ;;
2115 sample) subdirs="$subdirs projects/sample"
2117 privbracket) subdirs="$subdirs projects/privbracket"
2119 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2121 # llvm-test is the old name of the test-suite, kept here for backwards
2122 # compatibility
2123 llvm-test) subdirs="$subdirs projects/llvm-test"
2125 test-suite) subdirs="$subdirs projects/test-suite"
2127 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2129 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2131 llvm-java) subdirs="$subdirs projects/llvm-java"
2133 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2135 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2137 poolalloc) subdirs="$subdirs projects/poolalloc"
2139 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2142 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2143 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2145 esac
2147 done
2150 # Make sure we can run config.sub.
2151 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2152 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2153 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2154 { (exit 1); exit 1; }; }
2156 { echo "$as_me:$LINENO: checking build system type" >&5
2157 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2158 if test "${ac_cv_build+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161 ac_build_alias=$build_alias
2162 test "x$ac_build_alias" = x &&
2163 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2164 test "x$ac_build_alias" = x &&
2165 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2166 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2167 { (exit 1); exit 1; }; }
2168 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2169 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2170 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2171 { (exit 1); exit 1; }; }
2174 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2175 echo "${ECHO_T}$ac_cv_build" >&6; }
2176 case $ac_cv_build in
2177 *-*-*) ;;
2178 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2179 echo "$as_me: error: invalid value of canonical build" >&2;}
2180 { (exit 1); exit 1; }; };;
2181 esac
2182 build=$ac_cv_build
2183 ac_save_IFS=$IFS; IFS='-'
2184 set x $ac_cv_build
2185 shift
2186 build_cpu=$1
2187 build_vendor=$2
2188 shift; shift
2189 # Remember, the first character of IFS is used to create $*,
2190 # except with old shells:
2191 build_os=$*
2192 IFS=$ac_save_IFS
2193 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2196 { echo "$as_me:$LINENO: checking host system type" >&5
2197 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2198 if test "${ac_cv_host+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201 if test "x$host_alias" = x; then
2202 ac_cv_host=$ac_cv_build
2203 else
2204 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2205 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2206 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2207 { (exit 1); exit 1; }; }
2211 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2212 echo "${ECHO_T}$ac_cv_host" >&6; }
2213 case $ac_cv_host in
2214 *-*-*) ;;
2215 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2216 echo "$as_me: error: invalid value of canonical host" >&2;}
2217 { (exit 1); exit 1; }; };;
2218 esac
2219 host=$ac_cv_host
2220 ac_save_IFS=$IFS; IFS='-'
2221 set x $ac_cv_host
2222 shift
2223 host_cpu=$1
2224 host_vendor=$2
2225 shift; shift
2226 # Remember, the first character of IFS is used to create $*,
2227 # except with old shells:
2228 host_os=$*
2229 IFS=$ac_save_IFS
2230 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2233 { echo "$as_me:$LINENO: checking target system type" >&5
2234 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2235 if test "${ac_cv_target+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238 if test "x$target_alias" = x; then
2239 ac_cv_target=$ac_cv_host
2240 else
2241 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2242 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2243 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2244 { (exit 1); exit 1; }; }
2248 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2249 echo "${ECHO_T}$ac_cv_target" >&6; }
2250 case $ac_cv_target in
2251 *-*-*) ;;
2252 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2253 echo "$as_me: error: invalid value of canonical target" >&2;}
2254 { (exit 1); exit 1; }; };;
2255 esac
2256 target=$ac_cv_target
2257 ac_save_IFS=$IFS; IFS='-'
2258 set x $ac_cv_target
2259 shift
2260 target_cpu=$1
2261 target_vendor=$2
2262 shift; shift
2263 # Remember, the first character of IFS is used to create $*,
2264 # except with old shells:
2265 target_os=$*
2266 IFS=$ac_save_IFS
2267 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2270 # The aliases save the names the user supplied, while $host etc.
2271 # will get canonicalized.
2272 test -n "$target_alias" &&
2273 test "$program_prefix$program_suffix$program_transform_name" = \
2274 NONENONEs,x,x, &&
2275 program_prefix=${target_alias}-
2277 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2278 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2279 if test "${llvm_cv_os_type+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282 case $host in
2283 *-*-aix*)
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="AIX"
2287 llvm_cv_platform_type="Unix" ;;
2288 *-*-irix*)
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="IRIX"
2292 llvm_cv_platform_type="Unix" ;;
2293 *-*-cygwin*)
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="Cygwin"
2297 llvm_cv_platform_type="Unix" ;;
2298 *-*-darwin*)
2299 llvm_cv_link_all_option="-Wl,-all_load"
2300 llvm_cv_no_link_all_option="-Wl,-noall_load"
2301 llvm_cv_os_type="Darwin"
2302 llvm_cv_platform_type="Unix" ;;
2303 *-*-freebsd*)
2304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306 llvm_cv_os_type="FreeBSD"
2307 llvm_cv_platform_type="Unix" ;;
2308 *-*-openbsd*)
2309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311 llvm_cv_os_type="OpenBSD"
2312 llvm_cv_platform_type="Unix" ;;
2313 *-*-netbsd*)
2314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316 llvm_cv_os_type="NetBSD"
2317 llvm_cv_platform_type="Unix" ;;
2318 *-*-dragonfly*)
2319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321 llvm_cv_os_type="DragonFly"
2322 llvm_cv_platform_type="Unix" ;;
2323 *-*-hpux*)
2324 llvm_cv_link_all_option="-Wl,--whole-archive"
2325 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2326 llvm_cv_os_type="HP-UX"
2327 llvm_cv_platform_type="Unix" ;;
2328 *-*-interix*)
2329 llvm_cv_link_all_option="-Wl,--whole-archive"
2330 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2331 llvm_cv_os_type="Interix"
2332 llvm_cv_platform_type="Unix" ;;
2333 *-*-linux*)
2334 llvm_cv_link_all_option="-Wl,--whole-archive"
2335 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2336 llvm_cv_os_type="Linux"
2337 llvm_cv_platform_type="Unix" ;;
2338 *-*-solaris*)
2339 llvm_cv_link_all_option="-Wl,-z,allextract"
2340 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2341 llvm_cv_os_type="SunOS"
2342 llvm_cv_platform_type="Unix" ;;
2343 *-*-auroraux*)
2344 llvm_cv_link_all_option="-Wl,-z,allextract"
2345 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2346 llvm_cv_os_type="AuroraUX"
2347 llvm_cv_platform_type="Unix" ;;
2348 *-*-win32*)
2349 llvm_cv_link_all_option="-Wl,--whole-archive"
2350 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2351 llvm_cv_os_type="Win32"
2352 llvm_cv_platform_type="Win32" ;;
2353 *-*-mingw*)
2354 llvm_cv_link_all_option="-Wl,--whole-archive"
2355 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2356 llvm_cv_os_type="MingW"
2357 llvm_cv_platform_type="Win32" ;;
2358 *-*-haiku*)
2359 llvm_cv_link_all_option="-Wl,--whole-archive"
2360 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2361 llvm_cv_os_type="Haiku"
2362 llvm_cv_platform_type="Unix" ;;
2363 *-unknown-eabi*)
2364 llvm_cv_link_all_option="-Wl,--whole-archive"
2365 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2366 llvm_cv_os_type="Freestanding"
2367 llvm_cv_platform_type="Unix" ;;
2368 *-unknown-elf*)
2369 llvm_cv_link_all_option="-Wl,--whole-archive"
2370 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2371 llvm_cv_os_type="Freestanding"
2372 llvm_cv_platform_type="Unix" ;;
2374 llvm_cv_link_all_option=""
2375 llvm_cv_no_link_all_option=""
2376 llvm_cv_os_type="Unknown"
2377 llvm_cv_platform_type="Unknown" ;;
2378 esac
2380 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2381 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2383 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2384 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2385 if test "${llvm_cv_target_os_type+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388 case $target in
2389 *-*-aix*)
2390 llvm_cv_target_os_type="AIX" ;;
2391 *-*-irix*)
2392 llvm_cv_target_os_type="IRIX" ;;
2393 *-*-cygwin*)
2394 llvm_cv_target_os_type="Cygwin" ;;
2395 *-*-darwin*)
2396 llvm_cv_target_os_type="Darwin" ;;
2397 *-*-freebsd*)
2398 llvm_cv_target_os_type="FreeBSD" ;;
2399 *-*-openbsd*)
2400 llvm_cv_target_os_type="OpenBSD" ;;
2401 *-*-netbsd*)
2402 llvm_cv_target_os_type="NetBSD" ;;
2403 *-*-dragonfly*)
2404 llvm_cv_target_os_type="DragonFly" ;;
2405 *-*-hpux*)
2406 llvm_cv_target_os_type="HP-UX" ;;
2407 *-*-interix*)
2408 llvm_cv_target_os_type="Interix" ;;
2409 *-*-linux*)
2410 llvm_cv_target_os_type="Linux" ;;
2411 *-*-solaris*)
2412 llvm_cv_target_os_type="SunOS" ;;
2413 *-*-auroraux*)
2414 llvm_cv_target_os_type="AuroraUX" ;;
2415 *-*-win32*)
2416 llvm_cv_target_os_type="Win32" ;;
2417 *-*-mingw*)
2418 llvm_cv_target_os_type="MingW" ;;
2419 *-*-haiku*)
2420 llvm_cv_target_os_type="Haiku" ;;
2421 *-unknown-eabi*)
2422 llvm_cv_target_os_type="Freestanding" ;;
2424 llvm_cv_target_os_type="Unknown" ;;
2425 esac
2427 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2428 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2430 if test "$llvm_cv_os_type" = "Unknown" ; then
2431 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2432 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2433 { (exit 1); exit 1; }; }
2436 OS=$llvm_cv_os_type
2438 HOST_OS=$llvm_cv_os_type
2440 TARGET_OS=$llvm_cv_target_os_type
2443 LINKALL=$llvm_cv_link_all_option
2445 NOLINKALL=$llvm_cv_no_link_all_option
2448 case $llvm_cv_platform_type in
2449 Unix)
2451 cat >>confdefs.h <<\_ACEOF
2452 #define LLVM_ON_UNIX 1
2453 _ACEOF
2455 LLVM_ON_UNIX=1
2457 LLVM_ON_WIN32=0
2460 Win32)
2462 cat >>confdefs.h <<\_ACEOF
2463 #define LLVM_ON_WIN32 1
2464 _ACEOF
2466 LLVM_ON_UNIX=0
2468 LLVM_ON_WIN32=1
2471 esac
2473 { echo "$as_me:$LINENO: checking target architecture" >&5
2474 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2475 if test "${llvm_cv_target_arch+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478 case $target in
2479 i?86-*) llvm_cv_target_arch="x86" ;;
2480 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2481 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2482 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2483 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2484 arm*-*) llvm_cv_target_arch="ARM" ;;
2485 mips-*) llvm_cv_target_arch="Mips" ;;
2486 pic16-*) llvm_cv_target_arch="PIC16" ;;
2487 xcore-*) llvm_cv_target_arch="XCore" ;;
2488 msp430-*) llvm_cv_target_arch="MSP430" ;;
2489 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2490 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2491 *) llvm_cv_target_arch="Unknown" ;;
2492 esac
2494 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2495 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2497 if test "$llvm_cv_target_arch" = "Unknown" ; then
2498 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2499 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2502 # Determine the LLVM native architecture for the target
2503 case "$llvm_cv_target_arch" in
2504 x86) LLVM_NATIVE_ARCH="X86" ;;
2505 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2506 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2507 esac
2509 ARCH=$llvm_cv_target_arch
2512 ac_ext=c
2513 ac_cpp='$CPP $CPPFLAGS'
2514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2517 if test -n "$ac_tool_prefix"; then
2518 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_CC+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 break 2
2539 done
2540 done
2541 IFS=$as_save_IFS
2545 CC=$ac_cv_prog_CC
2546 if test -n "$CC"; then
2547 { echo "$as_me:$LINENO: result: $CC" >&5
2548 echo "${ECHO_T}$CC" >&6; }
2549 else
2550 { echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6; }
2556 if test -z "$ac_cv_prog_CC"; then
2557 ac_ct_CC=$CC
2558 # Extract the first word of "gcc", so it can be a program name with args.
2559 set dummy gcc; ac_word=$2
2560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565 if test -n "$ac_ct_CC"; then
2566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_ac_ct_CC="gcc"
2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2579 done
2580 done
2581 IFS=$as_save_IFS
2585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2586 if test -n "$ac_ct_CC"; then
2587 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2588 echo "${ECHO_T}$ac_ct_CC" >&6; }
2589 else
2590 { echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6; }
2594 if test "x$ac_ct_CC" = x; then
2595 CC=""
2596 else
2597 case $cross_compiling:$ac_tool_warned in
2598 yes:)
2599 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2600 whose name does not start with the host triplet. If you think this
2601 configuration is useful to you, please write to autoconf@gnu.org." >&5
2602 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2603 whose name does not start with the host triplet. If you think this
2604 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2605 ac_tool_warned=yes ;;
2606 esac
2607 CC=$ac_ct_CC
2609 else
2610 CC="$ac_cv_prog_CC"
2613 if test -z "$CC"; then
2614 if test -n "$ac_tool_prefix"; then
2615 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2616 set dummy ${ac_tool_prefix}cc; ac_word=$2
2617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2619 if test "${ac_cv_prog_CC+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 else
2622 if test -n "$CC"; then
2623 ac_cv_prog_CC="$CC" # Let the user override the test.
2624 else
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 for as_dir in $PATH
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2632 ac_cv_prog_CC="${ac_tool_prefix}cc"
2633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 break 2
2636 done
2637 done
2638 IFS=$as_save_IFS
2642 CC=$ac_cv_prog_CC
2643 if test -n "$CC"; then
2644 { echo "$as_me:$LINENO: result: $CC" >&5
2645 echo "${ECHO_T}$CC" >&6; }
2646 else
2647 { echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6; }
2654 if test -z "$CC"; then
2655 # Extract the first word of "cc", so it can be a program name with args.
2656 set dummy cc; ac_word=$2
2657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2659 if test "${ac_cv_prog_CC+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2664 else
2665 ac_prog_rejected=no
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2673 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2674 ac_prog_rejected=yes
2675 continue
2677 ac_cv_prog_CC="cc"
2678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 break 2
2681 done
2682 done
2683 IFS=$as_save_IFS
2685 if test $ac_prog_rejected = yes; then
2686 # We found a bogon in the path, so make sure we never use it.
2687 set dummy $ac_cv_prog_CC
2688 shift
2689 if test $# != 0; then
2690 # We chose a different compiler from the bogus one.
2691 # However, it has the same basename, so the bogon will be chosen
2692 # first if we set CC to just the basename; use the full file name.
2693 shift
2694 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2699 CC=$ac_cv_prog_CC
2700 if test -n "$CC"; then
2701 { echo "$as_me:$LINENO: result: $CC" >&5
2702 echo "${ECHO_T}$CC" >&6; }
2703 else
2704 { echo "$as_me:$LINENO: result: no" >&5
2705 echo "${ECHO_T}no" >&6; }
2710 if test -z "$CC"; then
2711 if test -n "$ac_tool_prefix"; then
2712 for ac_prog in cl.exe
2714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2718 if test "${ac_cv_prog_CC+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 else
2721 if test -n "$CC"; then
2722 ac_cv_prog_CC="$CC" # Let the user override the test.
2723 else
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2727 IFS=$as_save_IFS
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2731 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 break 2
2735 done
2736 done
2737 IFS=$as_save_IFS
2741 CC=$ac_cv_prog_CC
2742 if test -n "$CC"; then
2743 { echo "$as_me:$LINENO: result: $CC" >&5
2744 echo "${ECHO_T}$CC" >&6; }
2745 else
2746 { echo "$as_me:$LINENO: result: no" >&5
2747 echo "${ECHO_T}no" >&6; }
2751 test -n "$CC" && break
2752 done
2754 if test -z "$CC"; then
2755 ac_ct_CC=$CC
2756 for ac_prog in cl.exe
2758 # Extract the first word of "$ac_prog", so it can be a program name with args.
2759 set dummy $ac_prog; ac_word=$2
2760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 if test -n "$ac_ct_CC"; then
2766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 ac_cv_prog_ac_ct_CC="$ac_prog"
2776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2779 done
2780 done
2781 IFS=$as_save_IFS
2785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2786 if test -n "$ac_ct_CC"; then
2787 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2788 echo "${ECHO_T}$ac_ct_CC" >&6; }
2789 else
2790 { echo "$as_me:$LINENO: result: no" >&5
2791 echo "${ECHO_T}no" >&6; }
2795 test -n "$ac_ct_CC" && break
2796 done
2798 if test "x$ac_ct_CC" = x; then
2799 CC=""
2800 else
2801 case $cross_compiling:$ac_tool_warned in
2802 yes:)
2803 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2804 whose name does not start with the host triplet. If you think this
2805 configuration is useful to you, please write to autoconf@gnu.org." >&5
2806 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2807 whose name does not start with the host triplet. If you think this
2808 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2809 ac_tool_warned=yes ;;
2810 esac
2811 CC=$ac_ct_CC
2818 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2819 See \`config.log' for more details." >&5
2820 echo "$as_me: error: no acceptable C compiler found in \$PATH
2821 See \`config.log' for more details." >&2;}
2822 { (exit 1); exit 1; }; }
2824 # Provide some information about the compiler.
2825 echo "$as_me:$LINENO: checking for C compiler version" >&5
2826 ac_compiler=`set X $ac_compile; echo $2`
2827 { (ac_try="$ac_compiler --version >&5"
2828 case "(($ac_try" in
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2831 esac
2832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2833 (eval "$ac_compiler --version >&5") 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }
2837 { (ac_try="$ac_compiler -v >&5"
2838 case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841 esac
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_compiler -v >&5") 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }
2847 { (ac_try="$ac_compiler -V >&5"
2848 case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851 esac
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853 (eval "$ac_compiler -V >&5") 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }
2858 cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h. */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2866 main ()
2870 return 0;
2872 _ACEOF
2873 ac_clean_files_save=$ac_clean_files
2874 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2875 # Try to create an executable without -o first, disregard a.out.
2876 # It will help us diagnose broken compilers, and finding out an intuition
2877 # of exeext.
2878 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2879 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2880 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2882 # List of possible output files, starting from the most likely.
2883 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2884 # only as a last resort. b.out is created by i960 compilers.
2885 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2887 # The IRIX 6 linker writes into existing files which may not be
2888 # executable, retaining their permissions. Remove them first so a
2889 # subsequent execution test works.
2890 ac_rmfiles=
2891 for ac_file in $ac_files
2893 case $ac_file in
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2895 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2896 esac
2897 done
2898 rm -f $ac_rmfiles
2900 if { (ac_try="$ac_link_default"
2901 case "(($ac_try" in
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2904 esac
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_link_default") 2>&5
2907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; then
2910 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2911 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2912 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2913 # so that the user can short-circuit this test for compilers unknown to
2914 # Autoconf.
2915 for ac_file in $ac_files
2917 test -f "$ac_file" || continue
2918 case $ac_file in
2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2921 [ab].out )
2922 # We found the default executable, but exeext='' is most
2923 # certainly right.
2924 break;;
2925 *.* )
2926 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2927 then :; else
2928 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2930 # We set ac_cv_exeext here because the later test for it is not
2931 # safe: cross compilers may not add the suffix if given an `-o'
2932 # argument, so we may need to know it at that point already.
2933 # Even if this section looks crufty: it has the advantage of
2934 # actually working.
2935 break;;
2937 break;;
2938 esac
2939 done
2940 test "$ac_cv_exeext" = no && ac_cv_exeext=
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2947 See \`config.log' for more details." >&5
2948 echo "$as_me: error: C compiler cannot create executables
2949 See \`config.log' for more details." >&2;}
2950 { (exit 77); exit 77; }; }
2953 ac_exeext=$ac_cv_exeext
2954 { echo "$as_me:$LINENO: result: $ac_file" >&5
2955 echo "${ECHO_T}$ac_file" >&6; }
2957 # Check that the compiler produces executables we can run. If not, either
2958 # the compiler is broken, or we cross compile.
2959 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2960 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2961 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2962 # If not cross compiling, check that we can run a simple program.
2963 if test "$cross_compiling" != yes; then
2964 if { ac_try='./$ac_file'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 cross_compiling=no
2975 else
2976 if test "$cross_compiling" = maybe; then
2977 cross_compiling=yes
2978 else
2979 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2980 If you meant to cross compile, use \`--host'.
2981 See \`config.log' for more details." >&5
2982 echo "$as_me: error: cannot run C compiled programs.
2983 If you meant to cross compile, use \`--host'.
2984 See \`config.log' for more details." >&2;}
2985 { (exit 1); exit 1; }; }
2989 { echo "$as_me:$LINENO: result: yes" >&5
2990 echo "${ECHO_T}yes" >&6; }
2992 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2993 ac_clean_files=$ac_clean_files_save
2994 # Check that the compiler produces executables we can run. If not, either
2995 # the compiler is broken, or we cross compile.
2996 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2997 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2998 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2999 echo "${ECHO_T}$cross_compiling" >&6; }
3001 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3002 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3003 if { (ac_try="$ac_link"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_link") 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; then
3013 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3014 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3015 # work properly (i.e., refer to `conftest.exe'), while it won't with
3016 # `rm'.
3017 for ac_file in conftest.exe conftest conftest.*; do
3018 test -f "$ac_file" || continue
3019 case $ac_file in
3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3021 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3022 break;;
3023 * ) break;;
3024 esac
3025 done
3026 else
3027 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3028 See \`config.log' for more details." >&5
3029 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }
3034 rm -f conftest$ac_cv_exeext
3035 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3036 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3038 rm -f conftest.$ac_ext
3039 EXEEXT=$ac_cv_exeext
3040 ac_exeext=$EXEEXT
3041 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3042 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3043 if test "${ac_cv_objext+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3045 else
3046 cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h. */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3054 main ()
3058 return 0;
3060 _ACEOF
3061 rm -f conftest.o conftest.obj
3062 if { (ac_try="$ac_compile"
3063 case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compile") 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; then
3072 for ac_file in conftest.o conftest.obj conftest.*; do
3073 test -f "$ac_file" || continue;
3074 case $ac_file in
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3076 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3077 break;;
3078 esac
3079 done
3080 else
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3087 See \`config.log' for more details." >&2;}
3088 { (exit 1); exit 1; }; }
3091 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3093 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3094 echo "${ECHO_T}$ac_cv_objext" >&6; }
3095 OBJEXT=$ac_cv_objext
3096 ac_objext=$OBJEXT
3097 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3098 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3099 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102 cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h. */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3110 main ()
3112 #ifndef __GNUC__
3113 choke me
3114 #endif
3117 return 0;
3119 _ACEOF
3120 rm -f conftest.$ac_objext
3121 if { (ac_try="$ac_compile"
3122 case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_compile") 2>conftest.er1
3128 ac_status=$?
3129 grep -v '^ *+' conftest.er1 >conftest.err
3130 rm -f conftest.er1
3131 cat conftest.err >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } &&
3134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3135 { (case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_try") 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; } &&
3144 { ac_try='test -s conftest.$ac_objext'
3145 { (case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; }; then
3154 ac_compiler_gnu=yes
3155 else
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 ac_compiler_gnu=no
3162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3166 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3167 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3168 GCC=`test $ac_compiler_gnu = yes && echo yes`
3169 ac_test_CFLAGS=${CFLAGS+set}
3170 ac_save_CFLAGS=$CFLAGS
3171 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3172 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3173 if test "${ac_cv_prog_cc_g+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176 ac_save_c_werror_flag=$ac_c_werror_flag
3177 ac_c_werror_flag=yes
3178 ac_cv_prog_cc_g=no
3179 CFLAGS="-g"
3180 cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3188 main ()
3192 return 0;
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } &&
3209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3210 { (case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_try") 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; } &&
3219 { ac_try='test -s conftest.$ac_objext'
3220 { (case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_try") 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 ac_cv_prog_cc_g=yes
3230 else
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 CFLAGS=""
3235 cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h. */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3243 main ()
3247 return 0;
3249 _ACEOF
3250 rm -f conftest.$ac_objext
3251 if { (ac_try="$ac_compile"
3252 case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257 (eval "$ac_compile") 2>conftest.er1
3258 ac_status=$?
3259 grep -v '^ *+' conftest.er1 >conftest.err
3260 rm -f conftest.er1
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } &&
3264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3265 { (case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_try") 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; } &&
3274 { ac_try='test -s conftest.$ac_objext'
3275 { (case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_try") 2>&5
3281 ac_status=$?
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; }; then
3285 else
3286 echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3289 ac_c_werror_flag=$ac_save_c_werror_flag
3290 CFLAGS="-g"
3291 cat >conftest.$ac_ext <<_ACEOF
3292 /* confdefs.h. */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3299 main ()
3303 return 0;
3305 _ACEOF
3306 rm -f conftest.$ac_objext
3307 if { (ac_try="$ac_compile"
3308 case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311 esac
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_compile") 2>conftest.er1
3314 ac_status=$?
3315 grep -v '^ *+' conftest.er1 >conftest.err
3316 rm -f conftest.er1
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } &&
3320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3321 { (case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324 esac
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326 (eval "$ac_try") 2>&5
3327 ac_status=$?
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); }; } &&
3330 { ac_try='test -s conftest.$ac_objext'
3331 { (case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_try") 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
3340 ac_cv_prog_cc_g=yes
3341 else
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 ac_c_werror_flag=$ac_save_c_werror_flag
3357 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3358 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3359 if test "$ac_test_CFLAGS" = set; then
3360 CFLAGS=$ac_save_CFLAGS
3361 elif test $ac_cv_prog_cc_g = yes; then
3362 if test "$GCC" = yes; then
3363 CFLAGS="-g -O2"
3364 else
3365 CFLAGS="-g"
3367 else
3368 if test "$GCC" = yes; then
3369 CFLAGS="-O2"
3370 else
3371 CFLAGS=
3374 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3375 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3376 if test "${ac_cv_prog_cc_c89+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 else
3379 ac_cv_prog_cc_c89=no
3380 ac_save_CC=$CC
3381 cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h. */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3387 #include <stdarg.h>
3388 #include <stdio.h>
3389 #include <sys/types.h>
3390 #include <sys/stat.h>
3391 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3392 struct buf { int x; };
3393 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3394 static char *e (p, i)
3395 char **p;
3396 int i;
3398 return p[i];
3400 static char *f (char * (*g) (char **, int), char **p, ...)
3402 char *s;
3403 va_list v;
3404 va_start (v,p);
3405 s = g (p, va_arg (v,int));
3406 va_end (v);
3407 return s;
3410 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3411 function prototypes and stuff, but not '\xHH' hex character constants.
3412 These don't provoke an error unfortunately, instead are silently treated
3413 as 'x'. The following induces an error, until -std is added to get
3414 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3415 array size at least. It's necessary to write '\x00'==0 to get something
3416 that's true only with -std. */
3417 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3419 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3420 inside strings and character constants. */
3421 #define FOO(x) 'x'
3422 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3424 int test (int i, double x);
3425 struct s1 {int (*f) (int a);};
3426 struct s2 {int (*f) (double a);};
3427 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3428 int argc;
3429 char **argv;
3431 main ()
3433 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3435 return 0;
3437 _ACEOF
3438 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3439 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3441 CC="$ac_save_CC $ac_arg"
3442 rm -f conftest.$ac_objext
3443 if { (ac_try="$ac_compile"
3444 case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447 esac
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449 (eval "$ac_compile") 2>conftest.er1
3450 ac_status=$?
3451 grep -v '^ *+' conftest.er1 >conftest.err
3452 rm -f conftest.er1
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } &&
3456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3457 { (case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460 esac
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462 (eval "$ac_try") 2>&5
3463 ac_status=$?
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; } &&
3466 { ac_try='test -s conftest.$ac_objext'
3467 { (case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470 esac
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_try") 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; }; then
3476 ac_cv_prog_cc_c89=$ac_arg
3477 else
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3484 rm -f core conftest.err conftest.$ac_objext
3485 test "x$ac_cv_prog_cc_c89" != "xno" && break
3486 done
3487 rm -f conftest.$ac_ext
3488 CC=$ac_save_CC
3491 # AC_CACHE_VAL
3492 case "x$ac_cv_prog_cc_c89" in
3494 { echo "$as_me:$LINENO: result: none needed" >&5
3495 echo "${ECHO_T}none needed" >&6; } ;;
3496 xno)
3497 { echo "$as_me:$LINENO: result: unsupported" >&5
3498 echo "${ECHO_T}unsupported" >&6; } ;;
3500 CC="$CC $ac_cv_prog_cc_c89"
3501 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3502 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3503 esac
3506 ac_ext=c
3507 ac_cpp='$CPP $CPPFLAGS'
3508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3513 ac_ext=c
3514 ac_cpp='$CPP $CPPFLAGS'
3515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3519 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3520 # On Suns, sometimes $CPP names a directory.
3521 if test -n "$CPP" && test -d "$CPP"; then
3522 CPP=
3524 if test -z "$CPP"; then
3525 if test "${ac_cv_prog_CPP+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528 # Double quotes because CPP needs to be expanded
3529 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3531 ac_preproc_ok=false
3532 for ac_c_preproc_warn_flag in '' yes
3534 # Use a header file that comes with gcc, so configuring glibc
3535 # with a fresh cross-compiler works.
3536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3537 # <limits.h> exists even on freestanding compilers.
3538 # On the NeXT, cc -E runs the code through the compiler's parser,
3539 # not just through cpp. "Syntax error" is here to catch this case.
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h. */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546 #ifdef __STDC__
3547 # include <limits.h>
3548 #else
3549 # include <assert.h>
3550 #endif
3551 Syntax error
3552 _ACEOF
3553 if { (ac_try="$ac_cpp conftest.$ac_ext"
3554 case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557 esac
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3560 ac_status=$?
3561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } >/dev/null; then
3566 if test -s conftest.err; then
3567 ac_cpp_err=$ac_c_preproc_warn_flag
3568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3569 else
3570 ac_cpp_err=
3572 else
3573 ac_cpp_err=yes
3575 if test -z "$ac_cpp_err"; then
3577 else
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 # Broken: fails on valid input.
3582 continue
3585 rm -f conftest.err conftest.$ac_ext
3587 # OK, works on sane cases. Now check whether nonexistent headers
3588 # can be detected and how.
3589 cat >conftest.$ac_ext <<_ACEOF
3590 /* confdefs.h. */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3595 #include <ac_nonexistent.h>
3596 _ACEOF
3597 if { (ac_try="$ac_cpp conftest.$ac_ext"
3598 case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3601 esac
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3604 ac_status=$?
3605 grep -v '^ *+' conftest.er1 >conftest.err
3606 rm -f conftest.er1
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } >/dev/null; then
3610 if test -s conftest.err; then
3611 ac_cpp_err=$ac_c_preproc_warn_flag
3612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3613 else
3614 ac_cpp_err=
3616 else
3617 ac_cpp_err=yes
3619 if test -z "$ac_cpp_err"; then
3620 # Broken: success on invalid input.
3621 continue
3622 else
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3626 # Passes both tests.
3627 ac_preproc_ok=:
3628 break
3631 rm -f conftest.err conftest.$ac_ext
3633 done
3634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635 rm -f conftest.err conftest.$ac_ext
3636 if $ac_preproc_ok; then
3637 break
3640 done
3641 ac_cv_prog_CPP=$CPP
3644 CPP=$ac_cv_prog_CPP
3645 else
3646 ac_cv_prog_CPP=$CPP
3648 { echo "$as_me:$LINENO: result: $CPP" >&5
3649 echo "${ECHO_T}$CPP" >&6; }
3650 ac_preproc_ok=false
3651 for ac_c_preproc_warn_flag in '' yes
3653 # Use a header file that comes with gcc, so configuring glibc
3654 # with a fresh cross-compiler works.
3655 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3656 # <limits.h> exists even on freestanding compilers.
3657 # On the NeXT, cc -E runs the code through the compiler's parser,
3658 # not just through cpp. "Syntax error" is here to catch this case.
3659 cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h. */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3665 #ifdef __STDC__
3666 # include <limits.h>
3667 #else
3668 # include <assert.h>
3669 #endif
3670 Syntax error
3671 _ACEOF
3672 if { (ac_try="$ac_cpp conftest.$ac_ext"
3673 case "(($ac_try" in
3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675 *) ac_try_echo=$ac_try;;
3676 esac
3677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3679 ac_status=$?
3680 grep -v '^ *+' conftest.er1 >conftest.err
3681 rm -f conftest.er1
3682 cat conftest.err >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } >/dev/null; then
3685 if test -s conftest.err; then
3686 ac_cpp_err=$ac_c_preproc_warn_flag
3687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3688 else
3689 ac_cpp_err=
3691 else
3692 ac_cpp_err=yes
3694 if test -z "$ac_cpp_err"; then
3696 else
3697 echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 # Broken: fails on valid input.
3701 continue
3704 rm -f conftest.err conftest.$ac_ext
3706 # OK, works on sane cases. Now check whether nonexistent headers
3707 # can be detected and how.
3708 cat >conftest.$ac_ext <<_ACEOF
3709 /* confdefs.h. */
3710 _ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h. */
3714 #include <ac_nonexistent.h>
3715 _ACEOF
3716 if { (ac_try="$ac_cpp conftest.$ac_ext"
3717 case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720 esac
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3723 ac_status=$?
3724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } >/dev/null; then
3729 if test -s conftest.err; then
3730 ac_cpp_err=$ac_c_preproc_warn_flag
3731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3732 else
3733 ac_cpp_err=
3735 else
3736 ac_cpp_err=yes
3738 if test -z "$ac_cpp_err"; then
3739 # Broken: success on invalid input.
3740 continue
3741 else
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3745 # Passes both tests.
3746 ac_preproc_ok=:
3747 break
3750 rm -f conftest.err conftest.$ac_ext
3752 done
3753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3754 rm -f conftest.err conftest.$ac_ext
3755 if $ac_preproc_ok; then
3757 else
3758 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3759 See \`config.log' for more details." >&5
3760 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3761 See \`config.log' for more details." >&2;}
3762 { (exit 1); exit 1; }; }
3765 ac_ext=c
3766 ac_cpp='$CPP $CPPFLAGS'
3767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3773 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3774 if test "${ac_cv_path_GREP+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777 # Extract the first word of "grep ggrep" to use in msg output
3778 if test -z "$GREP"; then
3779 set dummy grep ggrep; ac_prog_name=$2
3780 if test "${ac_cv_path_GREP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 ac_path_GREP_found=false
3784 # Loop through the user's path and test for each of PROGNAME-LIST
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_prog in grep ggrep; do
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3793 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3794 # Check for GNU ac_path_GREP and select it if it is found.
3795 # Check for GNU $ac_path_GREP
3796 case `"$ac_path_GREP" --version 2>&1` in
3797 *GNU*)
3798 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3800 ac_count=0
3801 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3802 while :
3804 cat "conftest.in" "conftest.in" >"conftest.tmp"
3805 mv "conftest.tmp" "conftest.in"
3806 cp "conftest.in" "conftest.nl"
3807 echo 'GREP' >> "conftest.nl"
3808 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3810 ac_count=`expr $ac_count + 1`
3811 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_GREP="$ac_path_GREP"
3814 ac_path_GREP_max=$ac_count
3816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3818 done
3819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3820 esac
3823 $ac_path_GREP_found && break 3
3824 done
3825 done
3827 done
3828 IFS=$as_save_IFS
3833 GREP="$ac_cv_path_GREP"
3834 if test -z "$GREP"; then
3835 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3836 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3837 { (exit 1); exit 1; }; }
3840 else
3841 ac_cv_path_GREP=$GREP
3846 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3847 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3848 GREP="$ac_cv_path_GREP"
3851 { echo "$as_me:$LINENO: checking for egrep" >&5
3852 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3853 if test "${ac_cv_path_EGREP+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3857 then ac_cv_path_EGREP="$GREP -E"
3858 else
3859 # Extract the first word of "egrep" to use in msg output
3860 if test -z "$EGREP"; then
3861 set dummy egrep; ac_prog_name=$2
3862 if test "${ac_cv_path_EGREP+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865 ac_path_EGREP_found=false
3866 # Loop through the user's path and test for each of PROGNAME-LIST
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_prog in egrep; do
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3875 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3876 # Check for GNU ac_path_EGREP and select it if it is found.
3877 # Check for GNU $ac_path_EGREP
3878 case `"$ac_path_EGREP" --version 2>&1` in
3879 *GNU*)
3880 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3882 ac_count=0
3883 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3884 while :
3886 cat "conftest.in" "conftest.in" >"conftest.tmp"
3887 mv "conftest.tmp" "conftest.in"
3888 cp "conftest.in" "conftest.nl"
3889 echo 'EGREP' >> "conftest.nl"
3890 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3892 ac_count=`expr $ac_count + 1`
3893 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3894 # Best one so far, save it but keep looking for a better one
3895 ac_cv_path_EGREP="$ac_path_EGREP"
3896 ac_path_EGREP_max=$ac_count
3898 # 10*(2^10) chars as input seems more than enough
3899 test $ac_count -gt 10 && break
3900 done
3901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3902 esac
3905 $ac_path_EGREP_found && break 3
3906 done
3907 done
3909 done
3910 IFS=$as_save_IFS
3915 EGREP="$ac_cv_path_EGREP"
3916 if test -z "$EGREP"; then
3917 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3918 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3919 { (exit 1); exit 1; }; }
3922 else
3923 ac_cv_path_EGREP=$EGREP
3929 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3930 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3931 EGREP="$ac_cv_path_EGREP"
3934 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3935 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3936 if test "${ac_cv_header_stdc+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939 cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h. */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3945 #include <stdlib.h>
3946 #include <stdarg.h>
3947 #include <string.h>
3948 #include <float.h>
3951 main ()
3955 return 0;
3957 _ACEOF
3958 rm -f conftest.$ac_objext
3959 if { (ac_try="$ac_compile"
3960 case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963 esac
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965 (eval "$ac_compile") 2>conftest.er1
3966 ac_status=$?
3967 grep -v '^ *+' conftest.er1 >conftest.err
3968 rm -f conftest.er1
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3973 { (case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976 esac
3977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_try") 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; } &&
3982 { ac_try='test -s conftest.$ac_objext'
3983 { (case "(($ac_try" in
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3986 esac
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_try") 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3992 ac_cv_header_stdc=yes
3993 else
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3997 ac_cv_header_stdc=no
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 if test $ac_cv_header_stdc = yes; then
4003 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 #include <string.h>
4012 _ACEOF
4013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4014 $EGREP "memchr" >/dev/null 2>&1; then
4016 else
4017 ac_cv_header_stdc=no
4019 rm -f conftest*
4023 if test $ac_cv_header_stdc = yes; then
4024 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
4033 _ACEOF
4034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4035 $EGREP "free" >/dev/null 2>&1; then
4037 else
4038 ac_cv_header_stdc=no
4040 rm -f conftest*
4044 if test $ac_cv_header_stdc = yes; then
4045 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4046 if test "$cross_compiling" = yes; then
4048 else
4049 cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h. */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 #include <ctype.h>
4056 #include <stdlib.h>
4057 #if ((' ' & 0x0FF) == 0x020)
4058 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4059 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4060 #else
4061 # define ISLOWER(c) \
4062 (('a' <= (c) && (c) <= 'i') \
4063 || ('j' <= (c) && (c) <= 'r') \
4064 || ('s' <= (c) && (c) <= 'z'))
4065 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4066 #endif
4068 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4070 main ()
4072 int i;
4073 for (i = 0; i < 256; i++)
4074 if (XOR (islower (i), ISLOWER (i))
4075 || toupper (i) != TOUPPER (i))
4076 return 2;
4077 return 0;
4079 _ACEOF
4080 rm -f conftest$ac_exeext
4081 if { (ac_try="$ac_link"
4082 case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085 esac
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_link") 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4091 { (case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094 esac
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_try") 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4101 else
4102 echo "$as_me: program exited with status $ac_status" >&5
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4106 ( exit $ac_status )
4107 ac_cv_header_stdc=no
4109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4115 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4116 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4117 if test $ac_cv_header_stdc = yes; then
4119 cat >>confdefs.h <<\_ACEOF
4120 #define STDC_HEADERS 1
4121 _ACEOF
4125 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4135 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4136 inttypes.h stdint.h unistd.h
4138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144 cat >conftest.$ac_ext <<_ACEOF
4145 /* confdefs.h. */
4146 _ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h. */
4150 $ac_includes_default
4152 #include <$ac_header>
4153 _ACEOF
4154 rm -f conftest.$ac_objext
4155 if { (ac_try="$ac_compile"
4156 case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159 esac
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_compile") 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4169 { (case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_try") 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182 esac
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_try") 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4188 eval "$as_ac_Header=yes"
4189 else
4190 echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.$ac_ext >&5
4193 eval "$as_ac_Header=no"
4196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198 ac_res=`eval echo '${'$as_ac_Header'}'`
4199 { echo "$as_me:$LINENO: result: $ac_res" >&5
4200 echo "${ECHO_T}$ac_res" >&6; }
4201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4202 cat >>confdefs.h <<_ACEOF
4203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4204 _ACEOF
4208 done
4211 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4212 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4213 if test "${ac_cv_c_bigendian+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216 # See if sys/param.h defines the BYTE_ORDER macro.
4217 cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h. */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <sys/types.h>
4224 #include <sys/param.h>
4227 main ()
4229 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4230 bogus endian macros
4231 #endif
4234 return 0;
4236 _ACEOF
4237 rm -f conftest.$ac_objext
4238 if { (ac_try="$ac_compile"
4239 case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242 esac
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_compile") 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252 { (case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255 esac
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_try") 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; } &&
4261 { ac_try='test -s conftest.$ac_objext'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265 esac
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 # It does; now see whether it defined to BIG_ENDIAN or not.
4272 cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h. */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 #include <sys/types.h>
4279 #include <sys/param.h>
4282 main ()
4284 #if BYTE_ORDER != BIG_ENDIAN
4285 not big endian
4286 #endif
4289 return 0;
4291 _ACEOF
4292 rm -f conftest.$ac_objext
4293 if { (ac_try="$ac_compile"
4294 case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297 esac
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_compile") 2>conftest.er1
4300 ac_status=$?
4301 grep -v '^ *+' conftest.er1 >conftest.err
4302 rm -f conftest.er1
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4307 { (case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310 esac
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_try") 2>&5
4313 ac_status=$?
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; } &&
4316 { ac_try='test -s conftest.$ac_objext'
4317 { (case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320 esac
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_try") 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 ac_cv_c_bigendian=yes
4327 else
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4331 ac_cv_c_bigendian=no
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 else
4336 echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4339 # It does not; compile a test program.
4340 if test "$cross_compiling" = yes; then
4341 # try to guess the endianness by grepping values into an object file
4342 ac_cv_c_bigendian=unknown
4343 cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h. */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4349 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4350 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4351 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4352 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4353 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4354 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4356 main ()
4358 _ascii (); _ebcdic ();
4360 return 0;
4362 _ACEOF
4363 rm -f conftest.$ac_objext
4364 if { (ac_try="$ac_compile"
4365 case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368 esac
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_compile") 2>conftest.er1
4371 ac_status=$?
4372 grep -v '^ *+' conftest.er1 >conftest.err
4373 rm -f conftest.er1
4374 cat conftest.err >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } &&
4377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4378 { (case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381 esac
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_try") 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; } &&
4387 { ac_try='test -s conftest.$ac_objext'
4388 { (case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391 esac
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_try") 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4398 ac_cv_c_bigendian=yes
4400 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4401 if test "$ac_cv_c_bigendian" = unknown; then
4402 ac_cv_c_bigendian=no
4403 else
4404 # finding both strings is unlikely to happen, but who knows?
4405 ac_cv_c_bigendian=unknown
4408 else
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416 else
4417 cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h. */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4423 $ac_includes_default
4425 main ()
4428 /* Are we little or big endian? From Harbison&Steele. */
4429 union
4431 long int l;
4432 char c[sizeof (long int)];
4433 } u;
4434 u.l = 1;
4435 return u.c[sizeof (long int) - 1] == 1;
4438 return 0;
4440 _ACEOF
4441 rm -f conftest$ac_exeext
4442 if { (ac_try="$ac_link"
4443 case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446 esac
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_link") 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4452 { (case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455 esac
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_try") 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 ac_cv_c_bigendian=no
4462 else
4463 echo "$as_me: program exited with status $ac_status" >&5
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 ( exit $ac_status )
4468 ac_cv_c_bigendian=yes
4470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4479 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4480 case $ac_cv_c_bigendian in
4481 yes)
4482 ENDIAN=big
4485 ENDIAN=little
4488 { { echo "$as_me:$LINENO: error: unknown endianness
4489 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4490 echo "$as_me: error: unknown endianness
4491 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4492 { (exit 1); exit 1; }; } ;;
4493 esac
4496 if test "$cross_compiling" = yes; then
4497 LLVM_CROSS_COMPILING=1
4500 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4501 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4502 if test "${ac_cv_build_exeext+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 else
4505 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4506 ac_cv_build_exeext=.exe
4507 else
4508 ac_build_prefix=${build_alias}-
4510 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4511 set dummy ${ac_build_prefix}gcc; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517 if test -n "$BUILD_CC"; then
4518 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4519 else
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4527 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4531 done
4532 done
4533 IFS=$as_save_IFS
4537 BUILD_CC=$ac_cv_prog_BUILD_CC
4538 if test -n "$BUILD_CC"; then
4539 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4540 echo "${ECHO_T}$BUILD_CC" >&6; }
4541 else
4542 { echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6; }
4547 if test -z "$BUILD_CC"; then
4548 # Extract the first word of "gcc", so it can be a program name with args.
4549 set dummy gcc; ac_word=$2
4550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4552 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555 if test -n "$BUILD_CC"; then
4556 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4565 ac_cv_prog_BUILD_CC="gcc"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4569 done
4570 done
4571 IFS=$as_save_IFS
4575 BUILD_CC=$ac_cv_prog_BUILD_CC
4576 if test -n "$BUILD_CC"; then
4577 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4578 echo "${ECHO_T}$BUILD_CC" >&6; }
4579 else
4580 { echo "$as_me:$LINENO: result: no" >&5
4581 echo "${ECHO_T}no" >&6; }
4585 if test -z "$BUILD_CC"; then
4586 # Extract the first word of "cc", so it can be a program name with args.
4587 set dummy cc; ac_word=$2
4588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4590 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593 if test -n "$BUILD_CC"; then
4594 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4595 else
4596 ac_prog_rejected=no
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4604 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4605 ac_prog_rejected=yes
4606 continue
4608 ac_cv_prog_BUILD_CC="cc"
4609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4612 done
4613 done
4614 IFS=$as_save_IFS
4616 if test $ac_prog_rejected = yes; then
4617 # We found a bogon in the path, so make sure we never use it.
4618 set dummy $ac_cv_prog_BUILD_CC
4619 shift
4620 if test $# != 0; then
4621 # We chose a different compiler from the bogus one.
4622 # However, it has the same basename, so the bogon will be chosen
4623 # first if we set BUILD_CC to just the basename; use the full file name.
4624 shift
4625 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4630 BUILD_CC=$ac_cv_prog_BUILD_CC
4631 if test -n "$BUILD_CC"; then
4632 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4633 echo "${ECHO_T}$BUILD_CC" >&6; }
4634 else
4635 { echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6; }
4642 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4643 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4644 { (exit 1); exit 1; }; }
4645 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4646 rm -f conftest*
4647 echo 'int main () { return 0; }' > conftest.$ac_ext
4648 ac_cv_build_exeext=
4649 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4650 (eval $ac_build_link) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; then
4654 for file in conftest.*; do
4655 case $file in
4656 *.c | *.o | *.obj | *.dSYM) ;;
4657 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4658 esac
4659 done
4660 else
4661 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4662 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4663 { (exit 1); exit 1; }; }
4665 rm -f conftest*
4666 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4670 BUILD_EXEEXT=""
4671 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4672 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4673 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4674 ac_build_exeext=$BUILD_EXEEXT
4676 ac_build_prefix=${build_alias}-
4677 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4678 set dummy ${ac_build_prefix}g++; ac_word=$2
4679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4681 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684 if test -n "$BUILD_CXX"; then
4685 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4686 else
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4694 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 break 2
4698 done
4699 done
4700 IFS=$as_save_IFS
4704 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4705 if test -n "$BUILD_CXX"; then
4706 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4707 echo "${ECHO_T}$BUILD_CXX" >&6; }
4708 else
4709 { echo "$as_me:$LINENO: result: no" >&5
4710 echo "${ECHO_T}no" >&6; }
4714 if test -z "$BUILD_CXX"; then
4715 # Extract the first word of "g++", so it can be a program name with args.
4716 set dummy g++; ac_word=$2
4717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4719 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 if test -n "$BUILD_CXX"; then
4723 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4724 else
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4732 ac_cv_prog_BUILD_CXX="g++"
4733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 break 2
4736 done
4737 done
4738 IFS=$as_save_IFS
4742 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4743 if test -n "$BUILD_CXX"; then
4744 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4745 echo "${ECHO_T}$BUILD_CXX" >&6; }
4746 else
4747 { echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6; }
4752 if test -z "$BUILD_CXX"; then
4753 # Extract the first word of "c++", so it can be a program name with args.
4754 set dummy c++; ac_word=$2
4755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4757 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760 if test -n "$BUILD_CXX"; then
4761 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4762 else
4763 ac_prog_rejected=no
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4772 ac_prog_rejected=yes
4773 continue
4775 ac_cv_prog_BUILD_CXX="c++"
4776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 break 2
4779 done
4780 done
4781 IFS=$as_save_IFS
4783 if test $ac_prog_rejected = yes; then
4784 # We found a bogon in the path, so make sure we never use it.
4785 set dummy $ac_cv_prog_BUILD_CXX
4786 shift
4787 if test $# != 0; then
4788 # We chose a different compiler from the bogus one.
4789 # However, it has the same basename, so the bogon will be chosen
4790 # first if we set BUILD_CXX to just the basename; use the full file name.
4791 shift
4792 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4797 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4798 if test -n "$BUILD_CXX"; then
4799 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4800 echo "${ECHO_T}$BUILD_CXX" >&6; }
4801 else
4802 { echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6; }
4809 else
4810 LLVM_CROSS_COMPILING=0
4814 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4815 cvsbuild="yes"
4816 optimize="no"
4817 CVSBUILD=CVSBUILD=1
4819 else
4820 cvsbuild="no"
4821 optimize="yes"
4825 # Check whether --enable-optimized was given.
4826 if test "${enable_optimized+set}" = set; then
4827 enableval=$enable_optimized;
4828 else
4829 enableval=$optimize
4832 if test ${enableval} = "no" ; then
4833 ENABLE_OPTIMIZED=
4835 else
4836 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4840 # Check whether --enable-profiling was given.
4841 if test "${enable_profiling+set}" = set; then
4842 enableval=$enable_profiling;
4843 else
4844 enableval="no"
4847 if test ${enableval} = "no" ; then
4848 ENABLE_PROFILING=
4850 else
4851 ENABLE_PROFILING=ENABLE_PROFILING=1
4855 # Check whether --enable-assertions was given.
4856 if test "${enable_assertions+set}" = set; then
4857 enableval=$enable_assertions;
4858 else
4859 enableval="yes"
4862 if test ${enableval} = "yes" ; then
4863 DISABLE_ASSERTIONS=
4865 else
4866 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4870 # Check whether --enable-expensive-checks was given.
4871 if test "${enable_expensive_checks+set}" = set; then
4872 enableval=$enable_expensive_checks;
4873 else
4874 enableval="no"
4877 if test ${enableval} = "yes" ; then
4878 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4880 EXPENSIVE_CHECKS=yes
4882 else
4883 ENABLE_EXPENSIVE_CHECKS=
4885 EXPENSIVE_CHECKS=no
4889 # Check whether --enable-debug-runtime was given.
4890 if test "${enable_debug_runtime+set}" = set; then
4891 enableval=$enable_debug_runtime;
4892 else
4893 enableval=no
4896 if test ${enableval} = "no" ; then
4897 DEBUG_RUNTIME=
4899 else
4900 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4904 # Check whether --enable-debug-symbols was given.
4905 if test "${enable_debug_symbols+set}" = set; then
4906 enableval=$enable_debug_symbols;
4907 else
4908 enableval=no
4911 if test ${enableval} = "no" ; then
4912 DEBUG_SYMBOLS=
4914 else
4915 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4919 # Check whether --enable-jit was given.
4920 if test "${enable_jit+set}" = set; then
4921 enableval=$enable_jit;
4922 else
4923 enableval=default
4926 if test ${enableval} = "no"
4927 then
4928 JIT=
4930 else
4931 case "$llvm_cv_target_arch" in
4932 x86) TARGET_HAS_JIT=1
4934 Sparc) TARGET_HAS_JIT=0
4936 PowerPC) TARGET_HAS_JIT=1
4938 x86_64) TARGET_HAS_JIT=1
4940 Alpha) TARGET_HAS_JIT=1
4942 ARM) TARGET_HAS_JIT=1
4944 Mips) TARGET_HAS_JIT=0
4946 PIC16) TARGET_HAS_JIT=0
4948 XCore) TARGET_HAS_JIT=0
4950 MSP430) TARGET_HAS_JIT=0
4952 SystemZ) TARGET_HAS_JIT=0
4954 Blackfin) TARGET_HAS_JIT=0
4956 *) TARGET_HAS_JIT=0
4958 esac
4961 # Check whether --enable-doxygen was given.
4962 if test "${enable_doxygen+set}" = set; then
4963 enableval=$enable_doxygen;
4964 else
4965 enableval=default
4968 case "$enableval" in
4969 yes) ENABLE_DOXYGEN=1
4971 no) ENABLE_DOXYGEN=0
4973 default) ENABLE_DOXYGEN=0
4975 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4976 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4977 { (exit 1); exit 1; }; } ;;
4978 esac
4980 # Check whether --enable-threads was given.
4981 if test "${enable_threads+set}" = set; then
4982 enableval=$enable_threads;
4983 else
4984 enableval=default
4987 case "$enableval" in
4988 yes) ENABLE_THREADS=1
4990 no) ENABLE_THREADS=0
4992 default) ENABLE_THREADS=1
4994 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4995 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4996 { (exit 1); exit 1; }; } ;;
4997 esac
4999 cat >>confdefs.h <<_ACEOF
5000 #define ENABLE_THREADS $ENABLE_THREADS
5001 _ACEOF
5004 # Check whether --enable-pic was given.
5005 if test "${enable_pic+set}" = set; then
5006 enableval=$enable_pic;
5007 else
5008 enableval=default
5011 case "$enableval" in
5012 yes) ENABLE_PIC=1
5014 no) ENABLE_PIC=0
5016 default) ENABLE_PIC=1
5018 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5019 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5020 { (exit 1); exit 1; }; } ;;
5021 esac
5023 cat >>confdefs.h <<_ACEOF
5024 #define ENABLE_PIC $ENABLE_PIC
5025 _ACEOF
5028 TARGETS_TO_BUILD=""
5029 # Check whether --enable-targets was given.
5030 if test "${enable_targets+set}" = set; then
5031 enableval=$enable_targets;
5032 else
5033 enableval=all
5036 if test "$enableval" = host-only ; then
5037 enableval=host
5039 case "$enableval" in
5040 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5041 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5042 case "$a_target" in
5043 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5044 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5045 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5046 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5047 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5048 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5049 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5050 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5051 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5052 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5053 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5054 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5055 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5056 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5057 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5058 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5059 host) case "$llvm_cv_target_arch" in
5060 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5061 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5062 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5063 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5064 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5065 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5066 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5067 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5068 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5069 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5070 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5071 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5072 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5073 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5074 echo "$as_me: error: Can not set target to build" >&2;}
5075 { (exit 1); exit 1; }; } ;;
5076 esac ;;
5077 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5078 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5079 { (exit 1); exit 1; }; } ;;
5080 esac
5081 done
5083 esac
5084 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5087 # Determine whether we are building LLVM support for the native architecture.
5088 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5089 for a_target in $TARGETS_TO_BUILD; do
5090 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5091 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5093 cat >>confdefs.h <<_ACEOF
5094 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5095 _ACEOF
5098 done
5100 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5101 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5102 LLVM_ENUM_TARGETS=""
5103 LLVM_ENUM_ASM_PRINTERS=""
5104 LLVM_ENUM_ASM_PARSERS=""
5105 for target_to_build in $TARGETS_TO_BUILD; do
5106 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5107 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5108 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5110 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5111 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5113 done
5118 # Check whether --enable-cbe-printf-a was given.
5119 if test "${enable_cbe_printf_a+set}" = set; then
5120 enableval=$enable_cbe_printf_a;
5121 else
5122 enableval=default
5125 case "$enableval" in
5126 yes) ENABLE_CBE_PRINTF_A=1
5128 no) ENABLE_CBE_PRINTF_A=0
5130 default) ENABLE_CBE_PRINTF_A=1
5132 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5133 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5134 { (exit 1); exit 1; }; } ;;
5135 esac
5137 cat >>confdefs.h <<_ACEOF
5138 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5139 _ACEOF
5143 # Check whether --with-llvmgccdir was given.
5144 if test "${with_llvmgccdir+set}" = set; then
5145 withval=$with_llvmgccdir;
5146 else
5147 withval=default
5150 case "$withval" in
5151 default) WITH_LLVMGCCDIR=default ;;
5152 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5153 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5154 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5155 { (exit 1); exit 1; }; } ;;
5156 esac
5159 # Check whether --with-llvmgcc was given.
5160 if test "${with_llvmgcc+set}" = set; then
5161 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5162 WITH_LLVMGCCDIR=""
5167 # Check whether --with-llvmgxx was given.
5168 if test "${with_llvmgxx+set}" = set; then
5169 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5170 WITH_LLVMGCCDIR=""
5174 if test -n "$LLVMGCC"; then
5175 LLVMGCCCOMMAND="$LLVMGCC"
5178 if test -n "$LLVMGXX"; then
5179 LLVMGXXCOMMAND="$LLVMGXX"
5182 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5183 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5184 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5185 { (exit 1); exit 1; }; };
5188 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5189 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5190 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5191 { (exit 1); exit 1; }; };
5195 # Check whether --with-extra-options was given.
5196 if test "${with_extra_options+set}" = set; then
5197 withval=$with_extra_options;
5198 else
5199 withval=default
5202 case "$withval" in
5203 default) EXTRA_OPTIONS= ;;
5204 *) EXTRA_OPTIONS=$withval ;;
5205 esac
5206 EXTRA_OPTIONS=$EXTRA_OPTIONS
5209 # Check whether --enable-bindings was given.
5210 if test "${enable_bindings+set}" = set; then
5211 enableval=$enable_bindings;
5212 else
5213 enableval=default
5216 BINDINGS_TO_BUILD=""
5217 case "$enableval" in
5218 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5219 all ) BINDINGS_TO_BUILD="ocaml" ;;
5220 none | no) BINDINGS_TO_BUILD="" ;;
5221 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5222 case "$a_binding" in
5223 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5224 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5225 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5226 { (exit 1); exit 1; }; } ;;
5227 esac
5228 done
5230 esac
5233 # Check whether --with-ocaml-libdir was given.
5234 if test "${with_ocaml_libdir+set}" = set; then
5235 withval=$with_ocaml_libdir;
5236 else
5237 withval=auto
5240 case "$withval" in
5241 auto) with_ocaml_libdir="$withval" ;;
5242 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5243 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5244 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5245 { (exit 1); exit 1; }; } ;;
5246 esac
5249 # Check whether --with-binutils-include was given.
5250 if test "${with_binutils_include+set}" = set; then
5251 withval=$with_binutils_include;
5252 else
5253 withval=default
5256 case "$withval" in
5257 default) WITH_BINUTILS_INCDIR=default ;;
5258 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5259 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5260 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5261 { (exit 1); exit 1; }; } ;;
5262 esac
5263 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5264 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5266 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5267 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5268 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5269 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5270 { (exit 1); exit 1; }; };
5274 # Check whether --enable-libffi was given.
5275 if test "${enable_libffi+set}" = set; then
5276 enableval=$enable_libffi;
5277 else
5278 enableval=yes
5281 case "$enableval" in
5282 yes) llvm_cv_enable_libffi="yes" ;;
5283 no) llvm_cv_enable_libffi="no" ;;
5284 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5286 { (exit 1); exit 1; }; } ;;
5287 esac
5289 if test "$llvm_cv_os_type" = "Win32" ; then
5290 llvmc_dynamic="yes"
5291 else
5292 llvmc_dynamic="no"
5295 # Check whether --enable-llvmc-dynamic was given.
5296 if test "${enable_llvmc_dynamic+set}" = set; then
5297 enableval=$enable_llvmc_dynamic;
5298 else
5299 enableval=$llvmc_dynamic
5302 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5303 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5305 else
5306 ENABLE_LLVMC_DYNAMIC=
5310 # Check whether --enable-llvmc-dynamic-plugins was given.
5311 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5312 enableval=$enable_llvmc_dynamic_plugins;
5313 else
5314 enableval=yes
5317 if test ${enableval} = "yes" ; then
5318 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5320 else
5321 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5326 ac_ext=c
5327 ac_cpp='$CPP $CPPFLAGS'
5328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5331 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5332 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5333 # On Suns, sometimes $CPP names a directory.
5334 if test -n "$CPP" && test -d "$CPP"; then
5335 CPP=
5337 if test -z "$CPP"; then
5338 if test "${ac_cv_prog_CPP+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341 # Double quotes because CPP needs to be expanded
5342 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5344 ac_preproc_ok=false
5345 for ac_c_preproc_warn_flag in '' yes
5347 # Use a header file that comes with gcc, so configuring glibc
5348 # with a fresh cross-compiler works.
5349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5350 # <limits.h> exists even on freestanding compilers.
5351 # On the NeXT, cc -E runs the code through the compiler's parser,
5352 # not just through cpp. "Syntax error" is here to catch this case.
5353 cat >conftest.$ac_ext <<_ACEOF
5354 /* confdefs.h. */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 #ifdef __STDC__
5360 # include <limits.h>
5361 #else
5362 # include <assert.h>
5363 #endif
5364 Syntax error
5365 _ACEOF
5366 if { (ac_try="$ac_cpp conftest.$ac_ext"
5367 case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370 esac
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } >/dev/null; then
5379 if test -s conftest.err; then
5380 ac_cpp_err=$ac_c_preproc_warn_flag
5381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5382 else
5383 ac_cpp_err=
5385 else
5386 ac_cpp_err=yes
5388 if test -z "$ac_cpp_err"; then
5390 else
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 # Broken: fails on valid input.
5395 continue
5398 rm -f conftest.err conftest.$ac_ext
5400 # OK, works on sane cases. Now check whether nonexistent headers
5401 # can be detected and how.
5402 cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h. */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5408 #include <ac_nonexistent.h>
5409 _ACEOF
5410 if { (ac_try="$ac_cpp conftest.$ac_ext"
5411 case "(($ac_try" in
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5414 esac
5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5417 ac_status=$?
5418 grep -v '^ *+' conftest.er1 >conftest.err
5419 rm -f conftest.er1
5420 cat conftest.err >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } >/dev/null; then
5423 if test -s conftest.err; then
5424 ac_cpp_err=$ac_c_preproc_warn_flag
5425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5426 else
5427 ac_cpp_err=
5429 else
5430 ac_cpp_err=yes
5432 if test -z "$ac_cpp_err"; then
5433 # Broken: success on invalid input.
5434 continue
5435 else
5436 echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5439 # Passes both tests.
5440 ac_preproc_ok=:
5441 break
5444 rm -f conftest.err conftest.$ac_ext
5446 done
5447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5448 rm -f conftest.err conftest.$ac_ext
5449 if $ac_preproc_ok; then
5450 break
5453 done
5454 ac_cv_prog_CPP=$CPP
5457 CPP=$ac_cv_prog_CPP
5458 else
5459 ac_cv_prog_CPP=$CPP
5461 { echo "$as_me:$LINENO: result: $CPP" >&5
5462 echo "${ECHO_T}$CPP" >&6; }
5463 ac_preproc_ok=false
5464 for ac_c_preproc_warn_flag in '' yes
5466 # Use a header file that comes with gcc, so configuring glibc
5467 # with a fresh cross-compiler works.
5468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5469 # <limits.h> exists even on freestanding compilers.
5470 # On the NeXT, cc -E runs the code through the compiler's parser,
5471 # not just through cpp. "Syntax error" is here to catch this case.
5472 cat >conftest.$ac_ext <<_ACEOF
5473 /* confdefs.h. */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5478 #ifdef __STDC__
5479 # include <limits.h>
5480 #else
5481 # include <assert.h>
5482 #endif
5483 Syntax error
5484 _ACEOF
5485 if { (ac_try="$ac_cpp conftest.$ac_ext"
5486 case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } >/dev/null; then
5498 if test -s conftest.err; then
5499 ac_cpp_err=$ac_c_preproc_warn_flag
5500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5501 else
5502 ac_cpp_err=
5504 else
5505 ac_cpp_err=yes
5507 if test -z "$ac_cpp_err"; then
5509 else
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 # Broken: fails on valid input.
5514 continue
5517 rm -f conftest.err conftest.$ac_ext
5519 # OK, works on sane cases. Now check whether nonexistent headers
5520 # can be detected and how.
5521 cat >conftest.$ac_ext <<_ACEOF
5522 /* confdefs.h. */
5523 _ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 #include <ac_nonexistent.h>
5528 _ACEOF
5529 if { (ac_try="$ac_cpp conftest.$ac_ext"
5530 case "(($ac_try" in
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5533 esac
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5536 ac_status=$?
5537 grep -v '^ *+' conftest.er1 >conftest.err
5538 rm -f conftest.er1
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } >/dev/null; then
5542 if test -s conftest.err; then
5543 ac_cpp_err=$ac_c_preproc_warn_flag
5544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5545 else
5546 ac_cpp_err=
5548 else
5549 ac_cpp_err=yes
5551 if test -z "$ac_cpp_err"; then
5552 # Broken: success on invalid input.
5553 continue
5554 else
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5558 # Passes both tests.
5559 ac_preproc_ok=:
5560 break
5563 rm -f conftest.err conftest.$ac_ext
5565 done
5566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5567 rm -f conftest.err conftest.$ac_ext
5568 if $ac_preproc_ok; then
5570 else
5571 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5572 See \`config.log' for more details." >&5
5573 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5574 See \`config.log' for more details." >&2;}
5575 { (exit 1); exit 1; }; }
5578 ac_ext=c
5579 ac_cpp='$CPP $CPPFLAGS'
5580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5584 ac_ext=c
5585 ac_cpp='$CPP $CPPFLAGS'
5586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5589 if test -n "$ac_tool_prefix"; then
5590 for ac_prog in gcc
5592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5596 if test "${ac_cv_prog_CC+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 else
5599 if test -n "$CC"; then
5600 ac_cv_prog_CC="$CC" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5613 done
5614 done
5615 IFS=$as_save_IFS
5619 CC=$ac_cv_prog_CC
5620 if test -n "$CC"; then
5621 { echo "$as_me:$LINENO: result: $CC" >&5
5622 echo "${ECHO_T}$CC" >&6; }
5623 else
5624 { echo "$as_me:$LINENO: result: no" >&5
5625 echo "${ECHO_T}no" >&6; }
5629 test -n "$CC" && break
5630 done
5632 if test -z "$CC"; then
5633 ac_ct_CC=$CC
5634 for ac_prog in gcc
5636 # Extract the first word of "$ac_prog", so it can be a program name with args.
5637 set dummy $ac_prog; ac_word=$2
5638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5640 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 if test -n "$ac_ct_CC"; then
5644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5653 ac_cv_prog_ac_ct_CC="$ac_prog"
5654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5657 done
5658 done
5659 IFS=$as_save_IFS
5663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5664 if test -n "$ac_ct_CC"; then
5665 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5666 echo "${ECHO_T}$ac_ct_CC" >&6; }
5667 else
5668 { echo "$as_me:$LINENO: result: no" >&5
5669 echo "${ECHO_T}no" >&6; }
5673 test -n "$ac_ct_CC" && break
5674 done
5676 if test "x$ac_ct_CC" = x; then
5677 CC=""
5678 else
5679 case $cross_compiling:$ac_tool_warned in
5680 yes:)
5681 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5682 whose name does not start with the host triplet. If you think this
5683 configuration is useful to you, please write to autoconf@gnu.org." >&5
5684 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5685 whose name does not start with the host triplet. If you think this
5686 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5687 ac_tool_warned=yes ;;
5688 esac
5689 CC=$ac_ct_CC
5694 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5695 See \`config.log' for more details." >&5
5696 echo "$as_me: error: no acceptable C compiler found in \$PATH
5697 See \`config.log' for more details." >&2;}
5698 { (exit 1); exit 1; }; }
5700 # Provide some information about the compiler.
5701 echo "$as_me:$LINENO: checking for C compiler version" >&5
5702 ac_compiler=`set X $ac_compile; echo $2`
5703 { (ac_try="$ac_compiler --version >&5"
5704 case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707 esac
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_compiler --version >&5") 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }
5713 { (ac_try="$ac_compiler -v >&5"
5714 case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717 esac
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_compiler -v >&5") 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }
5723 { (ac_try="$ac_compiler -V >&5"
5724 case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727 esac
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_compiler -V >&5") 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }
5734 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5735 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5736 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739 cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h. */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5747 main ()
5749 #ifndef __GNUC__
5750 choke me
5751 #endif
5754 return 0;
5756 _ACEOF
5757 rm -f conftest.$ac_objext
5758 if { (ac_try="$ac_compile"
5759 case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5762 esac
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_compile") 2>conftest.er1
5765 ac_status=$?
5766 grep -v '^ *+' conftest.er1 >conftest.err
5767 rm -f conftest.er1
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5772 { (case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5775 esac
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_try") 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; } &&
5781 { ac_try='test -s conftest.$ac_objext'
5782 { (case "(($ac_try" in
5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5785 esac
5786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787 (eval "$ac_try") 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_compiler_gnu=yes
5792 else
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5796 ac_compiler_gnu=no
5799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5803 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5804 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5805 GCC=`test $ac_compiler_gnu = yes && echo yes`
5806 ac_test_CFLAGS=${CFLAGS+set}
5807 ac_save_CFLAGS=$CFLAGS
5808 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5809 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5810 if test "${ac_cv_prog_cc_g+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813 ac_save_c_werror_flag=$ac_c_werror_flag
5814 ac_c_werror_flag=yes
5815 ac_cv_prog_cc_g=no
5816 CFLAGS="-g"
5817 cat >conftest.$ac_ext <<_ACEOF
5818 /* confdefs.h. */
5819 _ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5825 main ()
5829 return 0;
5831 _ACEOF
5832 rm -f conftest.$ac_objext
5833 if { (ac_try="$ac_compile"
5834 case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837 esac
5838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_compile") 2>conftest.er1
5840 ac_status=$?
5841 grep -v '^ *+' conftest.er1 >conftest.err
5842 rm -f conftest.er1
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } &&
5846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5847 { (case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850 esac
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_try") 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; } &&
5856 { ac_try='test -s conftest.$ac_objext'
5857 { (case "(($ac_try" in
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5860 esac
5861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5862 (eval "$ac_try") 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; }; then
5866 ac_cv_prog_cc_g=yes
5867 else
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5871 CFLAGS=""
5872 cat >conftest.$ac_ext <<_ACEOF
5873 /* confdefs.h. */
5874 _ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5880 main ()
5884 return 0;
5886 _ACEOF
5887 rm -f conftest.$ac_objext
5888 if { (ac_try="$ac_compile"
5889 case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5892 esac
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_compile") 2>conftest.er1
5895 ac_status=$?
5896 grep -v '^ *+' conftest.er1 >conftest.err
5897 rm -f conftest.er1
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } &&
5901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5902 { (case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905 esac
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_try") 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; } &&
5911 { ac_try='test -s conftest.$ac_objext'
5912 { (case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5915 esac
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_try") 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5922 else
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5926 ac_c_werror_flag=$ac_save_c_werror_flag
5927 CFLAGS="-g"
5928 cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h. */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5936 main ()
5940 return 0;
5942 _ACEOF
5943 rm -f conftest.$ac_objext
5944 if { (ac_try="$ac_compile"
5945 case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948 esac
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_compile") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } &&
5957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5958 { (case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5961 esac
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_try") 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; } &&
5967 { ac_try='test -s conftest.$ac_objext'
5968 { (case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5971 esac
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_try") 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; }; then
5977 ac_cv_prog_cc_g=yes
5978 else
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 ac_c_werror_flag=$ac_save_c_werror_flag
5994 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5995 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5996 if test "$ac_test_CFLAGS" = set; then
5997 CFLAGS=$ac_save_CFLAGS
5998 elif test $ac_cv_prog_cc_g = yes; then
5999 if test "$GCC" = yes; then
6000 CFLAGS="-g -O2"
6001 else
6002 CFLAGS="-g"
6004 else
6005 if test "$GCC" = yes; then
6006 CFLAGS="-O2"
6007 else
6008 CFLAGS=
6011 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6012 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6013 if test "${ac_cv_prog_cc_c89+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016 ac_cv_prog_cc_c89=no
6017 ac_save_CC=$CC
6018 cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h. */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 #include <stdarg.h>
6025 #include <stdio.h>
6026 #include <sys/types.h>
6027 #include <sys/stat.h>
6028 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6029 struct buf { int x; };
6030 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6031 static char *e (p, i)
6032 char **p;
6033 int i;
6035 return p[i];
6037 static char *f (char * (*g) (char **, int), char **p, ...)
6039 char *s;
6040 va_list v;
6041 va_start (v,p);
6042 s = g (p, va_arg (v,int));
6043 va_end (v);
6044 return s;
6047 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6048 function prototypes and stuff, but not '\xHH' hex character constants.
6049 These don't provoke an error unfortunately, instead are silently treated
6050 as 'x'. The following induces an error, until -std is added to get
6051 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6052 array size at least. It's necessary to write '\x00'==0 to get something
6053 that's true only with -std. */
6054 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6056 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6057 inside strings and character constants. */
6058 #define FOO(x) 'x'
6059 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6061 int test (int i, double x);
6062 struct s1 {int (*f) (int a);};
6063 struct s2 {int (*f) (double a);};
6064 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6065 int argc;
6066 char **argv;
6068 main ()
6070 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6072 return 0;
6074 _ACEOF
6075 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6076 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6078 CC="$ac_save_CC $ac_arg"
6079 rm -f conftest.$ac_objext
6080 if { (ac_try="$ac_compile"
6081 case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6084 esac
6085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086 (eval "$ac_compile") 2>conftest.er1
6087 ac_status=$?
6088 grep -v '^ *+' conftest.er1 >conftest.err
6089 rm -f conftest.er1
6090 cat conftest.err >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } &&
6093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6094 { (case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097 esac
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_try") 2>&5
6100 ac_status=$?
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; } &&
6103 { ac_try='test -s conftest.$ac_objext'
6104 { (case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107 esac
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_try") 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; }; then
6113 ac_cv_prog_cc_c89=$ac_arg
6114 else
6115 echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6121 rm -f core conftest.err conftest.$ac_objext
6122 test "x$ac_cv_prog_cc_c89" != "xno" && break
6123 done
6124 rm -f conftest.$ac_ext
6125 CC=$ac_save_CC
6128 # AC_CACHE_VAL
6129 case "x$ac_cv_prog_cc_c89" in
6131 { echo "$as_me:$LINENO: result: none needed" >&5
6132 echo "${ECHO_T}none needed" >&6; } ;;
6133 xno)
6134 { echo "$as_me:$LINENO: result: unsupported" >&5
6135 echo "${ECHO_T}unsupported" >&6; } ;;
6137 CC="$CC $ac_cv_prog_cc_c89"
6138 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6139 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6140 esac
6143 ac_ext=c
6144 ac_cpp='$CPP $CPPFLAGS'
6145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6149 ac_ext=cpp
6150 ac_cpp='$CXXCPP $CPPFLAGS'
6151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6154 if test -z "$CXX"; then
6155 if test -n "$CCC"; then
6156 CXX=$CCC
6157 else
6158 if test -n "$ac_tool_prefix"; then
6159 for ac_prog in g++
6161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6162 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6165 if test "${ac_cv_prog_CXX+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168 if test -n "$CXX"; then
6169 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6170 else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6178 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 break 2
6182 done
6183 done
6184 IFS=$as_save_IFS
6188 CXX=$ac_cv_prog_CXX
6189 if test -n "$CXX"; then
6190 { echo "$as_me:$LINENO: result: $CXX" >&5
6191 echo "${ECHO_T}$CXX" >&6; }
6192 else
6193 { echo "$as_me:$LINENO: result: no" >&5
6194 echo "${ECHO_T}no" >&6; }
6198 test -n "$CXX" && break
6199 done
6201 if test -z "$CXX"; then
6202 ac_ct_CXX=$CXX
6203 for ac_prog in g++
6205 # Extract the first word of "$ac_prog", so it can be a program name with args.
6206 set dummy $ac_prog; ac_word=$2
6207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6209 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212 if test -n "$ac_ct_CXX"; then
6213 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6214 else
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6222 ac_cv_prog_ac_ct_CXX="$ac_prog"
6223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 break 2
6226 done
6227 done
6228 IFS=$as_save_IFS
6232 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6233 if test -n "$ac_ct_CXX"; then
6234 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6235 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6236 else
6237 { echo "$as_me:$LINENO: result: no" >&5
6238 echo "${ECHO_T}no" >&6; }
6242 test -n "$ac_ct_CXX" && break
6243 done
6245 if test "x$ac_ct_CXX" = x; then
6246 CXX="g++"
6247 else
6248 case $cross_compiling:$ac_tool_warned in
6249 yes:)
6250 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6251 whose name does not start with the host triplet. If you think this
6252 configuration is useful to you, please write to autoconf@gnu.org." >&5
6253 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6254 whose name does not start with the host triplet. If you think this
6255 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6256 ac_tool_warned=yes ;;
6257 esac
6258 CXX=$ac_ct_CXX
6264 # Provide some information about the compiler.
6265 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6266 ac_compiler=`set X $ac_compile; echo $2`
6267 { (ac_try="$ac_compiler --version >&5"
6268 case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271 esac
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_compiler --version >&5") 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }
6277 { (ac_try="$ac_compiler -v >&5"
6278 case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6281 esac
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_compiler -v >&5") 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }
6287 { (ac_try="$ac_compiler -V >&5"
6288 case "(($ac_try" in
6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290 *) ac_try_echo=$ac_try;;
6291 esac
6292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293 (eval "$ac_compiler -V >&5") 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }
6298 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6299 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6300 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303 cat >conftest.$ac_ext <<_ACEOF
6304 /* confdefs.h. */
6305 _ACEOF
6306 cat confdefs.h >>conftest.$ac_ext
6307 cat >>conftest.$ac_ext <<_ACEOF
6308 /* end confdefs.h. */
6311 main ()
6313 #ifndef __GNUC__
6314 choke me
6315 #endif
6318 return 0;
6320 _ACEOF
6321 rm -f conftest.$ac_objext
6322 if { (ac_try="$ac_compile"
6323 case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326 esac
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_compile") 2>conftest.er1
6329 ac_status=$?
6330 grep -v '^ *+' conftest.er1 >conftest.err
6331 rm -f conftest.er1
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } &&
6335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6336 { (case "(($ac_try" in
6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6339 esac
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_try") 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; } &&
6345 { ac_try='test -s conftest.$ac_objext'
6346 { (case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349 esac
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_try") 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 ac_compiler_gnu=yes
6356 else
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6360 ac_compiler_gnu=no
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6367 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6368 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6369 GXX=`test $ac_compiler_gnu = yes && echo yes`
6370 ac_test_CXXFLAGS=${CXXFLAGS+set}
6371 ac_save_CXXFLAGS=$CXXFLAGS
6372 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6373 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6374 if test "${ac_cv_prog_cxx_g+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6378 ac_cxx_werror_flag=yes
6379 ac_cv_prog_cxx_g=no
6380 CXXFLAGS="-g"
6381 cat >conftest.$ac_ext <<_ACEOF
6382 /* confdefs.h. */
6383 _ACEOF
6384 cat confdefs.h >>conftest.$ac_ext
6385 cat >>conftest.$ac_ext <<_ACEOF
6386 /* end confdefs.h. */
6389 main ()
6393 return 0;
6395 _ACEOF
6396 rm -f conftest.$ac_objext
6397 if { (ac_try="$ac_compile"
6398 case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401 esac
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_compile") 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6411 { (case "(($ac_try" in
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6414 esac
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_try") 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try='test -s conftest.$ac_objext'
6421 { (case "(($ac_try" in
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6424 esac
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_try") 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 ac_cv_prog_cxx_g=yes
6431 else
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6435 CXXFLAGS=""
6436 cat >conftest.$ac_ext <<_ACEOF
6437 /* confdefs.h. */
6438 _ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6444 main ()
6448 return 0;
6450 _ACEOF
6451 rm -f conftest.$ac_objext
6452 if { (ac_try="$ac_compile"
6453 case "(($ac_try" in
6454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455 *) ac_try_echo=$ac_try;;
6456 esac
6457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458 (eval "$ac_compile") 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6466 { (case "(($ac_try" in
6467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6469 esac
6470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6471 (eval "$ac_try") 2>&5
6472 ac_status=$?
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; } &&
6475 { ac_try='test -s conftest.$ac_objext'
6476 { (case "(($ac_try" in
6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478 *) ac_try_echo=$ac_try;;
6479 esac
6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_try") 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
6486 else
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6490 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6491 CXXFLAGS="-g"
6492 cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h. */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6500 main ()
6504 return 0;
6506 _ACEOF
6507 rm -f conftest.$ac_objext
6508 if { (ac_try="$ac_compile"
6509 case "(($ac_try" in
6510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511 *) ac_try_echo=$ac_try;;
6512 esac
6513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6514 (eval "$ac_compile") 2>conftest.er1
6515 ac_status=$?
6516 grep -v '^ *+' conftest.er1 >conftest.err
6517 rm -f conftest.er1
6518 cat conftest.err >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } &&
6521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6522 { (case "(($ac_try" in
6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524 *) ac_try_echo=$ac_try;;
6525 esac
6526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6527 (eval "$ac_try") 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; } &&
6531 { ac_try='test -s conftest.$ac_objext'
6532 { (case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535 esac
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_try") 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 ac_cv_prog_cxx_g=yes
6542 else
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6558 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6559 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6560 if test "$ac_test_CXXFLAGS" = set; then
6561 CXXFLAGS=$ac_save_CXXFLAGS
6562 elif test $ac_cv_prog_cxx_g = yes; then
6563 if test "$GXX" = yes; then
6564 CXXFLAGS="-g -O2"
6565 else
6566 CXXFLAGS="-g"
6568 else
6569 if test "$GXX" = yes; then
6570 CXXFLAGS="-O2"
6571 else
6572 CXXFLAGS=
6575 ac_ext=c
6576 ac_cpp='$CPP $CPPFLAGS'
6577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6582 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6583 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6584 if test "${lt_cv_path_NM+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587 if test -n "$NM"; then
6588 # Let the user override the test.
6589 lt_cv_path_NM="$NM"
6590 else
6591 lt_nm_to_check="${ac_tool_prefix}nm"
6592 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6593 lt_nm_to_check="$lt_nm_to_check nm"
6595 for lt_tmp_nm in $lt_nm_to_check; do
6596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6597 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6598 IFS="$lt_save_ifs"
6599 test -z "$ac_dir" && ac_dir=.
6600 tmp_nm="$ac_dir/$lt_tmp_nm"
6601 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6602 # Check to see if the nm accepts a BSD-compat flag.
6603 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6604 # nm: unknown option "B" ignored
6605 # Tru64's nm complains that /dev/null is an invalid object file
6606 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6607 */dev/null* | *'Invalid file or object type'*)
6608 lt_cv_path_NM="$tmp_nm -B"
6609 break
6612 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6613 */dev/null*)
6614 lt_cv_path_NM="$tmp_nm -p"
6615 break
6618 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6619 continue # so that we can try to find one that supports BSD flags
6621 esac
6623 esac
6625 done
6626 IFS="$lt_save_ifs"
6627 done
6628 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6631 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6632 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6633 NM="$lt_cv_path_NM"
6637 { echo "$as_me:$LINENO: checking for GNU make" >&5
6638 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6639 if test "${llvm_cv_gnu_make_command+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642 llvm_cv_gnu_make_command=''
6643 for a in "$MAKE" make gmake gnumake ; do
6644 if test -z "$a" ; then continue ; fi ;
6645 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6646 then
6647 llvm_cv_gnu_make_command=$a ;
6648 break;
6650 done
6652 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6653 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6654 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6655 ifGNUmake='' ;
6656 else
6657 ifGNUmake='#' ;
6658 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6659 echo "${ECHO_T}\"Not found\"" >&6; };
6663 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6664 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6665 LN_S=$as_ln_s
6666 if test "$LN_S" = "ln -s"; then
6667 { echo "$as_me:$LINENO: result: yes" >&5
6668 echo "${ECHO_T}yes" >&6; }
6669 else
6670 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6671 echo "${ECHO_T}no, using $LN_S" >&6; }
6674 # Extract the first word of "cmp", so it can be a program name with args.
6675 set dummy cmp; ac_word=$2
6676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6678 if test "${ac_cv_path_CMP+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 else
6681 case $CMP in
6682 [\\/]* | ?:[\\/]*)
6683 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6697 done
6698 done
6699 IFS=$as_save_IFS
6701 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6703 esac
6705 CMP=$ac_cv_path_CMP
6706 if test -n "$CMP"; then
6707 { echo "$as_me:$LINENO: result: $CMP" >&5
6708 echo "${ECHO_T}$CMP" >&6; }
6709 else
6710 { echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6; }
6715 # Extract the first word of "cp", so it can be a program name with args.
6716 set dummy cp; ac_word=$2
6717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719 if test "${ac_cv_path_CP+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722 case $CP in
6723 [\\/]* | ?:[\\/]*)
6724 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6738 done
6739 done
6740 IFS=$as_save_IFS
6742 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6744 esac
6746 CP=$ac_cv_path_CP
6747 if test -n "$CP"; then
6748 { echo "$as_me:$LINENO: result: $CP" >&5
6749 echo "${ECHO_T}$CP" >&6; }
6750 else
6751 { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6756 # Extract the first word of "date", so it can be a program name with args.
6757 set dummy date; ac_word=$2
6758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760 if test "${ac_cv_path_DATE+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763 case $DATE in
6764 [\\/]* | ?:[\\/]*)
6765 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6779 done
6780 done
6781 IFS=$as_save_IFS
6783 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6785 esac
6787 DATE=$ac_cv_path_DATE
6788 if test -n "$DATE"; then
6789 { echo "$as_me:$LINENO: result: $DATE" >&5
6790 echo "${ECHO_T}$DATE" >&6; }
6791 else
6792 { echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6; }
6797 # Extract the first word of "find", so it can be a program name with args.
6798 set dummy find; ac_word=$2
6799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801 if test "${ac_cv_path_FIND+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804 case $FIND in
6805 [\\/]* | ?:[\\/]*)
6806 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in $PATH
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6820 done
6821 done
6822 IFS=$as_save_IFS
6824 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6826 esac
6828 FIND=$ac_cv_path_FIND
6829 if test -n "$FIND"; then
6830 { echo "$as_me:$LINENO: result: $FIND" >&5
6831 echo "${ECHO_T}$FIND" >&6; }
6832 else
6833 { echo "$as_me:$LINENO: result: no" >&5
6834 echo "${ECHO_T}no" >&6; }
6838 # Extract the first word of "grep", so it can be a program name with args.
6839 set dummy grep; ac_word=$2
6840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6842 if test "${ac_cv_path_GREP+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 else
6845 case $GREP in
6846 [\\/]* | ?:[\\/]*)
6847 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6857 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6861 done
6862 done
6863 IFS=$as_save_IFS
6865 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6867 esac
6869 GREP=$ac_cv_path_GREP
6870 if test -n "$GREP"; then
6871 { echo "$as_me:$LINENO: result: $GREP" >&5
6872 echo "${ECHO_T}$GREP" >&6; }
6873 else
6874 { echo "$as_me:$LINENO: result: no" >&5
6875 echo "${ECHO_T}no" >&6; }
6879 # Extract the first word of "mkdir", so it can be a program name with args.
6880 set dummy mkdir; ac_word=$2
6881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6883 if test "${ac_cv_path_MKDIR+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886 case $MKDIR in
6887 [\\/]* | ?:[\\/]*)
6888 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH
6894 IFS=$as_save_IFS
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6898 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 break 2
6902 done
6903 done
6904 IFS=$as_save_IFS
6906 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6908 esac
6910 MKDIR=$ac_cv_path_MKDIR
6911 if test -n "$MKDIR"; then
6912 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6913 echo "${ECHO_T}$MKDIR" >&6; }
6914 else
6915 { echo "$as_me:$LINENO: result: no" >&5
6916 echo "${ECHO_T}no" >&6; }
6920 # Extract the first word of "mv", so it can be a program name with args.
6921 set dummy mv; ac_word=$2
6922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6924 if test "${ac_cv_path_MV+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927 case $MV in
6928 [\\/]* | ?:[\\/]*)
6929 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6935 IFS=$as_save_IFS
6936 test -z "$as_dir" && as_dir=.
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6939 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6941 break 2
6943 done
6944 done
6945 IFS=$as_save_IFS
6947 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6949 esac
6951 MV=$ac_cv_path_MV
6952 if test -n "$MV"; then
6953 { echo "$as_me:$LINENO: result: $MV" >&5
6954 echo "${ECHO_T}$MV" >&6; }
6955 else
6956 { echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6; }
6961 if test -n "$ac_tool_prefix"; then
6962 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6963 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966 if test "${ac_cv_prog_RANLIB+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969 if test -n "$RANLIB"; then
6970 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6971 else
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6983 done
6984 done
6985 IFS=$as_save_IFS
6989 RANLIB=$ac_cv_prog_RANLIB
6990 if test -n "$RANLIB"; then
6991 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6992 echo "${ECHO_T}$RANLIB" >&6; }
6993 else
6994 { echo "$as_me:$LINENO: result: no" >&5
6995 echo "${ECHO_T}no" >&6; }
7000 if test -z "$ac_cv_prog_RANLIB"; then
7001 ac_ct_RANLIB=$RANLIB
7002 # Extract the first word of "ranlib", so it can be a program name with args.
7003 set dummy ranlib; ac_word=$2
7004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009 if test -n "$ac_ct_RANLIB"; then
7010 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7011 else
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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_prog_ac_ct_RANLIB="ranlib"
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
7029 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7030 if test -n "$ac_ct_RANLIB"; then
7031 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7032 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7033 else
7034 { echo "$as_me:$LINENO: result: no" >&5
7035 echo "${ECHO_T}no" >&6; }
7038 if test "x$ac_ct_RANLIB" = x; then
7039 RANLIB=":"
7040 else
7041 case $cross_compiling:$ac_tool_warned in
7042 yes:)
7043 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7044 whose name does not start with the host triplet. If you think this
7045 configuration is useful to you, please write to autoconf@gnu.org." >&5
7046 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7047 whose name does not start with the host triplet. If you think this
7048 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7049 ac_tool_warned=yes ;;
7050 esac
7051 RANLIB=$ac_ct_RANLIB
7053 else
7054 RANLIB="$ac_cv_prog_RANLIB"
7057 # Extract the first word of "rm", so it can be a program name with args.
7058 set dummy rm; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_path_RM+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064 case $RM in
7065 [\\/]* | ?:[\\/]*)
7066 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7080 done
7081 done
7082 IFS=$as_save_IFS
7084 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7086 esac
7088 RM=$ac_cv_path_RM
7089 if test -n "$RM"; then
7090 { echo "$as_me:$LINENO: result: $RM" >&5
7091 echo "${ECHO_T}$RM" >&6; }
7092 else
7093 { echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6; }
7098 # Extract the first word of "sed", so it can be a program name with args.
7099 set dummy sed; ac_word=$2
7100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7102 if test "${ac_cv_path_SED+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105 case $SED in
7106 [\\/]* | ?:[\\/]*)
7107 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7117 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 break 2
7121 done
7122 done
7123 IFS=$as_save_IFS
7125 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7127 esac
7129 SED=$ac_cv_path_SED
7130 if test -n "$SED"; then
7131 { echo "$as_me:$LINENO: result: $SED" >&5
7132 echo "${ECHO_T}$SED" >&6; }
7133 else
7134 { echo "$as_me:$LINENO: result: no" >&5
7135 echo "${ECHO_T}no" >&6; }
7139 # Extract the first word of "tar", so it can be a program name with args.
7140 set dummy tar; ac_word=$2
7141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7143 if test "${ac_cv_path_TAR+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146 case $TAR in
7147 [\\/]* | ?:[\\/]*)
7148 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7154 IFS=$as_save_IFS
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7158 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 break 2
7162 done
7163 done
7164 IFS=$as_save_IFS
7166 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7168 esac
7170 TAR=$ac_cv_path_TAR
7171 if test -n "$TAR"; then
7172 { echo "$as_me:$LINENO: result: $TAR" >&5
7173 echo "${ECHO_T}$TAR" >&6; }
7174 else
7175 { echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6; }
7180 # Extract the first word of "pwd", so it can be a program name with args.
7181 set dummy pwd; ac_word=$2
7182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7184 if test "${ac_cv_path_BINPWD+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187 case $BINPWD in
7188 [\\/]* | ?:[\\/]*)
7189 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 for as_dir in $PATH
7195 IFS=$as_save_IFS
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7199 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 break 2
7203 done
7204 done
7205 IFS=$as_save_IFS
7207 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7209 esac
7211 BINPWD=$ac_cv_path_BINPWD
7212 if test -n "$BINPWD"; then
7213 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7214 echo "${ECHO_T}$BINPWD" >&6; }
7215 else
7216 { echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6; }
7222 # Extract the first word of "Graphviz", so it can be a program name with args.
7223 set dummy Graphviz; ac_word=$2
7224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7226 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229 case $GRAPHVIZ in
7230 [\\/]* | ?:[\\/]*)
7231 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7241 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7245 done
7246 done
7247 IFS=$as_save_IFS
7249 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7251 esac
7253 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7254 if test -n "$GRAPHVIZ"; then
7255 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7256 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7257 else
7258 { echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6; }
7263 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7265 cat >>confdefs.h <<\_ACEOF
7266 #define HAVE_GRAPHVIZ 1
7267 _ACEOF
7269 if test "$llvm_cv_os_type" = "MingW" ; then
7270 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7273 cat >>confdefs.h <<_ACEOF
7274 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7275 _ACEOF
7278 # Extract the first word of "dot", so it can be a program name with args.
7279 set dummy dot; ac_word=$2
7280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282 if test "${ac_cv_path_DOT+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285 case $DOT in
7286 [\\/]* | ?:[\\/]*)
7287 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7301 done
7302 done
7303 IFS=$as_save_IFS
7305 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7307 esac
7309 DOT=$ac_cv_path_DOT
7310 if test -n "$DOT"; then
7311 { echo "$as_me:$LINENO: result: $DOT" >&5
7312 echo "${ECHO_T}$DOT" >&6; }
7313 else
7314 { echo "$as_me:$LINENO: result: no" >&5
7315 echo "${ECHO_T}no" >&6; }
7319 if test "$DOT" != "echo dot" ; then
7321 cat >>confdefs.h <<\_ACEOF
7322 #define HAVE_DOT 1
7323 _ACEOF
7325 if test "$llvm_cv_os_type" = "MingW" ; then
7326 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7329 cat >>confdefs.h <<_ACEOF
7330 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7331 _ACEOF
7334 # Extract the first word of "fdp", so it can be a program name with args.
7335 set dummy fdp; ac_word=$2
7336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7338 if test "${ac_cv_path_FDP+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341 case $FDP in
7342 [\\/]* | ?:[\\/]*)
7343 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 for as_dir in $PATH
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
7351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7353 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 break 2
7357 done
7358 done
7359 IFS=$as_save_IFS
7361 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7363 esac
7365 FDP=$ac_cv_path_FDP
7366 if test -n "$FDP"; then
7367 { echo "$as_me:$LINENO: result: $FDP" >&5
7368 echo "${ECHO_T}$FDP" >&6; }
7369 else
7370 { echo "$as_me:$LINENO: result: no" >&5
7371 echo "${ECHO_T}no" >&6; }
7375 if test "$FDP" != "echo fdp" ; then
7377 cat >>confdefs.h <<\_ACEOF
7378 #define HAVE_FDP 1
7379 _ACEOF
7381 if test "$llvm_cv_os_type" = "MingW" ; then
7382 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7385 cat >>confdefs.h <<_ACEOF
7386 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7387 _ACEOF
7390 # Extract the first word of "neato", so it can be a program name with args.
7391 set dummy neato; ac_word=$2
7392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394 if test "${ac_cv_path_NEATO+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397 case $NEATO in
7398 [\\/]* | ?:[\\/]*)
7399 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7409 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 break 2
7413 done
7414 done
7415 IFS=$as_save_IFS
7417 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7419 esac
7421 NEATO=$ac_cv_path_NEATO
7422 if test -n "$NEATO"; then
7423 { echo "$as_me:$LINENO: result: $NEATO" >&5
7424 echo "${ECHO_T}$NEATO" >&6; }
7425 else
7426 { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7431 if test "$NEATO" != "echo neato" ; then
7433 cat >>confdefs.h <<\_ACEOF
7434 #define HAVE_NEATO 1
7435 _ACEOF
7437 if test "$llvm_cv_os_type" = "MingW" ; then
7438 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7441 cat >>confdefs.h <<_ACEOF
7442 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7443 _ACEOF
7446 # Extract the first word of "twopi", so it can be a program name with args.
7447 set dummy twopi; ac_word=$2
7448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450 if test "${ac_cv_path_TWOPI+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453 case $TWOPI in
7454 [\\/]* | ?:[\\/]*)
7455 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7469 done
7470 done
7471 IFS=$as_save_IFS
7473 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7475 esac
7477 TWOPI=$ac_cv_path_TWOPI
7478 if test -n "$TWOPI"; then
7479 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7480 echo "${ECHO_T}$TWOPI" >&6; }
7481 else
7482 { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7487 if test "$TWOPI" != "echo twopi" ; then
7489 cat >>confdefs.h <<\_ACEOF
7490 #define HAVE_TWOPI 1
7491 _ACEOF
7493 if test "$llvm_cv_os_type" = "MingW" ; then
7494 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7497 cat >>confdefs.h <<_ACEOF
7498 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7499 _ACEOF
7502 # Extract the first word of "circo", so it can be a program name with args.
7503 set dummy circo; ac_word=$2
7504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7506 if test "${ac_cv_path_CIRCO+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509 case $CIRCO in
7510 [\\/]* | ?:[\\/]*)
7511 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 break 2
7525 done
7526 done
7527 IFS=$as_save_IFS
7529 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7531 esac
7533 CIRCO=$ac_cv_path_CIRCO
7534 if test -n "$CIRCO"; then
7535 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7536 echo "${ECHO_T}$CIRCO" >&6; }
7537 else
7538 { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7543 if test "$CIRCO" != "echo circo" ; then
7545 cat >>confdefs.h <<\_ACEOF
7546 #define HAVE_CIRCO 1
7547 _ACEOF
7549 if test "$llvm_cv_os_type" = "MingW" ; then
7550 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7553 cat >>confdefs.h <<_ACEOF
7554 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7555 _ACEOF
7558 for ac_prog in gv gsview32
7560 # Extract the first word of "$ac_prog", so it can be a program name with args.
7561 set dummy $ac_prog; ac_word=$2
7562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7564 if test "${ac_cv_path_GV+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 else
7567 case $GV in
7568 [\\/]* | ?:[\\/]*)
7569 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 for as_dir in $PATH
7575 IFS=$as_save_IFS
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7579 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 break 2
7583 done
7584 done
7585 IFS=$as_save_IFS
7588 esac
7590 GV=$ac_cv_path_GV
7591 if test -n "$GV"; then
7592 { echo "$as_me:$LINENO: result: $GV" >&5
7593 echo "${ECHO_T}$GV" >&6; }
7594 else
7595 { echo "$as_me:$LINENO: result: no" >&5
7596 echo "${ECHO_T}no" >&6; }
7600 test -n "$GV" && break
7601 done
7602 test -n "$GV" || GV="echo gv"
7604 if test "$GV" != "echo gv" ; then
7606 cat >>confdefs.h <<\_ACEOF
7607 #define HAVE_GV 1
7608 _ACEOF
7610 if test "$llvm_cv_os_type" = "MingW" ; then
7611 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7614 cat >>confdefs.h <<_ACEOF
7615 #define LLVM_PATH_GV "$GV${EXEEXT}"
7616 _ACEOF
7619 # Extract the first word of "dotty", so it can be a program name with args.
7620 set dummy dotty; ac_word=$2
7621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7623 if test "${ac_cv_path_DOTTY+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 else
7626 case $DOTTY in
7627 [\\/]* | ?:[\\/]*)
7628 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7634 IFS=$as_save_IFS
7635 test -z "$as_dir" && as_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7638 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 break 2
7642 done
7643 done
7644 IFS=$as_save_IFS
7646 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7648 esac
7650 DOTTY=$ac_cv_path_DOTTY
7651 if test -n "$DOTTY"; then
7652 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7653 echo "${ECHO_T}$DOTTY" >&6; }
7654 else
7655 { echo "$as_me:$LINENO: result: no" >&5
7656 echo "${ECHO_T}no" >&6; }
7660 if test "$DOTTY" != "echo dotty" ; then
7662 cat >>confdefs.h <<\_ACEOF
7663 #define HAVE_DOTTY 1
7664 _ACEOF
7666 if test "$llvm_cv_os_type" = "MingW" ; then
7667 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7670 cat >>confdefs.h <<_ACEOF
7671 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7672 _ACEOF
7677 # Extract the first word of "perl", so it can be a program name with args.
7678 set dummy perl; ac_word=$2
7679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7681 if test "${ac_cv_path_PERL+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684 case $PERL in
7685 [\\/]* | ?:[\\/]*)
7686 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7696 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7700 done
7701 done
7702 IFS=$as_save_IFS
7704 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7706 esac
7708 PERL=$ac_cv_path_PERL
7709 if test -n "$PERL"; then
7710 { echo "$as_me:$LINENO: result: $PERL" >&5
7711 echo "${ECHO_T}$PERL" >&6; }
7712 else
7713 { echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6; }
7718 if test "$PERL" != "none"; then
7719 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7720 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7721 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7722 { echo "$as_me:$LINENO: result: yes" >&5
7723 echo "${ECHO_T}yes" >&6; }
7724 else
7725 PERL=none
7726 { echo "$as_me:$LINENO: result: not found" >&5
7727 echo "${ECHO_T}not found" >&6; }
7732 if test x"$PERL" = xnone; then
7733 HAVE_PERL=0
7735 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7736 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7737 { (exit 1); exit 1; }; }
7738 else
7739 HAVE_PERL=1
7743 # Find a good install program. We prefer a C program (faster),
7744 # so one script is as good as another. But avoid the broken or
7745 # incompatible versions:
7746 # SysV /etc/install, /usr/sbin/install
7747 # SunOS /usr/etc/install
7748 # IRIX /sbin/install
7749 # AIX /bin/install
7750 # AmigaOS /C/install, which installs bootblocks on floppy discs
7751 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7752 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7753 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7754 # OS/2's system install, which has a completely different semantic
7755 # ./install, which can be erroneously created by make from ./install.sh.
7756 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7757 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7758 if test -z "$INSTALL"; then
7759 if test "${ac_cv_path_install+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 # Account for people who put trailing slashes in PATH elements.
7768 case $as_dir/ in
7769 ./ | .// | /cC/* | \
7770 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7771 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7772 /usr/ucb/* ) ;;
7774 # OSF1 and SCO ODT 3.0 have their own names for install.
7775 # Don't use installbsd from OSF since it installs stuff as root
7776 # by default.
7777 for ac_prog in ginstall scoinst install; do
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7780 if test $ac_prog = install &&
7781 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7782 # AIX install. It has an incompatible calling convention.
7784 elif test $ac_prog = install &&
7785 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7786 # program-specific install script used by HP pwplus--don't use.
7788 else
7789 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7790 break 3
7793 done
7794 done
7796 esac
7797 done
7798 IFS=$as_save_IFS
7802 if test "${ac_cv_path_install+set}" = set; then
7803 INSTALL=$ac_cv_path_install
7804 else
7805 # As a last resort, use the slow shell script. Don't cache a
7806 # value for INSTALL within a source directory, because that will
7807 # break other packages using the cache if that directory is
7808 # removed, or if the value is a relative name.
7809 INSTALL=$ac_install_sh
7812 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7813 echo "${ECHO_T}$INSTALL" >&6; }
7815 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7816 # It thinks the first close brace ends the variable substitution.
7817 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7819 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7821 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7824 # Extract the first word of "bzip2", so it can be a program name with args.
7825 set dummy bzip2; ac_word=$2
7826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7828 if test "${ac_cv_path_BZIP2+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831 case $BZIP2 in
7832 [\\/]* | ?:[\\/]*)
7833 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7839 IFS=$as_save_IFS
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7843 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 break 2
7847 done
7848 done
7849 IFS=$as_save_IFS
7852 esac
7854 BZIP2=$ac_cv_path_BZIP2
7855 if test -n "$BZIP2"; then
7856 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7857 echo "${ECHO_T}$BZIP2" >&6; }
7858 else
7859 { echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6; }
7864 # Extract the first word of "doxygen", so it can be a program name with args.
7865 set dummy doxygen; ac_word=$2
7866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7868 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871 case $DOXYGEN in
7872 [\\/]* | ?:[\\/]*)
7873 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $PATH
7879 IFS=$as_save_IFS
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7883 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 break 2
7887 done
7888 done
7889 IFS=$as_save_IFS
7892 esac
7894 DOXYGEN=$ac_cv_path_DOXYGEN
7895 if test -n "$DOXYGEN"; then
7896 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7897 echo "${ECHO_T}$DOXYGEN" >&6; }
7898 else
7899 { echo "$as_me:$LINENO: result: no" >&5
7900 echo "${ECHO_T}no" >&6; }
7904 # Extract the first word of "groff", so it can be a program name with args.
7905 set dummy groff; ac_word=$2
7906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7908 if test "${ac_cv_path_GROFF+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911 case $GROFF in
7912 [\\/]* | ?:[\\/]*)
7913 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7923 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 break 2
7927 done
7928 done
7929 IFS=$as_save_IFS
7932 esac
7934 GROFF=$ac_cv_path_GROFF
7935 if test -n "$GROFF"; then
7936 { echo "$as_me:$LINENO: result: $GROFF" >&5
7937 echo "${ECHO_T}$GROFF" >&6; }
7938 else
7939 { echo "$as_me:$LINENO: result: no" >&5
7940 echo "${ECHO_T}no" >&6; }
7944 # Extract the first word of "gzip", so it can be a program name with args.
7945 set dummy gzip; ac_word=$2
7946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7948 if test "${ac_cv_path_GZIP+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 else
7951 case $GZIP in
7952 [\\/]* | ?:[\\/]*)
7953 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7963 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 break 2
7967 done
7968 done
7969 IFS=$as_save_IFS
7972 esac
7974 GZIP=$ac_cv_path_GZIP
7975 if test -n "$GZIP"; then
7976 { echo "$as_me:$LINENO: result: $GZIP" >&5
7977 echo "${ECHO_T}$GZIP" >&6; }
7978 else
7979 { echo "$as_me:$LINENO: result: no" >&5
7980 echo "${ECHO_T}no" >&6; }
7984 # Extract the first word of "pod2html", so it can be a program name with args.
7985 set dummy pod2html; ac_word=$2
7986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7988 if test "${ac_cv_path_POD2HTML+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 else
7991 case $POD2HTML in
7992 [\\/]* | ?:[\\/]*)
7993 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 for as_dir in $PATH
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8003 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 break 2
8007 done
8008 done
8009 IFS=$as_save_IFS
8012 esac
8014 POD2HTML=$ac_cv_path_POD2HTML
8015 if test -n "$POD2HTML"; then
8016 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8017 echo "${ECHO_T}$POD2HTML" >&6; }
8018 else
8019 { echo "$as_me:$LINENO: result: no" >&5
8020 echo "${ECHO_T}no" >&6; }
8024 # Extract the first word of "pod2man", so it can be a program name with args.
8025 set dummy pod2man; ac_word=$2
8026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8028 if test "${ac_cv_path_POD2MAN+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8030 else
8031 case $POD2MAN in
8032 [\\/]* | ?:[\\/]*)
8033 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 for as_dir in $PATH
8039 IFS=$as_save_IFS
8040 test -z "$as_dir" && as_dir=.
8041 for ac_exec_ext in '' $ac_executable_extensions; do
8042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8043 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8045 break 2
8047 done
8048 done
8049 IFS=$as_save_IFS
8052 esac
8054 POD2MAN=$ac_cv_path_POD2MAN
8055 if test -n "$POD2MAN"; then
8056 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8057 echo "${ECHO_T}$POD2MAN" >&6; }
8058 else
8059 { echo "$as_me:$LINENO: result: no" >&5
8060 echo "${ECHO_T}no" >&6; }
8064 # Extract the first word of "runtest", so it can be a program name with args.
8065 set dummy runtest; ac_word=$2
8066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8068 if test "${ac_cv_path_RUNTEST+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071 case $RUNTEST in
8072 [\\/]* | ?:[\\/]*)
8073 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 for as_dir in $PATH
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8083 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8085 break 2
8087 done
8088 done
8089 IFS=$as_save_IFS
8092 esac
8094 RUNTEST=$ac_cv_path_RUNTEST
8095 if test -n "$RUNTEST"; then
8096 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8097 echo "${ECHO_T}$RUNTEST" >&6; }
8098 else
8099 { echo "$as_me:$LINENO: result: no" >&5
8100 echo "${ECHO_T}no" >&6; }
8105 no_itcl=true
8106 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8107 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8109 # Check whether --with-tclinclude was given.
8110 if test "${with_tclinclude+set}" = set; then
8111 withval=$with_tclinclude; with_tclinclude=${withval}
8112 else
8113 with_tclinclude=''
8116 if test "${ac_cv_path_tclsh+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 else
8120 if test x"${with_tclinclude}" != x ; then
8121 if test -f ${with_tclinclude}/tclsh ; then
8122 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8123 elif test -f ${with_tclinclude}/src/tclsh ; then
8124 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8125 else
8126 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8127 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8128 { (exit 1); exit 1; }; }
8132 if test x"${ac_cv_path_tclsh}" = x ; then
8133 { echo "$as_me:$LINENO: result: none" >&5
8134 echo "${ECHO_T}none" >&6; }
8135 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
8137 # Extract the first word of "$ac_prog", so it can be a program name with args.
8138 set dummy $ac_prog; ac_word=$2
8139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141 if test "${ac_cv_path_TCLSH+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144 case $TCLSH in
8145 [\\/]* | ?:[\\/]*)
8146 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8156 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8160 done
8161 done
8162 IFS=$as_save_IFS
8165 esac
8167 TCLSH=$ac_cv_path_TCLSH
8168 if test -n "$TCLSH"; then
8169 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8170 echo "${ECHO_T}$TCLSH" >&6; }
8171 else
8172 { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8177 test -n "$TCLSH" && break
8178 done
8180 if test x"${TCLSH}" = x ; then
8181 ac_cv_path_tclsh='';
8182 else
8183 ac_cv_path_tclsh="${TCLSH}";
8185 else
8186 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8187 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8188 TCLSH="${ac_cv_path_tclsh}"
8194 # Extract the first word of "zip", so it can be a program name with args.
8195 set dummy zip; ac_word=$2
8196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8198 if test "${ac_cv_path_ZIP+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200 else
8201 case $ZIP in
8202 [\\/]* | ?:[\\/]*)
8203 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 for as_dir in $PATH
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8213 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 break 2
8217 done
8218 done
8219 IFS=$as_save_IFS
8222 esac
8224 ZIP=$ac_cv_path_ZIP
8225 if test -n "$ZIP"; then
8226 { echo "$as_me:$LINENO: result: $ZIP" >&5
8227 echo "${ECHO_T}$ZIP" >&6; }
8228 else
8229 { echo "$as_me:$LINENO: result: no" >&5
8230 echo "${ECHO_T}no" >&6; }
8234 for ac_prog in ocamlc
8236 # Extract the first word of "$ac_prog", so it can be a program name with args.
8237 set dummy $ac_prog; ac_word=$2
8238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8240 if test "${ac_cv_path_OCAMLC+set}" = set; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243 case $OCAMLC in
8244 [\\/]* | ?:[\\/]*)
8245 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249 for as_dir in $PATH
8251 IFS=$as_save_IFS
8252 test -z "$as_dir" && as_dir=.
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8255 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 break 2
8259 done
8260 done
8261 IFS=$as_save_IFS
8264 esac
8266 OCAMLC=$ac_cv_path_OCAMLC
8267 if test -n "$OCAMLC"; then
8268 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8269 echo "${ECHO_T}$OCAMLC" >&6; }
8270 else
8271 { echo "$as_me:$LINENO: result: no" >&5
8272 echo "${ECHO_T}no" >&6; }
8276 test -n "$OCAMLC" && break
8277 done
8279 for ac_prog in ocamlopt
8281 # Extract the first word of "$ac_prog", so it can be a program name with args.
8282 set dummy $ac_prog; ac_word=$2
8283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8285 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288 case $OCAMLOPT in
8289 [\\/]* | ?:[\\/]*)
8290 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294 for as_dir in $PATH
8296 IFS=$as_save_IFS
8297 test -z "$as_dir" && as_dir=.
8298 for ac_exec_ext in '' $ac_executable_extensions; do
8299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8300 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 break 2
8304 done
8305 done
8306 IFS=$as_save_IFS
8309 esac
8311 OCAMLOPT=$ac_cv_path_OCAMLOPT
8312 if test -n "$OCAMLOPT"; then
8313 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8314 echo "${ECHO_T}$OCAMLOPT" >&6; }
8315 else
8316 { echo "$as_me:$LINENO: result: no" >&5
8317 echo "${ECHO_T}no" >&6; }
8321 test -n "$OCAMLOPT" && break
8322 done
8324 for ac_prog in ocamldep
8326 # Extract the first word of "$ac_prog", so it can be a program name with args.
8327 set dummy $ac_prog; ac_word=$2
8328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8330 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333 case $OCAMLDEP in
8334 [\\/]* | ?:[\\/]*)
8335 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $PATH
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8345 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 break 2
8349 done
8350 done
8351 IFS=$as_save_IFS
8354 esac
8356 OCAMLDEP=$ac_cv_path_OCAMLDEP
8357 if test -n "$OCAMLDEP"; then
8358 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8359 echo "${ECHO_T}$OCAMLDEP" >&6; }
8360 else
8361 { echo "$as_me:$LINENO: result: no" >&5
8362 echo "${ECHO_T}no" >&6; }
8366 test -n "$OCAMLDEP" && break
8367 done
8369 for ac_prog in ocamldoc
8371 # Extract the first word of "$ac_prog", so it can be a program name with args.
8372 set dummy $ac_prog; ac_word=$2
8373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8375 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378 case $OCAMLDOC in
8379 [\\/]* | ?:[\\/]*)
8380 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 for as_dir in $PATH
8386 IFS=$as_save_IFS
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8390 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 break 2
8394 done
8395 done
8396 IFS=$as_save_IFS
8399 esac
8401 OCAMLDOC=$ac_cv_path_OCAMLDOC
8402 if test -n "$OCAMLDOC"; then
8403 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8404 echo "${ECHO_T}$OCAMLDOC" >&6; }
8405 else
8406 { echo "$as_me:$LINENO: result: no" >&5
8407 echo "${ECHO_T}no" >&6; }
8411 test -n "$OCAMLDOC" && break
8412 done
8414 for ac_prog in gas as
8416 # Extract the first word of "$ac_prog", so it can be a program name with args.
8417 set dummy $ac_prog; ac_word=$2
8418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8420 if test "${ac_cv_path_GAS+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423 case $GAS in
8424 [\\/]* | ?:[\\/]*)
8425 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429 for as_dir in $PATH
8431 IFS=$as_save_IFS
8432 test -z "$as_dir" && as_dir=.
8433 for ac_exec_ext in '' $ac_executable_extensions; do
8434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8435 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8437 break 2
8439 done
8440 done
8441 IFS=$as_save_IFS
8444 esac
8446 GAS=$ac_cv_path_GAS
8447 if test -n "$GAS"; then
8448 { echo "$as_me:$LINENO: result: $GAS" >&5
8449 echo "${ECHO_T}$GAS" >&6; }
8450 else
8451 { echo "$as_me:$LINENO: result: no" >&5
8452 echo "${ECHO_T}no" >&6; }
8456 test -n "$GAS" && break
8457 done
8460 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8461 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8462 if test "${llvm_cv_link_use_r+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 else
8465 ac_ext=c
8466 ac_cpp='$CPP $CPPFLAGS'
8467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8471 oldcflags="$CFLAGS"
8472 CFLAGS="$CFLAGS -Wl,-R."
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h. */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8481 main ()
8483 int main() { return 0; }
8485 return 0;
8487 _ACEOF
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (ac_try="$ac_link"
8490 case "(($ac_try" in
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8493 esac
8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495 (eval "$ac_link") 2>conftest.er1
8496 ac_status=$?
8497 grep -v '^ *+' conftest.er1 >conftest.err
8498 rm -f conftest.er1
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } &&
8502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8506 esac
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; } &&
8512 { ac_try='test -s conftest$ac_exeext'
8513 { (case "(($ac_try" in
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8516 esac
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518 (eval "$ac_try") 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; }; then
8522 llvm_cv_link_use_r=yes
8523 else
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8527 llvm_cv_link_use_r=no
8530 rm -f core conftest.err conftest.$ac_objext \
8531 conftest$ac_exeext conftest.$ac_ext
8532 CFLAGS="$oldcflags"
8533 ac_ext=c
8534 ac_cpp='$CPP $CPPFLAGS'
8535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8541 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8542 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8543 if test "$llvm_cv_link_use_r" = yes ; then
8545 cat >>confdefs.h <<\_ACEOF
8546 #define HAVE_LINK_R 1
8547 _ACEOF
8552 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8553 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8554 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 else
8557 ac_ext=c
8558 ac_cpp='$CPP $CPPFLAGS'
8559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8563 oldcflags="$CFLAGS"
8564 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8565 cat >conftest.$ac_ext <<_ACEOF
8566 /* confdefs.h. */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8573 main ()
8575 int main() { return 0; }
8577 return 0;
8579 _ACEOF
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (ac_try="$ac_link"
8582 case "(($ac_try" in
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8585 esac
8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_link") 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8595 { (case "(($ac_try" in
8596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597 *) ac_try_echo=$ac_try;;
8598 esac
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600 (eval "$ac_try") 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; } &&
8604 { ac_try='test -s conftest$ac_exeext'
8605 { (case "(($ac_try" in
8606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8608 esac
8609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610 (eval "$ac_try") 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; }; then
8614 llvm_cv_link_use_export_dynamic=yes
8615 else
8616 echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8619 llvm_cv_link_use_export_dynamic=no
8622 rm -f core conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
8624 CFLAGS="$oldcflags"
8625 ac_ext=c
8626 ac_cpp='$CPP $CPPFLAGS'
8627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8633 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8634 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8635 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8637 cat >>confdefs.h <<\_ACEOF
8638 #define HAVE_LINK_EXPORT_DYNAMIC 1
8639 _ACEOF
8646 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8647 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8648 if test "${ac_cv_c_const+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h. */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8659 main ()
8661 /* FIXME: Include the comments suggested by Paul. */
8662 #ifndef __cplusplus
8663 /* Ultrix mips cc rejects this. */
8664 typedef int charset[2];
8665 const charset x;
8666 /* SunOS 4.1.1 cc rejects this. */
8667 char const *const *ccp;
8668 char **p;
8669 /* NEC SVR4.0.2 mips cc rejects this. */
8670 struct point {int x, y;};
8671 static struct point const zero = {0,0};
8672 /* AIX XL C 1.02.0.0 rejects this.
8673 It does not let you subtract one const X* pointer from another in
8674 an arm of an if-expression whose if-part is not a constant
8675 expression */
8676 const char *g = "string";
8677 ccp = &g + (g ? g-g : 0);
8678 /* HPUX 7.0 cc rejects these. */
8679 ++ccp;
8680 p = (char**) ccp;
8681 ccp = (char const *const *) p;
8682 { /* SCO 3.2v4 cc rejects this. */
8683 char *t;
8684 char const *s = 0 ? (char *) 0 : (char const *) 0;
8686 *t++ = 0;
8687 if (s) return 0;
8689 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8690 int x[] = {25, 17};
8691 const int *foo = &x[0];
8692 ++foo;
8694 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8695 typedef const int *iptr;
8696 iptr p = 0;
8697 ++p;
8699 { /* AIX XL C 1.02.0.0 rejects this saying
8700 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8701 struct s { int j; const int *ap[3]; };
8702 struct s *b; b->j = 5;
8704 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8705 const int foo = 10;
8706 if (!foo) return 0;
8708 return !x[0] && !zero.x;
8709 #endif
8712 return 0;
8714 _ACEOF
8715 rm -f conftest.$ac_objext
8716 if { (ac_try="$ac_compile"
8717 case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720 esac
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_compile") 2>conftest.er1
8723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } &&
8729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8730 { (case "(($ac_try" in
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8733 esac
8734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_try") 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; } &&
8739 { ac_try='test -s conftest.$ac_objext'
8740 { (case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8743 esac
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_try") 2>&5
8746 ac_status=$?
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
8749 ac_cv_c_const=yes
8750 else
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8754 ac_cv_c_const=no
8757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8759 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8760 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8761 if test $ac_cv_c_const = no; then
8763 cat >>confdefs.h <<\_ACEOF
8764 #define const
8765 _ACEOF
8774 ac_header_dirent=no
8775 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8776 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8777 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8778 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8780 echo $ECHO_N "(cached) $ECHO_C" >&6
8781 else
8782 cat >conftest.$ac_ext <<_ACEOF
8783 /* confdefs.h. */
8784 _ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8788 #include <sys/types.h>
8789 #include <$ac_hdr>
8792 main ()
8794 if ((DIR *) 0)
8795 return 0;
8797 return 0;
8799 _ACEOF
8800 rm -f conftest.$ac_objext
8801 if { (ac_try="$ac_compile"
8802 case "(($ac_try" in
8803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804 *) ac_try_echo=$ac_try;;
8805 esac
8806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807 (eval "$ac_compile") 2>conftest.er1
8808 ac_status=$?
8809 grep -v '^ *+' conftest.er1 >conftest.err
8810 rm -f conftest.er1
8811 cat conftest.err >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); } &&
8814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8815 { (case "(($ac_try" in
8816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817 *) ac_try_echo=$ac_try;;
8818 esac
8819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8820 (eval "$ac_try") 2>&5
8821 ac_status=$?
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }; } &&
8824 { ac_try='test -s conftest.$ac_objext'
8825 { (case "(($ac_try" in
8826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827 *) ac_try_echo=$ac_try;;
8828 esac
8829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8830 (eval "$ac_try") 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 eval "$as_ac_Header=yes"
8835 else
8836 echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8839 eval "$as_ac_Header=no"
8842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 ac_res=`eval echo '${'$as_ac_Header'}'`
8845 { echo "$as_me:$LINENO: result: $ac_res" >&5
8846 echo "${ECHO_T}$ac_res" >&6; }
8847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8848 cat >>confdefs.h <<_ACEOF
8849 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8850 _ACEOF
8852 ac_header_dirent=$ac_hdr; break
8855 done
8856 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8857 if test $ac_header_dirent = dirent.h; then
8858 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8859 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8860 if test "${ac_cv_search_opendir+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863 ac_func_search_save_LIBS=$LIBS
8864 cat >conftest.$ac_ext <<_ACEOF
8865 /* confdefs.h. */
8866 _ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8871 /* Override any GCC internal prototype to avoid an error.
8872 Use char because int might match the return type of a GCC
8873 builtin and then its argument prototype would still apply. */
8874 #ifdef __cplusplus
8875 extern "C"
8876 #endif
8877 char opendir ();
8879 main ()
8881 return opendir ();
8883 return 0;
8885 _ACEOF
8886 for ac_lib in '' dir; do
8887 if test -z "$ac_lib"; then
8888 ac_res="none required"
8889 else
8890 ac_res=-l$ac_lib
8891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8893 rm -f conftest.$ac_objext conftest$ac_exeext
8894 if { (ac_try="$ac_link"
8895 case "(($ac_try" in
8896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8897 *) ac_try_echo=$ac_try;;
8898 esac
8899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8900 (eval "$ac_link") 2>conftest.er1
8901 ac_status=$?
8902 grep -v '^ *+' conftest.er1 >conftest.err
8903 rm -f conftest.er1
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } &&
8907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8908 { (case "(($ac_try" in
8909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910 *) ac_try_echo=$ac_try;;
8911 esac
8912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913 (eval "$ac_try") 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; } &&
8917 { ac_try='test -s conftest$ac_exeext'
8918 { (case "(($ac_try" in
8919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920 *) ac_try_echo=$ac_try;;
8921 esac
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923 (eval "$ac_try") 2>&5
8924 ac_status=$?
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; }; then
8927 ac_cv_search_opendir=$ac_res
8928 else
8929 echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8935 rm -f core conftest.err conftest.$ac_objext \
8936 conftest$ac_exeext
8937 if test "${ac_cv_search_opendir+set}" = set; then
8938 break
8940 done
8941 if test "${ac_cv_search_opendir+set}" = set; then
8943 else
8944 ac_cv_search_opendir=no
8946 rm conftest.$ac_ext
8947 LIBS=$ac_func_search_save_LIBS
8949 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8950 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8951 ac_res=$ac_cv_search_opendir
8952 if test "$ac_res" != no; then
8953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8957 else
8958 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8959 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8960 if test "${ac_cv_search_opendir+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8962 else
8963 ac_func_search_save_LIBS=$LIBS
8964 cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h. */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8971 /* Override any GCC internal prototype to avoid an error.
8972 Use char because int might match the return type of a GCC
8973 builtin and then its argument prototype would still apply. */
8974 #ifdef __cplusplus
8975 extern "C"
8976 #endif
8977 char opendir ();
8979 main ()
8981 return opendir ();
8983 return 0;
8985 _ACEOF
8986 for ac_lib in '' x; do
8987 if test -z "$ac_lib"; then
8988 ac_res="none required"
8989 else
8990 ac_res=-l$ac_lib
8991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (ac_try="$ac_link"
8995 case "(($ac_try" in
8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997 *) ac_try_echo=$ac_try;;
8998 esac
8999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000 (eval "$ac_link") 2>conftest.er1
9001 ac_status=$?
9002 grep -v '^ *+' conftest.er1 >conftest.err
9003 rm -f conftest.er1
9004 cat conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } &&
9007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9008 { (case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9011 esac
9012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_try") 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; } &&
9017 { ac_try='test -s conftest$ac_exeext'
9018 { (case "(($ac_try" in
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9021 esac
9022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023 (eval "$ac_try") 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_cv_search_opendir=$ac_res
9028 else
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9035 rm -f core conftest.err conftest.$ac_objext \
9036 conftest$ac_exeext
9037 if test "${ac_cv_search_opendir+set}" = set; then
9038 break
9040 done
9041 if test "${ac_cv_search_opendir+set}" = set; then
9043 else
9044 ac_cv_search_opendir=no
9046 rm conftest.$ac_ext
9047 LIBS=$ac_func_search_save_LIBS
9049 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9050 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9051 ac_res=$ac_cv_search_opendir
9052 if test "$ac_res" != no; then
9053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9060 for ac_header in dlfcn.h
9062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9069 ac_res=`eval echo '${'$as_ac_Header'}'`
9070 { echo "$as_me:$LINENO: result: $ac_res" >&5
9071 echo "${ECHO_T}$ac_res" >&6; }
9072 else
9073 # Is the header compilable?
9074 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9076 cat >conftest.$ac_ext <<_ACEOF
9077 /* confdefs.h. */
9078 _ACEOF
9079 cat confdefs.h >>conftest.$ac_ext
9080 cat >>conftest.$ac_ext <<_ACEOF
9081 /* end confdefs.h. */
9082 $ac_includes_default
9083 #include <$ac_header>
9084 _ACEOF
9085 rm -f conftest.$ac_objext
9086 if { (ac_try="$ac_compile"
9087 case "(($ac_try" in
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9090 esac
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_compile") 2>conftest.er1
9093 ac_status=$?
9094 grep -v '^ *+' conftest.er1 >conftest.err
9095 rm -f conftest.er1
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } &&
9099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9100 { (case "(($ac_try" in
9101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9102 *) ac_try_echo=$ac_try;;
9103 esac
9104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9105 (eval "$ac_try") 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; } &&
9109 { ac_try='test -s conftest.$ac_objext'
9110 { (case "(($ac_try" in
9111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112 *) ac_try_echo=$ac_try;;
9113 esac
9114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115 (eval "$ac_try") 2>&5
9116 ac_status=$?
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
9119 ac_header_compiler=yes
9120 else
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 ac_header_compiler=no
9127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9129 echo "${ECHO_T}$ac_header_compiler" >&6; }
9131 # Is the header present?
9132 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9134 cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h. */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9140 #include <$ac_header>
9141 _ACEOF
9142 if { (ac_try="$ac_cpp conftest.$ac_ext"
9143 case "(($ac_try" in
9144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145 *) ac_try_echo=$ac_try;;
9146 esac
9147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9149 ac_status=$?
9150 grep -v '^ *+' conftest.er1 >conftest.err
9151 rm -f conftest.er1
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } >/dev/null; then
9155 if test -s conftest.err; then
9156 ac_cpp_err=$ac_c_preproc_warn_flag
9157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9158 else
9159 ac_cpp_err=
9161 else
9162 ac_cpp_err=yes
9164 if test -z "$ac_cpp_err"; then
9165 ac_header_preproc=yes
9166 else
9167 echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9170 ac_header_preproc=no
9173 rm -f conftest.err conftest.$ac_ext
9174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9175 echo "${ECHO_T}$ac_header_preproc" >&6; }
9177 # So? What about this header?
9178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9179 yes:no: )
9180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9184 ac_header_preproc=yes
9186 no:yes:* )
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9199 ( cat <<\_ASBOX
9200 ## ----------------------------------- ##
9201 ## Report this to llvmbugs@cs.uiuc.edu ##
9202 ## ----------------------------------- ##
9203 _ASBOX
9204 ) | sed "s/^/$as_me: WARNING: /" >&2
9206 esac
9207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212 eval "$as_ac_Header=\$ac_header_preproc"
9214 ac_res=`eval echo '${'$as_ac_Header'}'`
9215 { echo "$as_me:$LINENO: result: $ac_res" >&5
9216 echo "${ECHO_T}$ac_res" >&6; }
9219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9220 cat >>confdefs.h <<_ACEOF
9221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9222 _ACEOF
9226 done
9228 # Check whether --enable-ltdl-install was given.
9229 if test "${enable_ltdl_install+set}" = set; then
9230 enableval=$enable_ltdl_install;
9236 if test x"${enable_ltdl_install-no}" != xno; then
9237 INSTALL_LTDL_TRUE=
9238 INSTALL_LTDL_FALSE='#'
9239 else
9240 INSTALL_LTDL_TRUE='#'
9241 INSTALL_LTDL_FALSE=
9246 if test x"${enable_ltdl_convenience-no}" != xno; then
9247 CONVENIENCE_LTDL_TRUE=
9248 CONVENIENCE_LTDL_FALSE='#'
9249 else
9250 CONVENIENCE_LTDL_TRUE='#'
9251 CONVENIENCE_LTDL_FALSE=
9255 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9256 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9257 library_names_spec=
9258 libname_spec='lib$name'
9259 soname_spec=
9260 shrext_cmds=".so"
9261 postinstall_cmds=
9262 postuninstall_cmds=
9263 finish_cmds=
9264 finish_eval=
9265 shlibpath_var=
9266 shlibpath_overrides_runpath=unknown
9267 version_type=none
9268 dynamic_linker="$host_os ld.so"
9269 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9270 if test "$GCC" = yes; then
9271 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9272 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9273 # if the path contains ";" then we assume it to be the separator
9274 # otherwise default to the standard path separator (i.e. ":") - it is
9275 # assumed that no part of a normal pathname contains ";" but that should
9276 # okay in the real world where ";" in dirpaths is itself problematic.
9277 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9278 else
9279 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9281 else
9282 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9284 need_lib_prefix=unknown
9285 hardcode_into_libs=no
9287 # when you set need_version to no, make sure it does not cause -set_version
9288 # flags to be left without arguments
9289 need_version=unknown
9291 case $host_os in
9292 aix3*)
9293 version_type=linux
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9295 shlibpath_var=LIBPATH
9297 # AIX 3 has no versioning support, so we append a major version to the name.
9298 soname_spec='${libname}${release}${shared_ext}$major'
9301 aix4* | aix5*)
9302 version_type=linux
9303 need_lib_prefix=no
9304 need_version=no
9305 hardcode_into_libs=yes
9306 if test "$host_cpu" = ia64; then
9307 # AIX 5 supports IA64
9308 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9309 shlibpath_var=LD_LIBRARY_PATH
9310 else
9311 # With GCC up to 2.95.x, collect2 would create an import file
9312 # for dependence libraries. The import file would start with
9313 # the line `#! .'. This would cause the generated library to
9314 # depend on `.', always an invalid library. This was fixed in
9315 # development snapshots of GCC prior to 3.0.
9316 case $host_os in
9317 aix4 | aix4.[01] | aix4.[01].*)
9318 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9319 echo ' yes '
9320 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9322 else
9323 can_build_shared=no
9326 esac
9327 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9328 # soname into executable. Probably we can add versioning support to
9329 # collect2, so additional links can be useful in future.
9330 if test "$aix_use_runtimelinking" = yes; then
9331 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9332 # instead of lib<name>.a to let people know that these are not
9333 # typical AIX shared libraries.
9334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9335 else
9336 # We preserve .a as extension for shared libraries through AIX4.2
9337 # and later when we are not doing run time linking.
9338 library_names_spec='${libname}${release}.a $libname.a'
9339 soname_spec='${libname}${release}${shared_ext}$major'
9341 shlibpath_var=LIBPATH
9345 amigaos*)
9346 library_names_spec='$libname.ixlibrary $libname.a'
9347 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9348 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'
9351 beos*)
9352 library_names_spec='${libname}${shared_ext}'
9353 dynamic_linker="$host_os ld.so"
9354 shlibpath_var=LIBRARY_PATH
9357 bsdi[45]*)
9358 version_type=linux
9359 need_version=no
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9363 shlibpath_var=LD_LIBRARY_PATH
9364 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9365 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9366 # the default ld.so.conf also contains /usr/contrib/lib and
9367 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9368 # libtool to hard-code these into programs
9371 cygwin* | mingw* | pw32*)
9372 version_type=windows
9373 shrext_cmds=".dll"
9374 need_version=no
9375 need_lib_prefix=no
9377 case $GCC,$host_os in
9378 yes,cygwin* | yes,mingw* | yes,pw32*)
9379 library_names_spec='$libname.dll.a'
9380 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9381 postinstall_cmds='base_file=`basename \${file}`~
9382 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9383 dldir=$destdir/`dirname \$dlpath`~
9384 test -d \$dldir || mkdir -p \$dldir~
9385 $install_prog $dir/$dlname \$dldir/$dlname~
9386 chmod a+x \$dldir/$dlname'
9387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9388 dlpath=$dir/\$dldll~
9389 $rm \$dlpath'
9390 shlibpath_overrides_runpath=yes
9392 case $host_os in
9393 cygwin*)
9394 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9395 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9396 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9398 mingw*)
9399 # MinGW DLLs use traditional 'lib' prefix
9400 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9401 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9402 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9403 # It is most probably a Windows format PATH printed by
9404 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9405 # path with ; separators, and with drive letters. We can handle the
9406 # drive letters (cygwin fileutils understands them), so leave them,
9407 # especially as we might pass files found there to a mingw objdump,
9408 # which wouldn't understand a cygwinified path. Ahh.
9409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9410 else
9411 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9414 pw32*)
9415 # pw32 DLLs use 'pw' prefix rather than 'lib'
9416 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9418 esac
9422 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9424 esac
9425 dynamic_linker='Win32 ld.exe'
9426 # FIXME: first we should search . and the directory the executable is in
9427 shlibpath_var=PATH
9430 darwin* | rhapsody*)
9431 dynamic_linker="$host_os dyld"
9432 version_type=darwin
9433 need_lib_prefix=no
9434 need_version=no
9435 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9436 soname_spec='${libname}${release}${major}$shared_ext'
9437 shlibpath_overrides_runpath=yes
9438 shlibpath_var=DYLD_LIBRARY_PATH
9439 shrext_cmds='.dylib'
9440 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9441 if test "$GCC" = yes; then
9442 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"`
9443 else
9444 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9446 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9449 dgux*)
9450 version_type=linux
9451 need_lib_prefix=no
9452 need_version=no
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9454 soname_spec='${libname}${release}${shared_ext}$major'
9455 shlibpath_var=LD_LIBRARY_PATH
9458 freebsd1*)
9459 dynamic_linker=no
9462 kfreebsd*-gnu)
9463 version_type=linux
9464 need_lib_prefix=no
9465 need_version=no
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9467 soname_spec='${libname}${release}${shared_ext}$major'
9468 shlibpath_var=LD_LIBRARY_PATH
9469 shlibpath_overrides_runpath=no
9470 hardcode_into_libs=yes
9471 dynamic_linker='GNU ld.so'
9474 freebsd* | dragonfly*)
9475 # DragonFly does not have aout. When/if they implement a new
9476 # versioning mechanism, adjust this.
9477 if test -x /usr/bin/objformat; then
9478 objformat=`/usr/bin/objformat`
9479 else
9480 case $host_os in
9481 freebsd[123]*) objformat=aout ;;
9482 *) objformat=elf ;;
9483 esac
9485 version_type=freebsd-$objformat
9486 case $version_type in
9487 freebsd-elf*)
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9489 need_version=no
9490 need_lib_prefix=no
9492 freebsd-*)
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9494 need_version=yes
9496 esac
9497 shlibpath_var=LD_LIBRARY_PATH
9498 case $host_os in
9499 freebsd2*)
9500 shlibpath_overrides_runpath=yes
9502 freebsd3.[01]* | freebsdelf3.[01]*)
9503 shlibpath_overrides_runpath=yes
9504 hardcode_into_libs=yes
9506 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9507 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9508 shlibpath_overrides_runpath=no
9509 hardcode_into_libs=yes
9511 freebsd*) # from 4.6 on
9512 shlibpath_overrides_runpath=yes
9513 hardcode_into_libs=yes
9515 esac
9518 gnu*)
9519 version_type=linux
9520 need_lib_prefix=no
9521 need_version=no
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 shlibpath_var=LD_LIBRARY_PATH
9525 hardcode_into_libs=yes
9528 hpux9* | hpux10* | hpux11*)
9529 # Give a soname corresponding to the major version so that dld.sl refuses to
9530 # link against other versions.
9531 version_type=sunos
9532 need_lib_prefix=no
9533 need_version=no
9534 case $host_cpu in
9535 ia64*)
9536 shrext_cmds='.so'
9537 hardcode_into_libs=yes
9538 dynamic_linker="$host_os dld.so"
9539 shlibpath_var=LD_LIBRARY_PATH
9540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9542 soname_spec='${libname}${release}${shared_ext}$major'
9543 if test "X$HPUX_IA64_MODE" = X32; then
9544 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9545 else
9546 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9550 hppa*64*)
9551 shrext_cmds='.sl'
9552 hardcode_into_libs=yes
9553 dynamic_linker="$host_os dld.sl"
9554 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9557 soname_spec='${libname}${release}${shared_ext}$major'
9558 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9562 shrext_cmds='.sl'
9563 dynamic_linker="$host_os dld.sl"
9564 shlibpath_var=SHLIB_PATH
9565 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9567 soname_spec='${libname}${release}${shared_ext}$major'
9569 esac
9570 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9571 postinstall_cmds='chmod 555 $lib'
9574 interix3*)
9575 version_type=linux
9576 need_lib_prefix=no
9577 need_version=no
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9579 soname_spec='${libname}${release}${shared_ext}$major'
9580 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9581 shlibpath_var=LD_LIBRARY_PATH
9582 shlibpath_overrides_runpath=no
9583 hardcode_into_libs=yes
9586 irix5* | irix6* | nonstopux*)
9587 case $host_os in
9588 nonstopux*) version_type=nonstopux ;;
9590 if test "$lt_cv_prog_gnu_ld" = yes; then
9591 version_type=linux
9592 else
9593 version_type=irix
9594 fi ;;
9595 esac
9596 need_lib_prefix=no
9597 need_version=no
9598 soname_spec='${libname}${release}${shared_ext}$major'
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9600 case $host_os in
9601 irix5* | nonstopux*)
9602 libsuff= shlibsuff=
9605 case $LD in # libtool.m4 will add one of these switches to LD
9606 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9607 libsuff= shlibsuff= libmagic=32-bit;;
9608 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9609 libsuff=32 shlibsuff=N32 libmagic=N32;;
9610 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9611 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9612 *) libsuff= shlibsuff= libmagic=never-match;;
9613 esac
9615 esac
9616 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9617 shlibpath_overrides_runpath=no
9618 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9619 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9620 hardcode_into_libs=yes
9623 # No shared lib support for Linux oldld, aout, or coff.
9624 linux*oldld* | linux*aout* | linux*coff*)
9625 dynamic_linker=no
9628 # This must be Linux ELF.
9629 linux*)
9630 version_type=linux
9631 need_lib_prefix=no
9632 need_version=no
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634 soname_spec='${libname}${release}${shared_ext}$major'
9635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9636 shlibpath_var=LD_LIBRARY_PATH
9637 shlibpath_overrides_runpath=no
9638 # This implies no fast_install, which is unacceptable.
9639 # Some rework will be needed to allow for fast_install
9640 # before this can be enabled.
9641 hardcode_into_libs=yes
9643 # Append ld.so.conf contents to the search path
9644 if test -f /etc/ld.so.conf; then
9645 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' ' '`
9646 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9649 # We used to test for /lib/ld.so.1 and disable shared libraries on
9650 # powerpc, because MkLinux only supported shared libraries with the
9651 # GNU dynamic linker. Since this was broken with cross compilers,
9652 # most powerpc-linux boxes support dynamic linking these days and
9653 # people can always --disable-shared, the test was removed, and we
9654 # assume the GNU/Linux dynamic linker is in use.
9655 dynamic_linker='GNU/Linux ld.so'
9658 knetbsd*-gnu)
9659 version_type=linux
9660 need_lib_prefix=no
9661 need_version=no
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9663 soname_spec='${libname}${release}${shared_ext}$major'
9664 shlibpath_var=LD_LIBRARY_PATH
9665 shlibpath_overrides_runpath=no
9666 hardcode_into_libs=yes
9667 dynamic_linker='GNU ld.so'
9670 netbsd*)
9671 version_type=sunos
9672 need_lib_prefix=no
9673 need_version=no
9674 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9677 dynamic_linker='NetBSD (a.out) ld.so'
9678 else
9679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9680 soname_spec='${libname}${release}${shared_ext}$major'
9681 dynamic_linker='NetBSD ld.elf_so'
9683 shlibpath_var=LD_LIBRARY_PATH
9684 shlibpath_overrides_runpath=yes
9685 hardcode_into_libs=yes
9688 newsos6)
9689 version_type=linux
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691 shlibpath_var=LD_LIBRARY_PATH
9692 shlibpath_overrides_runpath=yes
9695 nto-qnx*)
9696 version_type=linux
9697 need_lib_prefix=no
9698 need_version=no
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9700 soname_spec='${libname}${release}${shared_ext}$major'
9701 shlibpath_var=LD_LIBRARY_PATH
9702 shlibpath_overrides_runpath=yes
9705 openbsd*)
9706 version_type=sunos
9707 sys_lib_dlsearch_path_spec="/usr/lib"
9708 need_lib_prefix=no
9709 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9710 case $host_os in
9711 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9712 *) need_version=no ;;
9713 esac
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9716 shlibpath_var=LD_LIBRARY_PATH
9717 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9718 case $host_os in
9719 openbsd2.[89] | openbsd2.[89].*)
9720 shlibpath_overrides_runpath=no
9723 shlibpath_overrides_runpath=yes
9725 esac
9726 else
9727 shlibpath_overrides_runpath=yes
9731 os2*)
9732 libname_spec='$name'
9733 shrext_cmds=".dll"
9734 need_lib_prefix=no
9735 library_names_spec='$libname${shared_ext} $libname.a'
9736 dynamic_linker='OS/2 ld.exe'
9737 shlibpath_var=LIBPATH
9740 osf3* | osf4* | osf5*)
9741 version_type=osf
9742 need_lib_prefix=no
9743 need_version=no
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746 shlibpath_var=LD_LIBRARY_PATH
9747 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9748 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9751 solaris*)
9752 version_type=linux
9753 need_lib_prefix=no
9754 need_version=no
9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756 soname_spec='${libname}${release}${shared_ext}$major'
9757 shlibpath_var=LD_LIBRARY_PATH
9758 shlibpath_overrides_runpath=yes
9759 hardcode_into_libs=yes
9760 # ldd complains unless libraries are executable
9761 postinstall_cmds='chmod +x $lib'
9764 sunos4*)
9765 version_type=sunos
9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9767 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9768 shlibpath_var=LD_LIBRARY_PATH
9769 shlibpath_overrides_runpath=yes
9770 if test "$with_gnu_ld" = yes; then
9771 need_lib_prefix=no
9773 need_version=yes
9776 sysv4 | sysv4.3*)
9777 version_type=linux
9778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9779 soname_spec='${libname}${release}${shared_ext}$major'
9780 shlibpath_var=LD_LIBRARY_PATH
9781 case $host_vendor in
9782 sni)
9783 shlibpath_overrides_runpath=no
9784 need_lib_prefix=no
9785 export_dynamic_flag_spec='${wl}-Blargedynsym'
9786 runpath_var=LD_RUN_PATH
9788 siemens)
9789 need_lib_prefix=no
9791 motorola)
9792 need_lib_prefix=no
9793 need_version=no
9794 shlibpath_overrides_runpath=no
9795 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9797 esac
9800 sysv4*MP*)
9801 if test -d /usr/nec ;then
9802 version_type=linux
9803 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9804 soname_spec='$libname${shared_ext}.$major'
9805 shlibpath_var=LD_LIBRARY_PATH
9809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9810 version_type=freebsd-elf
9811 need_lib_prefix=no
9812 need_version=no
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9814 soname_spec='${libname}${release}${shared_ext}$major'
9815 shlibpath_var=LD_LIBRARY_PATH
9816 hardcode_into_libs=yes
9817 if test "$with_gnu_ld" = yes; then
9818 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9819 shlibpath_overrides_runpath=no
9820 else
9821 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9822 shlibpath_overrides_runpath=yes
9823 case $host_os in
9824 sco3.2v5*)
9825 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9827 esac
9829 sys_lib_dlsearch_path_spec='/usr/lib'
9832 uts4*)
9833 version_type=linux
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9835 soname_spec='${libname}${release}${shared_ext}$major'
9836 shlibpath_var=LD_LIBRARY_PATH
9840 dynamic_linker=no
9842 esac
9843 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9844 echo "${ECHO_T}$dynamic_linker" >&6; }
9845 test "$dynamic_linker" = no && can_build_shared=no
9847 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9848 if test "$GCC" = yes; then
9849 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9853 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9854 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9855 if test "${libltdl_cv_shlibext+set}" = set; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 else
9859 module=yes
9860 eval libltdl_cv_shlibext=$shrext_cmds
9863 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9864 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9865 if test -n "$libltdl_cv_shlibext"; then
9867 cat >>confdefs.h <<_ACEOF
9868 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9869 _ACEOF
9874 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9875 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9876 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879 libltdl_cv_shlibpath_var="$shlibpath_var"
9881 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9882 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9883 if test -n "$libltdl_cv_shlibpath_var"; then
9885 cat >>confdefs.h <<_ACEOF
9886 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9887 _ACEOF
9892 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9893 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9894 if test "${libltdl_cv_sys_search_path+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 else
9897 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9899 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9900 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9901 if test -n "$libltdl_cv_sys_search_path"; then
9902 sys_search_path=
9903 for dir in $libltdl_cv_sys_search_path; do
9904 if test -z "$sys_search_path"; then
9905 sys_search_path="$dir"
9906 else
9907 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9909 done
9911 cat >>confdefs.h <<_ACEOF
9912 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9913 _ACEOF
9917 { echo "$as_me:$LINENO: checking for objdir" >&5
9918 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9919 if test "${libltdl_cv_objdir+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922 libltdl_cv_objdir="$objdir"
9923 if test -n "$objdir"; then
9925 else
9926 rm -f .libs 2>/dev/null
9927 mkdir .libs 2>/dev/null
9928 if test -d .libs; then
9929 libltdl_cv_objdir=.libs
9930 else
9931 # MS-DOS does not allow filenames that begin with a dot.
9932 libltdl_cv_objdir=_libs
9934 rmdir .libs 2>/dev/null
9938 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9939 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9941 cat >>confdefs.h <<_ACEOF
9942 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9943 _ACEOF
9950 # Check for command to grab the raw symbol name followed by C symbol from nm.
9951 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9952 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9953 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 else
9957 # These are sane defaults that work on at least a few old systems.
9958 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9960 # Character class describing NM global symbol codes.
9961 symcode='[BCDEGRST]'
9963 # Regexp to match symbols that can be accessed directly from C.
9964 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9966 # Transform an extracted symbol line into a proper C declaration
9967 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9969 # Transform an extracted symbol line into symbol name and symbol address
9970 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'"
9972 # Define system-specific variables.
9973 case $host_os in
9974 aix*)
9975 symcode='[BCDT]'
9977 cygwin* | mingw* | pw32*)
9978 symcode='[ABCDGISTW]'
9980 hpux*) # Its linker distinguishes data from code symbols
9981 if test "$host_cpu" = ia64; then
9982 symcode='[ABCDEGRST]'
9984 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9985 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'"
9987 linux*)
9988 if test "$host_cpu" = ia64; then
9989 symcode='[ABCDGIRSTW]'
9990 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9991 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'"
9994 irix* | nonstopux*)
9995 symcode='[BCDEGRST]'
9997 osf*)
9998 symcode='[BCDEGQRST]'
10000 solaris*)
10001 symcode='[BDRT]'
10003 sco3.2v5*)
10004 symcode='[DT]'
10006 sysv4.2uw2*)
10007 symcode='[DT]'
10009 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10010 symcode='[ABDT]'
10012 sysv4)
10013 symcode='[DFNSTU]'
10015 esac
10017 # Handle CRLF in mingw tool chain
10018 opt_cr=
10019 case $build_os in
10020 mingw*)
10021 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10023 esac
10025 # If we're using GNU nm, then use its standard symbol codes.
10026 case `$NM -V 2>&1` in
10027 *GNU* | *'with BFD'*)
10028 symcode='[ABCDGIRSTW]' ;;
10029 esac
10031 # Try without a prefix undercore, then with it.
10032 for ac_symprfx in "" "_"; do
10034 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10035 symxfrm="\\1 $ac_symprfx\\2 \\2"
10037 # Write the raw and C identifiers.
10038 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10040 # Check to see that the pipe works correctly.
10041 pipe_works=no
10043 rm -f conftest*
10044 cat > conftest.$ac_ext <<EOF
10045 #ifdef __cplusplus
10046 extern "C" {
10047 #endif
10048 char nm_test_var;
10049 void nm_test_func(){}
10050 #ifdef __cplusplus
10052 #endif
10053 int main(){nm_test_var='a';nm_test_func();return(0);}
10056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10057 (eval $ac_compile) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; then
10061 # Now try to grab the symbols.
10062 nlist=conftest.nm
10063 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10064 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } && test -s "$nlist"; then
10068 # Try sorting and uniquifying the output.
10069 if sort "$nlist" | uniq > "$nlist"T; then
10070 mv -f "$nlist"T "$nlist"
10071 else
10072 rm -f "$nlist"T
10075 # Make sure that we snagged all the symbols we need.
10076 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10077 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10078 cat <<EOF > conftest.$ac_ext
10079 #ifdef __cplusplus
10080 extern "C" {
10081 #endif
10084 # Now generate the symbol file.
10085 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10087 cat <<EOF >> conftest.$ac_ext
10088 #if defined (__STDC__) && __STDC__
10089 # define lt_ptr_t void *
10090 #else
10091 # define lt_ptr_t char *
10092 # define const
10093 #endif
10095 /* The mapping between symbol names and symbols. */
10096 const struct {
10097 const char *name;
10098 lt_ptr_t address;
10100 lt_preloaded_symbols[] =
10103 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10104 cat <<\EOF >> conftest.$ac_ext
10105 {0, (lt_ptr_t) 0}
10108 #ifdef __cplusplus
10110 #endif
10112 # Now try linking the two files.
10113 mv conftest.$ac_objext conftstm.$ac_objext
10114 lt_save_LIBS="$LIBS"
10115 lt_save_CFLAGS="$CFLAGS"
10116 LIBS="conftstm.$ac_objext"
10117 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10119 (eval $ac_link) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10123 pipe_works=yes
10125 LIBS="$lt_save_LIBS"
10126 CFLAGS="$lt_save_CFLAGS"
10127 else
10128 echo "cannot find nm_test_func in $nlist" >&5
10130 else
10131 echo "cannot find nm_test_var in $nlist" >&5
10133 else
10134 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10136 else
10137 echo "$progname: failed program was:" >&5
10138 cat conftest.$ac_ext >&5
10140 rm -f conftest* conftst*
10142 # Do not use the global_symbol_pipe unless it works.
10143 if test "$pipe_works" = yes; then
10144 break
10145 else
10146 lt_cv_sys_global_symbol_pipe=
10148 done
10152 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10153 lt_cv_sys_global_symbol_to_cdecl=
10155 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10156 { echo "$as_me:$LINENO: result: failed" >&5
10157 echo "${ECHO_T}failed" >&6; }
10158 else
10159 { echo "$as_me:$LINENO: result: ok" >&5
10160 echo "${ECHO_T}ok" >&6; }
10164 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10165 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10166 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 else
10169 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10170 libltdl_cv_preloaded_symbols=yes
10171 else
10172 libltdl_cv_preloaded_symbols=no
10176 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10177 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10178 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10180 cat >>confdefs.h <<\_ACEOF
10181 #define HAVE_PRELOADED_SYMBOLS 1
10182 _ACEOF
10186 LIBADD_DL=
10188 ac_ext=c
10189 ac_cpp='$CPP $CPPFLAGS'
10190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10195 { echo "$as_me:$LINENO: checking for shl_load" >&5
10196 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10197 if test "${ac_cv_func_shl_load+set}" = set; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 else
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h. */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10208 #define shl_load innocuous_shl_load
10210 /* System header to define __stub macros and hopefully few prototypes,
10211 which can conflict with char shl_load (); below.
10212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10213 <limits.h> exists even on freestanding compilers. */
10215 #ifdef __STDC__
10216 # include <limits.h>
10217 #else
10218 # include <assert.h>
10219 #endif
10221 #undef shl_load
10223 /* Override any GCC internal prototype to avoid an error.
10224 Use char because int might match the return type of a GCC
10225 builtin and then its argument prototype would still apply. */
10226 #ifdef __cplusplus
10227 extern "C"
10228 #endif
10229 char shl_load ();
10230 /* The GNU C library defines this for functions which it implements
10231 to always fail with ENOSYS. Some functions are actually named
10232 something starting with __ and the normal name is an alias. */
10233 #if defined __stub_shl_load || defined __stub___shl_load
10234 choke me
10235 #endif
10238 main ()
10240 return shl_load ();
10242 return 0;
10244 _ACEOF
10245 rm -f conftest.$ac_objext conftest$ac_exeext
10246 if { (ac_try="$ac_link"
10247 case "(($ac_try" in
10248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249 *) ac_try_echo=$ac_try;;
10250 esac
10251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252 (eval "$ac_link") 2>conftest.er1
10253 ac_status=$?
10254 grep -v '^ *+' conftest.er1 >conftest.err
10255 rm -f conftest.er1
10256 cat conftest.err >&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } &&
10259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10260 { (case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_try") 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; } &&
10269 { ac_try='test -s conftest$ac_exeext'
10270 { (case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10273 esac
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275 (eval "$ac_try") 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
10279 ac_cv_func_shl_load=yes
10280 else
10281 echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10284 ac_cv_func_shl_load=no
10287 rm -f core conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
10290 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10291 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10292 if test $ac_cv_func_shl_load = yes; then
10294 cat >>confdefs.h <<\_ACEOF
10295 #define HAVE_SHL_LOAD 1
10296 _ACEOF
10298 else
10299 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10300 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10301 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304 ac_check_lib_save_LIBS=$LIBS
10305 LIBS="-ldld $LIBS"
10306 cat >conftest.$ac_ext <<_ACEOF
10307 /* confdefs.h. */
10308 _ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10313 /* Override any GCC internal prototype to avoid an error.
10314 Use char because int might match the return type of a GCC
10315 builtin and then its argument prototype would still apply. */
10316 #ifdef __cplusplus
10317 extern "C"
10318 #endif
10319 char shl_load ();
10321 main ()
10323 return shl_load ();
10325 return 0;
10327 _ACEOF
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (ac_try="$ac_link"
10330 case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10333 esac
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_link") 2>conftest.er1
10336 ac_status=$?
10337 grep -v '^ *+' conftest.er1 >conftest.err
10338 rm -f conftest.er1
10339 cat conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } &&
10342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10343 { (case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10346 esac
10347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348 (eval "$ac_try") 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; } &&
10352 { ac_try='test -s conftest$ac_exeext'
10353 { (case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10356 esac
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_try") 2>&5
10359 ac_status=$?
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; }; then
10362 ac_cv_lib_dld_shl_load=yes
10363 else
10364 echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10367 ac_cv_lib_dld_shl_load=no
10370 rm -f core conftest.err conftest.$ac_objext \
10371 conftest$ac_exeext conftest.$ac_ext
10372 LIBS=$ac_check_lib_save_LIBS
10374 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10375 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10376 if test $ac_cv_lib_dld_shl_load = yes; then
10378 cat >>confdefs.h <<\_ACEOF
10379 #define HAVE_SHL_LOAD 1
10380 _ACEOF
10382 LIBADD_DL="$LIBADD_DL -ldld"
10383 else
10384 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10385 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10386 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 else
10389 ac_check_lib_save_LIBS=$LIBS
10390 LIBS="-ldl $LIBS"
10391 cat >conftest.$ac_ext <<_ACEOF
10392 /* confdefs.h. */
10393 _ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10398 /* Override any GCC internal prototype to avoid an error.
10399 Use char because int might match the return type of a GCC
10400 builtin and then its argument prototype would still apply. */
10401 #ifdef __cplusplus
10402 extern "C"
10403 #endif
10404 char dlopen ();
10406 main ()
10408 return dlopen ();
10410 return 0;
10412 _ACEOF
10413 rm -f conftest.$ac_objext conftest$ac_exeext
10414 if { (ac_try="$ac_link"
10415 case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10418 esac
10419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420 (eval "$ac_link") 2>conftest.er1
10421 ac_status=$?
10422 grep -v '^ *+' conftest.er1 >conftest.err
10423 rm -f conftest.er1
10424 cat conftest.err >&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } &&
10427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10428 { (case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10431 esac
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_try") 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; } &&
10437 { ac_try='test -s conftest$ac_exeext'
10438 { (case "(($ac_try" in
10439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440 *) ac_try_echo=$ac_try;;
10441 esac
10442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443 (eval "$ac_try") 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; }; then
10447 ac_cv_lib_dl_dlopen=yes
10448 else
10449 echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10452 ac_cv_lib_dl_dlopen=no
10455 rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457 LIBS=$ac_check_lib_save_LIBS
10459 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10460 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10461 if test $ac_cv_lib_dl_dlopen = yes; then
10463 cat >>confdefs.h <<\_ACEOF
10464 #define HAVE_LIBDL 1
10465 _ACEOF
10467 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10468 else
10469 cat >conftest.$ac_ext <<_ACEOF
10470 /* confdefs.h. */
10471 _ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 #if HAVE_DLFCN_H
10476 # include <dlfcn.h>
10477 #endif
10480 main ()
10482 dlopen(0, 0);
10484 return 0;
10486 _ACEOF
10487 rm -f conftest.$ac_objext conftest$ac_exeext
10488 if { (ac_try="$ac_link"
10489 case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492 esac
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_link") 2>conftest.er1
10495 ac_status=$?
10496 grep -v '^ *+' conftest.er1 >conftest.err
10497 rm -f conftest.er1
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
10501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10502 { (case "(($ac_try" in
10503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10504 *) ac_try_echo=$ac_try;;
10505 esac
10506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10507 (eval "$ac_try") 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; } &&
10511 { ac_try='test -s conftest$ac_exeext'
10512 { (case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_try") 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10522 cat >>confdefs.h <<\_ACEOF
10523 #define HAVE_LIBDL 1
10524 _ACEOF
10525 libltdl_cv_func_dlopen="yes"
10526 else
10527 echo "$as_me: failed program was:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10530 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10531 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10532 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
10534 else
10535 ac_check_lib_save_LIBS=$LIBS
10536 LIBS="-lsvld $LIBS"
10537 cat >conftest.$ac_ext <<_ACEOF
10538 /* confdefs.h. */
10539 _ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h. */
10544 /* Override any GCC internal prototype to avoid an error.
10545 Use char because int might match the return type of a GCC
10546 builtin and then its argument prototype would still apply. */
10547 #ifdef __cplusplus
10548 extern "C"
10549 #endif
10550 char dlopen ();
10552 main ()
10554 return dlopen ();
10556 return 0;
10558 _ACEOF
10559 rm -f conftest.$ac_objext conftest$ac_exeext
10560 if { (ac_try="$ac_link"
10561 case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10564 esac
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_link") 2>conftest.er1
10567 ac_status=$?
10568 grep -v '^ *+' conftest.er1 >conftest.err
10569 rm -f conftest.er1
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10574 { (case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10577 esac
10578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_try") 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; } &&
10583 { ac_try='test -s conftest$ac_exeext'
10584 { (case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10587 esac
10588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_try") 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 ac_cv_lib_svld_dlopen=yes
10594 else
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ac_cv_lib_svld_dlopen=no
10601 rm -f core conftest.err conftest.$ac_objext \
10602 conftest$ac_exeext conftest.$ac_ext
10603 LIBS=$ac_check_lib_save_LIBS
10605 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10606 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10607 if test $ac_cv_lib_svld_dlopen = yes; then
10609 cat >>confdefs.h <<\_ACEOF
10610 #define HAVE_LIBDL 1
10611 _ACEOF
10613 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10614 else
10615 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10616 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10617 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10619 else
10620 ac_check_lib_save_LIBS=$LIBS
10621 LIBS="-ldld $LIBS"
10622 cat >conftest.$ac_ext <<_ACEOF
10623 /* confdefs.h. */
10624 _ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h. */
10629 /* Override any GCC internal prototype to avoid an error.
10630 Use char because int might match the return type of a GCC
10631 builtin and then its argument prototype would still apply. */
10632 #ifdef __cplusplus
10633 extern "C"
10634 #endif
10635 char dld_link ();
10637 main ()
10639 return dld_link ();
10641 return 0;
10643 _ACEOF
10644 rm -f conftest.$ac_objext conftest$ac_exeext
10645 if { (ac_try="$ac_link"
10646 case "(($ac_try" in
10647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648 *) ac_try_echo=$ac_try;;
10649 esac
10650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10651 (eval "$ac_link") 2>conftest.er1
10652 ac_status=$?
10653 grep -v '^ *+' conftest.er1 >conftest.err
10654 rm -f conftest.er1
10655 cat conftest.err >&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); } &&
10658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10659 { (case "(($ac_try" in
10660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661 *) ac_try_echo=$ac_try;;
10662 esac
10663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10664 (eval "$ac_try") 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; } &&
10668 { ac_try='test -s conftest$ac_exeext'
10669 { (case "(($ac_try" in
10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10672 esac
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_try") 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; }; then
10678 ac_cv_lib_dld_dld_link=yes
10679 else
10680 echo "$as_me: failed program was:" >&5
10681 sed 's/^/| /' conftest.$ac_ext >&5
10683 ac_cv_lib_dld_dld_link=no
10686 rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
10688 LIBS=$ac_check_lib_save_LIBS
10690 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10691 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10692 if test $ac_cv_lib_dld_dld_link = yes; then
10694 cat >>confdefs.h <<\_ACEOF
10695 #define HAVE_DLD 1
10696 _ACEOF
10698 LIBADD_DL="$LIBADD_DL -ldld"
10699 else
10700 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10701 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10702 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 else
10705 cat >conftest.$ac_ext <<_ACEOF
10706 /* confdefs.h. */
10707 _ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10711 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10713 #define _dyld_func_lookup innocuous__dyld_func_lookup
10715 /* System header to define __stub macros and hopefully few prototypes,
10716 which can conflict with char _dyld_func_lookup (); below.
10717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10718 <limits.h> exists even on freestanding compilers. */
10720 #ifdef __STDC__
10721 # include <limits.h>
10722 #else
10723 # include <assert.h>
10724 #endif
10726 #undef _dyld_func_lookup
10728 /* Override any GCC internal prototype to avoid an error.
10729 Use char because int might match the return type of a GCC
10730 builtin and then its argument prototype would still apply. */
10731 #ifdef __cplusplus
10732 extern "C"
10733 #endif
10734 char _dyld_func_lookup ();
10735 /* The GNU C library defines this for functions which it implements
10736 to always fail with ENOSYS. Some functions are actually named
10737 something starting with __ and the normal name is an alias. */
10738 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10739 choke me
10740 #endif
10743 main ()
10745 return _dyld_func_lookup ();
10747 return 0;
10749 _ACEOF
10750 rm -f conftest.$ac_objext conftest$ac_exeext
10751 if { (ac_try="$ac_link"
10752 case "(($ac_try" in
10753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10754 *) ac_try_echo=$ac_try;;
10755 esac
10756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10757 (eval "$ac_link") 2>conftest.er1
10758 ac_status=$?
10759 grep -v '^ *+' conftest.er1 >conftest.err
10760 rm -f conftest.er1
10761 cat conftest.err >&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } &&
10764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10765 { (case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10768 esac
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_try") 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; } &&
10774 { ac_try='test -s conftest$ac_exeext'
10775 { (case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10778 esac
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_try") 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_cv_func__dyld_func_lookup=yes
10785 else
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 ac_cv_func__dyld_func_lookup=no
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10795 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10796 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10797 if test $ac_cv_func__dyld_func_lookup = yes; then
10799 cat >>confdefs.h <<\_ACEOF
10800 #define HAVE_DYLD 1
10801 _ACEOF
10814 rm -f core conftest.err conftest.$ac_objext \
10815 conftest$ac_exeext conftest.$ac_ext
10826 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10827 then
10828 lt_save_LIBS="$LIBS"
10829 LIBS="$LIBS $LIBADD_DL"
10831 for ac_func in dlerror
10833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839 cat >conftest.$ac_ext <<_ACEOF
10840 /* confdefs.h. */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10847 #define $ac_func innocuous_$ac_func
10849 /* System header to define __stub macros and hopefully few prototypes,
10850 which can conflict with char $ac_func (); below.
10851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10852 <limits.h> exists even on freestanding compilers. */
10854 #ifdef __STDC__
10855 # include <limits.h>
10856 #else
10857 # include <assert.h>
10858 #endif
10860 #undef $ac_func
10862 /* Override any GCC internal prototype to avoid an error.
10863 Use char because int might match the return type of a GCC
10864 builtin and then its argument prototype would still apply. */
10865 #ifdef __cplusplus
10866 extern "C"
10867 #endif
10868 char $ac_func ();
10869 /* The GNU C library defines this for functions which it implements
10870 to always fail with ENOSYS. Some functions are actually named
10871 something starting with __ and the normal name is an alias. */
10872 #if defined __stub_$ac_func || defined __stub___$ac_func
10873 choke me
10874 #endif
10877 main ()
10879 return $ac_func ();
10881 return 0;
10883 _ACEOF
10884 rm -f conftest.$ac_objext conftest$ac_exeext
10885 if { (ac_try="$ac_link"
10886 case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10889 esac
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_link") 2>conftest.er1
10892 ac_status=$?
10893 grep -v '^ *+' conftest.er1 >conftest.err
10894 rm -f conftest.er1
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10899 { (case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10902 esac
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_try") 2>&5
10905 ac_status=$?
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; } &&
10908 { ac_try='test -s conftest$ac_exeext'
10909 { (case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10912 esac
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_try") 2>&5
10915 ac_status=$?
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; }; then
10918 eval "$as_ac_var=yes"
10919 else
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10923 eval "$as_ac_var=no"
10926 rm -f core conftest.err conftest.$ac_objext \
10927 conftest$ac_exeext conftest.$ac_ext
10929 ac_res=`eval echo '${'$as_ac_var'}'`
10930 { echo "$as_me:$LINENO: result: $ac_res" >&5
10931 echo "${ECHO_T}$ac_res" >&6; }
10932 if test `eval echo '${'$as_ac_var'}'` = yes; then
10933 cat >>confdefs.h <<_ACEOF
10934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10935 _ACEOF
10938 done
10940 LIBS="$lt_save_LIBS"
10942 ac_ext=c
10943 ac_cpp='$CPP $CPPFLAGS'
10944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10950 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10951 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10952 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955 ac_cv_sys_symbol_underscore=no
10956 cat > conftest.$ac_ext <<EOF
10957 void nm_test_func(){}
10958 int main(){nm_test_func;return 0;}
10960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10961 (eval $ac_compile) 2>&5
10962 ac_status=$?
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; then
10965 # Now try to grab the symbols.
10966 ac_nlist=conftest.nm
10967 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10968 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10969 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } && test -s "$ac_nlist"; then
10972 # See whether the symbols have a leading underscore.
10973 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10974 ac_cv_sys_symbol_underscore=yes
10975 else
10976 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10978 else
10979 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10982 else
10983 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10985 else
10986 echo "configure: failed program was:" >&5
10987 cat conftest.c >&5
10989 rm -rf conftest*
10992 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10993 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10996 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10997 if test x"$libltdl_cv_func_dlopen" = xyes ||
10998 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10999 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11000 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11001 if test "${libltdl_cv_need_uscore+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11003 else
11004 libltdl_cv_need_uscore=unknown
11005 save_LIBS="$LIBS"
11006 LIBS="$LIBS $LIBADD_DL"
11007 if test "$cross_compiling" = yes; then :
11008 libltdl_cv_need_uscore=cross
11009 else
11010 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11011 lt_status=$lt_dlunknown
11012 cat > conftest.$ac_ext <<EOF
11013 #line 11013 "configure"
11014 #include "confdefs.h"
11016 #if HAVE_DLFCN_H
11017 #include <dlfcn.h>
11018 #endif
11020 #include <stdio.h>
11022 #ifdef RTLD_GLOBAL
11023 # define LT_DLGLOBAL RTLD_GLOBAL
11024 #else
11025 # ifdef DL_GLOBAL
11026 # define LT_DLGLOBAL DL_GLOBAL
11027 # else
11028 # define LT_DLGLOBAL 0
11029 # endif
11030 #endif
11032 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11033 find out it does not work in some platform. */
11034 #ifndef LT_DLLAZY_OR_NOW
11035 # ifdef RTLD_LAZY
11036 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11037 # else
11038 # ifdef DL_LAZY
11039 # define LT_DLLAZY_OR_NOW DL_LAZY
11040 # else
11041 # ifdef RTLD_NOW
11042 # define LT_DLLAZY_OR_NOW RTLD_NOW
11043 # else
11044 # ifdef DL_NOW
11045 # define LT_DLLAZY_OR_NOW DL_NOW
11046 # else
11047 # define LT_DLLAZY_OR_NOW 0
11048 # endif
11049 # endif
11050 # endif
11051 # endif
11052 #endif
11054 #ifdef __cplusplus
11055 extern "C" void exit (int);
11056 #endif
11058 void fnord() { int i=42;}
11059 int main ()
11061 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11062 int status = $lt_dlunknown;
11064 if (self)
11066 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11067 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11068 /* dlclose (self); */
11070 else
11071 puts (dlerror ());
11073 exit (status);
11076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11077 (eval $ac_link) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11081 (./conftest; exit; ) >&5 2>/dev/null
11082 lt_status=$?
11083 case x$lt_status in
11084 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11085 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11086 x$lt_dlunknown|x*) ;;
11087 esac
11088 else :
11089 # compilation failed
11093 rm -fr conftest*
11095 LIBS="$save_LIBS"
11098 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11099 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11103 if test x"$libltdl_cv_need_uscore" = xyes; then
11105 cat >>confdefs.h <<\_ACEOF
11106 #define NEED_USCORE 1
11107 _ACEOF
11112 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11113 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11114 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11115 echo $ECHO_N "(cached) $ECHO_C" >&6
11116 else
11117 # PORTME does your system automatically load deplibs for dlopen?
11118 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11119 # For now, we just catch OSes we know something about -- in the
11120 # future, we'll try test this programmatically.
11121 libltdl_cv_sys_dlopen_deplibs=unknown
11122 case "$host_os" in
11123 aix3*|aix4.1.*|aix4.2.*)
11124 # Unknown whether this is true for these versions of AIX, but
11125 # we want this `case' here to explicitly catch those versions.
11126 libltdl_cv_sys_dlopen_deplibs=unknown
11128 aix[45]*)
11129 libltdl_cv_sys_dlopen_deplibs=yes
11131 darwin*)
11132 # Assuming the user has installed a libdl from somewhere, this is true
11133 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11134 libltdl_cv_sys_dlopen_deplibs=yes
11136 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11137 # GNU and its variants, using gnu ld.so (Glibc)
11138 libltdl_cv_sys_dlopen_deplibs=yes
11140 hpux10*|hpux11*)
11141 libltdl_cv_sys_dlopen_deplibs=yes
11143 interix*)
11144 libltdl_cv_sys_dlopen_deplibs=yes
11146 irix[12345]*|irix6.[01]*)
11147 # Catch all versions of IRIX before 6.2, and indicate that we don't
11148 # know how it worked for any of those versions.
11149 libltdl_cv_sys_dlopen_deplibs=unknown
11151 irix*)
11152 # The case above catches anything before 6.2, and it's known that
11153 # at 6.2 and later dlopen does load deplibs.
11154 libltdl_cv_sys_dlopen_deplibs=yes
11156 netbsd*)
11157 libltdl_cv_sys_dlopen_deplibs=yes
11159 openbsd*)
11160 libltdl_cv_sys_dlopen_deplibs=yes
11162 osf[1234]*)
11163 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11164 # it did *not* use an RPATH in a shared library to find objects the
11165 # library depends on, so we explictly say `no'.
11166 libltdl_cv_sys_dlopen_deplibs=no
11168 osf5.0|osf5.0a|osf5.1)
11169 # dlopen *does* load deplibs and with the right loader patch applied
11170 # it even uses RPATH in a shared library to search for shared objects
11171 # that the library depends on, but there's no easy way to know if that
11172 # patch is installed. Since this is the case, all we can really
11173 # say is unknown -- it depends on the patch being installed. If
11174 # it is, this changes to `yes'. Without it, it would be `no'.
11175 libltdl_cv_sys_dlopen_deplibs=unknown
11177 osf*)
11178 # the two cases above should catch all versions of osf <= 5.1. Read
11179 # the comments above for what we know about them.
11180 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11181 # is used to find them so we can finally say `yes'.
11182 libltdl_cv_sys_dlopen_deplibs=yes
11184 solaris*)
11185 libltdl_cv_sys_dlopen_deplibs=yes
11187 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11188 libltdl_cv_sys_dlopen_deplibs=yes
11190 esac
11193 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11194 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11195 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11197 cat >>confdefs.h <<\_ACEOF
11198 #define LTDL_DLOPEN_DEPLIBS 1
11199 _ACEOF
11204 for ac_header in argz.h
11206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 ac_res=`eval echo '${'$as_ac_Header'}'`
11214 { echo "$as_me:$LINENO: result: $ac_res" >&5
11215 echo "${ECHO_T}$ac_res" >&6; }
11216 else
11217 # Is the header compilable?
11218 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11220 cat >conftest.$ac_ext <<_ACEOF
11221 /* confdefs.h. */
11222 _ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11226 $ac_includes_default
11227 #include <$ac_header>
11228 _ACEOF
11229 rm -f conftest.$ac_objext
11230 if { (ac_try="$ac_compile"
11231 case "(($ac_try" in
11232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233 *) ac_try_echo=$ac_try;;
11234 esac
11235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236 (eval "$ac_compile") 2>conftest.er1
11237 ac_status=$?
11238 grep -v '^ *+' conftest.er1 >conftest.err
11239 rm -f conftest.er1
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } &&
11243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11244 { (case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11247 esac
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_try") 2>&5
11250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; } &&
11253 { ac_try='test -s conftest.$ac_objext'
11254 { (case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_try") 2>&5
11260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 ac_header_compiler=yes
11264 else
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11268 ac_header_compiler=no
11271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11273 echo "${ECHO_T}$ac_header_compiler" >&6; }
11275 # Is the header present?
11276 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11277 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11278 cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h. */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 #include <$ac_header>
11285 _ACEOF
11286 if { (ac_try="$ac_cpp conftest.$ac_ext"
11287 case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11290 esac
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } >/dev/null; then
11299 if test -s conftest.err; then
11300 ac_cpp_err=$ac_c_preproc_warn_flag
11301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11302 else
11303 ac_cpp_err=
11305 else
11306 ac_cpp_err=yes
11308 if test -z "$ac_cpp_err"; then
11309 ac_header_preproc=yes
11310 else
11311 echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11314 ac_header_preproc=no
11317 rm -f conftest.err conftest.$ac_ext
11318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11319 echo "${ECHO_T}$ac_header_preproc" >&6; }
11321 # So? What about this header?
11322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11323 yes:no: )
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11328 ac_header_preproc=yes
11330 no:yes:* )
11331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11343 ( cat <<\_ASBOX
11344 ## ----------------------------------- ##
11345 ## Report this to llvmbugs@cs.uiuc.edu ##
11346 ## ----------------------------------- ##
11347 _ASBOX
11348 ) | sed "s/^/$as_me: WARNING: /" >&2
11350 esac
11351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 else
11356 eval "$as_ac_Header=\$ac_header_preproc"
11358 ac_res=`eval echo '${'$as_ac_Header'}'`
11359 { echo "$as_me:$LINENO: result: $ac_res" >&5
11360 echo "${ECHO_T}$ac_res" >&6; }
11363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11364 cat >>confdefs.h <<_ACEOF
11365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11366 _ACEOF
11370 done
11373 { echo "$as_me:$LINENO: checking for error_t" >&5
11374 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11375 if test "${ac_cv_type_error_t+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378 cat >conftest.$ac_ext <<_ACEOF
11379 /* confdefs.h. */
11380 _ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 #if HAVE_ARGZ_H
11385 # include <argz.h>
11386 #endif
11388 typedef error_t ac__type_new_;
11390 main ()
11392 if ((ac__type_new_ *) 0)
11393 return 0;
11394 if (sizeof (ac__type_new_))
11395 return 0;
11397 return 0;
11399 _ACEOF
11400 rm -f conftest.$ac_objext
11401 if { (ac_try="$ac_compile"
11402 case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11405 esac
11406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_compile") 2>conftest.er1
11408 ac_status=$?
11409 grep -v '^ *+' conftest.er1 >conftest.err
11410 rm -f conftest.er1
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11415 { (case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11418 esac
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_try") 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try='test -s conftest.$ac_objext'
11425 { (case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11428 esac
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_try") 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
11434 ac_cv_type_error_t=yes
11435 else
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 ac_cv_type_error_t=no
11442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11444 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11445 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11446 if test $ac_cv_type_error_t = yes; then
11448 cat >>confdefs.h <<_ACEOF
11449 #define HAVE_ERROR_T 1
11450 _ACEOF
11453 else
11455 cat >>confdefs.h <<\_ACEOF
11456 #define error_t int
11457 _ACEOF
11467 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11470 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11472 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11474 else
11475 cat >conftest.$ac_ext <<_ACEOF
11476 /* confdefs.h. */
11477 _ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h. */
11481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11483 #define $ac_func innocuous_$ac_func
11485 /* System header to define __stub macros and hopefully few prototypes,
11486 which can conflict with char $ac_func (); below.
11487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11488 <limits.h> exists even on freestanding compilers. */
11490 #ifdef __STDC__
11491 # include <limits.h>
11492 #else
11493 # include <assert.h>
11494 #endif
11496 #undef $ac_func
11498 /* Override any GCC internal prototype to avoid an error.
11499 Use char because int might match the return type of a GCC
11500 builtin and then its argument prototype would still apply. */
11501 #ifdef __cplusplus
11502 extern "C"
11503 #endif
11504 char $ac_func ();
11505 /* The GNU C library defines this for functions which it implements
11506 to always fail with ENOSYS. Some functions are actually named
11507 something starting with __ and the normal name is an alias. */
11508 #if defined __stub_$ac_func || defined __stub___$ac_func
11509 choke me
11510 #endif
11513 main ()
11515 return $ac_func ();
11517 return 0;
11519 _ACEOF
11520 rm -f conftest.$ac_objext conftest$ac_exeext
11521 if { (ac_try="$ac_link"
11522 case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11525 esac
11526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527 (eval "$ac_link") 2>conftest.er1
11528 ac_status=$?
11529 grep -v '^ *+' conftest.er1 >conftest.err
11530 rm -f conftest.er1
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
11534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11535 { (case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11538 esac
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_try") 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; } &&
11544 { ac_try='test -s conftest$ac_exeext'
11545 { (case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11548 esac
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_try") 2>&5
11551 ac_status=$?
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; }; 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 \
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
11603 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11604 stdio.h unistd.h
11606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11613 ac_res=`eval echo '${'$as_ac_Header'}'`
11614 { echo "$as_me:$LINENO: result: $ac_res" >&5
11615 echo "${ECHO_T}$ac_res" >&6; }
11616 else
11617 # Is the header compilable?
11618 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11620 cat >conftest.$ac_ext <<_ACEOF
11621 /* confdefs.h. */
11622 _ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11626 $ac_includes_default
11627 #include <$ac_header>
11628 _ACEOF
11629 rm -f conftest.$ac_objext
11630 if { (ac_try="$ac_compile"
11631 case "(($ac_try" in
11632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11633 *) ac_try_echo=$ac_try;;
11634 esac
11635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11636 (eval "$ac_compile") 2>conftest.er1
11637 ac_status=$?
11638 grep -v '^ *+' conftest.er1 >conftest.err
11639 rm -f conftest.er1
11640 cat conftest.err >&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11644 { (case "(($ac_try" in
11645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646 *) ac_try_echo=$ac_try;;
11647 esac
11648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649 (eval "$ac_try") 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try='test -s conftest.$ac_objext'
11654 { (case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11657 esac
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_try") 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 ac_header_compiler=yes
11664 else
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11668 ac_header_compiler=no
11671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11673 echo "${ECHO_T}$ac_header_compiler" >&6; }
11675 # Is the header present?
11676 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11678 cat >conftest.$ac_ext <<_ACEOF
11679 /* confdefs.h. */
11680 _ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h. */
11684 #include <$ac_header>
11685 _ACEOF
11686 if { (ac_try="$ac_cpp conftest.$ac_ext"
11687 case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11690 esac
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11693 ac_status=$?
11694 grep -v '^ *+' conftest.er1 >conftest.err
11695 rm -f conftest.er1
11696 cat conftest.err >&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); } >/dev/null; then
11699 if test -s conftest.err; then
11700 ac_cpp_err=$ac_c_preproc_warn_flag
11701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11702 else
11703 ac_cpp_err=
11705 else
11706 ac_cpp_err=yes
11708 if test -z "$ac_cpp_err"; then
11709 ac_header_preproc=yes
11710 else
11711 echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11714 ac_header_preproc=no
11717 rm -f conftest.err conftest.$ac_ext
11718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11719 echo "${ECHO_T}$ac_header_preproc" >&6; }
11721 # So? What about this header?
11722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11723 yes:no: )
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11728 ac_header_preproc=yes
11730 no:yes:* )
11731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11743 ( cat <<\_ASBOX
11744 ## ----------------------------------- ##
11745 ## Report this to llvmbugs@cs.uiuc.edu ##
11746 ## ----------------------------------- ##
11747 _ASBOX
11748 ) | sed "s/^/$as_me: WARNING: /" >&2
11750 esac
11751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756 eval "$as_ac_Header=\$ac_header_preproc"
11758 ac_res=`eval echo '${'$as_ac_Header'}'`
11759 { echo "$as_me:$LINENO: result: $ac_res" >&5
11760 echo "${ECHO_T}$ac_res" >&6; }
11763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11764 cat >>confdefs.h <<_ACEOF
11765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11766 _ACEOF
11770 done
11776 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 ac_res=`eval echo '${'$as_ac_Header'}'`
11786 { echo "$as_me:$LINENO: result: $ac_res" >&5
11787 echo "${ECHO_T}$ac_res" >&6; }
11788 else
11789 # Is the header compilable?
11790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11792 cat >conftest.$ac_ext <<_ACEOF
11793 /* confdefs.h. */
11794 _ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h. */
11798 $ac_includes_default
11799 #include <$ac_header>
11800 _ACEOF
11801 rm -f conftest.$ac_objext
11802 if { (ac_try="$ac_compile"
11803 case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11806 esac
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808 (eval "$ac_compile") 2>conftest.er1
11809 ac_status=$?
11810 grep -v '^ *+' conftest.er1 >conftest.err
11811 rm -f conftest.er1
11812 cat conftest.err >&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } &&
11815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11816 { (case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_try") 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try='test -s conftest.$ac_objext'
11826 { (case "(($ac_try" in
11827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828 *) ac_try_echo=$ac_try;;
11829 esac
11830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831 (eval "$ac_try") 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 ac_header_compiler=yes
11836 else
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 ac_header_compiler=no
11843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11845 echo "${ECHO_T}$ac_header_compiler" >&6; }
11847 # Is the header present?
11848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11850 cat >conftest.$ac_ext <<_ACEOF
11851 /* confdefs.h. */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 #include <$ac_header>
11857 _ACEOF
11858 if { (ac_try="$ac_cpp conftest.$ac_ext"
11859 case "(($ac_try" in
11860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861 *) ac_try_echo=$ac_try;;
11862 esac
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11865 ac_status=$?
11866 grep -v '^ *+' conftest.er1 >conftest.err
11867 rm -f conftest.er1
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } >/dev/null; then
11871 if test -s conftest.err; then
11872 ac_cpp_err=$ac_c_preproc_warn_flag
11873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11874 else
11875 ac_cpp_err=
11877 else
11878 ac_cpp_err=yes
11880 if test -z "$ac_cpp_err"; then
11881 ac_header_preproc=yes
11882 else
11883 echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11886 ac_header_preproc=no
11889 rm -f conftest.err conftest.$ac_ext
11890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11891 echo "${ECHO_T}$ac_header_preproc" >&6; }
11893 # So? What about this header?
11894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11895 yes:no: )
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11900 ac_header_preproc=yes
11902 no:yes:* )
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11915 ( cat <<\_ASBOX
11916 ## ----------------------------------- ##
11917 ## Report this to llvmbugs@cs.uiuc.edu ##
11918 ## ----------------------------------- ##
11919 _ASBOX
11920 ) | sed "s/^/$as_me: WARNING: /" >&2
11922 esac
11923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11928 eval "$as_ac_Header=\$ac_header_preproc"
11930 ac_res=`eval echo '${'$as_ac_Header'}'`
11931 { echo "$as_me:$LINENO: result: $ac_res" >&5
11932 echo "${ECHO_T}$ac_res" >&6; }
11935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11936 cat >>confdefs.h <<_ACEOF
11937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11938 _ACEOF
11942 done
11946 for ac_header in string.h strings.h
11948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 ac_res=`eval echo '${'$as_ac_Header'}'`
11956 { echo "$as_me:$LINENO: result: $ac_res" >&5
11957 echo "${ECHO_T}$ac_res" >&6; }
11958 else
11959 # Is the header compilable?
11960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11962 cat >conftest.$ac_ext <<_ACEOF
11963 /* confdefs.h. */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11968 $ac_includes_default
11969 #include <$ac_header>
11970 _ACEOF
11971 rm -f conftest.$ac_objext
11972 if { (ac_try="$ac_compile"
11973 case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976 esac
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_compile") 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } &&
11985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11986 { (case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11989 esac
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_try") 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest.$ac_objext'
11996 { (case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
11999 esac
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001 (eval "$ac_try") 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 ac_header_compiler=yes
12006 else
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 ac_header_compiler=no
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12015 echo "${ECHO_T}$ac_header_compiler" >&6; }
12017 # Is the header present?
12018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12020 cat >conftest.$ac_ext <<_ACEOF
12021 /* confdefs.h. */
12022 _ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12026 #include <$ac_header>
12027 _ACEOF
12028 if { (ac_try="$ac_cpp conftest.$ac_ext"
12029 case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032 esac
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12035 ac_status=$?
12036 grep -v '^ *+' conftest.er1 >conftest.err
12037 rm -f conftest.er1
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } >/dev/null; then
12041 if test -s conftest.err; then
12042 ac_cpp_err=$ac_c_preproc_warn_flag
12043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12044 else
12045 ac_cpp_err=
12047 else
12048 ac_cpp_err=yes
12050 if test -z "$ac_cpp_err"; then
12051 ac_header_preproc=yes
12052 else
12053 echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12056 ac_header_preproc=no
12059 rm -f conftest.err conftest.$ac_ext
12060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12061 echo "${ECHO_T}$ac_header_preproc" >&6; }
12063 # So? What about this header?
12064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12065 yes:no: )
12066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12070 ac_header_preproc=yes
12072 no:yes:* )
12073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12085 ( cat <<\_ASBOX
12086 ## ----------------------------------- ##
12087 ## Report this to llvmbugs@cs.uiuc.edu ##
12088 ## ----------------------------------- ##
12089 _ASBOX
12090 ) | sed "s/^/$as_me: WARNING: /" >&2
12092 esac
12093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else
12098 eval "$as_ac_Header=\$ac_header_preproc"
12100 ac_res=`eval echo '${'$as_ac_Header'}'`
12101 { echo "$as_me:$LINENO: result: $ac_res" >&5
12102 echo "${ECHO_T}$ac_res" >&6; }
12105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12106 cat >>confdefs.h <<_ACEOF
12107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12108 _ACEOF
12109 break
12112 done
12117 for ac_func in strchr index
12119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125 cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h. */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12133 #define $ac_func innocuous_$ac_func
12135 /* System header to define __stub macros and hopefully few prototypes,
12136 which can conflict with char $ac_func (); below.
12137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12138 <limits.h> exists even on freestanding compilers. */
12140 #ifdef __STDC__
12141 # include <limits.h>
12142 #else
12143 # include <assert.h>
12144 #endif
12146 #undef $ac_func
12148 /* Override any GCC internal prototype to avoid an error.
12149 Use char because int might match the return type of a GCC
12150 builtin and then its argument prototype would still apply. */
12151 #ifdef __cplusplus
12152 extern "C"
12153 #endif
12154 char $ac_func ();
12155 /* The GNU C library defines this for functions which it implements
12156 to always fail with ENOSYS. Some functions are actually named
12157 something starting with __ and the normal name is an alias. */
12158 #if defined __stub_$ac_func || defined __stub___$ac_func
12159 choke me
12160 #endif
12163 main ()
12165 return $ac_func ();
12167 return 0;
12169 _ACEOF
12170 rm -f conftest.$ac_objext conftest$ac_exeext
12171 if { (ac_try="$ac_link"
12172 case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12175 esac
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_link") 2>conftest.er1
12178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } &&
12184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12185 { (case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12188 esac
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_try") 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest$ac_exeext'
12195 { (case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_try") 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; }; then
12204 eval "$as_ac_var=yes"
12205 else
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12209 eval "$as_ac_var=no"
12212 rm -f core conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12215 ac_res=`eval echo '${'$as_ac_var'}'`
12216 { echo "$as_me:$LINENO: result: $ac_res" >&5
12217 echo "${ECHO_T}$ac_res" >&6; }
12218 if test `eval echo '${'$as_ac_var'}'` = yes; then
12219 cat >>confdefs.h <<_ACEOF
12220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12221 _ACEOF
12222 break
12224 done
12228 for ac_func in strrchr rindex
12230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 else
12236 cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h. */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12244 #define $ac_func innocuous_$ac_func
12246 /* System header to define __stub macros and hopefully few prototypes,
12247 which can conflict with char $ac_func (); below.
12248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12249 <limits.h> exists even on freestanding compilers. */
12251 #ifdef __STDC__
12252 # include <limits.h>
12253 #else
12254 # include <assert.h>
12255 #endif
12257 #undef $ac_func
12259 /* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
12262 #ifdef __cplusplus
12263 extern "C"
12264 #endif
12265 char $ac_func ();
12266 /* The GNU C library defines this for functions which it implements
12267 to always fail with ENOSYS. Some functions are actually named
12268 something starting with __ and the normal name is an alias. */
12269 #if defined __stub_$ac_func || defined __stub___$ac_func
12270 choke me
12271 #endif
12274 main ()
12276 return $ac_func ();
12278 return 0;
12280 _ACEOF
12281 rm -f conftest.$ac_objext conftest$ac_exeext
12282 if { (ac_try="$ac_link"
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_link") 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); } &&
12295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12296 { (case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12299 esac
12300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301 (eval "$ac_try") 2>&5
12302 ac_status=$?
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; } &&
12305 { ac_try='test -s conftest$ac_exeext'
12306 { (case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12309 esac
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_try") 2>&5
12312 ac_status=$?
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
12315 eval "$as_ac_var=yes"
12316 else
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12320 eval "$as_ac_var=no"
12323 rm -f core conftest.err conftest.$ac_objext \
12324 conftest$ac_exeext conftest.$ac_ext
12326 ac_res=`eval echo '${'$as_ac_var'}'`
12327 { echo "$as_me:$LINENO: result: $ac_res" >&5
12328 echo "${ECHO_T}$ac_res" >&6; }
12329 if test `eval echo '${'$as_ac_var'}'` = yes; then
12330 cat >>confdefs.h <<_ACEOF
12331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12332 _ACEOF
12333 break
12335 done
12339 for ac_func in memcpy bcopy
12341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12345 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 else
12347 cat >conftest.$ac_ext <<_ACEOF
12348 /* confdefs.h. */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12355 #define $ac_func innocuous_$ac_func
12357 /* System header to define __stub macros and hopefully few prototypes,
12358 which can conflict with char $ac_func (); below.
12359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12360 <limits.h> exists even on freestanding compilers. */
12362 #ifdef __STDC__
12363 # include <limits.h>
12364 #else
12365 # include <assert.h>
12366 #endif
12368 #undef $ac_func
12370 /* Override any GCC internal prototype to avoid an error.
12371 Use char because int might match the return type of a GCC
12372 builtin and then its argument prototype would still apply. */
12373 #ifdef __cplusplus
12374 extern "C"
12375 #endif
12376 char $ac_func ();
12377 /* The GNU C library defines this for functions which it implements
12378 to always fail with ENOSYS. Some functions are actually named
12379 something starting with __ and the normal name is an alias. */
12380 #if defined __stub_$ac_func || defined __stub___$ac_func
12381 choke me
12382 #endif
12385 main ()
12387 return $ac_func ();
12389 return 0;
12391 _ACEOF
12392 rm -f conftest.$ac_objext conftest$ac_exeext
12393 if { (ac_try="$ac_link"
12394 case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397 esac
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_link") 2>conftest.er1
12400 ac_status=$?
12401 grep -v '^ *+' conftest.er1 >conftest.err
12402 rm -f conftest.er1
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } &&
12406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12407 { (case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410 esac
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_try") 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; } &&
12416 { ac_try='test -s conftest$ac_exeext'
12417 { (case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12420 esac
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_try") 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
12426 eval "$as_ac_var=yes"
12427 else
12428 echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12431 eval "$as_ac_var=no"
12434 rm -f core conftest.err conftest.$ac_objext \
12435 conftest$ac_exeext conftest.$ac_ext
12437 ac_res=`eval echo '${'$as_ac_var'}'`
12438 { echo "$as_me:$LINENO: result: $ac_res" >&5
12439 echo "${ECHO_T}$ac_res" >&6; }
12440 if test `eval echo '${'$as_ac_var'}'` = yes; then
12441 cat >>confdefs.h <<_ACEOF
12442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12443 _ACEOF
12444 break
12446 done
12450 for ac_func in memmove strcmp
12452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458 cat >conftest.$ac_ext <<_ACEOF
12459 /* confdefs.h. */
12460 _ACEOF
12461 cat confdefs.h >>conftest.$ac_ext
12462 cat >>conftest.$ac_ext <<_ACEOF
12463 /* end confdefs.h. */
12464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12466 #define $ac_func innocuous_$ac_func
12468 /* System header to define __stub macros and hopefully few prototypes,
12469 which can conflict with char $ac_func (); below.
12470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12471 <limits.h> exists even on freestanding compilers. */
12473 #ifdef __STDC__
12474 # include <limits.h>
12475 #else
12476 # include <assert.h>
12477 #endif
12479 #undef $ac_func
12481 /* Override any GCC internal prototype to avoid an error.
12482 Use char because int might match the return type of a GCC
12483 builtin and then its argument prototype would still apply. */
12484 #ifdef __cplusplus
12485 extern "C"
12486 #endif
12487 char $ac_func ();
12488 /* The GNU C library defines this for functions which it implements
12489 to always fail with ENOSYS. Some functions are actually named
12490 something starting with __ and the normal name is an alias. */
12491 #if defined __stub_$ac_func || defined __stub___$ac_func
12492 choke me
12493 #endif
12496 main ()
12498 return $ac_func ();
12500 return 0;
12502 _ACEOF
12503 rm -f conftest.$ac_objext conftest$ac_exeext
12504 if { (ac_try="$ac_link"
12505 case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12508 esac
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_link") 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12518 { (case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12521 esac
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_try") 2>&5
12524 ac_status=$?
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; } &&
12527 { ac_try='test -s conftest$ac_exeext'
12528 { (case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531 esac
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_try") 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; }; then
12537 eval "$as_ac_var=yes"
12538 else
12539 echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12542 eval "$as_ac_var=no"
12545 rm -f core conftest.err conftest.$ac_objext \
12546 conftest$ac_exeext conftest.$ac_ext
12548 ac_res=`eval echo '${'$as_ac_var'}'`
12549 { echo "$as_me:$LINENO: result: $ac_res" >&5
12550 echo "${ECHO_T}$ac_res" >&6; }
12551 if test `eval echo '${'$as_ac_var'}'` = yes; then
12552 cat >>confdefs.h <<_ACEOF
12553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12554 _ACEOF
12557 done
12562 for ac_func in closedir opendir readdir
12564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12569 else
12570 cat >conftest.$ac_ext <<_ACEOF
12571 /* confdefs.h. */
12572 _ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h. */
12576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12578 #define $ac_func innocuous_$ac_func
12580 /* System header to define __stub macros and hopefully few prototypes,
12581 which can conflict with char $ac_func (); below.
12582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12583 <limits.h> exists even on freestanding compilers. */
12585 #ifdef __STDC__
12586 # include <limits.h>
12587 #else
12588 # include <assert.h>
12589 #endif
12591 #undef $ac_func
12593 /* Override any GCC internal prototype to avoid an error.
12594 Use char because int might match the return type of a GCC
12595 builtin and then its argument prototype would still apply. */
12596 #ifdef __cplusplus
12597 extern "C"
12598 #endif
12599 char $ac_func ();
12600 /* The GNU C library defines this for functions which it implements
12601 to always fail with ENOSYS. Some functions are actually named
12602 something starting with __ and the normal name is an alias. */
12603 #if defined __stub_$ac_func || defined __stub___$ac_func
12604 choke me
12605 #endif
12608 main ()
12610 return $ac_func ();
12612 return 0;
12614 _ACEOF
12615 rm -f conftest.$ac_objext conftest$ac_exeext
12616 if { (ac_try="$ac_link"
12617 case "(($ac_try" in
12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619 *) ac_try_echo=$ac_try;;
12620 esac
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622 (eval "$ac_link") 2>conftest.er1
12623 ac_status=$?
12624 grep -v '^ *+' conftest.er1 >conftest.err
12625 rm -f conftest.er1
12626 cat conftest.err >&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } &&
12629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12630 { (case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12633 esac
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_try") 2>&5
12636 ac_status=$?
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; } &&
12639 { ac_try='test -s conftest$ac_exeext'
12640 { (case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_try") 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; }; then
12649 eval "$as_ac_var=yes"
12650 else
12651 echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12654 eval "$as_ac_var=no"
12657 rm -f core conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext conftest.$ac_ext
12660 ac_res=`eval echo '${'$as_ac_var'}'`
12661 { echo "$as_me:$LINENO: result: $ac_res" >&5
12662 echo "${ECHO_T}$ac_res" >&6; }
12663 if test `eval echo '${'$as_ac_var'}'` = yes; then
12664 cat >>confdefs.h <<_ACEOF
12665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12666 _ACEOF
12669 done
12672 # Check whether --enable-shared was given.
12673 if test "${enable_shared+set}" = set; then
12674 enableval=$enable_shared; p=${PACKAGE-default}
12675 case $enableval in
12676 yes) enable_shared=yes ;;
12677 no) enable_shared=no ;;
12679 enable_shared=no
12680 # Look at the argument we got. We use all the common list separators.
12681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12682 for pkg in $enableval; do
12683 IFS="$lt_save_ifs"
12684 if test "X$pkg" = "X$p"; then
12685 enable_shared=yes
12687 done
12688 IFS="$lt_save_ifs"
12690 esac
12691 else
12692 enable_shared=yes
12696 # Check whether --enable-static was given.
12697 if test "${enable_static+set}" = set; then
12698 enableval=$enable_static; p=${PACKAGE-default}
12699 case $enableval in
12700 yes) enable_static=yes ;;
12701 no) enable_static=no ;;
12703 enable_static=no
12704 # Look at the argument we got. We use all the common list separators.
12705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12706 for pkg in $enableval; do
12707 IFS="$lt_save_ifs"
12708 if test "X$pkg" = "X$p"; then
12709 enable_static=yes
12711 done
12712 IFS="$lt_save_ifs"
12714 esac
12715 else
12716 enable_static=yes
12720 # Check whether --enable-fast-install was given.
12721 if test "${enable_fast_install+set}" = set; then
12722 enableval=$enable_fast_install; p=${PACKAGE-default}
12723 case $enableval in
12724 yes) enable_fast_install=yes ;;
12725 no) enable_fast_install=no ;;
12727 enable_fast_install=no
12728 # Look at the argument we got. We use all the common list separators.
12729 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12730 for pkg in $enableval; do
12731 IFS="$lt_save_ifs"
12732 if test "X$pkg" = "X$p"; then
12733 enable_fast_install=yes
12735 done
12736 IFS="$lt_save_ifs"
12738 esac
12739 else
12740 enable_fast_install=yes
12744 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12745 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12746 if test "${lt_cv_path_SED+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 else
12749 # Loop through the user's path and test for sed and gsed.
12750 # Then use that list of sed's as ones to test for truncation.
12751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12752 for as_dir in $PATH
12754 IFS=$as_save_IFS
12755 test -z "$as_dir" && as_dir=.
12756 for lt_ac_prog in sed gsed; do
12757 for ac_exec_ext in '' $ac_executable_extensions; do
12758 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12759 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12761 done
12762 done
12763 done
12764 lt_ac_max=0
12765 lt_ac_count=0
12766 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12767 # along with /bin/sed that truncates output.
12768 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12769 test ! -f $lt_ac_sed && continue
12770 cat /dev/null > conftest.in
12771 lt_ac_count=0
12772 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12773 # Check for GNU sed and select it if it is found.
12774 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12775 lt_cv_path_SED=$lt_ac_sed
12776 break
12778 while true; do
12779 cat conftest.in conftest.in >conftest.tmp
12780 mv conftest.tmp conftest.in
12781 cp conftest.in conftest.nl
12782 echo >>conftest.nl
12783 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12784 cmp -s conftest.out conftest.nl || break
12785 # 10000 chars as input seems more than enough
12786 test $lt_ac_count -gt 10 && break
12787 lt_ac_count=`expr $lt_ac_count + 1`
12788 if test $lt_ac_count -gt $lt_ac_max; then
12789 lt_ac_max=$lt_ac_count
12790 lt_cv_path_SED=$lt_ac_sed
12792 done
12793 done
12797 SED=$lt_cv_path_SED
12798 { echo "$as_me:$LINENO: result: $SED" >&5
12799 echo "${ECHO_T}$SED" >&6; }
12802 # Check whether --with-gnu-ld was given.
12803 if test "${with_gnu_ld+set}" = set; then
12804 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12805 else
12806 with_gnu_ld=no
12809 ac_prog=ld
12810 if test "$GCC" = yes; then
12811 # Check if gcc -print-prog-name=ld gives a path.
12812 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12813 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12814 case $host in
12815 *-*-mingw*)
12816 # gcc leaves a trailing carriage return which upsets mingw
12817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12820 esac
12821 case $ac_prog in
12822 # Accept absolute paths.
12823 [\\/]* | ?:[\\/]*)
12824 re_direlt='/[^/][^/]*/\.\./'
12825 # Canonicalize the pathname of ld
12826 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12827 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12828 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12829 done
12830 test -z "$LD" && LD="$ac_prog"
12833 # If it fails, then pretend we aren't using GCC.
12834 ac_prog=ld
12837 # If it is relative, then search for the first ld in PATH.
12838 with_gnu_ld=unknown
12840 esac
12841 elif test "$with_gnu_ld" = yes; then
12842 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12843 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12844 else
12845 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12846 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12848 if test "${lt_cv_path_LD+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 else
12851 if test -z "$LD"; then
12852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12853 for ac_dir in $PATH; do
12854 IFS="$lt_save_ifs"
12855 test -z "$ac_dir" && ac_dir=.
12856 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12857 lt_cv_path_LD="$ac_dir/$ac_prog"
12858 # Check to see if the program is GNU ld. I'd rather use --version,
12859 # but apparently some variants of GNU ld only accept -v.
12860 # Break only if it was the GNU/non-GNU ld that we prefer.
12861 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12862 *GNU* | *'with BFD'*)
12863 test "$with_gnu_ld" != no && break
12866 test "$with_gnu_ld" != yes && break
12868 esac
12870 done
12871 IFS="$lt_save_ifs"
12872 else
12873 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12877 LD="$lt_cv_path_LD"
12878 if test -n "$LD"; then
12879 { echo "$as_me:$LINENO: result: $LD" >&5
12880 echo "${ECHO_T}$LD" >&6; }
12881 else
12882 { echo "$as_me:$LINENO: result: no" >&5
12883 echo "${ECHO_T}no" >&6; }
12885 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12886 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12887 { (exit 1); exit 1; }; }
12888 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12889 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12890 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12892 else
12893 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12894 case `$LD -v 2>&1 </dev/null` in
12895 *GNU* | *'with BFD'*)
12896 lt_cv_prog_gnu_ld=yes
12899 lt_cv_prog_gnu_ld=no
12901 esac
12903 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12904 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12905 with_gnu_ld=$lt_cv_prog_gnu_ld
12908 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12909 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12910 if test "${lt_cv_ld_reload_flag+set}" = set; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12912 else
12913 lt_cv_ld_reload_flag='-r'
12915 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12916 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12917 reload_flag=$lt_cv_ld_reload_flag
12918 case $reload_flag in
12919 "" | " "*) ;;
12920 *) reload_flag=" $reload_flag" ;;
12921 esac
12922 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12923 case $host_os in
12924 darwin*)
12925 if test "$GCC" = yes; then
12926 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12927 else
12928 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12931 esac
12933 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12934 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12935 if test "${lt_cv_deplibs_check_method+set}" = set; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 else
12938 lt_cv_file_magic_cmd='$MAGIC_CMD'
12939 lt_cv_file_magic_test_file=
12940 lt_cv_deplibs_check_method='unknown'
12941 # Need to set the preceding variable on all platforms that support
12942 # interlibrary dependencies.
12943 # 'none' -- dependencies not supported.
12944 # `unknown' -- same as none, but documents that we really don't know.
12945 # 'pass_all' -- all dependencies passed with no checks.
12946 # 'test_compile' -- check by making test program.
12947 # 'file_magic [[regex]]' -- check by looking for files in library path
12948 # which responds to the $file_magic_cmd with a given extended regex.
12949 # If you have `file' or equivalent on your system and you're not sure
12950 # whether `pass_all' will *always* work, you probably want this one.
12952 case $host_os in
12953 aix4* | aix5*)
12954 lt_cv_deplibs_check_method=pass_all
12957 beos*)
12958 lt_cv_deplibs_check_method=pass_all
12961 bsdi[45]*)
12962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12963 lt_cv_file_magic_cmd='/usr/bin/file -L'
12964 lt_cv_file_magic_test_file=/shlib/libc.so
12967 cygwin*)
12968 # func_win32_libid is a shell function defined in ltmain.sh
12969 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12970 lt_cv_file_magic_cmd='func_win32_libid'
12973 mingw* | pw32*)
12974 # Base MSYS/MinGW do not provide the 'file' command needed by
12975 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12976 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12977 lt_cv_file_magic_cmd='$OBJDUMP -f'
12980 darwin* | rhapsody*)
12981 lt_cv_deplibs_check_method=pass_all
12984 freebsd* | kfreebsd*-gnu | dragonfly*)
12985 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12986 case $host_cpu in
12987 i*86 )
12988 # Not sure whether the presence of OpenBSD here was a mistake.
12989 # Let's accept both of them until this is cleared up.
12990 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12991 lt_cv_file_magic_cmd=/usr/bin/file
12992 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12994 esac
12995 else
12996 lt_cv_deplibs_check_method=pass_all
13000 gnu*)
13001 lt_cv_deplibs_check_method=pass_all
13004 hpux10.20* | hpux11*)
13005 lt_cv_file_magic_cmd=/usr/bin/file
13006 case $host_cpu in
13007 ia64*)
13008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13009 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13011 hppa*64*)
13012 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]'
13013 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13017 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13019 esac
13022 interix3*)
13023 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13027 irix5* | irix6* | nonstopux*)
13028 case $LD in
13029 *-32|*"-32 ") libmagic=32-bit;;
13030 *-n32|*"-n32 ") libmagic=N32;;
13031 *-64|*"-64 ") libmagic=64-bit;;
13032 *) libmagic=never-match;;
13033 esac
13034 lt_cv_deplibs_check_method=pass_all
13037 # This must be Linux ELF.
13038 linux*)
13039 lt_cv_deplibs_check_method=pass_all
13042 netbsd*)
13043 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13045 else
13046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13050 newos6*)
13051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13052 lt_cv_file_magic_cmd=/usr/bin/file
13053 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13056 nto-qnx*)
13057 lt_cv_deplibs_check_method=unknown
13060 openbsd*)
13061 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13063 else
13064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13068 osf3* | osf4* | osf5*)
13069 lt_cv_deplibs_check_method=pass_all
13072 solaris*)
13073 lt_cv_deplibs_check_method=pass_all
13076 sysv4 | sysv4.3*)
13077 case $host_vendor in
13078 motorola)
13079 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]'
13080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13082 ncr)
13083 lt_cv_deplibs_check_method=pass_all
13085 sequent)
13086 lt_cv_file_magic_cmd='/bin/file'
13087 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13089 sni)
13090 lt_cv_file_magic_cmd='/bin/file'
13091 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13092 lt_cv_file_magic_test_file=/lib/libc.so
13094 siemens)
13095 lt_cv_deplibs_check_method=pass_all
13098 lt_cv_deplibs_check_method=pass_all
13100 esac
13103 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13104 lt_cv_deplibs_check_method=pass_all
13106 esac
13109 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13110 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13111 file_magic_cmd=$lt_cv_file_magic_cmd
13112 deplibs_check_method=$lt_cv_deplibs_check_method
13113 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13117 # If no C compiler was specified, use CC.
13118 LTCC=${LTCC-"$CC"}
13120 # If no C compiler flags were specified, use CFLAGS.
13121 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13123 # Allow CC to be a program name with arguments.
13124 compiler=$CC
13126 # Check whether --enable-libtool-lock was given.
13127 if test "${enable_libtool_lock+set}" = set; then
13128 enableval=$enable_libtool_lock;
13131 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13133 # Some flags need to be propagated to the compiler or linker for good
13134 # libtool support.
13135 case $host in
13136 ia64-*-hpux*)
13137 # Find out which ABI we are using.
13138 echo 'int i;' > conftest.$ac_ext
13139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13140 (eval $ac_compile) 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; then
13144 case `/usr/bin/file conftest.$ac_objext` in
13145 *ELF-32*)
13146 HPUX_IA64_MODE="32"
13148 *ELF-64*)
13149 HPUX_IA64_MODE="64"
13151 esac
13153 rm -rf conftest*
13155 *-*-irix6*)
13156 # Find out which ABI we are using.
13157 echo '#line 13157 "configure"' > conftest.$ac_ext
13158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13159 (eval $ac_compile) 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; then
13163 if test "$lt_cv_prog_gnu_ld" = yes; then
13164 case `/usr/bin/file conftest.$ac_objext` in
13165 *32-bit*)
13166 LD="${LD-ld} -melf32bsmip"
13168 *N32*)
13169 LD="${LD-ld} -melf32bmipn32"
13171 *64-bit*)
13172 LD="${LD-ld} -melf64bmip"
13174 esac
13175 else
13176 case `/usr/bin/file conftest.$ac_objext` in
13177 *32-bit*)
13178 LD="${LD-ld} -32"
13180 *N32*)
13181 LD="${LD-ld} -n32"
13183 *64-bit*)
13184 LD="${LD-ld} -64"
13186 esac
13189 rm -rf conftest*
13192 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13193 # Find out which ABI we are using.
13194 echo 'int i;' > conftest.$ac_ext
13195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13196 (eval $ac_compile) 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; then
13200 case `/usr/bin/file conftest.o` in
13201 *32-bit*)
13202 case $host in
13203 x86_64-*linux*)
13204 LD="${LD-ld} -m elf_i386"
13206 ppc64-*linux*|powerpc64-*linux*)
13207 LD="${LD-ld} -m elf32ppclinux"
13209 s390x-*linux*)
13210 LD="${LD-ld} -m elf_s390"
13212 sparc64-*linux*)
13213 LD="${LD-ld} -m elf32_sparc"
13215 esac
13217 *64-bit*)
13218 case $host in
13219 x86_64-*linux*)
13220 LD="${LD-ld} -m elf_x86_64"
13222 ppc*-*linux*|powerpc*-*linux*)
13223 LD="${LD-ld} -m elf64ppc"
13225 s390*-*linux*)
13226 LD="${LD-ld} -m elf64_s390"
13228 sparc*-*linux*)
13229 LD="${LD-ld} -m elf64_sparc"
13231 esac
13233 esac
13235 rm -rf conftest*
13238 *-*-sco3.2v5*)
13239 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13240 SAVE_CFLAGS="$CFLAGS"
13241 CFLAGS="$CFLAGS -belf"
13242 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13243 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13244 if test "${lt_cv_cc_needs_belf+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13246 else
13247 ac_ext=c
13248 ac_cpp='$CPP $CPPFLAGS'
13249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13253 cat >conftest.$ac_ext <<_ACEOF
13254 /* confdefs.h. */
13255 _ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13261 main ()
13265 return 0;
13267 _ACEOF
13268 rm -f conftest.$ac_objext conftest$ac_exeext
13269 if { (ac_try="$ac_link"
13270 case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13273 esac
13274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_link") 2>conftest.er1
13276 ac_status=$?
13277 grep -v '^ *+' conftest.er1 >conftest.err
13278 rm -f conftest.er1
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } &&
13282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13283 { (case "(($ac_try" in
13284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13286 esac
13287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288 (eval "$ac_try") 2>&5
13289 ac_status=$?
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; } &&
13292 { ac_try='test -s conftest$ac_exeext'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13296 esac
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13299 ac_status=$?
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; }; then
13302 lt_cv_cc_needs_belf=yes
13303 else
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13307 lt_cv_cc_needs_belf=no
13310 rm -f core conftest.err conftest.$ac_objext \
13311 conftest$ac_exeext conftest.$ac_ext
13312 ac_ext=c
13313 ac_cpp='$CPP $CPPFLAGS'
13314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13319 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13320 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13321 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13322 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13323 CFLAGS="$SAVE_CFLAGS"
13326 sparc*-*solaris*)
13327 # Find out which ABI we are using.
13328 echo 'int i;' > conftest.$ac_ext
13329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13330 (eval $ac_compile) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; then
13334 case `/usr/bin/file conftest.o` in
13335 *64-bit*)
13336 case $lt_cv_prog_gnu_ld in
13337 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13338 *) LD="${LD-ld} -64" ;;
13339 esac
13341 esac
13343 rm -rf conftest*
13347 esac
13349 need_locks="$enable_libtool_lock"
13354 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13355 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13356 (test "X$CXX" != "Xg++"))) ; then
13357 ac_ext=cpp
13358 ac_cpp='$CXXCPP $CPPFLAGS'
13359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13362 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13363 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13364 if test -z "$CXXCPP"; then
13365 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 else
13368 # Double quotes because CXXCPP needs to be expanded
13369 for CXXCPP in "$CXX -E" "/lib/cpp"
13371 ac_preproc_ok=false
13372 for ac_cxx_preproc_warn_flag in '' yes
13374 # Use a header file that comes with gcc, so configuring glibc
13375 # with a fresh cross-compiler works.
13376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13377 # <limits.h> exists even on freestanding compilers.
13378 # On the NeXT, cc -E runs the code through the compiler's parser,
13379 # not just through cpp. "Syntax error" is here to catch this case.
13380 cat >conftest.$ac_ext <<_ACEOF
13381 /* confdefs.h. */
13382 _ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h. */
13386 #ifdef __STDC__
13387 # include <limits.h>
13388 #else
13389 # include <assert.h>
13390 #endif
13391 Syntax error
13392 _ACEOF
13393 if { (ac_try="$ac_cpp conftest.$ac_ext"
13394 case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13397 esac
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13400 ac_status=$?
13401 grep -v '^ *+' conftest.er1 >conftest.err
13402 rm -f conftest.er1
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } >/dev/null; then
13406 if test -s conftest.err; then
13407 ac_cpp_err=$ac_cxx_preproc_warn_flag
13408 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13409 else
13410 ac_cpp_err=
13412 else
13413 ac_cpp_err=yes
13415 if test -z "$ac_cpp_err"; then
13417 else
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13421 # Broken: fails on valid input.
13422 continue
13425 rm -f conftest.err conftest.$ac_ext
13427 # OK, works on sane cases. Now check whether nonexistent headers
13428 # can be detected and how.
13429 cat >conftest.$ac_ext <<_ACEOF
13430 /* confdefs.h. */
13431 _ACEOF
13432 cat confdefs.h >>conftest.$ac_ext
13433 cat >>conftest.$ac_ext <<_ACEOF
13434 /* end confdefs.h. */
13435 #include <ac_nonexistent.h>
13436 _ACEOF
13437 if { (ac_try="$ac_cpp conftest.$ac_ext"
13438 case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13441 esac
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13444 ac_status=$?
13445 grep -v '^ *+' conftest.er1 >conftest.err
13446 rm -f conftest.er1
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } >/dev/null; then
13450 if test -s conftest.err; then
13451 ac_cpp_err=$ac_cxx_preproc_warn_flag
13452 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13453 else
13454 ac_cpp_err=
13456 else
13457 ac_cpp_err=yes
13459 if test -z "$ac_cpp_err"; then
13460 # Broken: success on invalid input.
13461 continue
13462 else
13463 echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13466 # Passes both tests.
13467 ac_preproc_ok=:
13468 break
13471 rm -f conftest.err conftest.$ac_ext
13473 done
13474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13475 rm -f conftest.err conftest.$ac_ext
13476 if $ac_preproc_ok; then
13477 break
13480 done
13481 ac_cv_prog_CXXCPP=$CXXCPP
13484 CXXCPP=$ac_cv_prog_CXXCPP
13485 else
13486 ac_cv_prog_CXXCPP=$CXXCPP
13488 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13489 echo "${ECHO_T}$CXXCPP" >&6; }
13490 ac_preproc_ok=false
13491 for ac_cxx_preproc_warn_flag in '' yes
13493 # Use a header file that comes with gcc, so configuring glibc
13494 # with a fresh cross-compiler works.
13495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13496 # <limits.h> exists even on freestanding compilers.
13497 # On the NeXT, cc -E runs the code through the compiler's parser,
13498 # not just through cpp. "Syntax error" is here to catch this case.
13499 cat >conftest.$ac_ext <<_ACEOF
13500 /* confdefs.h. */
13501 _ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13505 #ifdef __STDC__
13506 # include <limits.h>
13507 #else
13508 # include <assert.h>
13509 #endif
13510 Syntax error
13511 _ACEOF
13512 if { (ac_try="$ac_cpp conftest.$ac_ext"
13513 case "(($ac_try" in
13514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515 *) ac_try_echo=$ac_try;;
13516 esac
13517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13519 ac_status=$?
13520 grep -v '^ *+' conftest.er1 >conftest.err
13521 rm -f conftest.er1
13522 cat conftest.err >&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } >/dev/null; then
13525 if test -s conftest.err; then
13526 ac_cpp_err=$ac_cxx_preproc_warn_flag
13527 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13528 else
13529 ac_cpp_err=
13531 else
13532 ac_cpp_err=yes
13534 if test -z "$ac_cpp_err"; then
13536 else
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13540 # Broken: fails on valid input.
13541 continue
13544 rm -f conftest.err conftest.$ac_ext
13546 # OK, works on sane cases. Now check whether nonexistent headers
13547 # can be detected and how.
13548 cat >conftest.$ac_ext <<_ACEOF
13549 /* confdefs.h. */
13550 _ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h. */
13554 #include <ac_nonexistent.h>
13555 _ACEOF
13556 if { (ac_try="$ac_cpp conftest.$ac_ext"
13557 case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13560 esac
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13563 ac_status=$?
13564 grep -v '^ *+' conftest.er1 >conftest.err
13565 rm -f conftest.er1
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } >/dev/null; then
13569 if test -s conftest.err; then
13570 ac_cpp_err=$ac_cxx_preproc_warn_flag
13571 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13572 else
13573 ac_cpp_err=
13575 else
13576 ac_cpp_err=yes
13578 if test -z "$ac_cpp_err"; then
13579 # Broken: success on invalid input.
13580 continue
13581 else
13582 echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13585 # Passes both tests.
13586 ac_preproc_ok=:
13587 break
13590 rm -f conftest.err conftest.$ac_ext
13592 done
13593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13594 rm -f conftest.err conftest.$ac_ext
13595 if $ac_preproc_ok; then
13597 else
13598 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13599 See \`config.log' for more details." >&5
13600 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13601 See \`config.log' for more details." >&2;}
13602 { (exit 1); exit 1; }; }
13605 ac_ext=cpp
13606 ac_cpp='$CXXCPP $CPPFLAGS'
13607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13614 ac_ext=f
13615 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13616 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13617 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13618 if test -n "$ac_tool_prefix"; then
13619 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13622 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13625 if test "${ac_cv_prog_F77+set}" = set; then
13626 echo $ECHO_N "(cached) $ECHO_C" >&6
13627 else
13628 if test -n "$F77"; then
13629 ac_cv_prog_F77="$F77" # Let the user override the test.
13630 else
13631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13632 for as_dir in $PATH
13634 IFS=$as_save_IFS
13635 test -z "$as_dir" && as_dir=.
13636 for ac_exec_ext in '' $ac_executable_extensions; do
13637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13638 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13640 break 2
13642 done
13643 done
13644 IFS=$as_save_IFS
13648 F77=$ac_cv_prog_F77
13649 if test -n "$F77"; then
13650 { echo "$as_me:$LINENO: result: $F77" >&5
13651 echo "${ECHO_T}$F77" >&6; }
13652 else
13653 { echo "$as_me:$LINENO: result: no" >&5
13654 echo "${ECHO_T}no" >&6; }
13658 test -n "$F77" && break
13659 done
13661 if test -z "$F77"; then
13662 ac_ct_F77=$F77
13663 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13665 # Extract the first word of "$ac_prog", so it can be a program name with args.
13666 set dummy $ac_prog; ac_word=$2
13667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13669 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 else
13672 if test -n "$ac_ct_F77"; then
13673 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13674 else
13675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676 for as_dir in $PATH
13678 IFS=$as_save_IFS
13679 test -z "$as_dir" && as_dir=.
13680 for ac_exec_ext in '' $ac_executable_extensions; do
13681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13682 ac_cv_prog_ac_ct_F77="$ac_prog"
13683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13684 break 2
13686 done
13687 done
13688 IFS=$as_save_IFS
13692 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13693 if test -n "$ac_ct_F77"; then
13694 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13695 echo "${ECHO_T}$ac_ct_F77" >&6; }
13696 else
13697 { echo "$as_me:$LINENO: result: no" >&5
13698 echo "${ECHO_T}no" >&6; }
13702 test -n "$ac_ct_F77" && break
13703 done
13705 if test "x$ac_ct_F77" = x; then
13706 F77=""
13707 else
13708 case $cross_compiling:$ac_tool_warned in
13709 yes:)
13710 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13711 whose name does not start with the host triplet. If you think this
13712 configuration is useful to you, please write to autoconf@gnu.org." >&5
13713 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13714 whose name does not start with the host triplet. If you think this
13715 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13716 ac_tool_warned=yes ;;
13717 esac
13718 F77=$ac_ct_F77
13723 # Provide some information about the compiler.
13724 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13725 ac_compiler=`set X $ac_compile; echo $2`
13726 { (ac_try="$ac_compiler --version >&5"
13727 case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730 esac
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_compiler --version >&5") 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }
13736 { (ac_try="$ac_compiler -v >&5"
13737 case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13740 esac
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_compiler -v >&5") 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }
13746 { (ac_try="$ac_compiler -V >&5"
13747 case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13750 esac
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_compiler -V >&5") 2>&5
13753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }
13756 rm -f a.out
13758 # If we don't use `.F' as extension, the preprocessor is not run on the
13759 # input file. (Note that this only needs to work for GNU compilers.)
13760 ac_save_ext=$ac_ext
13761 ac_ext=F
13762 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13763 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13764 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13766 else
13767 cat >conftest.$ac_ext <<_ACEOF
13768 program main
13769 #ifndef __GNUC__
13770 choke me
13771 #endif
13774 _ACEOF
13775 rm -f conftest.$ac_objext
13776 if { (ac_try="$ac_compile"
13777 case "(($ac_try" in
13778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779 *) ac_try_echo=$ac_try;;
13780 esac
13781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13782 (eval "$ac_compile") 2>conftest.er1
13783 ac_status=$?
13784 grep -v '^ *+' conftest.er1 >conftest.err
13785 rm -f conftest.er1
13786 cat conftest.err >&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } &&
13789 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13790 { (case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13793 esac
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_try") 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; } &&
13799 { ac_try='test -s conftest.$ac_objext'
13800 { (case "(($ac_try" in
13801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802 *) ac_try_echo=$ac_try;;
13803 esac
13804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805 (eval "$ac_try") 2>&5
13806 ac_status=$?
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; }; then
13809 ac_compiler_gnu=yes
13810 else
13811 echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.$ac_ext >&5
13814 ac_compiler_gnu=no
13817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13818 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13821 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13822 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13823 ac_ext=$ac_save_ext
13824 ac_test_FFLAGS=${FFLAGS+set}
13825 ac_save_FFLAGS=$FFLAGS
13826 FFLAGS=
13827 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13828 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13829 if test "${ac_cv_prog_f77_g+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 else
13832 FFLAGS=-g
13833 cat >conftest.$ac_ext <<_ACEOF
13834 program main
13837 _ACEOF
13838 rm -f conftest.$ac_objext
13839 if { (ac_try="$ac_compile"
13840 case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13843 esac
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_compile") 2>conftest.er1
13846 ac_status=$?
13847 grep -v '^ *+' conftest.er1 >conftest.err
13848 rm -f conftest.er1
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
13852 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13853 { (case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13856 esac
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_try") 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; } &&
13862 { ac_try='test -s conftest.$ac_objext'
13863 { (case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13866 esac
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_try") 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
13872 ac_cv_prog_f77_g=yes
13873 else
13874 echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13877 ac_cv_prog_f77_g=no
13880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13883 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13884 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13885 if test "$ac_test_FFLAGS" = set; then
13886 FFLAGS=$ac_save_FFLAGS
13887 elif test $ac_cv_prog_f77_g = yes; then
13888 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13889 FFLAGS="-g -O2"
13890 else
13891 FFLAGS="-g"
13893 else
13894 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13895 FFLAGS="-O2"
13896 else
13897 FFLAGS=
13901 G77=`test $ac_compiler_gnu = yes && echo yes`
13902 ac_ext=c
13903 ac_cpp='$CPP $CPPFLAGS'
13904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13910 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13912 # find the maximum length of command line arguments
13913 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13914 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13915 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 else
13919 teststring="ABCD"
13921 case $build_os in
13922 msdosdjgpp*)
13923 # On DJGPP, this test can blow up pretty badly due to problems in libc
13924 # (any single argument exceeding 2000 bytes causes a buffer overrun
13925 # during glob expansion). Even if it were fixed, the result of this
13926 # check would be larger than it should be.
13927 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13930 gnu*)
13931 # Under GNU Hurd, this test is not required because there is
13932 # no limit to the length of command line arguments.
13933 # Libtool will interpret -1 as no limit whatsoever
13934 lt_cv_sys_max_cmd_len=-1;
13937 cygwin* | mingw*)
13938 # On Win9x/ME, this test blows up -- it succeeds, but takes
13939 # about 5 minutes as the teststring grows exponentially.
13940 # Worse, since 9x/ME are not pre-emptively multitasking,
13941 # you end up with a "frozen" computer, even though with patience
13942 # the test eventually succeeds (with a max line length of 256k).
13943 # Instead, let's just punt: use the minimum linelength reported by
13944 # all of the supported platforms: 8192 (on NT/2K/XP).
13945 lt_cv_sys_max_cmd_len=8192;
13948 amigaos*)
13949 # On AmigaOS with pdksh, this test takes hours, literally.
13950 # So we just punt and use a minimum line length of 8192.
13951 lt_cv_sys_max_cmd_len=8192;
13954 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13955 # This has been around since 386BSD, at least. Likely further.
13956 if test -x /sbin/sysctl; then
13957 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13958 elif test -x /usr/sbin/sysctl; then
13959 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13960 else
13961 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13963 # And add a safety zone
13964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13968 interix*)
13969 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13970 lt_cv_sys_max_cmd_len=196608
13973 osf*)
13974 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13975 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13976 # nice to cause kernel panics so lets avoid the loop below.
13977 # First set a reasonable default.
13978 lt_cv_sys_max_cmd_len=16384
13980 if test -x /sbin/sysconfig; then
13981 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13982 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13983 esac
13986 sco3.2v5*)
13987 lt_cv_sys_max_cmd_len=102400
13989 sysv5* | sco5v6* | sysv4.2uw2*)
13990 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13991 if test -n "$kargmax"; then
13992 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13993 else
13994 lt_cv_sys_max_cmd_len=32768
13998 # If test is not a shell built-in, we'll probably end up computing a
13999 # maximum length that is only half of the actual maximum length, but
14000 # we can't tell.
14001 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14002 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14003 = "XX$teststring") >/dev/null 2>&1 &&
14004 new_result=`expr "X$teststring" : ".*" 2>&1` &&
14005 lt_cv_sys_max_cmd_len=$new_result &&
14006 test $i != 17 # 1/2 MB should be enough
14008 i=`expr $i + 1`
14009 teststring=$teststring$teststring
14010 done
14011 teststring=
14012 # Add a significant safety factor because C++ compilers can tack on massive
14013 # amounts of additional arguments before passing them to the linker.
14014 # It appears as though 1/2 is a usable value.
14015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14017 esac
14021 if test -n $lt_cv_sys_max_cmd_len ; then
14022 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14023 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14024 else
14025 { echo "$as_me:$LINENO: result: none" >&5
14026 echo "${ECHO_T}none" >&6; }
14032 # Check for command to grab the raw symbol name followed by C symbol from nm.
14033 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14034 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14035 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 else
14039 # These are sane defaults that work on at least a few old systems.
14040 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14042 # Character class describing NM global symbol codes.
14043 symcode='[BCDEGRST]'
14045 # Regexp to match symbols that can be accessed directly from C.
14046 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14048 # Transform an extracted symbol line into a proper C declaration
14049 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14051 # Transform an extracted symbol line into symbol name and symbol address
14052 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'"
14054 # Define system-specific variables.
14055 case $host_os in
14056 aix*)
14057 symcode='[BCDT]'
14059 cygwin* | mingw* | pw32*)
14060 symcode='[ABCDGISTW]'
14062 hpux*) # Its linker distinguishes data from code symbols
14063 if test "$host_cpu" = ia64; then
14064 symcode='[ABCDEGRST]'
14066 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14067 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'"
14069 linux*)
14070 if test "$host_cpu" = ia64; then
14071 symcode='[ABCDGIRSTW]'
14072 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14073 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'"
14076 irix* | nonstopux*)
14077 symcode='[BCDEGRST]'
14079 osf*)
14080 symcode='[BCDEGQRST]'
14082 solaris*)
14083 symcode='[BDRT]'
14085 sco3.2v5*)
14086 symcode='[DT]'
14088 sysv4.2uw2*)
14089 symcode='[DT]'
14091 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14092 symcode='[ABDT]'
14094 sysv4)
14095 symcode='[DFNSTU]'
14097 esac
14099 # Handle CRLF in mingw tool chain
14100 opt_cr=
14101 case $build_os in
14102 mingw*)
14103 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14105 esac
14107 # If we're using GNU nm, then use its standard symbol codes.
14108 case `$NM -V 2>&1` in
14109 *GNU* | *'with BFD'*)
14110 symcode='[ABCDGIRSTW]' ;;
14111 esac
14113 # Try without a prefix undercore, then with it.
14114 for ac_symprfx in "" "_"; do
14116 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14117 symxfrm="\\1 $ac_symprfx\\2 \\2"
14119 # Write the raw and C identifiers.
14120 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14122 # Check to see that the pipe works correctly.
14123 pipe_works=no
14125 rm -f conftest*
14126 cat > conftest.$ac_ext <<EOF
14127 #ifdef __cplusplus
14128 extern "C" {
14129 #endif
14130 char nm_test_var;
14131 void nm_test_func(){}
14132 #ifdef __cplusplus
14134 #endif
14135 int main(){nm_test_var='a';nm_test_func();return(0);}
14138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14139 (eval $ac_compile) 2>&5
14140 ac_status=$?
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; then
14143 # Now try to grab the symbols.
14144 nlist=conftest.nm
14145 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14146 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } && test -s "$nlist"; then
14150 # Try sorting and uniquifying the output.
14151 if sort "$nlist" | uniq > "$nlist"T; then
14152 mv -f "$nlist"T "$nlist"
14153 else
14154 rm -f "$nlist"T
14157 # Make sure that we snagged all the symbols we need.
14158 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14159 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14160 cat <<EOF > conftest.$ac_ext
14161 #ifdef __cplusplus
14162 extern "C" {
14163 #endif
14166 # Now generate the symbol file.
14167 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14169 cat <<EOF >> conftest.$ac_ext
14170 #if defined (__STDC__) && __STDC__
14171 # define lt_ptr_t void *
14172 #else
14173 # define lt_ptr_t char *
14174 # define const
14175 #endif
14177 /* The mapping between symbol names and symbols. */
14178 const struct {
14179 const char *name;
14180 lt_ptr_t address;
14182 lt_preloaded_symbols[] =
14185 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14186 cat <<\EOF >> conftest.$ac_ext
14187 {0, (lt_ptr_t) 0}
14190 #ifdef __cplusplus
14192 #endif
14194 # Now try linking the two files.
14195 mv conftest.$ac_objext conftstm.$ac_objext
14196 lt_save_LIBS="$LIBS"
14197 lt_save_CFLAGS="$CFLAGS"
14198 LIBS="conftstm.$ac_objext"
14199 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14201 (eval $ac_link) 2>&5
14202 ac_status=$?
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14205 pipe_works=yes
14207 LIBS="$lt_save_LIBS"
14208 CFLAGS="$lt_save_CFLAGS"
14209 else
14210 echo "cannot find nm_test_func in $nlist" >&5
14212 else
14213 echo "cannot find nm_test_var in $nlist" >&5
14215 else
14216 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14218 else
14219 echo "$progname: failed program was:" >&5
14220 cat conftest.$ac_ext >&5
14222 rm -f conftest* conftst*
14224 # Do not use the global_symbol_pipe unless it works.
14225 if test "$pipe_works" = yes; then
14226 break
14227 else
14228 lt_cv_sys_global_symbol_pipe=
14230 done
14234 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14235 lt_cv_sys_global_symbol_to_cdecl=
14237 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14238 { echo "$as_me:$LINENO: result: failed" >&5
14239 echo "${ECHO_T}failed" >&6; }
14240 else
14241 { echo "$as_me:$LINENO: result: ok" >&5
14242 echo "${ECHO_T}ok" >&6; }
14245 { echo "$as_me:$LINENO: checking for objdir" >&5
14246 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14247 if test "${lt_cv_objdir+set}" = set; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14249 else
14250 rm -f .libs 2>/dev/null
14251 mkdir .libs 2>/dev/null
14252 if test -d .libs; then
14253 lt_cv_objdir=.libs
14254 else
14255 # MS-DOS does not allow filenames that begin with a dot.
14256 lt_cv_objdir=_libs
14258 rmdir .libs 2>/dev/null
14260 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14261 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14262 objdir=$lt_cv_objdir
14268 case $host_os in
14269 aix3*)
14270 # AIX sometimes has problems with the GCC collect2 program. For some
14271 # reason, if we set the COLLECT_NAMES environment variable, the problems
14272 # vanish in a puff of smoke.
14273 if test "X${COLLECT_NAMES+set}" != Xset; then
14274 COLLECT_NAMES=
14275 export COLLECT_NAMES
14278 esac
14280 # Sed substitution that helps us do robust quoting. It backslashifies
14281 # metacharacters that are still active within double-quoted strings.
14282 Xsed='sed -e 1s/^X//'
14283 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14285 # Same as above, but do not quote variable references.
14286 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14288 # Sed substitution to delay expansion of an escaped shell variable in a
14289 # double_quote_subst'ed string.
14290 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14292 # Sed substitution to avoid accidental globbing in evaled expressions
14293 no_glob_subst='s/\*/\\\*/g'
14295 # Constants:
14296 rm="rm -f"
14298 # Global variables:
14299 default_ofile=mklib
14300 can_build_shared=yes
14302 # All known linkers require a `.a' archive for static linking (except MSVC,
14303 # which needs '.lib').
14304 libext=a
14305 ltmain="$ac_aux_dir/ltmain.sh"
14306 ofile="$default_ofile"
14307 with_gnu_ld="$lt_cv_prog_gnu_ld"
14309 if test -n "$ac_tool_prefix"; then
14310 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14311 set dummy ${ac_tool_prefix}ar; ac_word=$2
14312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14314 if test "${ac_cv_prog_AR+set}" = set; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 else
14317 if test -n "$AR"; then
14318 ac_cv_prog_AR="$AR" # Let the user override the test.
14319 else
14320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14321 for as_dir in $PATH
14323 IFS=$as_save_IFS
14324 test -z "$as_dir" && as_dir=.
14325 for ac_exec_ext in '' $ac_executable_extensions; do
14326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14327 ac_cv_prog_AR="${ac_tool_prefix}ar"
14328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14329 break 2
14331 done
14332 done
14333 IFS=$as_save_IFS
14337 AR=$ac_cv_prog_AR
14338 if test -n "$AR"; then
14339 { echo "$as_me:$LINENO: result: $AR" >&5
14340 echo "${ECHO_T}$AR" >&6; }
14341 else
14342 { echo "$as_me:$LINENO: result: no" >&5
14343 echo "${ECHO_T}no" >&6; }
14348 if test -z "$ac_cv_prog_AR"; then
14349 ac_ct_AR=$AR
14350 # Extract the first word of "ar", so it can be a program name with args.
14351 set dummy ar; ac_word=$2
14352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14354 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14356 else
14357 if test -n "$ac_ct_AR"; then
14358 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14359 else
14360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14361 for as_dir in $PATH
14363 IFS=$as_save_IFS
14364 test -z "$as_dir" && as_dir=.
14365 for ac_exec_ext in '' $ac_executable_extensions; do
14366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14367 ac_cv_prog_ac_ct_AR="ar"
14368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14369 break 2
14371 done
14372 done
14373 IFS=$as_save_IFS
14377 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14378 if test -n "$ac_ct_AR"; then
14379 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14380 echo "${ECHO_T}$ac_ct_AR" >&6; }
14381 else
14382 { echo "$as_me:$LINENO: result: no" >&5
14383 echo "${ECHO_T}no" >&6; }
14386 if test "x$ac_ct_AR" = x; then
14387 AR="false"
14388 else
14389 case $cross_compiling:$ac_tool_warned in
14390 yes:)
14391 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14392 whose name does not start with the host triplet. If you think this
14393 configuration is useful to you, please write to autoconf@gnu.org." >&5
14394 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14395 whose name does not start with the host triplet. If you think this
14396 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14397 ac_tool_warned=yes ;;
14398 esac
14399 AR=$ac_ct_AR
14401 else
14402 AR="$ac_cv_prog_AR"
14405 if test -n "$ac_tool_prefix"; then
14406 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14407 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14410 if test "${ac_cv_prog_RANLIB+set}" = set; then
14411 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 else
14413 if test -n "$RANLIB"; then
14414 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14415 else
14416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14417 for as_dir in $PATH
14419 IFS=$as_save_IFS
14420 test -z "$as_dir" && as_dir=.
14421 for ac_exec_ext in '' $ac_executable_extensions; do
14422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14423 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14425 break 2
14427 done
14428 done
14429 IFS=$as_save_IFS
14433 RANLIB=$ac_cv_prog_RANLIB
14434 if test -n "$RANLIB"; then
14435 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14436 echo "${ECHO_T}$RANLIB" >&6; }
14437 else
14438 { echo "$as_me:$LINENO: result: no" >&5
14439 echo "${ECHO_T}no" >&6; }
14444 if test -z "$ac_cv_prog_RANLIB"; then
14445 ac_ct_RANLIB=$RANLIB
14446 # Extract the first word of "ranlib", so it can be a program name with args.
14447 set dummy ranlib; ac_word=$2
14448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14450 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14451 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 else
14453 if test -n "$ac_ct_RANLIB"; then
14454 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14455 else
14456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14457 for as_dir in $PATH
14459 IFS=$as_save_IFS
14460 test -z "$as_dir" && as_dir=.
14461 for ac_exec_ext in '' $ac_executable_extensions; do
14462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14463 ac_cv_prog_ac_ct_RANLIB="ranlib"
14464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14465 break 2
14467 done
14468 done
14469 IFS=$as_save_IFS
14473 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14474 if test -n "$ac_ct_RANLIB"; then
14475 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14476 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14477 else
14478 { echo "$as_me:$LINENO: result: no" >&5
14479 echo "${ECHO_T}no" >&6; }
14482 if test "x$ac_ct_RANLIB" = x; then
14483 RANLIB=":"
14484 else
14485 case $cross_compiling:$ac_tool_warned in
14486 yes:)
14487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14488 whose name does not start with the host triplet. If you think this
14489 configuration is useful to you, please write to autoconf@gnu.org." >&5
14490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14491 whose name does not start with the host triplet. If you think this
14492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14493 ac_tool_warned=yes ;;
14494 esac
14495 RANLIB=$ac_ct_RANLIB
14497 else
14498 RANLIB="$ac_cv_prog_RANLIB"
14501 if test -n "$ac_tool_prefix"; then
14502 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14503 set dummy ${ac_tool_prefix}strip; ac_word=$2
14504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14506 if test "${ac_cv_prog_STRIP+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 else
14509 if test -n "$STRIP"; then
14510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14511 else
14512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14513 for as_dir in $PATH
14515 IFS=$as_save_IFS
14516 test -z "$as_dir" && as_dir=.
14517 for ac_exec_ext in '' $ac_executable_extensions; do
14518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14519 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14521 break 2
14523 done
14524 done
14525 IFS=$as_save_IFS
14529 STRIP=$ac_cv_prog_STRIP
14530 if test -n "$STRIP"; then
14531 { echo "$as_me:$LINENO: result: $STRIP" >&5
14532 echo "${ECHO_T}$STRIP" >&6; }
14533 else
14534 { echo "$as_me:$LINENO: result: no" >&5
14535 echo "${ECHO_T}no" >&6; }
14540 if test -z "$ac_cv_prog_STRIP"; then
14541 ac_ct_STRIP=$STRIP
14542 # Extract the first word of "strip", so it can be a program name with args.
14543 set dummy strip; ac_word=$2
14544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14546 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14548 else
14549 if test -n "$ac_ct_STRIP"; then
14550 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14551 else
14552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14553 for as_dir in $PATH
14555 IFS=$as_save_IFS
14556 test -z "$as_dir" && as_dir=.
14557 for ac_exec_ext in '' $ac_executable_extensions; do
14558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14559 ac_cv_prog_ac_ct_STRIP="strip"
14560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14561 break 2
14563 done
14564 done
14565 IFS=$as_save_IFS
14569 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14570 if test -n "$ac_ct_STRIP"; then
14571 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14572 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14573 else
14574 { echo "$as_me:$LINENO: result: no" >&5
14575 echo "${ECHO_T}no" >&6; }
14578 if test "x$ac_ct_STRIP" = x; then
14579 STRIP=":"
14580 else
14581 case $cross_compiling:$ac_tool_warned in
14582 yes:)
14583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14584 whose name does not start with the host triplet. If you think this
14585 configuration is useful to you, please write to autoconf@gnu.org." >&5
14586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14587 whose name does not start with the host triplet. If you think this
14588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14589 ac_tool_warned=yes ;;
14590 esac
14591 STRIP=$ac_ct_STRIP
14593 else
14594 STRIP="$ac_cv_prog_STRIP"
14598 old_CC="$CC"
14599 old_CFLAGS="$CFLAGS"
14601 # Set sane defaults for various variables
14602 test -z "$AR" && AR=ar
14603 test -z "$AR_FLAGS" && AR_FLAGS=cru
14604 test -z "$AS" && AS=as
14605 test -z "$CC" && CC=cc
14606 test -z "$LTCC" && LTCC=$CC
14607 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14608 test -z "$DLLTOOL" && DLLTOOL=dlltool
14609 test -z "$LD" && LD=ld
14610 test -z "$LN_S" && LN_S="ln -s"
14611 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14612 test -z "$NM" && NM=nm
14613 test -z "$SED" && SED=sed
14614 test -z "$OBJDUMP" && OBJDUMP=objdump
14615 test -z "$RANLIB" && RANLIB=:
14616 test -z "$STRIP" && STRIP=:
14617 test -z "$ac_objext" && ac_objext=o
14619 # Determine commands to create old-style static archives.
14620 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14621 old_postinstall_cmds='chmod 644 $oldlib'
14622 old_postuninstall_cmds=
14624 if test -n "$RANLIB"; then
14625 case $host_os in
14626 openbsd*)
14627 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14630 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14632 esac
14633 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14636 for cc_temp in $compiler""; do
14637 case $cc_temp in
14638 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14639 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14640 \-*) ;;
14641 *) break;;
14642 esac
14643 done
14644 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14647 # Only perform the check for file, if the check method requires it
14648 case $deplibs_check_method in
14649 file_magic*)
14650 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14651 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14652 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14653 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14654 echo $ECHO_N "(cached) $ECHO_C" >&6
14655 else
14656 case $MAGIC_CMD in
14657 [\\/*] | ?:[\\/]*)
14658 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14661 lt_save_MAGIC_CMD="$MAGIC_CMD"
14662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14663 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14664 for ac_dir in $ac_dummy; do
14665 IFS="$lt_save_ifs"
14666 test -z "$ac_dir" && ac_dir=.
14667 if test -f $ac_dir/${ac_tool_prefix}file; then
14668 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14669 if test -n "$file_magic_test_file"; then
14670 case $deplibs_check_method in
14671 "file_magic "*)
14672 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14675 $EGREP "$file_magic_regex" > /dev/null; then
14677 else
14678 cat <<EOF 1>&2
14680 *** Warning: the command libtool uses to detect shared libraries,
14681 *** $file_magic_cmd, produces output that libtool cannot recognize.
14682 *** The result is that libtool may fail to recognize shared libraries
14683 *** as such. This will affect the creation of libtool libraries that
14684 *** depend on shared libraries, but programs linked with such libtool
14685 *** libraries will work regardless of this problem. Nevertheless, you
14686 *** may want to report the problem to your system manager and/or to
14687 *** bug-libtool@gnu.org
14690 fi ;;
14691 esac
14693 break
14695 done
14696 IFS="$lt_save_ifs"
14697 MAGIC_CMD="$lt_save_MAGIC_CMD"
14699 esac
14702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14703 if test -n "$MAGIC_CMD"; then
14704 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14705 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14706 else
14707 { echo "$as_me:$LINENO: result: no" >&5
14708 echo "${ECHO_T}no" >&6; }
14711 if test -z "$lt_cv_path_MAGIC_CMD"; then
14712 if test -n "$ac_tool_prefix"; then
14713 { echo "$as_me:$LINENO: checking for file" >&5
14714 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14715 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718 case $MAGIC_CMD in
14719 [\\/*] | ?:[\\/]*)
14720 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14723 lt_save_MAGIC_CMD="$MAGIC_CMD"
14724 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14725 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14726 for ac_dir in $ac_dummy; do
14727 IFS="$lt_save_ifs"
14728 test -z "$ac_dir" && ac_dir=.
14729 if test -f $ac_dir/file; then
14730 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14731 if test -n "$file_magic_test_file"; then
14732 case $deplibs_check_method in
14733 "file_magic "*)
14734 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14735 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14736 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14737 $EGREP "$file_magic_regex" > /dev/null; then
14739 else
14740 cat <<EOF 1>&2
14742 *** Warning: the command libtool uses to detect shared libraries,
14743 *** $file_magic_cmd, produces output that libtool cannot recognize.
14744 *** The result is that libtool may fail to recognize shared libraries
14745 *** as such. This will affect the creation of libtool libraries that
14746 *** depend on shared libraries, but programs linked with such libtool
14747 *** libraries will work regardless of this problem. Nevertheless, you
14748 *** may want to report the problem to your system manager and/or to
14749 *** bug-libtool@gnu.org
14752 fi ;;
14753 esac
14755 break
14757 done
14758 IFS="$lt_save_ifs"
14759 MAGIC_CMD="$lt_save_MAGIC_CMD"
14761 esac
14764 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14765 if test -n "$MAGIC_CMD"; then
14766 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14767 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14768 else
14769 { echo "$as_me:$LINENO: result: no" >&5
14770 echo "${ECHO_T}no" >&6; }
14773 else
14774 MAGIC_CMD=:
14780 esac
14782 enable_dlopen=yes
14783 enable_win32_dll=no
14785 # Check whether --enable-libtool-lock was given.
14786 if test "${enable_libtool_lock+set}" = set; then
14787 enableval=$enable_libtool_lock;
14790 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14793 # Check whether --with-pic was given.
14794 if test "${with_pic+set}" = set; then
14795 withval=$with_pic; pic_mode="$withval"
14796 else
14797 pic_mode=default
14800 test -z "$pic_mode" && pic_mode=default
14802 # Use C for the default configuration in the libtool script
14803 tagname=
14804 lt_save_CC="$CC"
14805 ac_ext=c
14806 ac_cpp='$CPP $CPPFLAGS'
14807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14812 # Source file extension for C test sources.
14813 ac_ext=c
14815 # Object file extension for compiled C test sources.
14816 objext=o
14817 objext=$objext
14819 # Code to be used in simple compile tests
14820 lt_simple_compile_test_code="int some_variable = 0;\n"
14822 # Code to be used in simple link tests
14823 lt_simple_link_test_code='int main(){return(0);}\n'
14826 # If no C compiler was specified, use CC.
14827 LTCC=${LTCC-"$CC"}
14829 # If no C compiler flags were specified, use CFLAGS.
14830 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14832 # Allow CC to be a program name with arguments.
14833 compiler=$CC
14836 # save warnings/boilerplate of simple test code
14837 ac_outfile=conftest.$ac_objext
14838 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14839 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14840 _lt_compiler_boilerplate=`cat conftest.err`
14841 $rm conftest*
14843 ac_outfile=conftest.$ac_objext
14844 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14845 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14846 _lt_linker_boilerplate=`cat conftest.err`
14847 $rm conftest*
14851 lt_prog_compiler_no_builtin_flag=
14853 if test "$GCC" = yes; then
14854 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14857 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14858 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14859 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14861 else
14862 lt_cv_prog_compiler_rtti_exceptions=no
14863 ac_outfile=conftest.$ac_objext
14864 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14865 lt_compiler_flag="-fno-rtti -fno-exceptions"
14866 # Insert the option either (1) after the last *FLAGS variable, or
14867 # (2) before a word containing "conftest.", or (3) at the end.
14868 # Note that $ac_compile itself does not contain backslashes and begins
14869 # with a dollar sign (not a hyphen), so the echo should work correctly.
14870 # The option is referenced via a variable to avoid confusing sed.
14871 lt_compile=`echo "$ac_compile" | $SED \
14872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14874 -e 's:$: $lt_compiler_flag:'`
14875 (eval echo "\"\$as_me:14875: $lt_compile\"" >&5)
14876 (eval "$lt_compile" 2>conftest.err)
14877 ac_status=$?
14878 cat conftest.err >&5
14879 echo "$as_me:14879: \$? = $ac_status" >&5
14880 if (exit $ac_status) && test -s "$ac_outfile"; then
14881 # The compiler can only warn and ignore the option if not recognized
14882 # So say no if there are warnings other than the usual output.
14883 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14885 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14886 lt_cv_prog_compiler_rtti_exceptions=yes
14889 $rm conftest*
14892 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14893 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14895 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14896 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14897 else
14903 lt_prog_compiler_wl=
14904 lt_prog_compiler_pic=
14905 lt_prog_compiler_static=
14907 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14908 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14910 if test "$GCC" = yes; then
14911 lt_prog_compiler_wl='-Wl,'
14912 lt_prog_compiler_static='-static'
14914 case $host_os in
14915 aix*)
14916 # All AIX code is PIC.
14917 if test "$host_cpu" = ia64; then
14918 # AIX 5 now supports IA64 processor
14919 lt_prog_compiler_static='-Bstatic'
14923 amigaos*)
14924 # FIXME: we need at least 68020 code to build shared libraries, but
14925 # adding the `-m68020' flag to GCC prevents building anything better,
14926 # like `-m68040'.
14927 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14930 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14931 # PIC is the default for these OSes.
14934 mingw* | pw32* | os2*)
14935 # This hack is so that the source file can tell whether it is being
14936 # built for inclusion in a dll (and should export symbols for example).
14937 lt_prog_compiler_pic='-DDLL_EXPORT'
14940 darwin* | rhapsody*)
14941 # PIC is the default on this platform
14942 # Common symbols not allowed in MH_DYLIB files
14943 lt_prog_compiler_pic='-fno-common'
14946 interix3*)
14947 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14948 # Instead, we relocate shared libraries at runtime.
14951 msdosdjgpp*)
14952 # Just because we use GCC doesn't mean we suddenly get shared libraries
14953 # on systems that don't support them.
14954 lt_prog_compiler_can_build_shared=no
14955 enable_shared=no
14958 sysv4*MP*)
14959 if test -d /usr/nec; then
14960 lt_prog_compiler_pic=-Kconform_pic
14964 hpux*)
14965 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14966 # not for PA HP-UX.
14967 case $host_cpu in
14968 hppa*64*|ia64*)
14969 # +Z the default
14972 lt_prog_compiler_pic='-fPIC'
14974 esac
14978 lt_prog_compiler_pic='-fPIC'
14980 esac
14981 else
14982 # PORTME Check for flag to pass linker flags through the system compiler.
14983 case $host_os in
14984 aix*)
14985 lt_prog_compiler_wl='-Wl,'
14986 if test "$host_cpu" = ia64; then
14987 # AIX 5 now supports IA64 processor
14988 lt_prog_compiler_static='-Bstatic'
14989 else
14990 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14993 darwin*)
14994 # PIC is the default on this platform
14995 # Common symbols not allowed in MH_DYLIB files
14996 case $cc_basename in
14997 xlc*)
14998 lt_prog_compiler_pic='-qnocommon'
14999 lt_prog_compiler_wl='-Wl,'
15001 esac
15004 mingw* | pw32* | os2*)
15005 # This hack is so that the source file can tell whether it is being
15006 # built for inclusion in a dll (and should export symbols for example).
15007 lt_prog_compiler_pic='-DDLL_EXPORT'
15010 hpux9* | hpux10* | hpux11*)
15011 lt_prog_compiler_wl='-Wl,'
15012 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15013 # not for PA HP-UX.
15014 case $host_cpu in
15015 hppa*64*|ia64*)
15016 # +Z the default
15019 lt_prog_compiler_pic='+Z'
15021 esac
15022 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15023 lt_prog_compiler_static='${wl}-a ${wl}archive'
15026 irix5* | irix6* | nonstopux*)
15027 lt_prog_compiler_wl='-Wl,'
15028 # PIC (with -KPIC) is the default.
15029 lt_prog_compiler_static='-non_shared'
15032 newsos6)
15033 lt_prog_compiler_pic='-KPIC'
15034 lt_prog_compiler_static='-Bstatic'
15037 linux*)
15038 case $cc_basename in
15039 icc* | ecc*)
15040 lt_prog_compiler_wl='-Wl,'
15041 lt_prog_compiler_pic='-KPIC'
15042 lt_prog_compiler_static='-static'
15044 pgcc* | pgf77* | pgf90* | pgf95*)
15045 # Portland Group compilers (*not* the Pentium gcc compiler,
15046 # which looks to be a dead project)
15047 lt_prog_compiler_wl='-Wl,'
15048 lt_prog_compiler_pic='-fpic'
15049 lt_prog_compiler_static='-Bstatic'
15051 ccc*)
15052 lt_prog_compiler_wl='-Wl,'
15053 # All Alpha code is PIC.
15054 lt_prog_compiler_static='-non_shared'
15056 esac
15059 osf3* | osf4* | osf5*)
15060 lt_prog_compiler_wl='-Wl,'
15061 # All OSF/1 code is PIC.
15062 lt_prog_compiler_static='-non_shared'
15065 solaris*)
15066 lt_prog_compiler_pic='-KPIC'
15067 lt_prog_compiler_static='-Bstatic'
15068 case $cc_basename in
15069 f77* | f90* | f95*)
15070 lt_prog_compiler_wl='-Qoption ld ';;
15072 lt_prog_compiler_wl='-Wl,';;
15073 esac
15076 sunos4*)
15077 lt_prog_compiler_wl='-Qoption ld '
15078 lt_prog_compiler_pic='-PIC'
15079 lt_prog_compiler_static='-Bstatic'
15082 sysv4 | sysv4.2uw2* | sysv4.3*)
15083 lt_prog_compiler_wl='-Wl,'
15084 lt_prog_compiler_pic='-KPIC'
15085 lt_prog_compiler_static='-Bstatic'
15088 sysv4*MP*)
15089 if test -d /usr/nec ;then
15090 lt_prog_compiler_pic='-Kconform_pic'
15091 lt_prog_compiler_static='-Bstatic'
15095 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15096 lt_prog_compiler_wl='-Wl,'
15097 lt_prog_compiler_pic='-KPIC'
15098 lt_prog_compiler_static='-Bstatic'
15101 unicos*)
15102 lt_prog_compiler_wl='-Wl,'
15103 lt_prog_compiler_can_build_shared=no
15106 uts4*)
15107 lt_prog_compiler_pic='-pic'
15108 lt_prog_compiler_static='-Bstatic'
15112 lt_prog_compiler_can_build_shared=no
15114 esac
15117 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15118 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15121 # Check to make sure the PIC flag actually works.
15123 if test -n "$lt_prog_compiler_pic"; then
15125 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15126 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15127 if test "${lt_prog_compiler_pic_works+set}" = set; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130 lt_prog_compiler_pic_works=no
15131 ac_outfile=conftest.$ac_objext
15132 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15133 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15134 # Insert the option either (1) after the last *FLAGS variable, or
15135 # (2) before a word containing "conftest.", or (3) at the end.
15136 # Note that $ac_compile itself does not contain backslashes and begins
15137 # with a dollar sign (not a hyphen), so the echo should work correctly.
15138 # The option is referenced via a variable to avoid confusing sed.
15139 lt_compile=`echo "$ac_compile" | $SED \
15140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15142 -e 's:$: $lt_compiler_flag:'`
15143 (eval echo "\"\$as_me:15143: $lt_compile\"" >&5)
15144 (eval "$lt_compile" 2>conftest.err)
15145 ac_status=$?
15146 cat conftest.err >&5
15147 echo "$as_me:15147: \$? = $ac_status" >&5
15148 if (exit $ac_status) && test -s "$ac_outfile"; then
15149 # The compiler can only warn and ignore the option if not recognized
15150 # So say no if there are warnings other than the usual output.
15151 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15153 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15154 lt_prog_compiler_pic_works=yes
15157 $rm conftest*
15160 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15161 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15163 if test x"$lt_prog_compiler_pic_works" = xyes; then
15164 case $lt_prog_compiler_pic in
15165 "" | " "*) ;;
15166 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15167 esac
15168 else
15169 lt_prog_compiler_pic=
15170 lt_prog_compiler_can_build_shared=no
15174 case $host_os in
15175 # For platforms which do not support PIC, -DPIC is meaningless:
15176 *djgpp*)
15177 lt_prog_compiler_pic=
15180 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15182 esac
15185 # Check to make sure the static flag actually works.
15187 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15188 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15189 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15190 if test "${lt_prog_compiler_static_works+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193 lt_prog_compiler_static_works=no
15194 save_LDFLAGS="$LDFLAGS"
15195 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15196 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15197 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15198 # The linker can only warn and ignore the option if not recognized
15199 # So say no if there are warnings
15200 if test -s conftest.err; then
15201 # Append any errors to the config.log.
15202 cat conftest.err 1>&5
15203 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15204 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15205 if diff conftest.exp conftest.er2 >/dev/null; then
15206 lt_prog_compiler_static_works=yes
15208 else
15209 lt_prog_compiler_static_works=yes
15212 $rm conftest*
15213 LDFLAGS="$save_LDFLAGS"
15216 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15217 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15219 if test x"$lt_prog_compiler_static_works" = xyes; then
15221 else
15222 lt_prog_compiler_static=
15226 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15227 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15228 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15229 echo $ECHO_N "(cached) $ECHO_C" >&6
15230 else
15231 lt_cv_prog_compiler_c_o=no
15232 $rm -r conftest 2>/dev/null
15233 mkdir conftest
15234 cd conftest
15235 mkdir out
15236 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15238 lt_compiler_flag="-o out/conftest2.$ac_objext"
15239 # Insert the option either (1) after the last *FLAGS variable, or
15240 # (2) before a word containing "conftest.", or (3) at the end.
15241 # Note that $ac_compile itself does not contain backslashes and begins
15242 # with a dollar sign (not a hyphen), so the echo should work correctly.
15243 lt_compile=`echo "$ac_compile" | $SED \
15244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15246 -e 's:$: $lt_compiler_flag:'`
15247 (eval echo "\"\$as_me:15247: $lt_compile\"" >&5)
15248 (eval "$lt_compile" 2>out/conftest.err)
15249 ac_status=$?
15250 cat out/conftest.err >&5
15251 echo "$as_me:15251: \$? = $ac_status" >&5
15252 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15253 then
15254 # The compiler can only warn and ignore the option if not recognized
15255 # So say no if there are warnings
15256 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15257 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15258 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15259 lt_cv_prog_compiler_c_o=yes
15262 chmod u+w . 2>&5
15263 $rm conftest*
15264 # SGI C++ compiler will create directory out/ii_files/ for
15265 # template instantiation
15266 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15267 $rm out/* && rmdir out
15268 cd ..
15269 rmdir conftest
15270 $rm conftest*
15273 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15274 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15277 hard_links="nottested"
15278 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15279 # do not overwrite the value of need_locks provided by the user
15280 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15281 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15282 hard_links=yes
15283 $rm conftest*
15284 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15285 touch conftest.a
15286 ln conftest.a conftest.b 2>&5 || hard_links=no
15287 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15288 { echo "$as_me:$LINENO: result: $hard_links" >&5
15289 echo "${ECHO_T}$hard_links" >&6; }
15290 if test "$hard_links" = no; then
15291 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15292 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15293 need_locks=warn
15295 else
15296 need_locks=no
15299 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15300 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15302 runpath_var=
15303 allow_undefined_flag=
15304 enable_shared_with_static_runtimes=no
15305 archive_cmds=
15306 archive_expsym_cmds=
15307 old_archive_From_new_cmds=
15308 old_archive_from_expsyms_cmds=
15309 export_dynamic_flag_spec=
15310 whole_archive_flag_spec=
15311 thread_safe_flag_spec=
15312 hardcode_libdir_flag_spec=
15313 hardcode_libdir_flag_spec_ld=
15314 hardcode_libdir_separator=
15315 hardcode_direct=no
15316 hardcode_minus_L=no
15317 hardcode_shlibpath_var=unsupported
15318 link_all_deplibs=unknown
15319 hardcode_automatic=no
15320 module_cmds=
15321 module_expsym_cmds=
15322 always_export_symbols=no
15323 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15324 # include_expsyms should be a list of space-separated symbols to be *always*
15325 # included in the symbol list
15326 include_expsyms=
15327 # exclude_expsyms can be an extended regexp of symbols to exclude
15328 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15329 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15330 # as well as any symbol that contains `d'.
15331 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15332 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15333 # platforms (ab)use it in PIC code, but their linkers get confused if
15334 # the symbol is explicitly referenced. Since portable code cannot
15335 # rely on this symbol name, it's probably fine to never include it in
15336 # preloaded symbol tables.
15337 extract_expsyms_cmds=
15338 # Just being paranoid about ensuring that cc_basename is set.
15339 for cc_temp in $compiler""; do
15340 case $cc_temp in
15341 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15342 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15343 \-*) ;;
15344 *) break;;
15345 esac
15346 done
15347 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15349 case $host_os in
15350 cygwin* | mingw* | pw32*)
15351 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15352 # When not using gcc, we currently assume that we are using
15353 # Microsoft Visual C++.
15354 if test "$GCC" != yes; then
15355 with_gnu_ld=no
15358 interix*)
15359 # we just hope/assume this is gcc and not c89 (= MSVC++)
15360 with_gnu_ld=yes
15362 openbsd*)
15363 with_gnu_ld=no
15365 esac
15367 ld_shlibs=yes
15368 if test "$with_gnu_ld" = yes; then
15369 # If archive_cmds runs LD, not CC, wlarc should be empty
15370 wlarc='${wl}'
15372 # Set some defaults for GNU ld with shared library support. These
15373 # are reset later if shared libraries are not supported. Putting them
15374 # here allows them to be overridden if necessary.
15375 runpath_var=LD_RUN_PATH
15376 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15377 export_dynamic_flag_spec='${wl}--export-dynamic'
15378 # ancient GNU ld didn't support --whole-archive et. al.
15379 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15380 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15381 else
15382 whole_archive_flag_spec=
15384 supports_anon_versioning=no
15385 case `$LD -v 2>/dev/null` in
15386 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15387 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15388 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15389 *\ 2.11.*) ;; # other 2.11 versions
15390 *) supports_anon_versioning=yes ;;
15391 esac
15393 # See if GNU ld supports shared libraries.
15394 case $host_os in
15395 aix3* | aix4* | aix5*)
15396 # On AIX/PPC, the GNU linker is very broken
15397 if test "$host_cpu" != ia64; then
15398 ld_shlibs=no
15399 cat <<EOF 1>&2
15401 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15402 *** to be unable to reliably create shared libraries on AIX.
15403 *** Therefore, libtool is disabling shared libraries support. If you
15404 *** really care for shared libraries, you may want to modify your PATH
15405 *** so that a non-GNU linker is found, and then restart.
15411 amigaos*)
15412 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)'
15413 hardcode_libdir_flag_spec='-L$libdir'
15414 hardcode_minus_L=yes
15416 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15417 # that the semantics of dynamic libraries on AmigaOS, at least up
15418 # to version 4, is to share data among multiple programs linked
15419 # with the same dynamic library. Since this doesn't match the
15420 # behavior of shared libraries on other platforms, we can't use
15421 # them.
15422 ld_shlibs=no
15425 beos*)
15426 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15427 allow_undefined_flag=unsupported
15428 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15429 # support --undefined. This deserves some investigation. FIXME
15430 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15431 else
15432 ld_shlibs=no
15436 cygwin* | mingw* | pw32*)
15437 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15438 # as there is no search path for DLLs.
15439 hardcode_libdir_flag_spec='-L$libdir'
15440 allow_undefined_flag=unsupported
15441 always_export_symbols=no
15442 enable_shared_with_static_runtimes=yes
15443 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15445 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15447 # If the export-symbols file already is a .def file (1st line
15448 # is EXPORTS), use it as is; otherwise, prepend...
15449 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15450 cp $export_symbols $output_objdir/$soname.def;
15451 else
15452 echo EXPORTS > $output_objdir/$soname.def;
15453 cat $export_symbols >> $output_objdir/$soname.def;
15455 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15456 else
15457 ld_shlibs=no
15461 interix3*)
15462 hardcode_direct=no
15463 hardcode_shlibpath_var=no
15464 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15465 export_dynamic_flag_spec='${wl}-E'
15466 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15467 # Instead, shared libraries are loaded at an image base (0x10000000 by
15468 # default) and relocated if they conflict, which is a slow very memory
15469 # consuming and fragmenting process. To avoid this, we pick a random,
15470 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15471 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15472 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15473 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'
15476 linux*)
15477 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15478 tmp_addflag=
15479 case $cc_basename,$host_cpu in
15480 pgcc*) # Portland Group C compiler
15481 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'
15482 tmp_addflag=' $pic_flag'
15484 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15485 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'
15486 tmp_addflag=' $pic_flag -Mnomain' ;;
15487 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15488 tmp_addflag=' -i_dynamic' ;;
15489 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15490 tmp_addflag=' -i_dynamic -nofor_main' ;;
15491 ifc* | ifort*) # Intel Fortran compiler
15492 tmp_addflag=' -nofor_main' ;;
15493 esac
15494 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15496 if test $supports_anon_versioning = yes; then
15497 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15498 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15499 $echo "local: *; };" >> $output_objdir/$libname.ver~
15500 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15502 else
15503 ld_shlibs=no
15507 netbsd*)
15508 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15509 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15510 wlarc=
15511 else
15512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15517 solaris*)
15518 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15519 ld_shlibs=no
15520 cat <<EOF 1>&2
15522 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15523 *** create shared libraries on Solaris systems. Therefore, libtool
15524 *** is disabling shared libraries support. We urge you to upgrade GNU
15525 *** binutils to release 2.9.1 or newer. Another option is to modify
15526 *** your PATH or compiler configuration so that the native linker is
15527 *** used, and then restart.
15530 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15532 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15533 else
15534 ld_shlibs=no
15538 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15539 case `$LD -v 2>&1` in
15540 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15541 ld_shlibs=no
15542 cat <<_LT_EOF 1>&2
15544 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15545 *** reliably create shared libraries on SCO systems. Therefore, libtool
15546 *** is disabling shared libraries support. We urge you to upgrade GNU
15547 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15548 *** your PATH or compiler configuration so that the native linker is
15549 *** used, and then restart.
15551 _LT_EOF
15554 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15555 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15557 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15558 else
15559 ld_shlibs=no
15562 esac
15565 sunos4*)
15566 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15567 wlarc=
15568 hardcode_direct=yes
15569 hardcode_shlibpath_var=no
15573 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15574 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15575 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15576 else
15577 ld_shlibs=no
15580 esac
15582 if test "$ld_shlibs" = no; then
15583 runpath_var=
15584 hardcode_libdir_flag_spec=
15585 export_dynamic_flag_spec=
15586 whole_archive_flag_spec=
15588 else
15589 # PORTME fill in a description of your system's linker (not GNU ld)
15590 case $host_os in
15591 aix3*)
15592 allow_undefined_flag=unsupported
15593 always_export_symbols=yes
15594 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'
15595 # Note: this linker hardcodes the directories in LIBPATH if there
15596 # are no directories specified by -L.
15597 hardcode_minus_L=yes
15598 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15599 # Neither direct hardcoding nor static linking is supported with a
15600 # broken collect2.
15601 hardcode_direct=unsupported
15605 aix4* | aix5*)
15606 if test "$host_cpu" = ia64; then
15607 # On IA64, the linker does run time linking by default, so we don't
15608 # have to do anything special.
15609 aix_use_runtimelinking=no
15610 exp_sym_flag='-Bexport'
15611 no_entry_flag=""
15612 else
15613 # If we're using GNU nm, then we don't want the "-C" option.
15614 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15615 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15616 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'
15617 else
15618 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'
15620 aix_use_runtimelinking=no
15622 # Test if we are trying to use run time linking or normal
15623 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15624 # need to do runtime linking.
15625 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15626 for ld_flag in $LDFLAGS; do
15627 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15628 aix_use_runtimelinking=yes
15629 break
15631 done
15633 esac
15635 exp_sym_flag='-bexport'
15636 no_entry_flag='-bnoentry'
15639 # When large executables or shared objects are built, AIX ld can
15640 # have problems creating the table of contents. If linking a library
15641 # or program results in "error TOC overflow" add -mminimal-toc to
15642 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15643 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15645 archive_cmds=''
15646 hardcode_direct=yes
15647 hardcode_libdir_separator=':'
15648 link_all_deplibs=yes
15650 if test "$GCC" = yes; then
15651 case $host_os in aix4.[012]|aix4.[012].*)
15652 # We only want to do this on AIX 4.2 and lower, the check
15653 # below for broken collect2 doesn't work under 4.3+
15654 collect2name=`${CC} -print-prog-name=collect2`
15655 if test -f "$collect2name" && \
15656 strings "$collect2name" | grep resolve_lib_name >/dev/null
15657 then
15658 # We have reworked collect2
15659 hardcode_direct=yes
15660 else
15661 # We have old collect2
15662 hardcode_direct=unsupported
15663 # It fails to find uninstalled libraries when the uninstalled
15664 # path is not listed in the libpath. Setting hardcode_minus_L
15665 # to unsupported forces relinking
15666 hardcode_minus_L=yes
15667 hardcode_libdir_flag_spec='-L$libdir'
15668 hardcode_libdir_separator=
15671 esac
15672 shared_flag='-shared'
15673 if test "$aix_use_runtimelinking" = yes; then
15674 shared_flag="$shared_flag "'${wl}-G'
15676 else
15677 # not using gcc
15678 if test "$host_cpu" = ia64; then
15679 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15680 # chokes on -Wl,-G. The following line is correct:
15681 shared_flag='-G'
15682 else
15683 if test "$aix_use_runtimelinking" = yes; then
15684 shared_flag='${wl}-G'
15685 else
15686 shared_flag='${wl}-bM:SRE'
15691 # It seems that -bexpall does not export symbols beginning with
15692 # underscore (_), so it is better to generate a list of symbols to export.
15693 always_export_symbols=yes
15694 if test "$aix_use_runtimelinking" = yes; then
15695 # Warning - without using the other runtime loading flags (-brtl),
15696 # -berok will link without error, but may produce a broken library.
15697 allow_undefined_flag='-berok'
15698 # Determine the default libpath from the value encoded in an empty executable.
15699 cat >conftest.$ac_ext <<_ACEOF
15700 /* confdefs.h. */
15701 _ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15707 main ()
15711 return 0;
15713 _ACEOF
15714 rm -f conftest.$ac_objext conftest$ac_exeext
15715 if { (ac_try="$ac_link"
15716 case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15719 esac
15720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721 (eval "$ac_link") 2>conftest.er1
15722 ac_status=$?
15723 grep -v '^ *+' conftest.er1 >conftest.err
15724 rm -f conftest.er1
15725 cat conftest.err >&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } &&
15728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15729 { (case "(($ac_try" in
15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731 *) ac_try_echo=$ac_try;;
15732 esac
15733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734 (eval "$ac_try") 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; } &&
15738 { ac_try='test -s conftest$ac_exeext'
15739 { (case "(($ac_try" in
15740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15741 *) ac_try_echo=$ac_try;;
15742 esac
15743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15744 (eval "$ac_try") 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15749 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15751 # Check for a 64-bit object if we didn't find anything.
15752 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; }
15753 }'`; fi
15754 else
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15761 rm -f core conftest.err conftest.$ac_objext \
15762 conftest$ac_exeext conftest.$ac_ext
15763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15765 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15766 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"
15767 else
15768 if test "$host_cpu" = ia64; then
15769 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15770 allow_undefined_flag="-z nodefs"
15771 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"
15772 else
15773 # Determine the default libpath from the value encoded in an empty executable.
15774 cat >conftest.$ac_ext <<_ACEOF
15775 /* confdefs.h. */
15776 _ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15782 main ()
15786 return 0;
15788 _ACEOF
15789 rm -f conftest.$ac_objext conftest$ac_exeext
15790 if { (ac_try="$ac_link"
15791 case "(($ac_try" in
15792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793 *) ac_try_echo=$ac_try;;
15794 esac
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_link") 2>conftest.er1
15797 ac_status=$?
15798 grep -v '^ *+' conftest.er1 >conftest.err
15799 rm -f conftest.er1
15800 cat conftest.err >&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } &&
15803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15804 { (case "(($ac_try" in
15805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15806 *) ac_try_echo=$ac_try;;
15807 esac
15808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15809 (eval "$ac_try") 2>&5
15810 ac_status=$?
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); }; } &&
15813 { ac_try='test -s conftest$ac_exeext'
15814 { (case "(($ac_try" in
15815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816 *) ac_try_echo=$ac_try;;
15817 esac
15818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819 (eval "$ac_try") 2>&5
15820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; }; then
15824 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15826 # Check for a 64-bit object if we didn't find anything.
15827 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; }
15828 }'`; fi
15829 else
15830 echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15836 rm -f core conftest.err conftest.$ac_objext \
15837 conftest$ac_exeext conftest.$ac_ext
15838 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15840 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15841 # Warning - without using the other run time loading flags,
15842 # -berok will link without error, but may produce a broken library.
15843 no_undefined_flag=' ${wl}-bernotok'
15844 allow_undefined_flag=' ${wl}-berok'
15845 # Exported symbols can be pulled into shared objects from archives
15846 whole_archive_flag_spec='$convenience'
15847 archive_cmds_need_lc=yes
15848 # This is similar to how AIX traditionally builds its shared libraries.
15849 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'
15854 amigaos*)
15855 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)'
15856 hardcode_libdir_flag_spec='-L$libdir'
15857 hardcode_minus_L=yes
15858 # see comment about different semantics on the GNU ld section
15859 ld_shlibs=no
15862 bsdi[45]*)
15863 export_dynamic_flag_spec=-rdynamic
15866 cygwin* | mingw* | pw32*)
15867 # When not using gcc, we currently assume that we are using
15868 # Microsoft Visual C++.
15869 # hardcode_libdir_flag_spec is actually meaningless, as there is
15870 # no search path for DLLs.
15871 hardcode_libdir_flag_spec=' '
15872 allow_undefined_flag=unsupported
15873 # Tell ltmain to make .lib files, not .a files.
15874 libext=lib
15875 # Tell ltmain to make .dll files, not .so files.
15876 shrext_cmds=".dll"
15877 # FIXME: Setting linknames here is a bad hack.
15878 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15879 # The linker will automatically build a .lib file if we build a DLL.
15880 old_archive_From_new_cmds='true'
15881 # FIXME: Should let the user specify the lib program.
15882 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15883 fix_srcfile_path='`cygpath -w "$srcfile"`'
15884 enable_shared_with_static_runtimes=yes
15887 darwin* | rhapsody*)
15888 case $host_os in
15889 rhapsody* | darwin1.[012])
15890 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15892 *) # Darwin 1.3 on
15893 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15894 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15895 else
15896 case ${MACOSX_DEPLOYMENT_TARGET} in
15897 10.[012])
15898 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15900 10.*)
15901 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15903 esac
15906 esac
15907 archive_cmds_need_lc=no
15908 hardcode_direct=no
15909 hardcode_automatic=yes
15910 hardcode_shlibpath_var=unsupported
15911 whole_archive_flag_spec=''
15912 link_all_deplibs=yes
15913 if test "$GCC" = yes ; then
15914 output_verbose_link_cmd='echo'
15915 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15916 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15917 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15918 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}'
15919 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}'
15920 else
15921 case $cc_basename in
15922 xlc*)
15923 output_verbose_link_cmd='echo'
15924 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15925 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15926 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15927 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}'
15928 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}'
15931 ld_shlibs=no
15933 esac
15937 dgux*)
15938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15939 hardcode_libdir_flag_spec='-L$libdir'
15940 hardcode_shlibpath_var=no
15943 freebsd1*)
15944 ld_shlibs=no
15947 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15948 # support. Future versions do this automatically, but an explicit c++rt0.o
15949 # does not break anything, and helps significantly (at the cost of a little
15950 # extra space).
15951 freebsd2.2*)
15952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15953 hardcode_libdir_flag_spec='-R$libdir'
15954 hardcode_direct=yes
15955 hardcode_shlibpath_var=no
15958 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15959 freebsd2*)
15960 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15961 hardcode_direct=yes
15962 hardcode_minus_L=yes
15963 hardcode_shlibpath_var=no
15966 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15967 freebsd* | kfreebsd*-gnu | dragonfly*)
15968 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15969 hardcode_libdir_flag_spec='-R$libdir'
15970 hardcode_direct=yes
15971 hardcode_shlibpath_var=no
15974 hpux9*)
15975 if test "$GCC" = yes; then
15976 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'
15977 else
15978 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'
15980 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15981 hardcode_libdir_separator=:
15982 hardcode_direct=yes
15984 # hardcode_minus_L: Not really in the search PATH,
15985 # but as the default location of the library.
15986 hardcode_minus_L=yes
15987 export_dynamic_flag_spec='${wl}-E'
15990 hpux10*)
15991 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15992 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15993 else
15994 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15996 if test "$with_gnu_ld" = no; then
15997 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15998 hardcode_libdir_separator=:
16000 hardcode_direct=yes
16001 export_dynamic_flag_spec='${wl}-E'
16003 # hardcode_minus_L: Not really in the search PATH,
16004 # but as the default location of the library.
16005 hardcode_minus_L=yes
16009 hpux11*)
16010 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16011 case $host_cpu in
16012 hppa*64*)
16013 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16015 ia64*)
16016 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16019 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16021 esac
16022 else
16023 case $host_cpu in
16024 hppa*64*)
16025 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16027 ia64*)
16028 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16031 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16033 esac
16035 if test "$with_gnu_ld" = no; then
16036 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16037 hardcode_libdir_separator=:
16039 case $host_cpu in
16040 hppa*64*|ia64*)
16041 hardcode_libdir_flag_spec_ld='+b $libdir'
16042 hardcode_direct=no
16043 hardcode_shlibpath_var=no
16046 hardcode_direct=yes
16047 export_dynamic_flag_spec='${wl}-E'
16049 # hardcode_minus_L: Not really in the search PATH,
16050 # but as the default location of the library.
16051 hardcode_minus_L=yes
16053 esac
16057 irix5* | irix6* | nonstopux*)
16058 if test "$GCC" = yes; then
16059 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'
16060 else
16061 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'
16062 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16065 hardcode_libdir_separator=:
16066 link_all_deplibs=yes
16069 netbsd*)
16070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16071 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16072 else
16073 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16075 hardcode_libdir_flag_spec='-R$libdir'
16076 hardcode_direct=yes
16077 hardcode_shlibpath_var=no
16080 newsos6)
16081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16082 hardcode_direct=yes
16083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16084 hardcode_libdir_separator=:
16085 hardcode_shlibpath_var=no
16088 openbsd*)
16089 hardcode_direct=yes
16090 hardcode_shlibpath_var=no
16091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16092 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16093 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16094 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16095 export_dynamic_flag_spec='${wl}-E'
16096 else
16097 case $host_os in
16098 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16099 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16100 hardcode_libdir_flag_spec='-R$libdir'
16103 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16104 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16106 esac
16110 os2*)
16111 hardcode_libdir_flag_spec='-L$libdir'
16112 hardcode_minus_L=yes
16113 allow_undefined_flag=unsupported
16114 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'
16115 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16118 osf3*)
16119 if test "$GCC" = yes; then
16120 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16121 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'
16122 else
16123 allow_undefined_flag=' -expect_unresolved \*'
16124 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'
16126 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16127 hardcode_libdir_separator=:
16130 osf4* | osf5*) # as osf3* with the addition of -msym flag
16131 if test "$GCC" = yes; then
16132 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16133 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'
16134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16135 else
16136 allow_undefined_flag=' -expect_unresolved \*'
16137 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'
16138 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16139 $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'
16141 # Both c and cxx compiler support -rpath directly
16142 hardcode_libdir_flag_spec='-rpath $libdir'
16144 hardcode_libdir_separator=:
16147 solaris*)
16148 no_undefined_flag=' -z text'
16149 if test "$GCC" = yes; then
16150 wlarc='${wl}'
16151 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16152 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16153 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16154 else
16155 wlarc=''
16156 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16157 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16158 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16160 hardcode_libdir_flag_spec='-R$libdir'
16161 hardcode_shlibpath_var=no
16162 case $host_os in
16163 solaris2.[0-5] | solaris2.[0-5].*) ;;
16165 # The compiler driver will combine linker options so we
16166 # cannot just pass the convience library names through
16167 # without $wl, iff we do not link with $LD.
16168 # Luckily, gcc supports the same syntax we need for Sun Studio.
16169 # Supported since Solaris 2.6 (maybe 2.5.1?)
16170 case $wlarc in
16172 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16174 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' ;;
16175 esac ;;
16176 esac
16177 link_all_deplibs=yes
16180 sunos4*)
16181 if test "x$host_vendor" = xsequent; then
16182 # Use $CC to link under sequent, because it throws in some extra .o
16183 # files that make .init and .fini sections work.
16184 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16185 else
16186 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16188 hardcode_libdir_flag_spec='-L$libdir'
16189 hardcode_direct=yes
16190 hardcode_minus_L=yes
16191 hardcode_shlibpath_var=no
16194 sysv4)
16195 case $host_vendor in
16196 sni)
16197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16198 hardcode_direct=yes # is this really true???
16200 siemens)
16201 ## LD is ld it makes a PLAMLIB
16202 ## CC just makes a GrossModule.
16203 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16204 reload_cmds='$CC -r -o $output$reload_objs'
16205 hardcode_direct=no
16207 motorola)
16208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16209 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16211 esac
16212 runpath_var='LD_RUN_PATH'
16213 hardcode_shlibpath_var=no
16216 sysv4.3*)
16217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16218 hardcode_shlibpath_var=no
16219 export_dynamic_flag_spec='-Bexport'
16222 sysv4*MP*)
16223 if test -d /usr/nec; then
16224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16225 hardcode_shlibpath_var=no
16226 runpath_var=LD_RUN_PATH
16227 hardcode_runpath_var=yes
16228 ld_shlibs=yes
16232 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16233 no_undefined_flag='${wl}-z,text'
16234 archive_cmds_need_lc=no
16235 hardcode_shlibpath_var=no
16236 runpath_var='LD_RUN_PATH'
16238 if test "$GCC" = yes; then
16239 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16240 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16241 else
16242 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16243 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16247 sysv5* | sco3.2v5* | sco5v6*)
16248 # Note: We can NOT use -z defs as we might desire, because we do not
16249 # link with -lc, and that would cause any symbols used from libc to
16250 # always be unresolved, which means just about no library would
16251 # ever link correctly. If we're not using GNU ld we use -z text
16252 # though, which does catch some bad symbols but isn't as heavy-handed
16253 # as -z defs.
16254 no_undefined_flag='${wl}-z,text'
16255 allow_undefined_flag='${wl}-z,nodefs'
16256 archive_cmds_need_lc=no
16257 hardcode_shlibpath_var=no
16258 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16259 hardcode_libdir_separator=':'
16260 link_all_deplibs=yes
16261 export_dynamic_flag_spec='${wl}-Bexport'
16262 runpath_var='LD_RUN_PATH'
16264 if test "$GCC" = yes; then
16265 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16266 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16267 else
16268 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16269 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16273 uts4*)
16274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16275 hardcode_libdir_flag_spec='-L$libdir'
16276 hardcode_shlibpath_var=no
16280 ld_shlibs=no
16282 esac
16285 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16286 echo "${ECHO_T}$ld_shlibs" >&6; }
16287 test "$ld_shlibs" = no && can_build_shared=no
16290 # Do we need to explicitly link libc?
16292 case "x$archive_cmds_need_lc" in
16293 x|xyes)
16294 # Assume -lc should be added
16295 archive_cmds_need_lc=yes
16297 if test "$enable_shared" = yes && test "$GCC" = yes; then
16298 case $archive_cmds in
16299 *'~'*)
16300 # FIXME: we may have to deal with multi-command sequences.
16302 '$CC '*)
16303 # Test whether the compiler implicitly links with -lc since on some
16304 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16305 # to ld, don't add -lc before -lgcc.
16306 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16307 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16308 $rm conftest*
16309 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16312 (eval $ac_compile) 2>&5
16313 ac_status=$?
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } 2>conftest.err; then
16316 soname=conftest
16317 lib=conftest
16318 libobjs=conftest.$ac_objext
16319 deplibs=
16320 wl=$lt_prog_compiler_wl
16321 pic_flag=$lt_prog_compiler_pic
16322 compiler_flags=-v
16323 linker_flags=-v
16324 verstring=
16325 output_objdir=.
16326 libname=conftest
16327 lt_save_allow_undefined_flag=$allow_undefined_flag
16328 allow_undefined_flag=
16329 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16330 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }
16334 then
16335 archive_cmds_need_lc=no
16336 else
16337 archive_cmds_need_lc=yes
16339 allow_undefined_flag=$lt_save_allow_undefined_flag
16340 else
16341 cat conftest.err 1>&5
16343 $rm conftest*
16344 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16345 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16347 esac
16350 esac
16352 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16353 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16354 library_names_spec=
16355 libname_spec='lib$name'
16356 soname_spec=
16357 shrext_cmds=".so"
16358 postinstall_cmds=
16359 postuninstall_cmds=
16360 finish_cmds=
16361 finish_eval=
16362 shlibpath_var=
16363 shlibpath_overrides_runpath=unknown
16364 version_type=none
16365 dynamic_linker="$host_os ld.so"
16366 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16367 if test "$GCC" = yes; then
16368 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16369 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16370 # if the path contains ";" then we assume it to be the separator
16371 # otherwise default to the standard path separator (i.e. ":") - it is
16372 # assumed that no part of a normal pathname contains ";" but that should
16373 # okay in the real world where ";" in dirpaths is itself problematic.
16374 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16375 else
16376 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16378 else
16379 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16381 need_lib_prefix=unknown
16382 hardcode_into_libs=no
16384 # when you set need_version to no, make sure it does not cause -set_version
16385 # flags to be left without arguments
16386 need_version=unknown
16388 case $host_os in
16389 aix3*)
16390 version_type=linux
16391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16392 shlibpath_var=LIBPATH
16394 # AIX 3 has no versioning support, so we append a major version to the name.
16395 soname_spec='${libname}${release}${shared_ext}$major'
16398 aix4* | aix5*)
16399 version_type=linux
16400 need_lib_prefix=no
16401 need_version=no
16402 hardcode_into_libs=yes
16403 if test "$host_cpu" = ia64; then
16404 # AIX 5 supports IA64
16405 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16406 shlibpath_var=LD_LIBRARY_PATH
16407 else
16408 # With GCC up to 2.95.x, collect2 would create an import file
16409 # for dependence libraries. The import file would start with
16410 # the line `#! .'. This would cause the generated library to
16411 # depend on `.', always an invalid library. This was fixed in
16412 # development snapshots of GCC prior to 3.0.
16413 case $host_os in
16414 aix4 | aix4.[01] | aix4.[01].*)
16415 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16416 echo ' yes '
16417 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16419 else
16420 can_build_shared=no
16423 esac
16424 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16425 # soname into executable. Probably we can add versioning support to
16426 # collect2, so additional links can be useful in future.
16427 if test "$aix_use_runtimelinking" = yes; then
16428 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16429 # instead of lib<name>.a to let people know that these are not
16430 # typical AIX shared libraries.
16431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16432 else
16433 # We preserve .a as extension for shared libraries through AIX4.2
16434 # and later when we are not doing run time linking.
16435 library_names_spec='${libname}${release}.a $libname.a'
16436 soname_spec='${libname}${release}${shared_ext}$major'
16438 shlibpath_var=LIBPATH
16442 amigaos*)
16443 library_names_spec='$libname.ixlibrary $libname.a'
16444 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16445 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'
16448 beos*)
16449 library_names_spec='${libname}${shared_ext}'
16450 dynamic_linker="$host_os ld.so"
16451 shlibpath_var=LIBRARY_PATH
16454 bsdi[45]*)
16455 version_type=linux
16456 need_version=no
16457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16458 soname_spec='${libname}${release}${shared_ext}$major'
16459 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16460 shlibpath_var=LD_LIBRARY_PATH
16461 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16462 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16463 # the default ld.so.conf also contains /usr/contrib/lib and
16464 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16465 # libtool to hard-code these into programs
16468 cygwin* | mingw* | pw32*)
16469 version_type=windows
16470 shrext_cmds=".dll"
16471 need_version=no
16472 need_lib_prefix=no
16474 case $GCC,$host_os in
16475 yes,cygwin* | yes,mingw* | yes,pw32*)
16476 library_names_spec='$libname.dll.a'
16477 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16478 postinstall_cmds='base_file=`basename \${file}`~
16479 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16480 dldir=$destdir/`dirname \$dlpath`~
16481 test -d \$dldir || mkdir -p \$dldir~
16482 $install_prog $dir/$dlname \$dldir/$dlname~
16483 chmod a+x \$dldir/$dlname'
16484 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16485 dlpath=$dir/\$dldll~
16486 $rm \$dlpath'
16487 shlibpath_overrides_runpath=yes
16489 case $host_os in
16490 cygwin*)
16491 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16492 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16493 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16495 mingw*)
16496 # MinGW DLLs use traditional 'lib' prefix
16497 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16498 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16499 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16500 # It is most probably a Windows format PATH printed by
16501 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16502 # path with ; separators, and with drive letters. We can handle the
16503 # drive letters (cygwin fileutils understands them), so leave them,
16504 # especially as we might pass files found there to a mingw objdump,
16505 # which wouldn't understand a cygwinified path. Ahh.
16506 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16507 else
16508 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16511 pw32*)
16512 # pw32 DLLs use 'pw' prefix rather than 'lib'
16513 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16515 esac
16519 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16521 esac
16522 dynamic_linker='Win32 ld.exe'
16523 # FIXME: first we should search . and the directory the executable is in
16524 shlibpath_var=PATH
16527 darwin* | rhapsody*)
16528 dynamic_linker="$host_os dyld"
16529 version_type=darwin
16530 need_lib_prefix=no
16531 need_version=no
16532 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16533 soname_spec='${libname}${release}${major}$shared_ext'
16534 shlibpath_overrides_runpath=yes
16535 shlibpath_var=DYLD_LIBRARY_PATH
16536 shrext_cmds='.dylib'
16537 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16538 if test "$GCC" = yes; then
16539 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"`
16540 else
16541 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16543 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16546 dgux*)
16547 version_type=linux
16548 need_lib_prefix=no
16549 need_version=no
16550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16551 soname_spec='${libname}${release}${shared_ext}$major'
16552 shlibpath_var=LD_LIBRARY_PATH
16555 freebsd1*)
16556 dynamic_linker=no
16559 kfreebsd*-gnu)
16560 version_type=linux
16561 need_lib_prefix=no
16562 need_version=no
16563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16564 soname_spec='${libname}${release}${shared_ext}$major'
16565 shlibpath_var=LD_LIBRARY_PATH
16566 shlibpath_overrides_runpath=no
16567 hardcode_into_libs=yes
16568 dynamic_linker='GNU ld.so'
16571 freebsd* | dragonfly*)
16572 # DragonFly does not have aout. When/if they implement a new
16573 # versioning mechanism, adjust this.
16574 if test -x /usr/bin/objformat; then
16575 objformat=`/usr/bin/objformat`
16576 else
16577 case $host_os in
16578 freebsd[123]*) objformat=aout ;;
16579 *) objformat=elf ;;
16580 esac
16582 version_type=freebsd-$objformat
16583 case $version_type in
16584 freebsd-elf*)
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16586 need_version=no
16587 need_lib_prefix=no
16589 freebsd-*)
16590 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16591 need_version=yes
16593 esac
16594 shlibpath_var=LD_LIBRARY_PATH
16595 case $host_os in
16596 freebsd2*)
16597 shlibpath_overrides_runpath=yes
16599 freebsd3.[01]* | freebsdelf3.[01]*)
16600 shlibpath_overrides_runpath=yes
16601 hardcode_into_libs=yes
16603 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16604 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16605 shlibpath_overrides_runpath=no
16606 hardcode_into_libs=yes
16608 freebsd*) # from 4.6 on
16609 shlibpath_overrides_runpath=yes
16610 hardcode_into_libs=yes
16612 esac
16615 gnu*)
16616 version_type=linux
16617 need_lib_prefix=no
16618 need_version=no
16619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16620 soname_spec='${libname}${release}${shared_ext}$major'
16621 shlibpath_var=LD_LIBRARY_PATH
16622 hardcode_into_libs=yes
16625 hpux9* | hpux10* | hpux11*)
16626 # Give a soname corresponding to the major version so that dld.sl refuses to
16627 # link against other versions.
16628 version_type=sunos
16629 need_lib_prefix=no
16630 need_version=no
16631 case $host_cpu in
16632 ia64*)
16633 shrext_cmds='.so'
16634 hardcode_into_libs=yes
16635 dynamic_linker="$host_os dld.so"
16636 shlibpath_var=LD_LIBRARY_PATH
16637 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16639 soname_spec='${libname}${release}${shared_ext}$major'
16640 if test "X$HPUX_IA64_MODE" = X32; then
16641 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16642 else
16643 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16645 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16647 hppa*64*)
16648 shrext_cmds='.sl'
16649 hardcode_into_libs=yes
16650 dynamic_linker="$host_os dld.sl"
16651 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16654 soname_spec='${libname}${release}${shared_ext}$major'
16655 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16659 shrext_cmds='.sl'
16660 dynamic_linker="$host_os dld.sl"
16661 shlibpath_var=SHLIB_PATH
16662 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16664 soname_spec='${libname}${release}${shared_ext}$major'
16666 esac
16667 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16668 postinstall_cmds='chmod 555 $lib'
16671 interix3*)
16672 version_type=linux
16673 need_lib_prefix=no
16674 need_version=no
16675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16676 soname_spec='${libname}${release}${shared_ext}$major'
16677 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16678 shlibpath_var=LD_LIBRARY_PATH
16679 shlibpath_overrides_runpath=no
16680 hardcode_into_libs=yes
16683 irix5* | irix6* | nonstopux*)
16684 case $host_os in
16685 nonstopux*) version_type=nonstopux ;;
16687 if test "$lt_cv_prog_gnu_ld" = yes; then
16688 version_type=linux
16689 else
16690 version_type=irix
16691 fi ;;
16692 esac
16693 need_lib_prefix=no
16694 need_version=no
16695 soname_spec='${libname}${release}${shared_ext}$major'
16696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16697 case $host_os in
16698 irix5* | nonstopux*)
16699 libsuff= shlibsuff=
16702 case $LD in # libtool.m4 will add one of these switches to LD
16703 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16704 libsuff= shlibsuff= libmagic=32-bit;;
16705 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16706 libsuff=32 shlibsuff=N32 libmagic=N32;;
16707 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16708 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16709 *) libsuff= shlibsuff= libmagic=never-match;;
16710 esac
16712 esac
16713 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16714 shlibpath_overrides_runpath=no
16715 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16716 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16717 hardcode_into_libs=yes
16720 # No shared lib support for Linux oldld, aout, or coff.
16721 linux*oldld* | linux*aout* | linux*coff*)
16722 dynamic_linker=no
16725 # This must be Linux ELF.
16726 linux*)
16727 version_type=linux
16728 need_lib_prefix=no
16729 need_version=no
16730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16731 soname_spec='${libname}${release}${shared_ext}$major'
16732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16733 shlibpath_var=LD_LIBRARY_PATH
16734 shlibpath_overrides_runpath=no
16735 # This implies no fast_install, which is unacceptable.
16736 # Some rework will be needed to allow for fast_install
16737 # before this can be enabled.
16738 hardcode_into_libs=yes
16740 # Append ld.so.conf contents to the search path
16741 if test -f /etc/ld.so.conf; then
16742 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' ' '`
16743 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16746 # We used to test for /lib/ld.so.1 and disable shared libraries on
16747 # powerpc, because MkLinux only supported shared libraries with the
16748 # GNU dynamic linker. Since this was broken with cross compilers,
16749 # most powerpc-linux boxes support dynamic linking these days and
16750 # people can always --disable-shared, the test was removed, and we
16751 # assume the GNU/Linux dynamic linker is in use.
16752 dynamic_linker='GNU/Linux ld.so'
16755 knetbsd*-gnu)
16756 version_type=linux
16757 need_lib_prefix=no
16758 need_version=no
16759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16760 soname_spec='${libname}${release}${shared_ext}$major'
16761 shlibpath_var=LD_LIBRARY_PATH
16762 shlibpath_overrides_runpath=no
16763 hardcode_into_libs=yes
16764 dynamic_linker='GNU ld.so'
16767 netbsd*)
16768 version_type=sunos
16769 need_lib_prefix=no
16770 need_version=no
16771 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16774 dynamic_linker='NetBSD (a.out) ld.so'
16775 else
16776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16777 soname_spec='${libname}${release}${shared_ext}$major'
16778 dynamic_linker='NetBSD ld.elf_so'
16780 shlibpath_var=LD_LIBRARY_PATH
16781 shlibpath_overrides_runpath=yes
16782 hardcode_into_libs=yes
16785 newsos6)
16786 version_type=linux
16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788 shlibpath_var=LD_LIBRARY_PATH
16789 shlibpath_overrides_runpath=yes
16792 nto-qnx*)
16793 version_type=linux
16794 need_lib_prefix=no
16795 need_version=no
16796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797 soname_spec='${libname}${release}${shared_ext}$major'
16798 shlibpath_var=LD_LIBRARY_PATH
16799 shlibpath_overrides_runpath=yes
16802 openbsd*)
16803 version_type=sunos
16804 sys_lib_dlsearch_path_spec="/usr/lib"
16805 need_lib_prefix=no
16806 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16807 case $host_os in
16808 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16809 *) need_version=no ;;
16810 esac
16811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16813 shlibpath_var=LD_LIBRARY_PATH
16814 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16815 case $host_os in
16816 openbsd2.[89] | openbsd2.[89].*)
16817 shlibpath_overrides_runpath=no
16820 shlibpath_overrides_runpath=yes
16822 esac
16823 else
16824 shlibpath_overrides_runpath=yes
16828 os2*)
16829 libname_spec='$name'
16830 shrext_cmds=".dll"
16831 need_lib_prefix=no
16832 library_names_spec='$libname${shared_ext} $libname.a'
16833 dynamic_linker='OS/2 ld.exe'
16834 shlibpath_var=LIBPATH
16837 osf3* | osf4* | osf5*)
16838 version_type=osf
16839 need_lib_prefix=no
16840 need_version=no
16841 soname_spec='${libname}${release}${shared_ext}$major'
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16845 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16848 solaris*)
16849 version_type=linux
16850 need_lib_prefix=no
16851 need_version=no
16852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16853 soname_spec='${libname}${release}${shared_ext}$major'
16854 shlibpath_var=LD_LIBRARY_PATH
16855 shlibpath_overrides_runpath=yes
16856 hardcode_into_libs=yes
16857 # ldd complains unless libraries are executable
16858 postinstall_cmds='chmod +x $lib'
16861 sunos4*)
16862 version_type=sunos
16863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16864 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16865 shlibpath_var=LD_LIBRARY_PATH
16866 shlibpath_overrides_runpath=yes
16867 if test "$with_gnu_ld" = yes; then
16868 need_lib_prefix=no
16870 need_version=yes
16873 sysv4 | sysv4.3*)
16874 version_type=linux
16875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16876 soname_spec='${libname}${release}${shared_ext}$major'
16877 shlibpath_var=LD_LIBRARY_PATH
16878 case $host_vendor in
16879 sni)
16880 shlibpath_overrides_runpath=no
16881 need_lib_prefix=no
16882 export_dynamic_flag_spec='${wl}-Blargedynsym'
16883 runpath_var=LD_RUN_PATH
16885 siemens)
16886 need_lib_prefix=no
16888 motorola)
16889 need_lib_prefix=no
16890 need_version=no
16891 shlibpath_overrides_runpath=no
16892 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16894 esac
16897 sysv4*MP*)
16898 if test -d /usr/nec ;then
16899 version_type=linux
16900 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16901 soname_spec='$libname${shared_ext}.$major'
16902 shlibpath_var=LD_LIBRARY_PATH
16906 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16907 version_type=freebsd-elf
16908 need_lib_prefix=no
16909 need_version=no
16910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16911 soname_spec='${libname}${release}${shared_ext}$major'
16912 shlibpath_var=LD_LIBRARY_PATH
16913 hardcode_into_libs=yes
16914 if test "$with_gnu_ld" = yes; then
16915 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16916 shlibpath_overrides_runpath=no
16917 else
16918 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16919 shlibpath_overrides_runpath=yes
16920 case $host_os in
16921 sco3.2v5*)
16922 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16924 esac
16926 sys_lib_dlsearch_path_spec='/usr/lib'
16929 uts4*)
16930 version_type=linux
16931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932 soname_spec='${libname}${release}${shared_ext}$major'
16933 shlibpath_var=LD_LIBRARY_PATH
16937 dynamic_linker=no
16939 esac
16940 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16941 echo "${ECHO_T}$dynamic_linker" >&6; }
16942 test "$dynamic_linker" = no && can_build_shared=no
16944 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16945 if test "$GCC" = yes; then
16946 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16949 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16950 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16951 hardcode_action=
16952 if test -n "$hardcode_libdir_flag_spec" || \
16953 test -n "$runpath_var" || \
16954 test "X$hardcode_automatic" = "Xyes" ; then
16956 # We can hardcode non-existant directories.
16957 if test "$hardcode_direct" != no &&
16958 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16959 # have to relink, otherwise we might link with an installed library
16960 # when we should be linking with a yet-to-be-installed one
16961 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16962 test "$hardcode_minus_L" != no; then
16963 # Linking always hardcodes the temporary library directory.
16964 hardcode_action=relink
16965 else
16966 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16967 hardcode_action=immediate
16969 else
16970 # We cannot hardcode anything, or else we can only hardcode existing
16971 # directories.
16972 hardcode_action=unsupported
16974 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16975 echo "${ECHO_T}$hardcode_action" >&6; }
16977 if test "$hardcode_action" = relink; then
16978 # Fast installation is not supported
16979 enable_fast_install=no
16980 elif test "$shlibpath_overrides_runpath" = yes ||
16981 test "$enable_shared" = no; then
16982 # Fast installation is not necessary
16983 enable_fast_install=needless
16986 striplib=
16987 old_striplib=
16988 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16989 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16990 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16991 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16992 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16993 { echo "$as_me:$LINENO: result: yes" >&5
16994 echo "${ECHO_T}yes" >&6; }
16995 else
16996 # FIXME - insert some real tests, host_os isn't really good enough
16997 case $host_os in
16998 darwin*)
16999 if test -n "$STRIP" ; then
17000 striplib="$STRIP -x"
17001 { echo "$as_me:$LINENO: result: yes" >&5
17002 echo "${ECHO_T}yes" >&6; }
17003 else
17004 { echo "$as_me:$LINENO: result: no" >&5
17005 echo "${ECHO_T}no" >&6; }
17009 { echo "$as_me:$LINENO: result: no" >&5
17010 echo "${ECHO_T}no" >&6; }
17012 esac
17015 if test "x$enable_dlopen" != xyes; then
17016 enable_dlopen=unknown
17017 enable_dlopen_self=unknown
17018 enable_dlopen_self_static=unknown
17019 else
17020 lt_cv_dlopen=no
17021 lt_cv_dlopen_libs=
17023 case $host_os in
17024 beos*)
17025 lt_cv_dlopen="load_add_on"
17026 lt_cv_dlopen_libs=
17027 lt_cv_dlopen_self=yes
17030 mingw* | pw32*)
17031 lt_cv_dlopen="LoadLibrary"
17032 lt_cv_dlopen_libs=
17035 cygwin*)
17036 lt_cv_dlopen="dlopen"
17037 lt_cv_dlopen_libs=
17040 darwin*)
17041 # if libdl is installed we need to link against it
17042 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17043 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17044 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17046 else
17047 ac_check_lib_save_LIBS=$LIBS
17048 LIBS="-ldl $LIBS"
17049 cat >conftest.$ac_ext <<_ACEOF
17050 /* confdefs.h. */
17051 _ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h. */
17056 /* Override any GCC internal prototype to avoid an error.
17057 Use char because int might match the return type of a GCC
17058 builtin and then its argument prototype would still apply. */
17059 #ifdef __cplusplus
17060 extern "C"
17061 #endif
17062 char dlopen ();
17064 main ()
17066 return dlopen ();
17068 return 0;
17070 _ACEOF
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (ac_try="$ac_link"
17073 case "(($ac_try" in
17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075 *) ac_try_echo=$ac_try;;
17076 esac
17077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078 (eval "$ac_link") 2>conftest.er1
17079 ac_status=$?
17080 grep -v '^ *+' conftest.er1 >conftest.err
17081 rm -f conftest.er1
17082 cat conftest.err >&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
17085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17089 esac
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try='test -s conftest$ac_exeext'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17099 esac
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 ac_cv_lib_dl_dlopen=yes
17106 else
17107 echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17110 ac_cv_lib_dl_dlopen=no
17113 rm -f core conftest.err conftest.$ac_objext \
17114 conftest$ac_exeext conftest.$ac_ext
17115 LIBS=$ac_check_lib_save_LIBS
17117 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17118 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17119 if test $ac_cv_lib_dl_dlopen = yes; then
17120 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17121 else
17123 lt_cv_dlopen="dyld"
17124 lt_cv_dlopen_libs=
17125 lt_cv_dlopen_self=yes
17132 { echo "$as_me:$LINENO: checking for shl_load" >&5
17133 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17134 if test "${ac_cv_func_shl_load+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17136 else
17137 cat >conftest.$ac_ext <<_ACEOF
17138 /* confdefs.h. */
17139 _ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17143 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17145 #define shl_load innocuous_shl_load
17147 /* System header to define __stub macros and hopefully few prototypes,
17148 which can conflict with char shl_load (); below.
17149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17150 <limits.h> exists even on freestanding compilers. */
17152 #ifdef __STDC__
17153 # include <limits.h>
17154 #else
17155 # include <assert.h>
17156 #endif
17158 #undef shl_load
17160 /* Override any GCC internal prototype to avoid an error.
17161 Use char because int might match the return type of a GCC
17162 builtin and then its argument prototype would still apply. */
17163 #ifdef __cplusplus
17164 extern "C"
17165 #endif
17166 char shl_load ();
17167 /* The GNU C library defines this for functions which it implements
17168 to always fail with ENOSYS. Some functions are actually named
17169 something starting with __ and the normal name is an alias. */
17170 #if defined __stub_shl_load || defined __stub___shl_load
17171 choke me
17172 #endif
17175 main ()
17177 return shl_load ();
17179 return 0;
17181 _ACEOF
17182 rm -f conftest.$ac_objext conftest$ac_exeext
17183 if { (ac_try="$ac_link"
17184 case "(($ac_try" in
17185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186 *) ac_try_echo=$ac_try;;
17187 esac
17188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189 (eval "$ac_link") 2>conftest.er1
17190 ac_status=$?
17191 grep -v '^ *+' conftest.er1 >conftest.err
17192 rm -f conftest.er1
17193 cat conftest.err >&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } &&
17196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17197 { (case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17200 esac
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_try") 2>&5
17203 ac_status=$?
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; } &&
17206 { ac_try='test -s conftest$ac_exeext'
17207 { (case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17210 esac
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212 (eval "$ac_try") 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; }; then
17216 ac_cv_func_shl_load=yes
17217 else
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17221 ac_cv_func_shl_load=no
17224 rm -f core conftest.err conftest.$ac_objext \
17225 conftest$ac_exeext conftest.$ac_ext
17227 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17228 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17229 if test $ac_cv_func_shl_load = yes; then
17230 lt_cv_dlopen="shl_load"
17231 else
17232 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17233 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17234 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17235 echo $ECHO_N "(cached) $ECHO_C" >&6
17236 else
17237 ac_check_lib_save_LIBS=$LIBS
17238 LIBS="-ldld $LIBS"
17239 cat >conftest.$ac_ext <<_ACEOF
17240 /* confdefs.h. */
17241 _ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17246 /* Override any GCC internal prototype to avoid an error.
17247 Use char because int might match the return type of a GCC
17248 builtin and then its argument prototype would still apply. */
17249 #ifdef __cplusplus
17250 extern "C"
17251 #endif
17252 char shl_load ();
17254 main ()
17256 return shl_load ();
17258 return 0;
17260 _ACEOF
17261 rm -f conftest.$ac_objext conftest$ac_exeext
17262 if { (ac_try="$ac_link"
17263 case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17266 esac
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_link") 2>conftest.er1
17269 ac_status=$?
17270 grep -v '^ *+' conftest.er1 >conftest.err
17271 rm -f conftest.er1
17272 cat conftest.err >&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
17275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17276 { (case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17279 esac
17280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281 (eval "$ac_try") 2>&5
17282 ac_status=$?
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; } &&
17285 { ac_try='test -s conftest$ac_exeext'
17286 { (case "(($ac_try" in
17287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288 *) ac_try_echo=$ac_try;;
17289 esac
17290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291 (eval "$ac_try") 2>&5
17292 ac_status=$?
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; }; then
17295 ac_cv_lib_dld_shl_load=yes
17296 else
17297 echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17300 ac_cv_lib_dld_shl_load=no
17303 rm -f core conftest.err conftest.$ac_objext \
17304 conftest$ac_exeext conftest.$ac_ext
17305 LIBS=$ac_check_lib_save_LIBS
17307 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17308 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17309 if test $ac_cv_lib_dld_shl_load = yes; then
17310 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17311 else
17312 { echo "$as_me:$LINENO: checking for dlopen" >&5
17313 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17314 if test "${ac_cv_func_dlopen+set}" = set; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17316 else
17317 cat >conftest.$ac_ext <<_ACEOF
17318 /* confdefs.h. */
17319 _ACEOF
17320 cat confdefs.h >>conftest.$ac_ext
17321 cat >>conftest.$ac_ext <<_ACEOF
17322 /* end confdefs.h. */
17323 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17325 #define dlopen innocuous_dlopen
17327 /* System header to define __stub macros and hopefully few prototypes,
17328 which can conflict with char dlopen (); below.
17329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17330 <limits.h> exists even on freestanding compilers. */
17332 #ifdef __STDC__
17333 # include <limits.h>
17334 #else
17335 # include <assert.h>
17336 #endif
17338 #undef dlopen
17340 /* Override any GCC internal prototype to avoid an error.
17341 Use char because int might match the return type of a GCC
17342 builtin and then its argument prototype would still apply. */
17343 #ifdef __cplusplus
17344 extern "C"
17345 #endif
17346 char dlopen ();
17347 /* The GNU C library defines this for functions which it implements
17348 to always fail with ENOSYS. Some functions are actually named
17349 something starting with __ and the normal name is an alias. */
17350 #if defined __stub_dlopen || defined __stub___dlopen
17351 choke me
17352 #endif
17355 main ()
17357 return dlopen ();
17359 return 0;
17361 _ACEOF
17362 rm -f conftest.$ac_objext conftest$ac_exeext
17363 if { (ac_try="$ac_link"
17364 case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17367 esac
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_link") 2>conftest.er1
17370 ac_status=$?
17371 grep -v '^ *+' conftest.er1 >conftest.err
17372 rm -f conftest.er1
17373 cat conftest.err >&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } &&
17376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380 esac
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_try") 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; } &&
17386 { ac_try='test -s conftest$ac_exeext'
17387 { (case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17390 esac
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_try") 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; }; then
17396 ac_cv_func_dlopen=yes
17397 else
17398 echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17401 ac_cv_func_dlopen=no
17404 rm -f core conftest.err conftest.$ac_objext \
17405 conftest$ac_exeext conftest.$ac_ext
17407 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17408 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17409 if test $ac_cv_func_dlopen = yes; then
17410 lt_cv_dlopen="dlopen"
17411 else
17412 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17413 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17414 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17415 echo $ECHO_N "(cached) $ECHO_C" >&6
17416 else
17417 ac_check_lib_save_LIBS=$LIBS
17418 LIBS="-ldl $LIBS"
17419 cat >conftest.$ac_ext <<_ACEOF
17420 /* confdefs.h. */
17421 _ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h. */
17426 /* Override any GCC internal prototype to avoid an error.
17427 Use char because int might match the return type of a GCC
17428 builtin and then its argument prototype would still apply. */
17429 #ifdef __cplusplus
17430 extern "C"
17431 #endif
17432 char dlopen ();
17434 main ()
17436 return dlopen ();
17438 return 0;
17440 _ACEOF
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (ac_try="$ac_link"
17443 case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17446 esac
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_link") 2>conftest.er1
17449 ac_status=$?
17450 grep -v '^ *+' conftest.er1 >conftest.err
17451 rm -f conftest.er1
17452 cat conftest.err >&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } &&
17455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17456 { (case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17459 esac
17460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_try") 2>&5
17462 ac_status=$?
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; } &&
17465 { ac_try='test -s conftest$ac_exeext'
17466 { (case "(($ac_try" in
17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468 *) ac_try_echo=$ac_try;;
17469 esac
17470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471 (eval "$ac_try") 2>&5
17472 ac_status=$?
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; }; then
17475 ac_cv_lib_dl_dlopen=yes
17476 else
17477 echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17480 ac_cv_lib_dl_dlopen=no
17483 rm -f core conftest.err conftest.$ac_objext \
17484 conftest$ac_exeext conftest.$ac_ext
17485 LIBS=$ac_check_lib_save_LIBS
17487 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17488 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17489 if test $ac_cv_lib_dl_dlopen = yes; then
17490 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17491 else
17492 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17493 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17494 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17496 else
17497 ac_check_lib_save_LIBS=$LIBS
17498 LIBS="-lsvld $LIBS"
17499 cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h. */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17506 /* Override any GCC internal prototype to avoid an error.
17507 Use char because int might match the return type of a GCC
17508 builtin and then its argument prototype would still apply. */
17509 #ifdef __cplusplus
17510 extern "C"
17511 #endif
17512 char dlopen ();
17514 main ()
17516 return dlopen ();
17518 return 0;
17520 _ACEOF
17521 rm -f conftest.$ac_objext conftest$ac_exeext
17522 if { (ac_try="$ac_link"
17523 case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17526 esac
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_link") 2>conftest.er1
17529 ac_status=$?
17530 grep -v '^ *+' conftest.er1 >conftest.err
17531 rm -f conftest.er1
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } &&
17535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17536 { (case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17539 esac
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_try") 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; } &&
17545 { ac_try='test -s conftest$ac_exeext'
17546 { (case "(($ac_try" in
17547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17548 *) ac_try_echo=$ac_try;;
17549 esac
17550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17551 (eval "$ac_try") 2>&5
17552 ac_status=$?
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; }; then
17555 ac_cv_lib_svld_dlopen=yes
17556 else
17557 echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17560 ac_cv_lib_svld_dlopen=no
17563 rm -f core conftest.err conftest.$ac_objext \
17564 conftest$ac_exeext conftest.$ac_ext
17565 LIBS=$ac_check_lib_save_LIBS
17567 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17568 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17569 if test $ac_cv_lib_svld_dlopen = yes; then
17570 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17571 else
17572 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17573 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17574 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17575 echo $ECHO_N "(cached) $ECHO_C" >&6
17576 else
17577 ac_check_lib_save_LIBS=$LIBS
17578 LIBS="-ldld $LIBS"
17579 cat >conftest.$ac_ext <<_ACEOF
17580 /* confdefs.h. */
17581 _ACEOF
17582 cat confdefs.h >>conftest.$ac_ext
17583 cat >>conftest.$ac_ext <<_ACEOF
17584 /* end confdefs.h. */
17586 /* Override any GCC internal prototype to avoid an error.
17587 Use char because int might match the return type of a GCC
17588 builtin and then its argument prototype would still apply. */
17589 #ifdef __cplusplus
17590 extern "C"
17591 #endif
17592 char dld_link ();
17594 main ()
17596 return dld_link ();
17598 return 0;
17600 _ACEOF
17601 rm -f conftest.$ac_objext conftest$ac_exeext
17602 if { (ac_try="$ac_link"
17603 case "(($ac_try" in
17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17606 esac
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608 (eval "$ac_link") 2>conftest.er1
17609 ac_status=$?
17610 grep -v '^ *+' conftest.er1 >conftest.err
17611 rm -f conftest.er1
17612 cat conftest.err >&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); } &&
17615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17616 { (case "(($ac_try" in
17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17619 esac
17620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621 (eval "$ac_try") 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; } &&
17625 { ac_try='test -s conftest$ac_exeext'
17626 { (case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17629 esac
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_try") 2>&5
17632 ac_status=$?
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; }; then
17635 ac_cv_lib_dld_dld_link=yes
17636 else
17637 echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17640 ac_cv_lib_dld_dld_link=no
17643 rm -f core conftest.err conftest.$ac_objext \
17644 conftest$ac_exeext conftest.$ac_ext
17645 LIBS=$ac_check_lib_save_LIBS
17647 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17648 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17649 if test $ac_cv_lib_dld_dld_link = yes; then
17650 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17669 esac
17671 if test "x$lt_cv_dlopen" != xno; then
17672 enable_dlopen=yes
17673 else
17674 enable_dlopen=no
17677 case $lt_cv_dlopen in
17678 dlopen)
17679 save_CPPFLAGS="$CPPFLAGS"
17680 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17682 save_LDFLAGS="$LDFLAGS"
17683 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17685 save_LIBS="$LIBS"
17686 LIBS="$lt_cv_dlopen_libs $LIBS"
17688 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17689 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17690 if test "${lt_cv_dlopen_self+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17692 else
17693 if test "$cross_compiling" = yes; then :
17694 lt_cv_dlopen_self=cross
17695 else
17696 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17697 lt_status=$lt_dlunknown
17698 cat > conftest.$ac_ext <<EOF
17699 #line 17699 "configure"
17700 #include "confdefs.h"
17702 #if HAVE_DLFCN_H
17703 #include <dlfcn.h>
17704 #endif
17706 #include <stdio.h>
17708 #ifdef RTLD_GLOBAL
17709 # define LT_DLGLOBAL RTLD_GLOBAL
17710 #else
17711 # ifdef DL_GLOBAL
17712 # define LT_DLGLOBAL DL_GLOBAL
17713 # else
17714 # define LT_DLGLOBAL 0
17715 # endif
17716 #endif
17718 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17719 find out it does not work in some platform. */
17720 #ifndef LT_DLLAZY_OR_NOW
17721 # ifdef RTLD_LAZY
17722 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17723 # else
17724 # ifdef DL_LAZY
17725 # define LT_DLLAZY_OR_NOW DL_LAZY
17726 # else
17727 # ifdef RTLD_NOW
17728 # define LT_DLLAZY_OR_NOW RTLD_NOW
17729 # else
17730 # ifdef DL_NOW
17731 # define LT_DLLAZY_OR_NOW DL_NOW
17732 # else
17733 # define LT_DLLAZY_OR_NOW 0
17734 # endif
17735 # endif
17736 # endif
17737 # endif
17738 #endif
17740 #ifdef __cplusplus
17741 extern "C" void exit (int);
17742 #endif
17744 void fnord() { int i=42;}
17745 int main ()
17747 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17748 int status = $lt_dlunknown;
17750 if (self)
17752 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17753 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17754 /* dlclose (self); */
17756 else
17757 puts (dlerror ());
17759 exit (status);
17762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17763 (eval $ac_link) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17767 (./conftest; exit; ) >&5 2>/dev/null
17768 lt_status=$?
17769 case x$lt_status in
17770 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17771 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17772 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17773 esac
17774 else :
17775 # compilation failed
17776 lt_cv_dlopen_self=no
17779 rm -fr conftest*
17783 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17784 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17786 if test "x$lt_cv_dlopen_self" = xyes; then
17787 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17788 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17789 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17790 if test "${lt_cv_dlopen_self_static+set}" = set; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17792 else
17793 if test "$cross_compiling" = yes; then :
17794 lt_cv_dlopen_self_static=cross
17795 else
17796 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17797 lt_status=$lt_dlunknown
17798 cat > conftest.$ac_ext <<EOF
17799 #line 17799 "configure"
17800 #include "confdefs.h"
17802 #if HAVE_DLFCN_H
17803 #include <dlfcn.h>
17804 #endif
17806 #include <stdio.h>
17808 #ifdef RTLD_GLOBAL
17809 # define LT_DLGLOBAL RTLD_GLOBAL
17810 #else
17811 # ifdef DL_GLOBAL
17812 # define LT_DLGLOBAL DL_GLOBAL
17813 # else
17814 # define LT_DLGLOBAL 0
17815 # endif
17816 #endif
17818 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17819 find out it does not work in some platform. */
17820 #ifndef LT_DLLAZY_OR_NOW
17821 # ifdef RTLD_LAZY
17822 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17823 # else
17824 # ifdef DL_LAZY
17825 # define LT_DLLAZY_OR_NOW DL_LAZY
17826 # else
17827 # ifdef RTLD_NOW
17828 # define LT_DLLAZY_OR_NOW RTLD_NOW
17829 # else
17830 # ifdef DL_NOW
17831 # define LT_DLLAZY_OR_NOW DL_NOW
17832 # else
17833 # define LT_DLLAZY_OR_NOW 0
17834 # endif
17835 # endif
17836 # endif
17837 # endif
17838 #endif
17840 #ifdef __cplusplus
17841 extern "C" void exit (int);
17842 #endif
17844 void fnord() { int i=42;}
17845 int main ()
17847 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17848 int status = $lt_dlunknown;
17850 if (self)
17852 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17853 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17854 /* dlclose (self); */
17856 else
17857 puts (dlerror ());
17859 exit (status);
17862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17863 (eval $ac_link) 2>&5
17864 ac_status=$?
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17867 (./conftest; exit; ) >&5 2>/dev/null
17868 lt_status=$?
17869 case x$lt_status in
17870 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17871 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17872 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17873 esac
17874 else :
17875 # compilation failed
17876 lt_cv_dlopen_self_static=no
17879 rm -fr conftest*
17883 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17884 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17887 CPPFLAGS="$save_CPPFLAGS"
17888 LDFLAGS="$save_LDFLAGS"
17889 LIBS="$save_LIBS"
17891 esac
17893 case $lt_cv_dlopen_self in
17894 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17895 *) enable_dlopen_self=unknown ;;
17896 esac
17898 case $lt_cv_dlopen_self_static in
17899 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17900 *) enable_dlopen_self_static=unknown ;;
17901 esac
17905 # Report which library types will actually be built
17906 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17907 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17908 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17909 echo "${ECHO_T}$can_build_shared" >&6; }
17911 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17912 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17913 test "$can_build_shared" = "no" && enable_shared=no
17915 # On AIX, shared libraries and static libraries use the same namespace, and
17916 # are all built from PIC.
17917 case $host_os in
17918 aix3*)
17919 test "$enable_shared" = yes && enable_static=no
17920 if test -n "$RANLIB"; then
17921 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17922 postinstall_cmds='$RANLIB $lib'
17926 aix4* | aix5*)
17927 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17928 test "$enable_shared" = yes && enable_static=no
17931 esac
17932 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17933 echo "${ECHO_T}$enable_shared" >&6; }
17935 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17936 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17937 # Make sure either enable_shared or enable_static is yes.
17938 test "$enable_shared" = yes || enable_static=yes
17939 { echo "$as_me:$LINENO: result: $enable_static" >&5
17940 echo "${ECHO_T}$enable_static" >&6; }
17942 # The else clause should only fire when bootstrapping the
17943 # libtool distribution, otherwise you forgot to ship ltmain.sh
17944 # with your package, and you will get complaints that there are
17945 # no rules to generate ltmain.sh.
17946 if test -f "$ltmain"; then
17947 # See if we are running on zsh, and set the options which allow our commands through
17948 # without removal of \ escapes.
17949 if test -n "${ZSH_VERSION+set}" ; then
17950 setopt NO_GLOB_SUBST
17952 # Now quote all the things that may contain metacharacters while being
17953 # careful not to overquote the AC_SUBSTed values. We take copies of the
17954 # variables and quote the copies for generation of the libtool script.
17955 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17956 SED SHELL STRIP \
17957 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17958 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17959 deplibs_check_method reload_flag reload_cmds need_locks \
17960 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17961 lt_cv_sys_global_symbol_to_c_name_address \
17962 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17963 old_postinstall_cmds old_postuninstall_cmds \
17964 compiler \
17965 CC \
17966 LD \
17967 lt_prog_compiler_wl \
17968 lt_prog_compiler_pic \
17969 lt_prog_compiler_static \
17970 lt_prog_compiler_no_builtin_flag \
17971 export_dynamic_flag_spec \
17972 thread_safe_flag_spec \
17973 whole_archive_flag_spec \
17974 enable_shared_with_static_runtimes \
17975 old_archive_cmds \
17976 old_archive_from_new_cmds \
17977 predep_objects \
17978 postdep_objects \
17979 predeps \
17980 postdeps \
17981 compiler_lib_search_path \
17982 archive_cmds \
17983 archive_expsym_cmds \
17984 postinstall_cmds \
17985 postuninstall_cmds \
17986 old_archive_from_expsyms_cmds \
17987 allow_undefined_flag \
17988 no_undefined_flag \
17989 export_symbols_cmds \
17990 hardcode_libdir_flag_spec \
17991 hardcode_libdir_flag_spec_ld \
17992 hardcode_libdir_separator \
17993 hardcode_automatic \
17994 module_cmds \
17995 module_expsym_cmds \
17996 lt_cv_prog_compiler_c_o \
17997 exclude_expsyms \
17998 include_expsyms; do
18000 case $var in
18001 old_archive_cmds | \
18002 old_archive_from_new_cmds | \
18003 archive_cmds | \
18004 archive_expsym_cmds | \
18005 module_cmds | \
18006 module_expsym_cmds | \
18007 old_archive_from_expsyms_cmds | \
18008 export_symbols_cmds | \
18009 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18010 postinstall_cmds | postuninstall_cmds | \
18011 old_postinstall_cmds | old_postuninstall_cmds | \
18012 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18013 # Double-quote double-evaled strings.
18014 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18017 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18019 esac
18020 done
18022 case $lt_echo in
18023 *'\$0 --fallback-echo"')
18024 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18026 esac
18028 cfgfile="${ofile}T"
18029 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18030 $rm -f "$cfgfile"
18031 { echo "$as_me:$LINENO: creating $ofile" >&5
18032 echo "$as_me: creating $ofile" >&6;}
18034 cat <<__EOF__ >> "$cfgfile"
18035 #! $SHELL
18037 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18038 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18039 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18041 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18042 # Free Software Foundation, Inc.
18044 # This file is part of GNU Libtool:
18045 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18047 # This program is free software; you can redistribute it and/or modify
18048 # it under the terms of the GNU General Public License as published by
18049 # the Free Software Foundation; either version 2 of the License, or
18050 # (at your option) any later version.
18052 # This program is distributed in the hope that it will be useful, but
18053 # WITHOUT ANY WARRANTY; without even the implied warranty of
18054 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18055 # General Public License for more details.
18057 # You should have received a copy of the GNU General Public License
18058 # along with this program; if not, write to the Free Software
18059 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18061 # As a special exception to the GNU General Public License, if you
18062 # distribute this file as part of a program that contains a
18063 # configuration script generated by Autoconf, you may include it under
18064 # the same distribution terms that you use for the rest of that program.
18066 # A sed program that does not truncate output.
18067 SED=$lt_SED
18069 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18070 Xsed="$SED -e 1s/^X//"
18072 # The HP-UX ksh and POSIX shell print the target directory to stdout
18073 # if CDPATH is set.
18074 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18076 # The names of the tagged configurations supported by this script.
18077 available_tags=
18079 # ### BEGIN LIBTOOL CONFIG
18081 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18083 # Shell to use when invoking shell scripts.
18084 SHELL=$lt_SHELL
18086 # Whether or not to build shared libraries.
18087 build_libtool_libs=$enable_shared
18089 # Whether or not to build static libraries.
18090 build_old_libs=$enable_static
18092 # Whether or not to add -lc for building shared libraries.
18093 build_libtool_need_lc=$archive_cmds_need_lc
18095 # Whether or not to disallow shared libs when runtime libs are static
18096 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18098 # Whether or not to optimize for fast installation.
18099 fast_install=$enable_fast_install
18101 # The host system.
18102 host_alias=$host_alias
18103 host=$host
18104 host_os=$host_os
18106 # The build system.
18107 build_alias=$build_alias
18108 build=$build
18109 build_os=$build_os
18111 # An echo program that does not interpret backslashes.
18112 echo=$lt_echo
18114 # The archiver.
18115 AR=$lt_AR
18116 AR_FLAGS=$lt_AR_FLAGS
18118 # A C compiler.
18119 LTCC=$lt_LTCC
18121 # LTCC compiler flags.
18122 LTCFLAGS=$lt_LTCFLAGS
18124 # A language-specific compiler.
18125 CC=$lt_compiler
18127 # Is the compiler the GNU C compiler?
18128 with_gcc=$GCC
18130 # An ERE matcher.
18131 EGREP=$lt_EGREP
18133 # The linker used to build libraries.
18134 LD=$lt_LD
18136 # Whether we need hard or soft links.
18137 LN_S=$lt_LN_S
18139 # A BSD-compatible nm program.
18140 NM=$lt_NM
18142 # A symbol stripping program
18143 STRIP=$lt_STRIP
18145 # Used to examine libraries when file_magic_cmd begins "file"
18146 MAGIC_CMD=$MAGIC_CMD
18148 # Used on cygwin: DLL creation program.
18149 DLLTOOL="$DLLTOOL"
18151 # Used on cygwin: object dumper.
18152 OBJDUMP="$OBJDUMP"
18154 # Used on cygwin: assembler.
18155 AS="$AS"
18157 # The name of the directory that contains temporary libtool files.
18158 objdir=$objdir
18160 # How to create reloadable object files.
18161 reload_flag=$lt_reload_flag
18162 reload_cmds=$lt_reload_cmds
18164 # How to pass a linker flag through the compiler.
18165 wl=$lt_lt_prog_compiler_wl
18167 # Object file suffix (normally "o").
18168 objext="$ac_objext"
18170 # Old archive suffix (normally "a").
18171 libext="$libext"
18173 # Shared library suffix (normally ".so").
18174 shrext_cmds='$shrext_cmds'
18176 # Executable file suffix (normally "").
18177 exeext="$exeext"
18179 # Additional compiler flags for building library objects.
18180 pic_flag=$lt_lt_prog_compiler_pic
18181 pic_mode=$pic_mode
18183 # What is the maximum length of a command?
18184 max_cmd_len=$lt_cv_sys_max_cmd_len
18186 # Does compiler simultaneously support -c and -o options?
18187 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18189 # Must we lock files when doing compilation?
18190 need_locks=$lt_need_locks
18192 # Do we need the lib prefix for modules?
18193 need_lib_prefix=$need_lib_prefix
18195 # Do we need a version for libraries?
18196 need_version=$need_version
18198 # Whether dlopen is supported.
18199 dlopen_support=$enable_dlopen
18201 # Whether dlopen of programs is supported.
18202 dlopen_self=$enable_dlopen_self
18204 # Whether dlopen of statically linked programs is supported.
18205 dlopen_self_static=$enable_dlopen_self_static
18207 # Compiler flag to prevent dynamic linking.
18208 link_static_flag=$lt_lt_prog_compiler_static
18210 # Compiler flag to turn off builtin functions.
18211 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18213 # Compiler flag to allow reflexive dlopens.
18214 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18216 # Compiler flag to generate shared objects directly from archives.
18217 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18219 # Compiler flag to generate thread-safe objects.
18220 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18222 # Library versioning type.
18223 version_type=$version_type
18225 # Format of library name prefix.
18226 libname_spec=$lt_libname_spec
18228 # List of archive names. First name is the real one, the rest are links.
18229 # The last name is the one that the linker finds with -lNAME.
18230 library_names_spec=$lt_library_names_spec
18232 # The coded name of the library, if different from the real name.
18233 soname_spec=$lt_soname_spec
18235 # Commands used to build and install an old-style archive.
18236 RANLIB=$lt_RANLIB
18237 old_archive_cmds=$lt_old_archive_cmds
18238 old_postinstall_cmds=$lt_old_postinstall_cmds
18239 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18241 # Create an old-style archive from a shared archive.
18242 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18244 # Create a temporary old-style archive to link instead of a shared archive.
18245 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18247 # Commands used to build and install a shared archive.
18248 archive_cmds=$lt_archive_cmds
18249 archive_expsym_cmds=$lt_archive_expsym_cmds
18250 postinstall_cmds=$lt_postinstall_cmds
18251 postuninstall_cmds=$lt_postuninstall_cmds
18253 # Commands used to build a loadable module (assumed same as above if empty)
18254 module_cmds=$lt_module_cmds
18255 module_expsym_cmds=$lt_module_expsym_cmds
18257 # Commands to strip libraries.
18258 old_striplib=$lt_old_striplib
18259 striplib=$lt_striplib
18261 # Dependencies to place before the objects being linked to create a
18262 # shared library.
18263 predep_objects=$lt_predep_objects
18265 # Dependencies to place after the objects being linked to create a
18266 # shared library.
18267 postdep_objects=$lt_postdep_objects
18269 # Dependencies to place before the objects being linked to create a
18270 # shared library.
18271 predeps=$lt_predeps
18273 # Dependencies to place after the objects being linked to create a
18274 # shared library.
18275 postdeps=$lt_postdeps
18277 # The library search path used internally by the compiler when linking
18278 # a shared library.
18279 compiler_lib_search_path=$lt_compiler_lib_search_path
18281 # Method to check whether dependent libraries are shared objects.
18282 deplibs_check_method=$lt_deplibs_check_method
18284 # Command to use when deplibs_check_method == file_magic.
18285 file_magic_cmd=$lt_file_magic_cmd
18287 # Flag that allows shared libraries with undefined symbols to be built.
18288 allow_undefined_flag=$lt_allow_undefined_flag
18290 # Flag that forces no undefined symbols.
18291 no_undefined_flag=$lt_no_undefined_flag
18293 # Commands used to finish a libtool library installation in a directory.
18294 finish_cmds=$lt_finish_cmds
18296 # Same as above, but a single script fragment to be evaled but not shown.
18297 finish_eval=$lt_finish_eval
18299 # Take the output of nm and produce a listing of raw symbols and C names.
18300 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18302 # Transform the output of nm in a proper C declaration
18303 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18305 # Transform the output of nm in a C name address pair
18306 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18308 # This is the shared library runtime path variable.
18309 runpath_var=$runpath_var
18311 # This is the shared library path variable.
18312 shlibpath_var=$shlibpath_var
18314 # Is shlibpath searched before the hard-coded library search path?
18315 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18317 # How to hardcode a shared library path into an executable.
18318 hardcode_action=$hardcode_action
18320 # Whether we should hardcode library paths into libraries.
18321 hardcode_into_libs=$hardcode_into_libs
18323 # Flag to hardcode \$libdir into a binary during linking.
18324 # This must work even if \$libdir does not exist.
18325 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18327 # If ld is used when linking, flag to hardcode \$libdir into
18328 # a binary during linking. This must work even if \$libdir does
18329 # not exist.
18330 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18332 # Whether we need a single -rpath flag with a separated argument.
18333 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18335 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18336 # resulting binary.
18337 hardcode_direct=$hardcode_direct
18339 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18340 # resulting binary.
18341 hardcode_minus_L=$hardcode_minus_L
18343 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18344 # the resulting binary.
18345 hardcode_shlibpath_var=$hardcode_shlibpath_var
18347 # Set to yes if building a shared library automatically hardcodes DIR into the library
18348 # and all subsequent libraries and executables linked against it.
18349 hardcode_automatic=$hardcode_automatic
18351 # Variables whose values should be saved in libtool wrapper scripts and
18352 # restored at relink time.
18353 variables_saved_for_relink="$variables_saved_for_relink"
18355 # Whether libtool must link a program against all its dependency libraries.
18356 link_all_deplibs=$link_all_deplibs
18358 # Compile-time system search path for libraries
18359 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18361 # Run-time system search path for libraries
18362 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18364 # Fix the shell variable \$srcfile for the compiler.
18365 fix_srcfile_path="$fix_srcfile_path"
18367 # Set to yes if exported symbols are required.
18368 always_export_symbols=$always_export_symbols
18370 # The commands to list exported symbols.
18371 export_symbols_cmds=$lt_export_symbols_cmds
18373 # The commands to extract the exported symbol list from a shared archive.
18374 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18376 # Symbols that should not be listed in the preloaded symbols.
18377 exclude_expsyms=$lt_exclude_expsyms
18379 # Symbols that must always be exported.
18380 include_expsyms=$lt_include_expsyms
18382 # ### END LIBTOOL CONFIG
18384 __EOF__
18387 case $host_os in
18388 aix3*)
18389 cat <<\EOF >> "$cfgfile"
18391 # AIX sometimes has problems with the GCC collect2 program. For some
18392 # reason, if we set the COLLECT_NAMES environment variable, the problems
18393 # vanish in a puff of smoke.
18394 if test "X${COLLECT_NAMES+set}" != Xset; then
18395 COLLECT_NAMES=
18396 export COLLECT_NAMES
18400 esac
18402 # We use sed instead of cat because bash on DJGPP gets confused if
18403 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18404 # text mode, it properly converts lines to CR/LF. This bash problem
18405 # is reportedly fixed, but why not run on old versions too?
18406 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18408 mv -f "$cfgfile" "$ofile" || \
18409 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18410 chmod +x "$ofile"
18412 else
18413 # If there is no Makefile yet, we rely on a make rule to execute
18414 # `config.status --recheck' to rerun these tests and create the
18415 # libtool script then.
18416 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18417 if test -f "$ltmain_in"; then
18418 test -f Makefile && make "$ltmain"
18423 ac_ext=c
18424 ac_cpp='$CPP $CPPFLAGS'
18425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18429 CC="$lt_save_CC"
18432 # Check whether --with-tags was given.
18433 if test "${with_tags+set}" = set; then
18434 withval=$with_tags; tagnames="$withval"
18438 if test -f "$ltmain" && test -n "$tagnames"; then
18439 if test ! -f "${ofile}"; then
18440 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18441 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18444 if test -z "$LTCC"; then
18445 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18446 if test -z "$LTCC"; then
18447 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18448 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18449 else
18450 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18451 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18454 if test -z "$LTCFLAGS"; then
18455 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18458 # Extract list of available tagged configurations in $ofile.
18459 # Note that this assumes the entire list is on one line.
18460 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18462 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18463 for tagname in $tagnames; do
18464 IFS="$lt_save_ifs"
18465 # Check whether tagname contains only valid characters
18466 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18467 "") ;;
18468 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18469 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18470 { (exit 1); exit 1; }; }
18472 esac
18474 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18475 then
18476 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18477 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18478 { (exit 1); exit 1; }; }
18481 # Update the list of available tags.
18482 if test -n "$tagname"; then
18483 echo appending configuration tag \"$tagname\" to $ofile
18485 case $tagname in
18486 CXX)
18487 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18488 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18489 (test "X$CXX" != "Xg++"))) ; then
18490 ac_ext=cpp
18491 ac_cpp='$CXXCPP $CPPFLAGS'
18492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18499 archive_cmds_need_lc_CXX=no
18500 allow_undefined_flag_CXX=
18501 always_export_symbols_CXX=no
18502 archive_expsym_cmds_CXX=
18503 export_dynamic_flag_spec_CXX=
18504 hardcode_direct_CXX=no
18505 hardcode_libdir_flag_spec_CXX=
18506 hardcode_libdir_flag_spec_ld_CXX=
18507 hardcode_libdir_separator_CXX=
18508 hardcode_minus_L_CXX=no
18509 hardcode_shlibpath_var_CXX=unsupported
18510 hardcode_automatic_CXX=no
18511 module_cmds_CXX=
18512 module_expsym_cmds_CXX=
18513 link_all_deplibs_CXX=unknown
18514 old_archive_cmds_CXX=$old_archive_cmds
18515 no_undefined_flag_CXX=
18516 whole_archive_flag_spec_CXX=
18517 enable_shared_with_static_runtimes_CXX=no
18519 # Dependencies to place before and after the object being linked:
18520 predep_objects_CXX=
18521 postdep_objects_CXX=
18522 predeps_CXX=
18523 postdeps_CXX=
18524 compiler_lib_search_path_CXX=
18526 # Source file extension for C++ test sources.
18527 ac_ext=cpp
18529 # Object file extension for compiled C++ test sources.
18530 objext=o
18531 objext_CXX=$objext
18533 # Code to be used in simple compile tests
18534 lt_simple_compile_test_code="int some_variable = 0;\n"
18536 # Code to be used in simple link tests
18537 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18539 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18541 # If no C compiler was specified, use CC.
18542 LTCC=${LTCC-"$CC"}
18544 # If no C compiler flags were specified, use CFLAGS.
18545 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18547 # Allow CC to be a program name with arguments.
18548 compiler=$CC
18551 # save warnings/boilerplate of simple test code
18552 ac_outfile=conftest.$ac_objext
18553 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18554 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18555 _lt_compiler_boilerplate=`cat conftest.err`
18556 $rm conftest*
18558 ac_outfile=conftest.$ac_objext
18559 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18560 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18561 _lt_linker_boilerplate=`cat conftest.err`
18562 $rm conftest*
18565 # Allow CC to be a program name with arguments.
18566 lt_save_CC=$CC
18567 lt_save_LD=$LD
18568 lt_save_GCC=$GCC
18569 GCC=$GXX
18570 lt_save_with_gnu_ld=$with_gnu_ld
18571 lt_save_path_LD=$lt_cv_path_LD
18572 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18573 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18574 else
18575 $as_unset lt_cv_prog_gnu_ld
18577 if test -n "${lt_cv_path_LDCXX+set}"; then
18578 lt_cv_path_LD=$lt_cv_path_LDCXX
18579 else
18580 $as_unset lt_cv_path_LD
18582 test -z "${LDCXX+set}" || LD=$LDCXX
18583 CC=${CXX-"c++"}
18584 compiler=$CC
18585 compiler_CXX=$CC
18586 for cc_temp in $compiler""; do
18587 case $cc_temp in
18588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18590 \-*) ;;
18591 *) break;;
18592 esac
18593 done
18594 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18597 # We don't want -fno-exception wen compiling C++ code, so set the
18598 # no_builtin_flag separately
18599 if test "$GXX" = yes; then
18600 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18601 else
18602 lt_prog_compiler_no_builtin_flag_CXX=
18605 if test "$GXX" = yes; then
18606 # Set up default GNU C++ configuration
18609 # Check whether --with-gnu-ld was given.
18610 if test "${with_gnu_ld+set}" = set; then
18611 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18612 else
18613 with_gnu_ld=no
18616 ac_prog=ld
18617 if test "$GCC" = yes; then
18618 # Check if gcc -print-prog-name=ld gives a path.
18619 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18620 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18621 case $host in
18622 *-*-mingw*)
18623 # gcc leaves a trailing carriage return which upsets mingw
18624 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18626 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18627 esac
18628 case $ac_prog in
18629 # Accept absolute paths.
18630 [\\/]* | ?:[\\/]*)
18631 re_direlt='/[^/][^/]*/\.\./'
18632 # Canonicalize the pathname of ld
18633 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18634 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18635 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18636 done
18637 test -z "$LD" && LD="$ac_prog"
18640 # If it fails, then pretend we aren't using GCC.
18641 ac_prog=ld
18644 # If it is relative, then search for the first ld in PATH.
18645 with_gnu_ld=unknown
18647 esac
18648 elif test "$with_gnu_ld" = yes; then
18649 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18650 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18651 else
18652 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18653 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18655 if test "${lt_cv_path_LD+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18657 else
18658 if test -z "$LD"; then
18659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18660 for ac_dir in $PATH; do
18661 IFS="$lt_save_ifs"
18662 test -z "$ac_dir" && ac_dir=.
18663 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18664 lt_cv_path_LD="$ac_dir/$ac_prog"
18665 # Check to see if the program is GNU ld. I'd rather use --version,
18666 # but apparently some variants of GNU ld only accept -v.
18667 # Break only if it was the GNU/non-GNU ld that we prefer.
18668 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18669 *GNU* | *'with BFD'*)
18670 test "$with_gnu_ld" != no && break
18673 test "$with_gnu_ld" != yes && break
18675 esac
18677 done
18678 IFS="$lt_save_ifs"
18679 else
18680 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18684 LD="$lt_cv_path_LD"
18685 if test -n "$LD"; then
18686 { echo "$as_me:$LINENO: result: $LD" >&5
18687 echo "${ECHO_T}$LD" >&6; }
18688 else
18689 { echo "$as_me:$LINENO: result: no" >&5
18690 echo "${ECHO_T}no" >&6; }
18692 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18693 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18694 { (exit 1); exit 1; }; }
18695 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18696 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18697 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18698 echo $ECHO_N "(cached) $ECHO_C" >&6
18699 else
18700 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18701 case `$LD -v 2>&1 </dev/null` in
18702 *GNU* | *'with BFD'*)
18703 lt_cv_prog_gnu_ld=yes
18706 lt_cv_prog_gnu_ld=no
18708 esac
18710 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18711 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18712 with_gnu_ld=$lt_cv_prog_gnu_ld
18716 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18717 # archiving commands below assume that GNU ld is being used.
18718 if test "$with_gnu_ld" = yes; then
18719 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18720 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'
18722 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18723 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18725 # If archive_cmds runs LD, not CC, wlarc should be empty
18726 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18727 # investigate it a little bit more. (MM)
18728 wlarc='${wl}'
18730 # ancient GNU ld didn't support --whole-archive et. al.
18731 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18732 grep 'no-whole-archive' > /dev/null; then
18733 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18734 else
18735 whole_archive_flag_spec_CXX=
18737 else
18738 with_gnu_ld=no
18739 wlarc=
18741 # A generic and very simple default shared library creation
18742 # command for GNU C++ for the case where it uses the native
18743 # linker, instead of GNU ld. If possible, this setting should
18744 # overridden to take advantage of the native linker features on
18745 # the platform it is being used on.
18746 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18749 # Commands to make compiler produce verbose output that lists
18750 # what "hidden" libraries, object files and flags are used when
18751 # linking a shared library.
18752 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18754 else
18755 GXX=no
18756 with_gnu_ld=no
18757 wlarc=
18760 # PORTME: fill in a description of your system's C++ link characteristics
18761 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18762 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18763 ld_shlibs_CXX=yes
18764 case $host_os in
18765 aix3*)
18766 # FIXME: insert proper C++ library support
18767 ld_shlibs_CXX=no
18769 aix4* | aix5*)
18770 if test "$host_cpu" = ia64; then
18771 # On IA64, the linker does run time linking by default, so we don't
18772 # have to do anything special.
18773 aix_use_runtimelinking=no
18774 exp_sym_flag='-Bexport'
18775 no_entry_flag=""
18776 else
18777 aix_use_runtimelinking=no
18779 # Test if we are trying to use run time linking or normal
18780 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18781 # need to do runtime linking.
18782 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18783 for ld_flag in $LDFLAGS; do
18784 case $ld_flag in
18785 *-brtl*)
18786 aix_use_runtimelinking=yes
18787 break
18789 esac
18790 done
18792 esac
18794 exp_sym_flag='-bexport'
18795 no_entry_flag='-bnoentry'
18798 # When large executables or shared objects are built, AIX ld can
18799 # have problems creating the table of contents. If linking a library
18800 # or program results in "error TOC overflow" add -mminimal-toc to
18801 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18802 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18804 archive_cmds_CXX=''
18805 hardcode_direct_CXX=yes
18806 hardcode_libdir_separator_CXX=':'
18807 link_all_deplibs_CXX=yes
18809 if test "$GXX" = yes; then
18810 case $host_os in aix4.[012]|aix4.[012].*)
18811 # We only want to do this on AIX 4.2 and lower, the check
18812 # below for broken collect2 doesn't work under 4.3+
18813 collect2name=`${CC} -print-prog-name=collect2`
18814 if test -f "$collect2name" && \
18815 strings "$collect2name" | grep resolve_lib_name >/dev/null
18816 then
18817 # We have reworked collect2
18818 hardcode_direct_CXX=yes
18819 else
18820 # We have old collect2
18821 hardcode_direct_CXX=unsupported
18822 # It fails to find uninstalled libraries when the uninstalled
18823 # path is not listed in the libpath. Setting hardcode_minus_L
18824 # to unsupported forces relinking
18825 hardcode_minus_L_CXX=yes
18826 hardcode_libdir_flag_spec_CXX='-L$libdir'
18827 hardcode_libdir_separator_CXX=
18830 esac
18831 shared_flag='-shared'
18832 if test "$aix_use_runtimelinking" = yes; then
18833 shared_flag="$shared_flag "'${wl}-G'
18835 else
18836 # not using gcc
18837 if test "$host_cpu" = ia64; then
18838 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18839 # chokes on -Wl,-G. The following line is correct:
18840 shared_flag='-G'
18841 else
18842 if test "$aix_use_runtimelinking" = yes; then
18843 shared_flag='${wl}-G'
18844 else
18845 shared_flag='${wl}-bM:SRE'
18850 # It seems that -bexpall does not export symbols beginning with
18851 # underscore (_), so it is better to generate a list of symbols to export.
18852 always_export_symbols_CXX=yes
18853 if test "$aix_use_runtimelinking" = yes; then
18854 # Warning - without using the other runtime loading flags (-brtl),
18855 # -berok will link without error, but may produce a broken library.
18856 allow_undefined_flag_CXX='-berok'
18857 # Determine the default libpath from the value encoded in an empty executable.
18858 cat >conftest.$ac_ext <<_ACEOF
18859 /* confdefs.h. */
18860 _ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h. */
18866 main ()
18870 return 0;
18872 _ACEOF
18873 rm -f conftest.$ac_objext conftest$ac_exeext
18874 if { (ac_try="$ac_link"
18875 case "(($ac_try" in
18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877 *) ac_try_echo=$ac_try;;
18878 esac
18879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880 (eval "$ac_link") 2>conftest.er1
18881 ac_status=$?
18882 grep -v '^ *+' conftest.er1 >conftest.err
18883 rm -f conftest.er1
18884 cat conftest.err >&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } &&
18887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18888 { (case "(($ac_try" in
18889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890 *) ac_try_echo=$ac_try;;
18891 esac
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893 (eval "$ac_try") 2>&5
18894 ac_status=$?
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; } &&
18897 { ac_try='test -s conftest$ac_exeext'
18898 { (case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18901 esac
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903 (eval "$ac_try") 2>&5
18904 ac_status=$?
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); }; }; then
18908 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18910 # Check for a 64-bit object if we didn't find anything.
18911 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; }
18912 }'`; fi
18913 else
18914 echo "$as_me: failed program was:" >&5
18915 sed 's/^/| /' conftest.$ac_ext >&5
18920 rm -f core conftest.err conftest.$ac_objext \
18921 conftest$ac_exeext conftest.$ac_ext
18922 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18924 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18926 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"
18927 else
18928 if test "$host_cpu" = ia64; then
18929 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18930 allow_undefined_flag_CXX="-z nodefs"
18931 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"
18932 else
18933 # Determine the default libpath from the value encoded in an empty executable.
18934 cat >conftest.$ac_ext <<_ACEOF
18935 /* confdefs.h. */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18942 main ()
18946 return 0;
18948 _ACEOF
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (ac_try="$ac_link"
18951 case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18954 esac
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956 (eval "$ac_link") 2>conftest.er1
18957 ac_status=$?
18958 grep -v '^ *+' conftest.er1 >conftest.err
18959 rm -f conftest.er1
18960 cat conftest.err >&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } &&
18963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18964 { (case "(($ac_try" in
18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18967 esac
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_try") 2>&5
18970 ac_status=$?
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; } &&
18973 { ac_try='test -s conftest$ac_exeext'
18974 { (case "(($ac_try" in
18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18977 esac
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_try") 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18984 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18986 # Check for a 64-bit object if we didn't find anything.
18987 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; }
18988 }'`; fi
18989 else
18990 echo "$as_me: failed program was:" >&5
18991 sed 's/^/| /' conftest.$ac_ext >&5
18996 rm -f core conftest.err conftest.$ac_objext \
18997 conftest$ac_exeext conftest.$ac_ext
18998 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19000 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19001 # Warning - without using the other run time loading flags,
19002 # -berok will link without error, but may produce a broken library.
19003 no_undefined_flag_CXX=' ${wl}-bernotok'
19004 allow_undefined_flag_CXX=' ${wl}-berok'
19005 # Exported symbols can be pulled into shared objects from archives
19006 whole_archive_flag_spec_CXX='$convenience'
19007 archive_cmds_need_lc_CXX=yes
19008 # This is similar to how AIX traditionally builds its shared libraries.
19009 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'
19014 beos*)
19015 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19016 allow_undefined_flag_CXX=unsupported
19017 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19018 # support --undefined. This deserves some investigation. FIXME
19019 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19020 else
19021 ld_shlibs_CXX=no
19025 chorus*)
19026 case $cc_basename in
19028 # FIXME: insert proper C++ library support
19029 ld_shlibs_CXX=no
19031 esac
19034 cygwin* | mingw* | pw32*)
19035 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19036 # as there is no search path for DLLs.
19037 hardcode_libdir_flag_spec_CXX='-L$libdir'
19038 allow_undefined_flag_CXX=unsupported
19039 always_export_symbols_CXX=no
19040 enable_shared_with_static_runtimes_CXX=yes
19042 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19043 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'
19044 # If the export-symbols file already is a .def file (1st line
19045 # is EXPORTS), use it as is; otherwise, prepend...
19046 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19047 cp $export_symbols $output_objdir/$soname.def;
19048 else
19049 echo EXPORTS > $output_objdir/$soname.def;
19050 cat $export_symbols >> $output_objdir/$soname.def;
19052 $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'
19053 else
19054 ld_shlibs_CXX=no
19057 darwin* | rhapsody*)
19058 case $host_os in
19059 rhapsody* | darwin1.[012])
19060 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19062 *) # Darwin 1.3 on
19063 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19064 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19065 else
19066 case ${MACOSX_DEPLOYMENT_TARGET} in
19067 10.[012])
19068 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19070 10.*)
19071 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19073 esac
19076 esac
19077 archive_cmds_need_lc_CXX=no
19078 hardcode_direct_CXX=no
19079 hardcode_automatic_CXX=yes
19080 hardcode_shlibpath_var_CXX=unsupported
19081 whole_archive_flag_spec_CXX=''
19082 link_all_deplibs_CXX=yes
19084 if test "$GXX" = yes ; then
19085 lt_int_apple_cc_single_mod=no
19086 output_verbose_link_cmd='echo'
19087 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19088 lt_int_apple_cc_single_mod=yes
19090 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19091 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19092 else
19093 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'
19095 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19096 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19097 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19098 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}'
19099 else
19100 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}'
19102 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}'
19103 else
19104 case $cc_basename in
19105 xlc*)
19106 output_verbose_link_cmd='echo'
19107 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'
19108 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19109 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19110 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}'
19111 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}'
19114 ld_shlibs_CXX=no
19116 esac
19120 dgux*)
19121 case $cc_basename in
19122 ec++*)
19123 # FIXME: insert proper C++ library support
19124 ld_shlibs_CXX=no
19126 ghcx*)
19127 # Green Hills C++ Compiler
19128 # FIXME: insert proper C++ library support
19129 ld_shlibs_CXX=no
19132 # FIXME: insert proper C++ library support
19133 ld_shlibs_CXX=no
19135 esac
19137 freebsd[12]*)
19138 # C++ shared libraries reported to be fairly broken before switch to ELF
19139 ld_shlibs_CXX=no
19141 freebsd-elf*)
19142 archive_cmds_need_lc_CXX=no
19144 freebsd* | kfreebsd*-gnu | dragonfly*)
19145 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19146 # conventions
19147 ld_shlibs_CXX=yes
19149 gnu*)
19151 hpux9*)
19152 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19153 hardcode_libdir_separator_CXX=:
19154 export_dynamic_flag_spec_CXX='${wl}-E'
19155 hardcode_direct_CXX=yes
19156 hardcode_minus_L_CXX=yes # Not in the search PATH,
19157 # but as the default
19158 # location of the library.
19160 case $cc_basename in
19161 CC*)
19162 # FIXME: insert proper C++ library support
19163 ld_shlibs_CXX=no
19165 aCC*)
19166 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'
19167 # Commands to make compiler produce verbose output that lists
19168 # what "hidden" libraries, object files and flags are used when
19169 # linking a shared library.
19171 # There doesn't appear to be a way to prevent this compiler from
19172 # explicitly linking system object files so we need to strip them
19173 # from the output so that they don't get included in the library
19174 # dependencies.
19175 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'
19178 if test "$GXX" = yes; then
19179 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'
19180 else
19181 # FIXME: insert proper C++ library support
19182 ld_shlibs_CXX=no
19185 esac
19187 hpux10*|hpux11*)
19188 if test $with_gnu_ld = no; then
19189 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19190 hardcode_libdir_separator_CXX=:
19192 case $host_cpu in
19193 hppa*64*|ia64*)
19194 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19197 export_dynamic_flag_spec_CXX='${wl}-E'
19199 esac
19201 case $host_cpu in
19202 hppa*64*|ia64*)
19203 hardcode_direct_CXX=no
19204 hardcode_shlibpath_var_CXX=no
19207 hardcode_direct_CXX=yes
19208 hardcode_minus_L_CXX=yes # Not in the search PATH,
19209 # but as the default
19210 # location of the library.
19212 esac
19214 case $cc_basename in
19215 CC*)
19216 # FIXME: insert proper C++ library support
19217 ld_shlibs_CXX=no
19219 aCC*)
19220 case $host_cpu in
19221 hppa*64*)
19222 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19224 ia64*)
19225 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19228 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19230 esac
19231 # Commands to make compiler produce verbose output that lists
19232 # what "hidden" libraries, object files and flags are used when
19233 # linking a shared library.
19235 # There doesn't appear to be a way to prevent this compiler from
19236 # explicitly linking system object files so we need to strip them
19237 # from the output so that they don't get included in the library
19238 # dependencies.
19239 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'
19242 if test "$GXX" = yes; then
19243 if test $with_gnu_ld = no; then
19244 case $host_cpu in
19245 hppa*64*)
19246 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19248 ia64*)
19249 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19252 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'
19254 esac
19256 else
19257 # FIXME: insert proper C++ library support
19258 ld_shlibs_CXX=no
19261 esac
19263 interix3*)
19264 hardcode_direct_CXX=no
19265 hardcode_shlibpath_var_CXX=no
19266 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19267 export_dynamic_flag_spec_CXX='${wl}-E'
19268 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19269 # Instead, shared libraries are loaded at an image base (0x10000000 by
19270 # default) and relocated if they conflict, which is a slow very memory
19271 # consuming and fragmenting process. To avoid this, we pick a random,
19272 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19273 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19274 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'
19275 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'
19277 irix5* | irix6*)
19278 case $cc_basename in
19279 CC*)
19280 # SGI C++
19281 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'
19283 # Archives containing C++ object files must be created using
19284 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19285 # necessary to make sure instantiated templates are included
19286 # in the archive.
19287 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19290 if test "$GXX" = yes; then
19291 if test "$with_gnu_ld" = no; then
19292 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'
19293 else
19294 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'
19297 link_all_deplibs_CXX=yes
19299 esac
19300 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19301 hardcode_libdir_separator_CXX=:
19303 linux*)
19304 case $cc_basename in
19305 KCC*)
19306 # Kuck and Associates, Inc. (KAI) C++ Compiler
19308 # KCC will only create a shared library if the output file
19309 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19310 # to its proper name (with version) after linking.
19311 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'
19312 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'
19313 # Commands to make compiler produce verbose output that lists
19314 # what "hidden" libraries, object files and flags are used when
19315 # linking a shared library.
19317 # There doesn't appear to be a way to prevent this compiler from
19318 # explicitly linking system object files so we need to strip them
19319 # from the output so that they don't get included in the library
19320 # dependencies.
19321 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'
19323 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19324 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19326 # Archives containing C++ object files must be created using
19327 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19328 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19330 icpc*)
19331 # Intel C++
19332 with_gnu_ld=yes
19333 # version 8.0 and above of icpc choke on multiply defined symbols
19334 # if we add $predep_objects and $postdep_objects, however 7.1 and
19335 # earlier do not add the objects themselves.
19336 case `$CC -V 2>&1` in
19337 *"Version 7."*)
19338 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19339 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'
19341 *) # Version 8.0 or newer
19342 tmp_idyn=
19343 case $host_cpu in
19344 ia64*) tmp_idyn=' -i_dynamic';;
19345 esac
19346 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19347 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'
19349 esac
19350 archive_cmds_need_lc_CXX=no
19351 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19352 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19353 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19355 pgCC*)
19356 # Portland Group C++ compiler
19357 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19358 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'
19360 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19361 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19362 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'
19364 cxx*)
19365 # Compaq C++
19366 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19367 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'
19369 runpath_var=LD_RUN_PATH
19370 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19371 hardcode_libdir_separator_CXX=:
19373 # Commands to make compiler produce verbose output that lists
19374 # what "hidden" libraries, object files and flags are used when
19375 # linking a shared library.
19377 # There doesn't appear to be a way to prevent this compiler from
19378 # explicitly linking system object files so we need to strip them
19379 # from the output so that they don't get included in the library
19380 # dependencies.
19381 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'
19383 esac
19385 lynxos*)
19386 # FIXME: insert proper C++ library support
19387 ld_shlibs_CXX=no
19389 m88k*)
19390 # FIXME: insert proper C++ library support
19391 ld_shlibs_CXX=no
19393 mvs*)
19394 case $cc_basename in
19395 cxx*)
19396 # FIXME: insert proper C++ library support
19397 ld_shlibs_CXX=no
19400 # FIXME: insert proper C++ library support
19401 ld_shlibs_CXX=no
19403 esac
19405 netbsd*)
19406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19407 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19408 wlarc=
19409 hardcode_libdir_flag_spec_CXX='-R$libdir'
19410 hardcode_direct_CXX=yes
19411 hardcode_shlibpath_var_CXX=no
19413 # Workaround some broken pre-1.5 toolchains
19414 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19416 openbsd2*)
19417 # C++ shared libraries are fairly broken
19418 ld_shlibs_CXX=no
19420 openbsd*)
19421 hardcode_direct_CXX=yes
19422 hardcode_shlibpath_var_CXX=no
19423 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19424 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19425 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19426 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19427 export_dynamic_flag_spec_CXX='${wl}-E'
19428 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19430 output_verbose_link_cmd='echo'
19432 osf3*)
19433 case $cc_basename in
19434 KCC*)
19435 # Kuck and Associates, Inc. (KAI) C++ Compiler
19437 # KCC will only create a shared library if the output file
19438 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19439 # to its proper name (with version) after linking.
19440 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'
19442 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19443 hardcode_libdir_separator_CXX=:
19445 # Archives containing C++ object files must be created using
19446 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19447 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19450 RCC*)
19451 # Rational C++ 2.4.1
19452 # FIXME: insert proper C++ library support
19453 ld_shlibs_CXX=no
19455 cxx*)
19456 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19457 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'
19459 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19460 hardcode_libdir_separator_CXX=:
19462 # Commands to make compiler produce verbose output that lists
19463 # what "hidden" libraries, object files and flags are used when
19464 # linking a shared library.
19466 # There doesn't appear to be a way to prevent this compiler from
19467 # explicitly linking system object files so we need to strip them
19468 # from the output so that they don't get included in the library
19469 # dependencies.
19470 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'
19473 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19474 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19475 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'
19477 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19478 hardcode_libdir_separator_CXX=:
19480 # Commands to make compiler produce verbose output that lists
19481 # what "hidden" libraries, object files and flags are used when
19482 # linking a shared library.
19483 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19485 else
19486 # FIXME: insert proper C++ library support
19487 ld_shlibs_CXX=no
19490 esac
19492 osf4* | osf5*)
19493 case $cc_basename in
19494 KCC*)
19495 # Kuck and Associates, Inc. (KAI) C++ Compiler
19497 # KCC will only create a shared library if the output file
19498 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19499 # to its proper name (with version) after linking.
19500 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'
19502 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19503 hardcode_libdir_separator_CXX=:
19505 # Archives containing C++ object files must be created using
19506 # the KAI C++ compiler.
19507 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19509 RCC*)
19510 # Rational C++ 2.4.1
19511 # FIXME: insert proper C++ library support
19512 ld_shlibs_CXX=no
19514 cxx*)
19515 allow_undefined_flag_CXX=' -expect_unresolved \*'
19516 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'
19517 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19518 echo "-hidden">> $lib.exp~
19519 $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~
19520 $rm $lib.exp'
19522 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19523 hardcode_libdir_separator_CXX=:
19525 # Commands to make compiler produce verbose output that lists
19526 # what "hidden" libraries, object files and flags are used when
19527 # linking a shared library.
19529 # There doesn't appear to be a way to prevent this compiler from
19530 # explicitly linking system object files so we need to strip them
19531 # from the output so that they don't get included in the library
19532 # dependencies.
19533 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'
19536 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19537 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19538 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'
19540 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19541 hardcode_libdir_separator_CXX=:
19543 # Commands to make compiler produce verbose output that lists
19544 # what "hidden" libraries, object files and flags are used when
19545 # linking a shared library.
19546 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19548 else
19549 # FIXME: insert proper C++ library support
19550 ld_shlibs_CXX=no
19553 esac
19555 psos*)
19556 # FIXME: insert proper C++ library support
19557 ld_shlibs_CXX=no
19559 sunos4*)
19560 case $cc_basename in
19561 CC*)
19562 # Sun C++ 4.x
19563 # FIXME: insert proper C++ library support
19564 ld_shlibs_CXX=no
19566 lcc*)
19567 # Lucid
19568 # FIXME: insert proper C++ library support
19569 ld_shlibs_CXX=no
19572 # FIXME: insert proper C++ library support
19573 ld_shlibs_CXX=no
19575 esac
19577 solaris*)
19578 case $cc_basename in
19579 CC*)
19580 # Sun C++ 4.2, 5.x and Centerline C++
19581 archive_cmds_need_lc_CXX=yes
19582 no_undefined_flag_CXX=' -zdefs'
19583 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19584 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19585 $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'
19587 hardcode_libdir_flag_spec_CXX='-R$libdir'
19588 hardcode_shlibpath_var_CXX=no
19589 case $host_os in
19590 solaris2.[0-5] | solaris2.[0-5].*) ;;
19592 # The C++ compiler is used as linker so we must use $wl
19593 # flag to pass the commands to the underlying system
19594 # linker. We must also pass each convience library through
19595 # to the system linker between allextract/defaultextract.
19596 # The C++ compiler will combine linker options so we
19597 # cannot just pass the convience library names through
19598 # without $wl.
19599 # Supported since Solaris 2.6 (maybe 2.5.1?)
19600 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'
19602 esac
19603 link_all_deplibs_CXX=yes
19605 output_verbose_link_cmd='echo'
19607 # Archives containing C++ object files must be created using
19608 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19609 # necessary to make sure instantiated templates are included
19610 # in the archive.
19611 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19613 gcx*)
19614 # Green Hills C++ Compiler
19615 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19617 # The C++ compiler must be used to create the archive.
19618 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19621 # GNU C++ compiler with Solaris linker
19622 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19623 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19624 if $CC --version | grep -v '^2\.7' > /dev/null; then
19625 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19626 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19627 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19629 # Commands to make compiler produce verbose output that lists
19630 # what "hidden" libraries, object files and flags are used when
19631 # linking a shared library.
19632 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19633 else
19634 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19635 # platform.
19636 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19637 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19638 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19640 # Commands to make compiler produce verbose output that lists
19641 # what "hidden" libraries, object files and flags are used when
19642 # linking a shared library.
19643 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19646 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19649 esac
19651 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19652 no_undefined_flag_CXX='${wl}-z,text'
19653 archive_cmds_need_lc_CXX=no
19654 hardcode_shlibpath_var_CXX=no
19655 runpath_var='LD_RUN_PATH'
19657 case $cc_basename in
19658 CC*)
19659 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19660 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19663 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19664 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19666 esac
19668 sysv5* | sco3.2v5* | sco5v6*)
19669 # Note: We can NOT use -z defs as we might desire, because we do not
19670 # link with -lc, and that would cause any symbols used from libc to
19671 # always be unresolved, which means just about no library would
19672 # ever link correctly. If we're not using GNU ld we use -z text
19673 # though, which does catch some bad symbols but isn't as heavy-handed
19674 # as -z defs.
19675 # For security reasons, it is highly recommended that you always
19676 # use absolute paths for naming shared libraries, and exclude the
19677 # DT_RUNPATH tag from executables and libraries. But doing so
19678 # requires that you compile everything twice, which is a pain.
19679 # So that behaviour is only enabled if SCOABSPATH is set to a
19680 # non-empty value in the environment. Most likely only useful for
19681 # creating official distributions of packages.
19682 # This is a hack until libtool officially supports absolute path
19683 # names for shared libraries.
19684 no_undefined_flag_CXX='${wl}-z,text'
19685 allow_undefined_flag_CXX='${wl}-z,nodefs'
19686 archive_cmds_need_lc_CXX=no
19687 hardcode_shlibpath_var_CXX=no
19688 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19689 hardcode_libdir_separator_CXX=':'
19690 link_all_deplibs_CXX=yes
19691 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19692 runpath_var='LD_RUN_PATH'
19694 case $cc_basename in
19695 CC*)
19696 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19697 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19700 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19701 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19703 esac
19705 tandem*)
19706 case $cc_basename in
19707 NCC*)
19708 # NonStop-UX NCC 3.20
19709 # FIXME: insert proper C++ library support
19710 ld_shlibs_CXX=no
19713 # FIXME: insert proper C++ library support
19714 ld_shlibs_CXX=no
19716 esac
19718 vxworks*)
19719 # FIXME: insert proper C++ library support
19720 ld_shlibs_CXX=no
19723 # FIXME: insert proper C++ library support
19724 ld_shlibs_CXX=no
19726 esac
19727 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19728 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19729 test "$ld_shlibs_CXX" = no && can_build_shared=no
19731 GCC_CXX="$GXX"
19732 LD_CXX="$LD"
19735 cat > conftest.$ac_ext <<EOF
19736 class Foo
19738 public:
19739 Foo (void) { a = 0; }
19740 private:
19741 int a;
19745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19746 (eval $ac_compile) 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; then
19750 # Parse the compiler output and extract the necessary
19751 # objects, libraries and library flags.
19753 # Sentinel used to keep track of whether or not we are before
19754 # the conftest object file.
19755 pre_test_object_deps_done=no
19757 # The `*' in the case matches for architectures that use `case' in
19758 # $output_verbose_cmd can trigger glob expansion during the loop
19759 # eval without this substitution.
19760 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19762 for p in `eval $output_verbose_link_cmd`; do
19763 case $p in
19765 -L* | -R* | -l*)
19766 # Some compilers place space between "-{L,R}" and the path.
19767 # Remove the space.
19768 if test $p = "-L" \
19769 || test $p = "-R"; then
19770 prev=$p
19771 continue
19772 else
19773 prev=
19776 if test "$pre_test_object_deps_done" = no; then
19777 case $p in
19778 -L* | -R*)
19779 # Internal compiler library paths should come after those
19780 # provided the user. The postdeps already come after the
19781 # user supplied libs so there is no need to process them.
19782 if test -z "$compiler_lib_search_path_CXX"; then
19783 compiler_lib_search_path_CXX="${prev}${p}"
19784 else
19785 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19788 # The "-l" case would never come before the object being
19789 # linked, so don't bother handling this case.
19790 esac
19791 else
19792 if test -z "$postdeps_CXX"; then
19793 postdeps_CXX="${prev}${p}"
19794 else
19795 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19800 *.$objext)
19801 # This assumes that the test object file only shows up
19802 # once in the compiler output.
19803 if test "$p" = "conftest.$objext"; then
19804 pre_test_object_deps_done=yes
19805 continue
19808 if test "$pre_test_object_deps_done" = no; then
19809 if test -z "$predep_objects_CXX"; then
19810 predep_objects_CXX="$p"
19811 else
19812 predep_objects_CXX="$predep_objects_CXX $p"
19814 else
19815 if test -z "$postdep_objects_CXX"; then
19816 postdep_objects_CXX="$p"
19817 else
19818 postdep_objects_CXX="$postdep_objects_CXX $p"
19823 *) ;; # Ignore the rest.
19825 esac
19826 done
19828 # Clean up.
19829 rm -f a.out a.exe
19830 else
19831 echo "libtool.m4: error: problem compiling CXX test program"
19834 $rm -f confest.$objext
19836 # PORTME: override above test on systems where it is broken
19837 case $host_os in
19838 interix3*)
19839 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19840 # hack all around it, let's just trust "g++" to DTRT.
19841 predep_objects_CXX=
19842 postdep_objects_CXX=
19843 postdeps_CXX=
19846 solaris*)
19847 case $cc_basename in
19848 CC*)
19849 # Adding this requires a known-good setup of shared libraries for
19850 # Sun compiler versions before 5.6, else PIC objects from an old
19851 # archive will be linked into the output, leading to subtle bugs.
19852 postdeps_CXX='-lCstd -lCrun'
19854 esac
19856 esac
19859 case " $postdeps_CXX " in
19860 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19861 esac
19863 lt_prog_compiler_wl_CXX=
19864 lt_prog_compiler_pic_CXX=
19865 lt_prog_compiler_static_CXX=
19867 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19868 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19870 # C++ specific cases for pic, static, wl, etc.
19871 if test "$GXX" = yes; then
19872 lt_prog_compiler_wl_CXX='-Wl,'
19873 lt_prog_compiler_static_CXX='-static'
19875 case $host_os in
19876 aix*)
19877 # All AIX code is PIC.
19878 if test "$host_cpu" = ia64; then
19879 # AIX 5 now supports IA64 processor
19880 lt_prog_compiler_static_CXX='-Bstatic'
19883 amigaos*)
19884 # FIXME: we need at least 68020 code to build shared libraries, but
19885 # adding the `-m68020' flag to GCC prevents building anything better,
19886 # like `-m68040'.
19887 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19889 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19890 # PIC is the default for these OSes.
19892 mingw* | os2* | pw32*)
19893 # This hack is so that the source file can tell whether it is being
19894 # built for inclusion in a dll (and should export symbols for example).
19895 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19897 darwin* | rhapsody*)
19898 # PIC is the default on this platform
19899 # Common symbols not allowed in MH_DYLIB files
19900 lt_prog_compiler_pic_CXX='-fno-common'
19902 *djgpp*)
19903 # DJGPP does not support shared libraries at all
19904 lt_prog_compiler_pic_CXX=
19906 interix3*)
19907 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19908 # Instead, we relocate shared libraries at runtime.
19910 sysv4*MP*)
19911 if test -d /usr/nec; then
19912 lt_prog_compiler_pic_CXX=-Kconform_pic
19915 hpux*)
19916 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19917 # not for PA HP-UX.
19918 case $host_cpu in
19919 hppa*64*|ia64*)
19922 lt_prog_compiler_pic_CXX='-fPIC'
19924 esac
19927 lt_prog_compiler_pic_CXX='-fPIC'
19929 esac
19930 else
19931 case $host_os in
19932 aix4* | aix5*)
19933 # All AIX code is PIC.
19934 if test "$host_cpu" = ia64; then
19935 # AIX 5 now supports IA64 processor
19936 lt_prog_compiler_static_CXX='-Bstatic'
19937 else
19938 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19941 chorus*)
19942 case $cc_basename in
19943 cxch68*)
19944 # Green Hills C++ Compiler
19945 # _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"
19947 esac
19949 darwin*)
19950 # PIC is the default on this platform
19951 # Common symbols not allowed in MH_DYLIB files
19952 case $cc_basename in
19953 xlc*)
19954 lt_prog_compiler_pic_CXX='-qnocommon'
19955 lt_prog_compiler_wl_CXX='-Wl,'
19957 esac
19959 dgux*)
19960 case $cc_basename in
19961 ec++*)
19962 lt_prog_compiler_pic_CXX='-KPIC'
19964 ghcx*)
19965 # Green Hills C++ Compiler
19966 lt_prog_compiler_pic_CXX='-pic'
19970 esac
19972 freebsd* | kfreebsd*-gnu | dragonfly*)
19973 # FreeBSD uses GNU C++
19975 hpux9* | hpux10* | hpux11*)
19976 case $cc_basename in
19977 CC*)
19978 lt_prog_compiler_wl_CXX='-Wl,'
19979 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19980 if test "$host_cpu" != ia64; then
19981 lt_prog_compiler_pic_CXX='+Z'
19984 aCC*)
19985 lt_prog_compiler_wl_CXX='-Wl,'
19986 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19987 case $host_cpu in
19988 hppa*64*|ia64*)
19989 # +Z the default
19992 lt_prog_compiler_pic_CXX='+Z'
19994 esac
19998 esac
20000 interix*)
20001 # This is c89, which is MS Visual C++ (no shared libs)
20002 # Anyone wants to do a port?
20004 irix5* | irix6* | nonstopux*)
20005 case $cc_basename in
20006 CC*)
20007 lt_prog_compiler_wl_CXX='-Wl,'
20008 lt_prog_compiler_static_CXX='-non_shared'
20009 # CC pic flag -KPIC is the default.
20013 esac
20015 linux*)
20016 case $cc_basename in
20017 KCC*)
20018 # KAI C++ Compiler
20019 lt_prog_compiler_wl_CXX='--backend -Wl,'
20020 lt_prog_compiler_pic_CXX='-fPIC'
20022 icpc* | ecpc*)
20023 # Intel C++
20024 lt_prog_compiler_wl_CXX='-Wl,'
20025 lt_prog_compiler_pic_CXX='-KPIC'
20026 lt_prog_compiler_static_CXX='-static'
20028 pgCC*)
20029 # Portland Group C++ compiler.
20030 lt_prog_compiler_wl_CXX='-Wl,'
20031 lt_prog_compiler_pic_CXX='-fpic'
20032 lt_prog_compiler_static_CXX='-Bstatic'
20034 cxx*)
20035 # Compaq C++
20036 # Make sure the PIC flag is empty. It appears that all Alpha
20037 # Linux and Compaq Tru64 Unix objects are PIC.
20038 lt_prog_compiler_pic_CXX=
20039 lt_prog_compiler_static_CXX='-non_shared'
20043 esac
20045 lynxos*)
20047 m88k*)
20049 mvs*)
20050 case $cc_basename in
20051 cxx*)
20052 lt_prog_compiler_pic_CXX='-W c,exportall'
20056 esac
20058 netbsd*)
20060 osf3* | osf4* | osf5*)
20061 case $cc_basename in
20062 KCC*)
20063 lt_prog_compiler_wl_CXX='--backend -Wl,'
20065 RCC*)
20066 # Rational C++ 2.4.1
20067 lt_prog_compiler_pic_CXX='-pic'
20069 cxx*)
20070 # Digital/Compaq C++
20071 lt_prog_compiler_wl_CXX='-Wl,'
20072 # Make sure the PIC flag is empty. It appears that all Alpha
20073 # Linux and Compaq Tru64 Unix objects are PIC.
20074 lt_prog_compiler_pic_CXX=
20075 lt_prog_compiler_static_CXX='-non_shared'
20079 esac
20081 psos*)
20083 solaris*)
20084 case $cc_basename in
20085 CC*)
20086 # Sun C++ 4.2, 5.x and Centerline C++
20087 lt_prog_compiler_pic_CXX='-KPIC'
20088 lt_prog_compiler_static_CXX='-Bstatic'
20089 lt_prog_compiler_wl_CXX='-Qoption ld '
20091 gcx*)
20092 # Green Hills C++ Compiler
20093 lt_prog_compiler_pic_CXX='-PIC'
20097 esac
20099 sunos4*)
20100 case $cc_basename in
20101 CC*)
20102 # Sun C++ 4.x
20103 lt_prog_compiler_pic_CXX='-pic'
20104 lt_prog_compiler_static_CXX='-Bstatic'
20106 lcc*)
20107 # Lucid
20108 lt_prog_compiler_pic_CXX='-pic'
20112 esac
20114 tandem*)
20115 case $cc_basename in
20116 NCC*)
20117 # NonStop-UX NCC 3.20
20118 lt_prog_compiler_pic_CXX='-KPIC'
20122 esac
20124 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20125 case $cc_basename in
20126 CC*)
20127 lt_prog_compiler_wl_CXX='-Wl,'
20128 lt_prog_compiler_pic_CXX='-KPIC'
20129 lt_prog_compiler_static_CXX='-Bstatic'
20131 esac
20133 vxworks*)
20136 lt_prog_compiler_can_build_shared_CXX=no
20138 esac
20141 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20142 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20145 # Check to make sure the PIC flag actually works.
20147 if test -n "$lt_prog_compiler_pic_CXX"; then
20149 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20150 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20151 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 else
20154 lt_prog_compiler_pic_works_CXX=no
20155 ac_outfile=conftest.$ac_objext
20156 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20157 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20158 # Insert the option either (1) after the last *FLAGS variable, or
20159 # (2) before a word containing "conftest.", or (3) at the end.
20160 # Note that $ac_compile itself does not contain backslashes and begins
20161 # with a dollar sign (not a hyphen), so the echo should work correctly.
20162 # The option is referenced via a variable to avoid confusing sed.
20163 lt_compile=`echo "$ac_compile" | $SED \
20164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20166 -e 's:$: $lt_compiler_flag:'`
20167 (eval echo "\"\$as_me:20167: $lt_compile\"" >&5)
20168 (eval "$lt_compile" 2>conftest.err)
20169 ac_status=$?
20170 cat conftest.err >&5
20171 echo "$as_me:20171: \$? = $ac_status" >&5
20172 if (exit $ac_status) && test -s "$ac_outfile"; then
20173 # The compiler can only warn and ignore the option if not recognized
20174 # So say no if there are warnings other than the usual output.
20175 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20177 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20178 lt_prog_compiler_pic_works_CXX=yes
20181 $rm conftest*
20184 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20185 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20187 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20188 case $lt_prog_compiler_pic_CXX in
20189 "" | " "*) ;;
20190 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20191 esac
20192 else
20193 lt_prog_compiler_pic_CXX=
20194 lt_prog_compiler_can_build_shared_CXX=no
20198 case $host_os in
20199 # For platforms which do not support PIC, -DPIC is meaningless:
20200 *djgpp*)
20201 lt_prog_compiler_pic_CXX=
20204 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20206 esac
20209 # Check to make sure the static flag actually works.
20211 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20212 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20213 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20214 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20215 echo $ECHO_N "(cached) $ECHO_C" >&6
20216 else
20217 lt_prog_compiler_static_works_CXX=no
20218 save_LDFLAGS="$LDFLAGS"
20219 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20220 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20221 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20222 # The linker can only warn and ignore the option if not recognized
20223 # So say no if there are warnings
20224 if test -s conftest.err; then
20225 # Append any errors to the config.log.
20226 cat conftest.err 1>&5
20227 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20229 if diff conftest.exp conftest.er2 >/dev/null; then
20230 lt_prog_compiler_static_works_CXX=yes
20232 else
20233 lt_prog_compiler_static_works_CXX=yes
20236 $rm conftest*
20237 LDFLAGS="$save_LDFLAGS"
20240 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20241 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20243 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20245 else
20246 lt_prog_compiler_static_CXX=
20250 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20251 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20252 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20253 echo $ECHO_N "(cached) $ECHO_C" >&6
20254 else
20255 lt_cv_prog_compiler_c_o_CXX=no
20256 $rm -r conftest 2>/dev/null
20257 mkdir conftest
20258 cd conftest
20259 mkdir out
20260 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20262 lt_compiler_flag="-o out/conftest2.$ac_objext"
20263 # Insert the option either (1) after the last *FLAGS variable, or
20264 # (2) before a word containing "conftest.", or (3) at the end.
20265 # Note that $ac_compile itself does not contain backslashes and begins
20266 # with a dollar sign (not a hyphen), so the echo should work correctly.
20267 lt_compile=`echo "$ac_compile" | $SED \
20268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20270 -e 's:$: $lt_compiler_flag:'`
20271 (eval echo "\"\$as_me:20271: $lt_compile\"" >&5)
20272 (eval "$lt_compile" 2>out/conftest.err)
20273 ac_status=$?
20274 cat out/conftest.err >&5
20275 echo "$as_me:20275: \$? = $ac_status" >&5
20276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20277 then
20278 # The compiler can only warn and ignore the option if not recognized
20279 # So say no if there are warnings
20280 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20281 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20282 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20283 lt_cv_prog_compiler_c_o_CXX=yes
20286 chmod u+w . 2>&5
20287 $rm conftest*
20288 # SGI C++ compiler will create directory out/ii_files/ for
20289 # template instantiation
20290 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20291 $rm out/* && rmdir out
20292 cd ..
20293 rmdir conftest
20294 $rm conftest*
20297 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20298 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20301 hard_links="nottested"
20302 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20303 # do not overwrite the value of need_locks provided by the user
20304 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20305 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20306 hard_links=yes
20307 $rm conftest*
20308 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20309 touch conftest.a
20310 ln conftest.a conftest.b 2>&5 || hard_links=no
20311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20312 { echo "$as_me:$LINENO: result: $hard_links" >&5
20313 echo "${ECHO_T}$hard_links" >&6; }
20314 if test "$hard_links" = no; then
20315 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20316 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20317 need_locks=warn
20319 else
20320 need_locks=no
20323 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20324 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20326 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20327 case $host_os in
20328 aix4* | aix5*)
20329 # If we're using GNU nm, then we don't want the "-C" option.
20330 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20331 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20332 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'
20333 else
20334 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'
20337 pw32*)
20338 export_symbols_cmds_CXX="$ltdll_cmds"
20340 cygwin* | mingw*)
20341 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'
20344 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20346 esac
20348 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20349 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20350 test "$ld_shlibs_CXX" = no && can_build_shared=no
20353 # Do we need to explicitly link libc?
20355 case "x$archive_cmds_need_lc_CXX" in
20356 x|xyes)
20357 # Assume -lc should be added
20358 archive_cmds_need_lc_CXX=yes
20360 if test "$enable_shared" = yes && test "$GCC" = yes; then
20361 case $archive_cmds_CXX in
20362 *'~'*)
20363 # FIXME: we may have to deal with multi-command sequences.
20365 '$CC '*)
20366 # Test whether the compiler implicitly links with -lc since on some
20367 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20368 # to ld, don't add -lc before -lgcc.
20369 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20370 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20371 $rm conftest*
20372 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20375 (eval $ac_compile) 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } 2>conftest.err; then
20379 soname=conftest
20380 lib=conftest
20381 libobjs=conftest.$ac_objext
20382 deplibs=
20383 wl=$lt_prog_compiler_wl_CXX
20384 pic_flag=$lt_prog_compiler_pic_CXX
20385 compiler_flags=-v
20386 linker_flags=-v
20387 verstring=
20388 output_objdir=.
20389 libname=conftest
20390 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20391 allow_undefined_flag_CXX=
20392 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20393 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20394 ac_status=$?
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }
20397 then
20398 archive_cmds_need_lc_CXX=no
20399 else
20400 archive_cmds_need_lc_CXX=yes
20402 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20403 else
20404 cat conftest.err 1>&5
20406 $rm conftest*
20407 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20408 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20410 esac
20413 esac
20415 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20416 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20417 library_names_spec=
20418 libname_spec='lib$name'
20419 soname_spec=
20420 shrext_cmds=".so"
20421 postinstall_cmds=
20422 postuninstall_cmds=
20423 finish_cmds=
20424 finish_eval=
20425 shlibpath_var=
20426 shlibpath_overrides_runpath=unknown
20427 version_type=none
20428 dynamic_linker="$host_os ld.so"
20429 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20430 if test "$GCC" = yes; then
20431 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20432 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20433 # if the path contains ";" then we assume it to be the separator
20434 # otherwise default to the standard path separator (i.e. ":") - it is
20435 # assumed that no part of a normal pathname contains ";" but that should
20436 # okay in the real world where ";" in dirpaths is itself problematic.
20437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20438 else
20439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20441 else
20442 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20444 need_lib_prefix=unknown
20445 hardcode_into_libs=no
20447 # when you set need_version to no, make sure it does not cause -set_version
20448 # flags to be left without arguments
20449 need_version=unknown
20451 case $host_os in
20452 aix3*)
20453 version_type=linux
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20455 shlibpath_var=LIBPATH
20457 # AIX 3 has no versioning support, so we append a major version to the name.
20458 soname_spec='${libname}${release}${shared_ext}$major'
20461 aix4* | aix5*)
20462 version_type=linux
20463 need_lib_prefix=no
20464 need_version=no
20465 hardcode_into_libs=yes
20466 if test "$host_cpu" = ia64; then
20467 # AIX 5 supports IA64
20468 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20469 shlibpath_var=LD_LIBRARY_PATH
20470 else
20471 # With GCC up to 2.95.x, collect2 would create an import file
20472 # for dependence libraries. The import file would start with
20473 # the line `#! .'. This would cause the generated library to
20474 # depend on `.', always an invalid library. This was fixed in
20475 # development snapshots of GCC prior to 3.0.
20476 case $host_os in
20477 aix4 | aix4.[01] | aix4.[01].*)
20478 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20479 echo ' yes '
20480 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20482 else
20483 can_build_shared=no
20486 esac
20487 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20488 # soname into executable. Probably we can add versioning support to
20489 # collect2, so additional links can be useful in future.
20490 if test "$aix_use_runtimelinking" = yes; then
20491 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20492 # instead of lib<name>.a to let people know that these are not
20493 # typical AIX shared libraries.
20494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20495 else
20496 # We preserve .a as extension for shared libraries through AIX4.2
20497 # and later when we are not doing run time linking.
20498 library_names_spec='${libname}${release}.a $libname.a'
20499 soname_spec='${libname}${release}${shared_ext}$major'
20501 shlibpath_var=LIBPATH
20505 amigaos*)
20506 library_names_spec='$libname.ixlibrary $libname.a'
20507 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20508 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'
20511 beos*)
20512 library_names_spec='${libname}${shared_ext}'
20513 dynamic_linker="$host_os ld.so"
20514 shlibpath_var=LIBRARY_PATH
20517 bsdi[45]*)
20518 version_type=linux
20519 need_version=no
20520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20521 soname_spec='${libname}${release}${shared_ext}$major'
20522 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20523 shlibpath_var=LD_LIBRARY_PATH
20524 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20525 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20526 # the default ld.so.conf also contains /usr/contrib/lib and
20527 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20528 # libtool to hard-code these into programs
20531 cygwin* | mingw* | pw32*)
20532 version_type=windows
20533 shrext_cmds=".dll"
20534 need_version=no
20535 need_lib_prefix=no
20537 case $GCC,$host_os in
20538 yes,cygwin* | yes,mingw* | yes,pw32*)
20539 library_names_spec='$libname.dll.a'
20540 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20541 postinstall_cmds='base_file=`basename \${file}`~
20542 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20543 dldir=$destdir/`dirname \$dlpath`~
20544 test -d \$dldir || mkdir -p \$dldir~
20545 $install_prog $dir/$dlname \$dldir/$dlname~
20546 chmod a+x \$dldir/$dlname'
20547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20548 dlpath=$dir/\$dldll~
20549 $rm \$dlpath'
20550 shlibpath_overrides_runpath=yes
20552 case $host_os in
20553 cygwin*)
20554 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20555 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20556 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20558 mingw*)
20559 # MinGW DLLs use traditional 'lib' prefix
20560 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20561 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20562 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20563 # It is most probably a Windows format PATH printed by
20564 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20565 # path with ; separators, and with drive letters. We can handle the
20566 # drive letters (cygwin fileutils understands them), so leave them,
20567 # especially as we might pass files found there to a mingw objdump,
20568 # which wouldn't understand a cygwinified path. Ahh.
20569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20570 else
20571 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20574 pw32*)
20575 # pw32 DLLs use 'pw' prefix rather than 'lib'
20576 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20578 esac
20582 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20584 esac
20585 dynamic_linker='Win32 ld.exe'
20586 # FIXME: first we should search . and the directory the executable is in
20587 shlibpath_var=PATH
20590 darwin* | rhapsody*)
20591 dynamic_linker="$host_os dyld"
20592 version_type=darwin
20593 need_lib_prefix=no
20594 need_version=no
20595 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20596 soname_spec='${libname}${release}${major}$shared_ext'
20597 shlibpath_overrides_runpath=yes
20598 shlibpath_var=DYLD_LIBRARY_PATH
20599 shrext_cmds='.dylib'
20600 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20601 if test "$GCC" = yes; then
20602 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"`
20603 else
20604 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20606 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20609 dgux*)
20610 version_type=linux
20611 need_lib_prefix=no
20612 need_version=no
20613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20614 soname_spec='${libname}${release}${shared_ext}$major'
20615 shlibpath_var=LD_LIBRARY_PATH
20618 freebsd1*)
20619 dynamic_linker=no
20622 kfreebsd*-gnu)
20623 version_type=linux
20624 need_lib_prefix=no
20625 need_version=no
20626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20627 soname_spec='${libname}${release}${shared_ext}$major'
20628 shlibpath_var=LD_LIBRARY_PATH
20629 shlibpath_overrides_runpath=no
20630 hardcode_into_libs=yes
20631 dynamic_linker='GNU ld.so'
20634 freebsd* | dragonfly*)
20635 # DragonFly does not have aout. When/if they implement a new
20636 # versioning mechanism, adjust this.
20637 if test -x /usr/bin/objformat; then
20638 objformat=`/usr/bin/objformat`
20639 else
20640 case $host_os in
20641 freebsd[123]*) objformat=aout ;;
20642 *) objformat=elf ;;
20643 esac
20645 version_type=freebsd-$objformat
20646 case $version_type in
20647 freebsd-elf*)
20648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20649 need_version=no
20650 need_lib_prefix=no
20652 freebsd-*)
20653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20654 need_version=yes
20656 esac
20657 shlibpath_var=LD_LIBRARY_PATH
20658 case $host_os in
20659 freebsd2*)
20660 shlibpath_overrides_runpath=yes
20662 freebsd3.[01]* | freebsdelf3.[01]*)
20663 shlibpath_overrides_runpath=yes
20664 hardcode_into_libs=yes
20666 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20667 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20668 shlibpath_overrides_runpath=no
20669 hardcode_into_libs=yes
20671 freebsd*) # from 4.6 on
20672 shlibpath_overrides_runpath=yes
20673 hardcode_into_libs=yes
20675 esac
20678 gnu*)
20679 version_type=linux
20680 need_lib_prefix=no
20681 need_version=no
20682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20683 soname_spec='${libname}${release}${shared_ext}$major'
20684 shlibpath_var=LD_LIBRARY_PATH
20685 hardcode_into_libs=yes
20688 hpux9* | hpux10* | hpux11*)
20689 # Give a soname corresponding to the major version so that dld.sl refuses to
20690 # link against other versions.
20691 version_type=sunos
20692 need_lib_prefix=no
20693 need_version=no
20694 case $host_cpu in
20695 ia64*)
20696 shrext_cmds='.so'
20697 hardcode_into_libs=yes
20698 dynamic_linker="$host_os dld.so"
20699 shlibpath_var=LD_LIBRARY_PATH
20700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20702 soname_spec='${libname}${release}${shared_ext}$major'
20703 if test "X$HPUX_IA64_MODE" = X32; then
20704 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20705 else
20706 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20710 hppa*64*)
20711 shrext_cmds='.sl'
20712 hardcode_into_libs=yes
20713 dynamic_linker="$host_os dld.sl"
20714 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20717 soname_spec='${libname}${release}${shared_ext}$major'
20718 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20722 shrext_cmds='.sl'
20723 dynamic_linker="$host_os dld.sl"
20724 shlibpath_var=SHLIB_PATH
20725 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20727 soname_spec='${libname}${release}${shared_ext}$major'
20729 esac
20730 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20731 postinstall_cmds='chmod 555 $lib'
20734 interix3*)
20735 version_type=linux
20736 need_lib_prefix=no
20737 need_version=no
20738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20739 soname_spec='${libname}${release}${shared_ext}$major'
20740 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20741 shlibpath_var=LD_LIBRARY_PATH
20742 shlibpath_overrides_runpath=no
20743 hardcode_into_libs=yes
20746 irix5* | irix6* | nonstopux*)
20747 case $host_os in
20748 nonstopux*) version_type=nonstopux ;;
20750 if test "$lt_cv_prog_gnu_ld" = yes; then
20751 version_type=linux
20752 else
20753 version_type=irix
20754 fi ;;
20755 esac
20756 need_lib_prefix=no
20757 need_version=no
20758 soname_spec='${libname}${release}${shared_ext}$major'
20759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20760 case $host_os in
20761 irix5* | nonstopux*)
20762 libsuff= shlibsuff=
20765 case $LD in # libtool.m4 will add one of these switches to LD
20766 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20767 libsuff= shlibsuff= libmagic=32-bit;;
20768 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20769 libsuff=32 shlibsuff=N32 libmagic=N32;;
20770 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20771 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20772 *) libsuff= shlibsuff= libmagic=never-match;;
20773 esac
20775 esac
20776 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20777 shlibpath_overrides_runpath=no
20778 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20779 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20780 hardcode_into_libs=yes
20783 # No shared lib support for Linux oldld, aout, or coff.
20784 linux*oldld* | linux*aout* | linux*coff*)
20785 dynamic_linker=no
20788 # This must be Linux ELF.
20789 linux*)
20790 version_type=linux
20791 need_lib_prefix=no
20792 need_version=no
20793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20794 soname_spec='${libname}${release}${shared_ext}$major'
20795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20796 shlibpath_var=LD_LIBRARY_PATH
20797 shlibpath_overrides_runpath=no
20798 # This implies no fast_install, which is unacceptable.
20799 # Some rework will be needed to allow for fast_install
20800 # before this can be enabled.
20801 hardcode_into_libs=yes
20803 # Append ld.so.conf contents to the search path
20804 if test -f /etc/ld.so.conf; then
20805 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' ' '`
20806 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20809 # We used to test for /lib/ld.so.1 and disable shared libraries on
20810 # powerpc, because MkLinux only supported shared libraries with the
20811 # GNU dynamic linker. Since this was broken with cross compilers,
20812 # most powerpc-linux boxes support dynamic linking these days and
20813 # people can always --disable-shared, the test was removed, and we
20814 # assume the GNU/Linux dynamic linker is in use.
20815 dynamic_linker='GNU/Linux ld.so'
20818 knetbsd*-gnu)
20819 version_type=linux
20820 need_lib_prefix=no
20821 need_version=no
20822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20823 soname_spec='${libname}${release}${shared_ext}$major'
20824 shlibpath_var=LD_LIBRARY_PATH
20825 shlibpath_overrides_runpath=no
20826 hardcode_into_libs=yes
20827 dynamic_linker='GNU ld.so'
20830 netbsd*)
20831 version_type=sunos
20832 need_lib_prefix=no
20833 need_version=no
20834 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20837 dynamic_linker='NetBSD (a.out) ld.so'
20838 else
20839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20840 soname_spec='${libname}${release}${shared_ext}$major'
20841 dynamic_linker='NetBSD ld.elf_so'
20843 shlibpath_var=LD_LIBRARY_PATH
20844 shlibpath_overrides_runpath=yes
20845 hardcode_into_libs=yes
20848 newsos6)
20849 version_type=linux
20850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20851 shlibpath_var=LD_LIBRARY_PATH
20852 shlibpath_overrides_runpath=yes
20855 nto-qnx*)
20856 version_type=linux
20857 need_lib_prefix=no
20858 need_version=no
20859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20860 soname_spec='${libname}${release}${shared_ext}$major'
20861 shlibpath_var=LD_LIBRARY_PATH
20862 shlibpath_overrides_runpath=yes
20865 openbsd*)
20866 version_type=sunos
20867 sys_lib_dlsearch_path_spec="/usr/lib"
20868 need_lib_prefix=no
20869 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20870 case $host_os in
20871 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20872 *) need_version=no ;;
20873 esac
20874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20876 shlibpath_var=LD_LIBRARY_PATH
20877 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20878 case $host_os in
20879 openbsd2.[89] | openbsd2.[89].*)
20880 shlibpath_overrides_runpath=no
20883 shlibpath_overrides_runpath=yes
20885 esac
20886 else
20887 shlibpath_overrides_runpath=yes
20891 os2*)
20892 libname_spec='$name'
20893 shrext_cmds=".dll"
20894 need_lib_prefix=no
20895 library_names_spec='$libname${shared_ext} $libname.a'
20896 dynamic_linker='OS/2 ld.exe'
20897 shlibpath_var=LIBPATH
20900 osf3* | osf4* | osf5*)
20901 version_type=osf
20902 need_lib_prefix=no
20903 need_version=no
20904 soname_spec='${libname}${release}${shared_ext}$major'
20905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20906 shlibpath_var=LD_LIBRARY_PATH
20907 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20908 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20911 solaris*)
20912 version_type=linux
20913 need_lib_prefix=no
20914 need_version=no
20915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20916 soname_spec='${libname}${release}${shared_ext}$major'
20917 shlibpath_var=LD_LIBRARY_PATH
20918 shlibpath_overrides_runpath=yes
20919 hardcode_into_libs=yes
20920 # ldd complains unless libraries are executable
20921 postinstall_cmds='chmod +x $lib'
20924 sunos4*)
20925 version_type=sunos
20926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20927 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20928 shlibpath_var=LD_LIBRARY_PATH
20929 shlibpath_overrides_runpath=yes
20930 if test "$with_gnu_ld" = yes; then
20931 need_lib_prefix=no
20933 need_version=yes
20936 sysv4 | sysv4.3*)
20937 version_type=linux
20938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20939 soname_spec='${libname}${release}${shared_ext}$major'
20940 shlibpath_var=LD_LIBRARY_PATH
20941 case $host_vendor in
20942 sni)
20943 shlibpath_overrides_runpath=no
20944 need_lib_prefix=no
20945 export_dynamic_flag_spec='${wl}-Blargedynsym'
20946 runpath_var=LD_RUN_PATH
20948 siemens)
20949 need_lib_prefix=no
20951 motorola)
20952 need_lib_prefix=no
20953 need_version=no
20954 shlibpath_overrides_runpath=no
20955 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20957 esac
20960 sysv4*MP*)
20961 if test -d /usr/nec ;then
20962 version_type=linux
20963 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20964 soname_spec='$libname${shared_ext}.$major'
20965 shlibpath_var=LD_LIBRARY_PATH
20969 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20970 version_type=freebsd-elf
20971 need_lib_prefix=no
20972 need_version=no
20973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20974 soname_spec='${libname}${release}${shared_ext}$major'
20975 shlibpath_var=LD_LIBRARY_PATH
20976 hardcode_into_libs=yes
20977 if test "$with_gnu_ld" = yes; then
20978 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20979 shlibpath_overrides_runpath=no
20980 else
20981 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20982 shlibpath_overrides_runpath=yes
20983 case $host_os in
20984 sco3.2v5*)
20985 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20987 esac
20989 sys_lib_dlsearch_path_spec='/usr/lib'
20992 uts4*)
20993 version_type=linux
20994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20995 soname_spec='${libname}${release}${shared_ext}$major'
20996 shlibpath_var=LD_LIBRARY_PATH
21000 dynamic_linker=no
21002 esac
21003 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21004 echo "${ECHO_T}$dynamic_linker" >&6; }
21005 test "$dynamic_linker" = no && can_build_shared=no
21007 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21008 if test "$GCC" = yes; then
21009 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21012 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21013 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21014 hardcode_action_CXX=
21015 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21016 test -n "$runpath_var_CXX" || \
21017 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21019 # We can hardcode non-existant directories.
21020 if test "$hardcode_direct_CXX" != no &&
21021 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21022 # have to relink, otherwise we might link with an installed library
21023 # when we should be linking with a yet-to-be-installed one
21024 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21025 test "$hardcode_minus_L_CXX" != no; then
21026 # Linking always hardcodes the temporary library directory.
21027 hardcode_action_CXX=relink
21028 else
21029 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21030 hardcode_action_CXX=immediate
21032 else
21033 # We cannot hardcode anything, or else we can only hardcode existing
21034 # directories.
21035 hardcode_action_CXX=unsupported
21037 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21038 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21040 if test "$hardcode_action_CXX" = relink; then
21041 # Fast installation is not supported
21042 enable_fast_install=no
21043 elif test "$shlibpath_overrides_runpath" = yes ||
21044 test "$enable_shared" = no; then
21045 # Fast installation is not necessary
21046 enable_fast_install=needless
21050 # The else clause should only fire when bootstrapping the
21051 # libtool distribution, otherwise you forgot to ship ltmain.sh
21052 # with your package, and you will get complaints that there are
21053 # no rules to generate ltmain.sh.
21054 if test -f "$ltmain"; then
21055 # See if we are running on zsh, and set the options which allow our commands through
21056 # without removal of \ escapes.
21057 if test -n "${ZSH_VERSION+set}" ; then
21058 setopt NO_GLOB_SUBST
21060 # Now quote all the things that may contain metacharacters while being
21061 # careful not to overquote the AC_SUBSTed values. We take copies of the
21062 # variables and quote the copies for generation of the libtool script.
21063 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21064 SED SHELL STRIP \
21065 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21066 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21067 deplibs_check_method reload_flag reload_cmds need_locks \
21068 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21069 lt_cv_sys_global_symbol_to_c_name_address \
21070 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21071 old_postinstall_cmds old_postuninstall_cmds \
21072 compiler_CXX \
21073 CC_CXX \
21074 LD_CXX \
21075 lt_prog_compiler_wl_CXX \
21076 lt_prog_compiler_pic_CXX \
21077 lt_prog_compiler_static_CXX \
21078 lt_prog_compiler_no_builtin_flag_CXX \
21079 export_dynamic_flag_spec_CXX \
21080 thread_safe_flag_spec_CXX \
21081 whole_archive_flag_spec_CXX \
21082 enable_shared_with_static_runtimes_CXX \
21083 old_archive_cmds_CXX \
21084 old_archive_from_new_cmds_CXX \
21085 predep_objects_CXX \
21086 postdep_objects_CXX \
21087 predeps_CXX \
21088 postdeps_CXX \
21089 compiler_lib_search_path_CXX \
21090 archive_cmds_CXX \
21091 archive_expsym_cmds_CXX \
21092 postinstall_cmds_CXX \
21093 postuninstall_cmds_CXX \
21094 old_archive_from_expsyms_cmds_CXX \
21095 allow_undefined_flag_CXX \
21096 no_undefined_flag_CXX \
21097 export_symbols_cmds_CXX \
21098 hardcode_libdir_flag_spec_CXX \
21099 hardcode_libdir_flag_spec_ld_CXX \
21100 hardcode_libdir_separator_CXX \
21101 hardcode_automatic_CXX \
21102 module_cmds_CXX \
21103 module_expsym_cmds_CXX \
21104 lt_cv_prog_compiler_c_o_CXX \
21105 exclude_expsyms_CXX \
21106 include_expsyms_CXX; do
21108 case $var in
21109 old_archive_cmds_CXX | \
21110 old_archive_from_new_cmds_CXX | \
21111 archive_cmds_CXX | \
21112 archive_expsym_cmds_CXX | \
21113 module_cmds_CXX | \
21114 module_expsym_cmds_CXX | \
21115 old_archive_from_expsyms_cmds_CXX | \
21116 export_symbols_cmds_CXX | \
21117 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21118 postinstall_cmds | postuninstall_cmds | \
21119 old_postinstall_cmds | old_postuninstall_cmds | \
21120 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21121 # Double-quote double-evaled strings.
21122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21127 esac
21128 done
21130 case $lt_echo in
21131 *'\$0 --fallback-echo"')
21132 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21134 esac
21136 cfgfile="$ofile"
21138 cat <<__EOF__ >> "$cfgfile"
21139 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21141 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21143 # Shell to use when invoking shell scripts.
21144 SHELL=$lt_SHELL
21146 # Whether or not to build shared libraries.
21147 build_libtool_libs=$enable_shared
21149 # Whether or not to build static libraries.
21150 build_old_libs=$enable_static
21152 # Whether or not to add -lc for building shared libraries.
21153 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21155 # Whether or not to disallow shared libs when runtime libs are static
21156 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21158 # Whether or not to optimize for fast installation.
21159 fast_install=$enable_fast_install
21161 # The host system.
21162 host_alias=$host_alias
21163 host=$host
21164 host_os=$host_os
21166 # The build system.
21167 build_alias=$build_alias
21168 build=$build
21169 build_os=$build_os
21171 # An echo program that does not interpret backslashes.
21172 echo=$lt_echo
21174 # The archiver.
21175 AR=$lt_AR
21176 AR_FLAGS=$lt_AR_FLAGS
21178 # A C compiler.
21179 LTCC=$lt_LTCC
21181 # LTCC compiler flags.
21182 LTCFLAGS=$lt_LTCFLAGS
21184 # A language-specific compiler.
21185 CC=$lt_compiler_CXX
21187 # Is the compiler the GNU C compiler?
21188 with_gcc=$GCC_CXX
21190 # An ERE matcher.
21191 EGREP=$lt_EGREP
21193 # The linker used to build libraries.
21194 LD=$lt_LD_CXX
21196 # Whether we need hard or soft links.
21197 LN_S=$lt_LN_S
21199 # A BSD-compatible nm program.
21200 NM=$lt_NM
21202 # A symbol stripping program
21203 STRIP=$lt_STRIP
21205 # Used to examine libraries when file_magic_cmd begins "file"
21206 MAGIC_CMD=$MAGIC_CMD
21208 # Used on cygwin: DLL creation program.
21209 DLLTOOL="$DLLTOOL"
21211 # Used on cygwin: object dumper.
21212 OBJDUMP="$OBJDUMP"
21214 # Used on cygwin: assembler.
21215 AS="$AS"
21217 # The name of the directory that contains temporary libtool files.
21218 objdir=$objdir
21220 # How to create reloadable object files.
21221 reload_flag=$lt_reload_flag
21222 reload_cmds=$lt_reload_cmds
21224 # How to pass a linker flag through the compiler.
21225 wl=$lt_lt_prog_compiler_wl_CXX
21227 # Object file suffix (normally "o").
21228 objext="$ac_objext"
21230 # Old archive suffix (normally "a").
21231 libext="$libext"
21233 # Shared library suffix (normally ".so").
21234 shrext_cmds='$shrext_cmds'
21236 # Executable file suffix (normally "").
21237 exeext="$exeext"
21239 # Additional compiler flags for building library objects.
21240 pic_flag=$lt_lt_prog_compiler_pic_CXX
21241 pic_mode=$pic_mode
21243 # What is the maximum length of a command?
21244 max_cmd_len=$lt_cv_sys_max_cmd_len
21246 # Does compiler simultaneously support -c and -o options?
21247 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21249 # Must we lock files when doing compilation?
21250 need_locks=$lt_need_locks
21252 # Do we need the lib prefix for modules?
21253 need_lib_prefix=$need_lib_prefix
21255 # Do we need a version for libraries?
21256 need_version=$need_version
21258 # Whether dlopen is supported.
21259 dlopen_support=$enable_dlopen
21261 # Whether dlopen of programs is supported.
21262 dlopen_self=$enable_dlopen_self
21264 # Whether dlopen of statically linked programs is supported.
21265 dlopen_self_static=$enable_dlopen_self_static
21267 # Compiler flag to prevent dynamic linking.
21268 link_static_flag=$lt_lt_prog_compiler_static_CXX
21270 # Compiler flag to turn off builtin functions.
21271 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21273 # Compiler flag to allow reflexive dlopens.
21274 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21276 # Compiler flag to generate shared objects directly from archives.
21277 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21279 # Compiler flag to generate thread-safe objects.
21280 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21282 # Library versioning type.
21283 version_type=$version_type
21285 # Format of library name prefix.
21286 libname_spec=$lt_libname_spec
21288 # List of archive names. First name is the real one, the rest are links.
21289 # The last name is the one that the linker finds with -lNAME.
21290 library_names_spec=$lt_library_names_spec
21292 # The coded name of the library, if different from the real name.
21293 soname_spec=$lt_soname_spec
21295 # Commands used to build and install an old-style archive.
21296 RANLIB=$lt_RANLIB
21297 old_archive_cmds=$lt_old_archive_cmds_CXX
21298 old_postinstall_cmds=$lt_old_postinstall_cmds
21299 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21301 # Create an old-style archive from a shared archive.
21302 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21304 # Create a temporary old-style archive to link instead of a shared archive.
21305 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21307 # Commands used to build and install a shared archive.
21308 archive_cmds=$lt_archive_cmds_CXX
21309 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21310 postinstall_cmds=$lt_postinstall_cmds
21311 postuninstall_cmds=$lt_postuninstall_cmds
21313 # Commands used to build a loadable module (assumed same as above if empty)
21314 module_cmds=$lt_module_cmds_CXX
21315 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21317 # Commands to strip libraries.
21318 old_striplib=$lt_old_striplib
21319 striplib=$lt_striplib
21321 # Dependencies to place before the objects being linked to create a
21322 # shared library.
21323 predep_objects=$lt_predep_objects_CXX
21325 # Dependencies to place after the objects being linked to create a
21326 # shared library.
21327 postdep_objects=$lt_postdep_objects_CXX
21329 # Dependencies to place before the objects being linked to create a
21330 # shared library.
21331 predeps=$lt_predeps_CXX
21333 # Dependencies to place after the objects being linked to create a
21334 # shared library.
21335 postdeps=$lt_postdeps_CXX
21337 # The library search path used internally by the compiler when linking
21338 # a shared library.
21339 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21341 # Method to check whether dependent libraries are shared objects.
21342 deplibs_check_method=$lt_deplibs_check_method
21344 # Command to use when deplibs_check_method == file_magic.
21345 file_magic_cmd=$lt_file_magic_cmd
21347 # Flag that allows shared libraries with undefined symbols to be built.
21348 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21350 # Flag that forces no undefined symbols.
21351 no_undefined_flag=$lt_no_undefined_flag_CXX
21353 # Commands used to finish a libtool library installation in a directory.
21354 finish_cmds=$lt_finish_cmds
21356 # Same as above, but a single script fragment to be evaled but not shown.
21357 finish_eval=$lt_finish_eval
21359 # Take the output of nm and produce a listing of raw symbols and C names.
21360 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21362 # Transform the output of nm in a proper C declaration
21363 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21365 # Transform the output of nm in a C name address pair
21366 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21368 # This is the shared library runtime path variable.
21369 runpath_var=$runpath_var
21371 # This is the shared library path variable.
21372 shlibpath_var=$shlibpath_var
21374 # Is shlibpath searched before the hard-coded library search path?
21375 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21377 # How to hardcode a shared library path into an executable.
21378 hardcode_action=$hardcode_action_CXX
21380 # Whether we should hardcode library paths into libraries.
21381 hardcode_into_libs=$hardcode_into_libs
21383 # Flag to hardcode \$libdir into a binary during linking.
21384 # This must work even if \$libdir does not exist.
21385 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21387 # If ld is used when linking, flag to hardcode \$libdir into
21388 # a binary during linking. This must work even if \$libdir does
21389 # not exist.
21390 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21392 # Whether we need a single -rpath flag with a separated argument.
21393 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21395 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21396 # resulting binary.
21397 hardcode_direct=$hardcode_direct_CXX
21399 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21400 # resulting binary.
21401 hardcode_minus_L=$hardcode_minus_L_CXX
21403 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21404 # the resulting binary.
21405 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21407 # Set to yes if building a shared library automatically hardcodes DIR into the library
21408 # and all subsequent libraries and executables linked against it.
21409 hardcode_automatic=$hardcode_automatic_CXX
21411 # Variables whose values should be saved in libtool wrapper scripts and
21412 # restored at relink time.
21413 variables_saved_for_relink="$variables_saved_for_relink"
21415 # Whether libtool must link a program against all its dependency libraries.
21416 link_all_deplibs=$link_all_deplibs_CXX
21418 # Compile-time system search path for libraries
21419 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21421 # Run-time system search path for libraries
21422 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21424 # Fix the shell variable \$srcfile for the compiler.
21425 fix_srcfile_path="$fix_srcfile_path_CXX"
21427 # Set to yes if exported symbols are required.
21428 always_export_symbols=$always_export_symbols_CXX
21430 # The commands to list exported symbols.
21431 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21433 # The commands to extract the exported symbol list from a shared archive.
21434 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21436 # Symbols that should not be listed in the preloaded symbols.
21437 exclude_expsyms=$lt_exclude_expsyms_CXX
21439 # Symbols that must always be exported.
21440 include_expsyms=$lt_include_expsyms_CXX
21442 # ### END LIBTOOL TAG CONFIG: $tagname
21444 __EOF__
21447 else
21448 # If there is no Makefile yet, we rely on a make rule to execute
21449 # `config.status --recheck' to rerun these tests and create the
21450 # libtool script then.
21451 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21452 if test -f "$ltmain_in"; then
21453 test -f Makefile && make "$ltmain"
21458 ac_ext=c
21459 ac_cpp='$CPP $CPPFLAGS'
21460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21464 CC=$lt_save_CC
21465 LDCXX=$LD
21466 LD=$lt_save_LD
21467 GCC=$lt_save_GCC
21468 with_gnu_ldcxx=$with_gnu_ld
21469 with_gnu_ld=$lt_save_with_gnu_ld
21470 lt_cv_path_LDCXX=$lt_cv_path_LD
21471 lt_cv_path_LD=$lt_save_path_LD
21472 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21473 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21475 else
21476 tagname=""
21480 F77)
21481 if test -n "$F77" && test "X$F77" != "Xno"; then
21483 ac_ext=f
21484 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21485 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21486 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21489 archive_cmds_need_lc_F77=no
21490 allow_undefined_flag_F77=
21491 always_export_symbols_F77=no
21492 archive_expsym_cmds_F77=
21493 export_dynamic_flag_spec_F77=
21494 hardcode_direct_F77=no
21495 hardcode_libdir_flag_spec_F77=
21496 hardcode_libdir_flag_spec_ld_F77=
21497 hardcode_libdir_separator_F77=
21498 hardcode_minus_L_F77=no
21499 hardcode_automatic_F77=no
21500 module_cmds_F77=
21501 module_expsym_cmds_F77=
21502 link_all_deplibs_F77=unknown
21503 old_archive_cmds_F77=$old_archive_cmds
21504 no_undefined_flag_F77=
21505 whole_archive_flag_spec_F77=
21506 enable_shared_with_static_runtimes_F77=no
21508 # Source file extension for f77 test sources.
21509 ac_ext=f
21511 # Object file extension for compiled f77 test sources.
21512 objext=o
21513 objext_F77=$objext
21515 # Code to be used in simple compile tests
21516 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21518 # Code to be used in simple link tests
21519 lt_simple_link_test_code=" program t\n end\n"
21521 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21523 # If no C compiler was specified, use CC.
21524 LTCC=${LTCC-"$CC"}
21526 # If no C compiler flags were specified, use CFLAGS.
21527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21529 # Allow CC to be a program name with arguments.
21530 compiler=$CC
21533 # save warnings/boilerplate of simple test code
21534 ac_outfile=conftest.$ac_objext
21535 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21536 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21537 _lt_compiler_boilerplate=`cat conftest.err`
21538 $rm conftest*
21540 ac_outfile=conftest.$ac_objext
21541 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21542 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21543 _lt_linker_boilerplate=`cat conftest.err`
21544 $rm conftest*
21547 # Allow CC to be a program name with arguments.
21548 lt_save_CC="$CC"
21549 CC=${F77-"f77"}
21550 compiler=$CC
21551 compiler_F77=$CC
21552 for cc_temp in $compiler""; do
21553 case $cc_temp in
21554 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21555 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21556 \-*) ;;
21557 *) break;;
21558 esac
21559 done
21560 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21563 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21564 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21565 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21566 echo "${ECHO_T}$can_build_shared" >&6; }
21568 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21569 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21570 test "$can_build_shared" = "no" && enable_shared=no
21572 # On AIX, shared libraries and static libraries use the same namespace, and
21573 # are all built from PIC.
21574 case $host_os in
21575 aix3*)
21576 test "$enable_shared" = yes && enable_static=no
21577 if test -n "$RANLIB"; then
21578 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21579 postinstall_cmds='$RANLIB $lib'
21582 aix4* | aix5*)
21583 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21584 test "$enable_shared" = yes && enable_static=no
21587 esac
21588 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21589 echo "${ECHO_T}$enable_shared" >&6; }
21591 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21592 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21593 # Make sure either enable_shared or enable_static is yes.
21594 test "$enable_shared" = yes || enable_static=yes
21595 { echo "$as_me:$LINENO: result: $enable_static" >&5
21596 echo "${ECHO_T}$enable_static" >&6; }
21598 GCC_F77="$G77"
21599 LD_F77="$LD"
21601 lt_prog_compiler_wl_F77=
21602 lt_prog_compiler_pic_F77=
21603 lt_prog_compiler_static_F77=
21605 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21606 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21608 if test "$GCC" = yes; then
21609 lt_prog_compiler_wl_F77='-Wl,'
21610 lt_prog_compiler_static_F77='-static'
21612 case $host_os in
21613 aix*)
21614 # All AIX code is PIC.
21615 if test "$host_cpu" = ia64; then
21616 # AIX 5 now supports IA64 processor
21617 lt_prog_compiler_static_F77='-Bstatic'
21621 amigaos*)
21622 # FIXME: we need at least 68020 code to build shared libraries, but
21623 # adding the `-m68020' flag to GCC prevents building anything better,
21624 # like `-m68040'.
21625 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21628 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21629 # PIC is the default for these OSes.
21632 mingw* | pw32* | os2*)
21633 # This hack is so that the source file can tell whether it is being
21634 # built for inclusion in a dll (and should export symbols for example).
21635 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21638 darwin* | rhapsody*)
21639 # PIC is the default on this platform
21640 # Common symbols not allowed in MH_DYLIB files
21641 lt_prog_compiler_pic_F77='-fno-common'
21644 interix3*)
21645 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21646 # Instead, we relocate shared libraries at runtime.
21649 msdosdjgpp*)
21650 # Just because we use GCC doesn't mean we suddenly get shared libraries
21651 # on systems that don't support them.
21652 lt_prog_compiler_can_build_shared_F77=no
21653 enable_shared=no
21656 sysv4*MP*)
21657 if test -d /usr/nec; then
21658 lt_prog_compiler_pic_F77=-Kconform_pic
21662 hpux*)
21663 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21664 # not for PA HP-UX.
21665 case $host_cpu in
21666 hppa*64*|ia64*)
21667 # +Z the default
21670 lt_prog_compiler_pic_F77='-fPIC'
21672 esac
21676 lt_prog_compiler_pic_F77='-fPIC'
21678 esac
21679 else
21680 # PORTME Check for flag to pass linker flags through the system compiler.
21681 case $host_os in
21682 aix*)
21683 lt_prog_compiler_wl_F77='-Wl,'
21684 if test "$host_cpu" = ia64; then
21685 # AIX 5 now supports IA64 processor
21686 lt_prog_compiler_static_F77='-Bstatic'
21687 else
21688 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21691 darwin*)
21692 # PIC is the default on this platform
21693 # Common symbols not allowed in MH_DYLIB files
21694 case $cc_basename in
21695 xlc*)
21696 lt_prog_compiler_pic_F77='-qnocommon'
21697 lt_prog_compiler_wl_F77='-Wl,'
21699 esac
21702 mingw* | pw32* | os2*)
21703 # This hack is so that the source file can tell whether it is being
21704 # built for inclusion in a dll (and should export symbols for example).
21705 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21708 hpux9* | hpux10* | hpux11*)
21709 lt_prog_compiler_wl_F77='-Wl,'
21710 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21711 # not for PA HP-UX.
21712 case $host_cpu in
21713 hppa*64*|ia64*)
21714 # +Z the default
21717 lt_prog_compiler_pic_F77='+Z'
21719 esac
21720 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21721 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21724 irix5* | irix6* | nonstopux*)
21725 lt_prog_compiler_wl_F77='-Wl,'
21726 # PIC (with -KPIC) is the default.
21727 lt_prog_compiler_static_F77='-non_shared'
21730 newsos6)
21731 lt_prog_compiler_pic_F77='-KPIC'
21732 lt_prog_compiler_static_F77='-Bstatic'
21735 linux*)
21736 case $cc_basename in
21737 icc* | ecc*)
21738 lt_prog_compiler_wl_F77='-Wl,'
21739 lt_prog_compiler_pic_F77='-KPIC'
21740 lt_prog_compiler_static_F77='-static'
21742 pgcc* | pgf77* | pgf90* | pgf95*)
21743 # Portland Group compilers (*not* the Pentium gcc compiler,
21744 # which looks to be a dead project)
21745 lt_prog_compiler_wl_F77='-Wl,'
21746 lt_prog_compiler_pic_F77='-fpic'
21747 lt_prog_compiler_static_F77='-Bstatic'
21749 ccc*)
21750 lt_prog_compiler_wl_F77='-Wl,'
21751 # All Alpha code is PIC.
21752 lt_prog_compiler_static_F77='-non_shared'
21754 esac
21757 osf3* | osf4* | osf5*)
21758 lt_prog_compiler_wl_F77='-Wl,'
21759 # All OSF/1 code is PIC.
21760 lt_prog_compiler_static_F77='-non_shared'
21763 solaris*)
21764 lt_prog_compiler_pic_F77='-KPIC'
21765 lt_prog_compiler_static_F77='-Bstatic'
21766 case $cc_basename in
21767 f77* | f90* | f95*)
21768 lt_prog_compiler_wl_F77='-Qoption ld ';;
21770 lt_prog_compiler_wl_F77='-Wl,';;
21771 esac
21774 sunos4*)
21775 lt_prog_compiler_wl_F77='-Qoption ld '
21776 lt_prog_compiler_pic_F77='-PIC'
21777 lt_prog_compiler_static_F77='-Bstatic'
21780 sysv4 | sysv4.2uw2* | sysv4.3*)
21781 lt_prog_compiler_wl_F77='-Wl,'
21782 lt_prog_compiler_pic_F77='-KPIC'
21783 lt_prog_compiler_static_F77='-Bstatic'
21786 sysv4*MP*)
21787 if test -d /usr/nec ;then
21788 lt_prog_compiler_pic_F77='-Kconform_pic'
21789 lt_prog_compiler_static_F77='-Bstatic'
21793 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21794 lt_prog_compiler_wl_F77='-Wl,'
21795 lt_prog_compiler_pic_F77='-KPIC'
21796 lt_prog_compiler_static_F77='-Bstatic'
21799 unicos*)
21800 lt_prog_compiler_wl_F77='-Wl,'
21801 lt_prog_compiler_can_build_shared_F77=no
21804 uts4*)
21805 lt_prog_compiler_pic_F77='-pic'
21806 lt_prog_compiler_static_F77='-Bstatic'
21810 lt_prog_compiler_can_build_shared_F77=no
21812 esac
21815 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21816 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21819 # Check to make sure the PIC flag actually works.
21821 if test -n "$lt_prog_compiler_pic_F77"; then
21823 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21824 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21825 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21826 echo $ECHO_N "(cached) $ECHO_C" >&6
21827 else
21828 lt_prog_compiler_pic_works_F77=no
21829 ac_outfile=conftest.$ac_objext
21830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21831 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21832 # Insert the option either (1) after the last *FLAGS variable, or
21833 # (2) before a word containing "conftest.", or (3) at the end.
21834 # Note that $ac_compile itself does not contain backslashes and begins
21835 # with a dollar sign (not a hyphen), so the echo should work correctly.
21836 # The option is referenced via a variable to avoid confusing sed.
21837 lt_compile=`echo "$ac_compile" | $SED \
21838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21840 -e 's:$: $lt_compiler_flag:'`
21841 (eval echo "\"\$as_me:21841: $lt_compile\"" >&5)
21842 (eval "$lt_compile" 2>conftest.err)
21843 ac_status=$?
21844 cat conftest.err >&5
21845 echo "$as_me:21845: \$? = $ac_status" >&5
21846 if (exit $ac_status) && test -s "$ac_outfile"; then
21847 # The compiler can only warn and ignore the option if not recognized
21848 # So say no if there are warnings other than the usual output.
21849 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21851 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21852 lt_prog_compiler_pic_works_F77=yes
21855 $rm conftest*
21858 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21859 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21861 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21862 case $lt_prog_compiler_pic_F77 in
21863 "" | " "*) ;;
21864 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21865 esac
21866 else
21867 lt_prog_compiler_pic_F77=
21868 lt_prog_compiler_can_build_shared_F77=no
21872 case $host_os in
21873 # For platforms which do not support PIC, -DPIC is meaningless:
21874 *djgpp*)
21875 lt_prog_compiler_pic_F77=
21878 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21880 esac
21883 # Check to make sure the static flag actually works.
21885 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21886 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21887 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21888 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21890 else
21891 lt_prog_compiler_static_works_F77=no
21892 save_LDFLAGS="$LDFLAGS"
21893 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21894 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21895 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21896 # The linker can only warn and ignore the option if not recognized
21897 # So say no if there are warnings
21898 if test -s conftest.err; then
21899 # Append any errors to the config.log.
21900 cat conftest.err 1>&5
21901 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21902 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21903 if diff conftest.exp conftest.er2 >/dev/null; then
21904 lt_prog_compiler_static_works_F77=yes
21906 else
21907 lt_prog_compiler_static_works_F77=yes
21910 $rm conftest*
21911 LDFLAGS="$save_LDFLAGS"
21914 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21915 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21917 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21919 else
21920 lt_prog_compiler_static_F77=
21924 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21925 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21926 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21928 else
21929 lt_cv_prog_compiler_c_o_F77=no
21930 $rm -r conftest 2>/dev/null
21931 mkdir conftest
21932 cd conftest
21933 mkdir out
21934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21936 lt_compiler_flag="-o out/conftest2.$ac_objext"
21937 # Insert the option either (1) after the last *FLAGS variable, or
21938 # (2) before a word containing "conftest.", or (3) at the end.
21939 # Note that $ac_compile itself does not contain backslashes and begins
21940 # with a dollar sign (not a hyphen), so the echo should work correctly.
21941 lt_compile=`echo "$ac_compile" | $SED \
21942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21944 -e 's:$: $lt_compiler_flag:'`
21945 (eval echo "\"\$as_me:21945: $lt_compile\"" >&5)
21946 (eval "$lt_compile" 2>out/conftest.err)
21947 ac_status=$?
21948 cat out/conftest.err >&5
21949 echo "$as_me:21949: \$? = $ac_status" >&5
21950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21951 then
21952 # The compiler can only warn and ignore the option if not recognized
21953 # So say no if there are warnings
21954 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21955 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21956 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21957 lt_cv_prog_compiler_c_o_F77=yes
21960 chmod u+w . 2>&5
21961 $rm conftest*
21962 # SGI C++ compiler will create directory out/ii_files/ for
21963 # template instantiation
21964 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21965 $rm out/* && rmdir out
21966 cd ..
21967 rmdir conftest
21968 $rm conftest*
21971 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21972 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21975 hard_links="nottested"
21976 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21977 # do not overwrite the value of need_locks provided by the user
21978 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21979 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21980 hard_links=yes
21981 $rm conftest*
21982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21983 touch conftest.a
21984 ln conftest.a conftest.b 2>&5 || hard_links=no
21985 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21986 { echo "$as_me:$LINENO: result: $hard_links" >&5
21987 echo "${ECHO_T}$hard_links" >&6; }
21988 if test "$hard_links" = no; then
21989 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21990 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21991 need_locks=warn
21993 else
21994 need_locks=no
21997 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21998 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22000 runpath_var=
22001 allow_undefined_flag_F77=
22002 enable_shared_with_static_runtimes_F77=no
22003 archive_cmds_F77=
22004 archive_expsym_cmds_F77=
22005 old_archive_From_new_cmds_F77=
22006 old_archive_from_expsyms_cmds_F77=
22007 export_dynamic_flag_spec_F77=
22008 whole_archive_flag_spec_F77=
22009 thread_safe_flag_spec_F77=
22010 hardcode_libdir_flag_spec_F77=
22011 hardcode_libdir_flag_spec_ld_F77=
22012 hardcode_libdir_separator_F77=
22013 hardcode_direct_F77=no
22014 hardcode_minus_L_F77=no
22015 hardcode_shlibpath_var_F77=unsupported
22016 link_all_deplibs_F77=unknown
22017 hardcode_automatic_F77=no
22018 module_cmds_F77=
22019 module_expsym_cmds_F77=
22020 always_export_symbols_F77=no
22021 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22022 # include_expsyms should be a list of space-separated symbols to be *always*
22023 # included in the symbol list
22024 include_expsyms_F77=
22025 # exclude_expsyms can be an extended regexp of symbols to exclude
22026 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22027 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22028 # as well as any symbol that contains `d'.
22029 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22030 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22031 # platforms (ab)use it in PIC code, but their linkers get confused if
22032 # the symbol is explicitly referenced. Since portable code cannot
22033 # rely on this symbol name, it's probably fine to never include it in
22034 # preloaded symbol tables.
22035 extract_expsyms_cmds=
22036 # Just being paranoid about ensuring that cc_basename is set.
22037 for cc_temp in $compiler""; do
22038 case $cc_temp in
22039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22041 \-*) ;;
22042 *) break;;
22043 esac
22044 done
22045 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22047 case $host_os in
22048 cygwin* | mingw* | pw32*)
22049 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22050 # When not using gcc, we currently assume that we are using
22051 # Microsoft Visual C++.
22052 if test "$GCC" != yes; then
22053 with_gnu_ld=no
22056 interix*)
22057 # we just hope/assume this is gcc and not c89 (= MSVC++)
22058 with_gnu_ld=yes
22060 openbsd*)
22061 with_gnu_ld=no
22063 esac
22065 ld_shlibs_F77=yes
22066 if test "$with_gnu_ld" = yes; then
22067 # If archive_cmds runs LD, not CC, wlarc should be empty
22068 wlarc='${wl}'
22070 # Set some defaults for GNU ld with shared library support. These
22071 # are reset later if shared libraries are not supported. Putting them
22072 # here allows them to be overridden if necessary.
22073 runpath_var=LD_RUN_PATH
22074 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22075 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22076 # ancient GNU ld didn't support --whole-archive et. al.
22077 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22078 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22079 else
22080 whole_archive_flag_spec_F77=
22082 supports_anon_versioning=no
22083 case `$LD -v 2>/dev/null` in
22084 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22085 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22086 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22087 *\ 2.11.*) ;; # other 2.11 versions
22088 *) supports_anon_versioning=yes ;;
22089 esac
22091 # See if GNU ld supports shared libraries.
22092 case $host_os in
22093 aix3* | aix4* | aix5*)
22094 # On AIX/PPC, the GNU linker is very broken
22095 if test "$host_cpu" != ia64; then
22096 ld_shlibs_F77=no
22097 cat <<EOF 1>&2
22099 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22100 *** to be unable to reliably create shared libraries on AIX.
22101 *** Therefore, libtool is disabling shared libraries support. If you
22102 *** really care for shared libraries, you may want to modify your PATH
22103 *** so that a non-GNU linker is found, and then restart.
22109 amigaos*)
22110 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)'
22111 hardcode_libdir_flag_spec_F77='-L$libdir'
22112 hardcode_minus_L_F77=yes
22114 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22115 # that the semantics of dynamic libraries on AmigaOS, at least up
22116 # to version 4, is to share data among multiple programs linked
22117 # with the same dynamic library. Since this doesn't match the
22118 # behavior of shared libraries on other platforms, we can't use
22119 # them.
22120 ld_shlibs_F77=no
22123 beos*)
22124 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22125 allow_undefined_flag_F77=unsupported
22126 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22127 # support --undefined. This deserves some investigation. FIXME
22128 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22129 else
22130 ld_shlibs_F77=no
22134 cygwin* | mingw* | pw32*)
22135 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22136 # as there is no search path for DLLs.
22137 hardcode_libdir_flag_spec_F77='-L$libdir'
22138 allow_undefined_flag_F77=unsupported
22139 always_export_symbols_F77=no
22140 enable_shared_with_static_runtimes_F77=yes
22141 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22143 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22144 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22145 # If the export-symbols file already is a .def file (1st line
22146 # is EXPORTS), use it as is; otherwise, prepend...
22147 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22148 cp $export_symbols $output_objdir/$soname.def;
22149 else
22150 echo EXPORTS > $output_objdir/$soname.def;
22151 cat $export_symbols >> $output_objdir/$soname.def;
22153 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22154 else
22155 ld_shlibs_F77=no
22159 interix3*)
22160 hardcode_direct_F77=no
22161 hardcode_shlibpath_var_F77=no
22162 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22163 export_dynamic_flag_spec_F77='${wl}-E'
22164 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22165 # Instead, shared libraries are loaded at an image base (0x10000000 by
22166 # default) and relocated if they conflict, which is a slow very memory
22167 # consuming and fragmenting process. To avoid this, we pick a random,
22168 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22169 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22170 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'
22171 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'
22174 linux*)
22175 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22176 tmp_addflag=
22177 case $cc_basename,$host_cpu in
22178 pgcc*) # Portland Group C compiler
22179 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'
22180 tmp_addflag=' $pic_flag'
22182 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22183 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'
22184 tmp_addflag=' $pic_flag -Mnomain' ;;
22185 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22186 tmp_addflag=' -i_dynamic' ;;
22187 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22188 tmp_addflag=' -i_dynamic -nofor_main' ;;
22189 ifc* | ifort*) # Intel Fortran compiler
22190 tmp_addflag=' -nofor_main' ;;
22191 esac
22192 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22194 if test $supports_anon_versioning = yes; then
22195 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22196 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22197 $echo "local: *; };" >> $output_objdir/$libname.ver~
22198 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22200 else
22201 ld_shlibs_F77=no
22205 netbsd*)
22206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22207 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22208 wlarc=
22209 else
22210 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22211 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22215 solaris*)
22216 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22217 ld_shlibs_F77=no
22218 cat <<EOF 1>&2
22220 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22221 *** create shared libraries on Solaris systems. Therefore, libtool
22222 *** is disabling shared libraries support. We urge you to upgrade GNU
22223 *** binutils to release 2.9.1 or newer. Another option is to modify
22224 *** your PATH or compiler configuration so that the native linker is
22225 *** used, and then restart.
22228 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22229 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22230 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22231 else
22232 ld_shlibs_F77=no
22236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22237 case `$LD -v 2>&1` in
22238 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22239 ld_shlibs_F77=no
22240 cat <<_LT_EOF 1>&2
22242 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22243 *** reliably create shared libraries on SCO systems. Therefore, libtool
22244 *** is disabling shared libraries support. We urge you to upgrade GNU
22245 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22246 *** your PATH or compiler configuration so that the native linker is
22247 *** used, and then restart.
22249 _LT_EOF
22252 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22253 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22254 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22255 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22256 else
22257 ld_shlibs_F77=no
22260 esac
22263 sunos4*)
22264 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22265 wlarc=
22266 hardcode_direct_F77=yes
22267 hardcode_shlibpath_var_F77=no
22271 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22272 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22273 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22274 else
22275 ld_shlibs_F77=no
22278 esac
22280 if test "$ld_shlibs_F77" = no; then
22281 runpath_var=
22282 hardcode_libdir_flag_spec_F77=
22283 export_dynamic_flag_spec_F77=
22284 whole_archive_flag_spec_F77=
22286 else
22287 # PORTME fill in a description of your system's linker (not GNU ld)
22288 case $host_os in
22289 aix3*)
22290 allow_undefined_flag_F77=unsupported
22291 always_export_symbols_F77=yes
22292 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'
22293 # Note: this linker hardcodes the directories in LIBPATH if there
22294 # are no directories specified by -L.
22295 hardcode_minus_L_F77=yes
22296 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22297 # Neither direct hardcoding nor static linking is supported with a
22298 # broken collect2.
22299 hardcode_direct_F77=unsupported
22303 aix4* | aix5*)
22304 if test "$host_cpu" = ia64; then
22305 # On IA64, the linker does run time linking by default, so we don't
22306 # have to do anything special.
22307 aix_use_runtimelinking=no
22308 exp_sym_flag='-Bexport'
22309 no_entry_flag=""
22310 else
22311 # If we're using GNU nm, then we don't want the "-C" option.
22312 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22313 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22314 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'
22315 else
22316 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'
22318 aix_use_runtimelinking=no
22320 # Test if we are trying to use run time linking or normal
22321 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22322 # need to do runtime linking.
22323 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22324 for ld_flag in $LDFLAGS; do
22325 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22326 aix_use_runtimelinking=yes
22327 break
22329 done
22331 esac
22333 exp_sym_flag='-bexport'
22334 no_entry_flag='-bnoentry'
22337 # When large executables or shared objects are built, AIX ld can
22338 # have problems creating the table of contents. If linking a library
22339 # or program results in "error TOC overflow" add -mminimal-toc to
22340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22343 archive_cmds_F77=''
22344 hardcode_direct_F77=yes
22345 hardcode_libdir_separator_F77=':'
22346 link_all_deplibs_F77=yes
22348 if test "$GCC" = yes; then
22349 case $host_os in aix4.[012]|aix4.[012].*)
22350 # We only want to do this on AIX 4.2 and lower, the check
22351 # below for broken collect2 doesn't work under 4.3+
22352 collect2name=`${CC} -print-prog-name=collect2`
22353 if test -f "$collect2name" && \
22354 strings "$collect2name" | grep resolve_lib_name >/dev/null
22355 then
22356 # We have reworked collect2
22357 hardcode_direct_F77=yes
22358 else
22359 # We have old collect2
22360 hardcode_direct_F77=unsupported
22361 # It fails to find uninstalled libraries when the uninstalled
22362 # path is not listed in the libpath. Setting hardcode_minus_L
22363 # to unsupported forces relinking
22364 hardcode_minus_L_F77=yes
22365 hardcode_libdir_flag_spec_F77='-L$libdir'
22366 hardcode_libdir_separator_F77=
22369 esac
22370 shared_flag='-shared'
22371 if test "$aix_use_runtimelinking" = yes; then
22372 shared_flag="$shared_flag "'${wl}-G'
22374 else
22375 # not using gcc
22376 if test "$host_cpu" = ia64; then
22377 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22378 # chokes on -Wl,-G. The following line is correct:
22379 shared_flag='-G'
22380 else
22381 if test "$aix_use_runtimelinking" = yes; then
22382 shared_flag='${wl}-G'
22383 else
22384 shared_flag='${wl}-bM:SRE'
22389 # It seems that -bexpall does not export symbols beginning with
22390 # underscore (_), so it is better to generate a list of symbols to export.
22391 always_export_symbols_F77=yes
22392 if test "$aix_use_runtimelinking" = yes; then
22393 # Warning - without using the other runtime loading flags (-brtl),
22394 # -berok will link without error, but may produce a broken library.
22395 allow_undefined_flag_F77='-berok'
22396 # Determine the default libpath from the value encoded in an empty executable.
22397 cat >conftest.$ac_ext <<_ACEOF
22398 program main
22401 _ACEOF
22402 rm -f conftest.$ac_objext conftest$ac_exeext
22403 if { (ac_try="$ac_link"
22404 case "(($ac_try" in
22405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22406 *) ac_try_echo=$ac_try;;
22407 esac
22408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22409 (eval "$ac_link") 2>conftest.er1
22410 ac_status=$?
22411 grep -v '^ *+' conftest.er1 >conftest.err
22412 rm -f conftest.er1
22413 cat conftest.err >&5
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); } &&
22416 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22417 { (case "(($ac_try" in
22418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419 *) ac_try_echo=$ac_try;;
22420 esac
22421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22422 (eval "$ac_try") 2>&5
22423 ac_status=$?
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); }; } &&
22426 { ac_try='test -s conftest$ac_exeext'
22427 { (case "(($ac_try" in
22428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22429 *) ac_try_echo=$ac_try;;
22430 esac
22431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22432 (eval "$ac_try") 2>&5
22433 ac_status=$?
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); }; }; then
22437 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22439 # Check for a 64-bit object if we didn't find anything.
22440 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; }
22441 }'`; fi
22442 else
22443 echo "$as_me: failed program was:" >&5
22444 sed 's/^/| /' conftest.$ac_ext >&5
22449 rm -f core conftest.err conftest.$ac_objext \
22450 conftest$ac_exeext conftest.$ac_ext
22451 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22453 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22454 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"
22455 else
22456 if test "$host_cpu" = ia64; then
22457 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22458 allow_undefined_flag_F77="-z nodefs"
22459 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"
22460 else
22461 # Determine the default libpath from the value encoded in an empty executable.
22462 cat >conftest.$ac_ext <<_ACEOF
22463 program main
22466 _ACEOF
22467 rm -f conftest.$ac_objext conftest$ac_exeext
22468 if { (ac_try="$ac_link"
22469 case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22472 esac
22473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_link") 2>conftest.er1
22475 ac_status=$?
22476 grep -v '^ *+' conftest.er1 >conftest.err
22477 rm -f conftest.er1
22478 cat conftest.err >&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } &&
22481 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22482 { (case "(($ac_try" in
22483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484 *) ac_try_echo=$ac_try;;
22485 esac
22486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22487 (eval "$ac_try") 2>&5
22488 ac_status=$?
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); }; } &&
22491 { ac_try='test -s conftest$ac_exeext'
22492 { (case "(($ac_try" in
22493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22494 *) ac_try_echo=$ac_try;;
22495 esac
22496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22497 (eval "$ac_try") 2>&5
22498 ac_status=$?
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); }; }; then
22502 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22504 # Check for a 64-bit object if we didn't find anything.
22505 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; }
22506 }'`; fi
22507 else
22508 echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22514 rm -f core conftest.err conftest.$ac_objext \
22515 conftest$ac_exeext conftest.$ac_ext
22516 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22518 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22519 # Warning - without using the other run time loading flags,
22520 # -berok will link without error, but may produce a broken library.
22521 no_undefined_flag_F77=' ${wl}-bernotok'
22522 allow_undefined_flag_F77=' ${wl}-berok'
22523 # Exported symbols can be pulled into shared objects from archives
22524 whole_archive_flag_spec_F77='$convenience'
22525 archive_cmds_need_lc_F77=yes
22526 # This is similar to how AIX traditionally builds its shared libraries.
22527 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'
22532 amigaos*)
22533 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)'
22534 hardcode_libdir_flag_spec_F77='-L$libdir'
22535 hardcode_minus_L_F77=yes
22536 # see comment about different semantics on the GNU ld section
22537 ld_shlibs_F77=no
22540 bsdi[45]*)
22541 export_dynamic_flag_spec_F77=-rdynamic
22544 cygwin* | mingw* | pw32*)
22545 # When not using gcc, we currently assume that we are using
22546 # Microsoft Visual C++.
22547 # hardcode_libdir_flag_spec is actually meaningless, as there is
22548 # no search path for DLLs.
22549 hardcode_libdir_flag_spec_F77=' '
22550 allow_undefined_flag_F77=unsupported
22551 # Tell ltmain to make .lib files, not .a files.
22552 libext=lib
22553 # Tell ltmain to make .dll files, not .so files.
22554 shrext_cmds=".dll"
22555 # FIXME: Setting linknames here is a bad hack.
22556 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22557 # The linker will automatically build a .lib file if we build a DLL.
22558 old_archive_From_new_cmds_F77='true'
22559 # FIXME: Should let the user specify the lib program.
22560 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22561 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22562 enable_shared_with_static_runtimes_F77=yes
22565 darwin* | rhapsody*)
22566 case $host_os in
22567 rhapsody* | darwin1.[012])
22568 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22570 *) # Darwin 1.3 on
22571 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22572 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22573 else
22574 case ${MACOSX_DEPLOYMENT_TARGET} in
22575 10.[012])
22576 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22578 10.*)
22579 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22581 esac
22584 esac
22585 archive_cmds_need_lc_F77=no
22586 hardcode_direct_F77=no
22587 hardcode_automatic_F77=yes
22588 hardcode_shlibpath_var_F77=unsupported
22589 whole_archive_flag_spec_F77=''
22590 link_all_deplibs_F77=yes
22591 if test "$GCC" = yes ; then
22592 output_verbose_link_cmd='echo'
22593 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22594 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22595 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22596 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}'
22597 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}'
22598 else
22599 case $cc_basename in
22600 xlc*)
22601 output_verbose_link_cmd='echo'
22602 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22603 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22605 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}'
22606 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}'
22609 ld_shlibs_F77=no
22611 esac
22615 dgux*)
22616 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22617 hardcode_libdir_flag_spec_F77='-L$libdir'
22618 hardcode_shlibpath_var_F77=no
22621 freebsd1*)
22622 ld_shlibs_F77=no
22625 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22626 # support. Future versions do this automatically, but an explicit c++rt0.o
22627 # does not break anything, and helps significantly (at the cost of a little
22628 # extra space).
22629 freebsd2.2*)
22630 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22631 hardcode_libdir_flag_spec_F77='-R$libdir'
22632 hardcode_direct_F77=yes
22633 hardcode_shlibpath_var_F77=no
22636 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22637 freebsd2*)
22638 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22639 hardcode_direct_F77=yes
22640 hardcode_minus_L_F77=yes
22641 hardcode_shlibpath_var_F77=no
22644 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22645 freebsd* | kfreebsd*-gnu | dragonfly*)
22646 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22647 hardcode_libdir_flag_spec_F77='-R$libdir'
22648 hardcode_direct_F77=yes
22649 hardcode_shlibpath_var_F77=no
22652 hpux9*)
22653 if test "$GCC" = yes; then
22654 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'
22655 else
22656 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'
22658 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22659 hardcode_libdir_separator_F77=:
22660 hardcode_direct_F77=yes
22662 # hardcode_minus_L: Not really in the search PATH,
22663 # but as the default location of the library.
22664 hardcode_minus_L_F77=yes
22665 export_dynamic_flag_spec_F77='${wl}-E'
22668 hpux10*)
22669 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22670 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22671 else
22672 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22674 if test "$with_gnu_ld" = no; then
22675 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22676 hardcode_libdir_separator_F77=:
22678 hardcode_direct_F77=yes
22679 export_dynamic_flag_spec_F77='${wl}-E'
22681 # hardcode_minus_L: Not really in the search PATH,
22682 # but as the default location of the library.
22683 hardcode_minus_L_F77=yes
22687 hpux11*)
22688 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22689 case $host_cpu in
22690 hppa*64*)
22691 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22693 ia64*)
22694 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22697 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22699 esac
22700 else
22701 case $host_cpu in
22702 hppa*64*)
22703 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22705 ia64*)
22706 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22709 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22711 esac
22713 if test "$with_gnu_ld" = no; then
22714 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22715 hardcode_libdir_separator_F77=:
22717 case $host_cpu in
22718 hppa*64*|ia64*)
22719 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22720 hardcode_direct_F77=no
22721 hardcode_shlibpath_var_F77=no
22724 hardcode_direct_F77=yes
22725 export_dynamic_flag_spec_F77='${wl}-E'
22727 # hardcode_minus_L: Not really in the search PATH,
22728 # but as the default location of the library.
22729 hardcode_minus_L_F77=yes
22731 esac
22735 irix5* | irix6* | nonstopux*)
22736 if test "$GCC" = yes; then
22737 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'
22738 else
22739 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'
22740 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22742 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22743 hardcode_libdir_separator_F77=:
22744 link_all_deplibs_F77=yes
22747 netbsd*)
22748 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22749 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22750 else
22751 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22753 hardcode_libdir_flag_spec_F77='-R$libdir'
22754 hardcode_direct_F77=yes
22755 hardcode_shlibpath_var_F77=no
22758 newsos6)
22759 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22760 hardcode_direct_F77=yes
22761 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22762 hardcode_libdir_separator_F77=:
22763 hardcode_shlibpath_var_F77=no
22766 openbsd*)
22767 hardcode_direct_F77=yes
22768 hardcode_shlibpath_var_F77=no
22769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22770 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22771 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22772 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22773 export_dynamic_flag_spec_F77='${wl}-E'
22774 else
22775 case $host_os in
22776 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22777 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22778 hardcode_libdir_flag_spec_F77='-R$libdir'
22781 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22782 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22784 esac
22788 os2*)
22789 hardcode_libdir_flag_spec_F77='-L$libdir'
22790 hardcode_minus_L_F77=yes
22791 allow_undefined_flag_F77=unsupported
22792 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'
22793 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22796 osf3*)
22797 if test "$GCC" = yes; then
22798 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22799 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'
22800 else
22801 allow_undefined_flag_F77=' -expect_unresolved \*'
22802 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'
22804 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22805 hardcode_libdir_separator_F77=:
22808 osf4* | osf5*) # as osf3* with the addition of -msym flag
22809 if test "$GCC" = yes; then
22810 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22811 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'
22812 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22813 else
22814 allow_undefined_flag_F77=' -expect_unresolved \*'
22815 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'
22816 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~
22817 $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'
22819 # Both c and cxx compiler support -rpath directly
22820 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22822 hardcode_libdir_separator_F77=:
22825 solaris*)
22826 no_undefined_flag_F77=' -z text'
22827 if test "$GCC" = yes; then
22828 wlarc='${wl}'
22829 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22830 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22831 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22832 else
22833 wlarc=''
22834 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22835 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22836 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22838 hardcode_libdir_flag_spec_F77='-R$libdir'
22839 hardcode_shlibpath_var_F77=no
22840 case $host_os in
22841 solaris2.[0-5] | solaris2.[0-5].*) ;;
22843 # The compiler driver will combine linker options so we
22844 # cannot just pass the convience library names through
22845 # without $wl, iff we do not link with $LD.
22846 # Luckily, gcc supports the same syntax we need for Sun Studio.
22847 # Supported since Solaris 2.6 (maybe 2.5.1?)
22848 case $wlarc in
22850 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22852 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' ;;
22853 esac ;;
22854 esac
22855 link_all_deplibs_F77=yes
22858 sunos4*)
22859 if test "x$host_vendor" = xsequent; then
22860 # Use $CC to link under sequent, because it throws in some extra .o
22861 # files that make .init and .fini sections work.
22862 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22863 else
22864 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22866 hardcode_libdir_flag_spec_F77='-L$libdir'
22867 hardcode_direct_F77=yes
22868 hardcode_minus_L_F77=yes
22869 hardcode_shlibpath_var_F77=no
22872 sysv4)
22873 case $host_vendor in
22874 sni)
22875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22876 hardcode_direct_F77=yes # is this really true???
22878 siemens)
22879 ## LD is ld it makes a PLAMLIB
22880 ## CC just makes a GrossModule.
22881 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22882 reload_cmds_F77='$CC -r -o $output$reload_objs'
22883 hardcode_direct_F77=no
22885 motorola)
22886 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22887 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22889 esac
22890 runpath_var='LD_RUN_PATH'
22891 hardcode_shlibpath_var_F77=no
22894 sysv4.3*)
22895 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22896 hardcode_shlibpath_var_F77=no
22897 export_dynamic_flag_spec_F77='-Bexport'
22900 sysv4*MP*)
22901 if test -d /usr/nec; then
22902 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22903 hardcode_shlibpath_var_F77=no
22904 runpath_var=LD_RUN_PATH
22905 hardcode_runpath_var=yes
22906 ld_shlibs_F77=yes
22910 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22911 no_undefined_flag_F77='${wl}-z,text'
22912 archive_cmds_need_lc_F77=no
22913 hardcode_shlibpath_var_F77=no
22914 runpath_var='LD_RUN_PATH'
22916 if test "$GCC" = yes; then
22917 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22918 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22919 else
22920 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22921 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22925 sysv5* | sco3.2v5* | sco5v6*)
22926 # Note: We can NOT use -z defs as we might desire, because we do not
22927 # link with -lc, and that would cause any symbols used from libc to
22928 # always be unresolved, which means just about no library would
22929 # ever link correctly. If we're not using GNU ld we use -z text
22930 # though, which does catch some bad symbols but isn't as heavy-handed
22931 # as -z defs.
22932 no_undefined_flag_F77='${wl}-z,text'
22933 allow_undefined_flag_F77='${wl}-z,nodefs'
22934 archive_cmds_need_lc_F77=no
22935 hardcode_shlibpath_var_F77=no
22936 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22937 hardcode_libdir_separator_F77=':'
22938 link_all_deplibs_F77=yes
22939 export_dynamic_flag_spec_F77='${wl}-Bexport'
22940 runpath_var='LD_RUN_PATH'
22942 if test "$GCC" = yes; then
22943 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22944 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22945 else
22946 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22947 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22951 uts4*)
22952 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22953 hardcode_libdir_flag_spec_F77='-L$libdir'
22954 hardcode_shlibpath_var_F77=no
22958 ld_shlibs_F77=no
22960 esac
22963 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22964 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22965 test "$ld_shlibs_F77" = no && can_build_shared=no
22968 # Do we need to explicitly link libc?
22970 case "x$archive_cmds_need_lc_F77" in
22971 x|xyes)
22972 # Assume -lc should be added
22973 archive_cmds_need_lc_F77=yes
22975 if test "$enable_shared" = yes && test "$GCC" = yes; then
22976 case $archive_cmds_F77 in
22977 *'~'*)
22978 # FIXME: we may have to deal with multi-command sequences.
22980 '$CC '*)
22981 # Test whether the compiler implicitly links with -lc since on some
22982 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22983 # to ld, don't add -lc before -lgcc.
22984 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22985 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22986 $rm conftest*
22987 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22990 (eval $ac_compile) 2>&5
22991 ac_status=$?
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } 2>conftest.err; then
22994 soname=conftest
22995 lib=conftest
22996 libobjs=conftest.$ac_objext
22997 deplibs=
22998 wl=$lt_prog_compiler_wl_F77
22999 pic_flag=$lt_prog_compiler_pic_F77
23000 compiler_flags=-v
23001 linker_flags=-v
23002 verstring=
23003 output_objdir=.
23004 libname=conftest
23005 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23006 allow_undefined_flag_F77=
23007 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23008 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23009 ac_status=$?
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); }
23012 then
23013 archive_cmds_need_lc_F77=no
23014 else
23015 archive_cmds_need_lc_F77=yes
23017 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23018 else
23019 cat conftest.err 1>&5
23021 $rm conftest*
23022 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23023 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23025 esac
23028 esac
23030 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23031 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23032 library_names_spec=
23033 libname_spec='lib$name'
23034 soname_spec=
23035 shrext_cmds=".so"
23036 postinstall_cmds=
23037 postuninstall_cmds=
23038 finish_cmds=
23039 finish_eval=
23040 shlibpath_var=
23041 shlibpath_overrides_runpath=unknown
23042 version_type=none
23043 dynamic_linker="$host_os ld.so"
23044 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23045 if test "$GCC" = yes; then
23046 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23047 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23048 # if the path contains ";" then we assume it to be the separator
23049 # otherwise default to the standard path separator (i.e. ":") - it is
23050 # assumed that no part of a normal pathname contains ";" but that should
23051 # okay in the real world where ";" in dirpaths is itself problematic.
23052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23053 else
23054 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23056 else
23057 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23059 need_lib_prefix=unknown
23060 hardcode_into_libs=no
23062 # when you set need_version to no, make sure it does not cause -set_version
23063 # flags to be left without arguments
23064 need_version=unknown
23066 case $host_os in
23067 aix3*)
23068 version_type=linux
23069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23070 shlibpath_var=LIBPATH
23072 # AIX 3 has no versioning support, so we append a major version to the name.
23073 soname_spec='${libname}${release}${shared_ext}$major'
23076 aix4* | aix5*)
23077 version_type=linux
23078 need_lib_prefix=no
23079 need_version=no
23080 hardcode_into_libs=yes
23081 if test "$host_cpu" = ia64; then
23082 # AIX 5 supports IA64
23083 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23084 shlibpath_var=LD_LIBRARY_PATH
23085 else
23086 # With GCC up to 2.95.x, collect2 would create an import file
23087 # for dependence libraries. The import file would start with
23088 # the line `#! .'. This would cause the generated library to
23089 # depend on `.', always an invalid library. This was fixed in
23090 # development snapshots of GCC prior to 3.0.
23091 case $host_os in
23092 aix4 | aix4.[01] | aix4.[01].*)
23093 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23094 echo ' yes '
23095 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23097 else
23098 can_build_shared=no
23101 esac
23102 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23103 # soname into executable. Probably we can add versioning support to
23104 # collect2, so additional links can be useful in future.
23105 if test "$aix_use_runtimelinking" = yes; then
23106 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23107 # instead of lib<name>.a to let people know that these are not
23108 # typical AIX shared libraries.
23109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23110 else
23111 # We preserve .a as extension for shared libraries through AIX4.2
23112 # and later when we are not doing run time linking.
23113 library_names_spec='${libname}${release}.a $libname.a'
23114 soname_spec='${libname}${release}${shared_ext}$major'
23116 shlibpath_var=LIBPATH
23120 amigaos*)
23121 library_names_spec='$libname.ixlibrary $libname.a'
23122 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23123 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'
23126 beos*)
23127 library_names_spec='${libname}${shared_ext}'
23128 dynamic_linker="$host_os ld.so"
23129 shlibpath_var=LIBRARY_PATH
23132 bsdi[45]*)
23133 version_type=linux
23134 need_version=no
23135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23136 soname_spec='${libname}${release}${shared_ext}$major'
23137 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23138 shlibpath_var=LD_LIBRARY_PATH
23139 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23140 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23141 # the default ld.so.conf also contains /usr/contrib/lib and
23142 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23143 # libtool to hard-code these into programs
23146 cygwin* | mingw* | pw32*)
23147 version_type=windows
23148 shrext_cmds=".dll"
23149 need_version=no
23150 need_lib_prefix=no
23152 case $GCC,$host_os in
23153 yes,cygwin* | yes,mingw* | yes,pw32*)
23154 library_names_spec='$libname.dll.a'
23155 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23156 postinstall_cmds='base_file=`basename \${file}`~
23157 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23158 dldir=$destdir/`dirname \$dlpath`~
23159 test -d \$dldir || mkdir -p \$dldir~
23160 $install_prog $dir/$dlname \$dldir/$dlname~
23161 chmod a+x \$dldir/$dlname'
23162 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23163 dlpath=$dir/\$dldll~
23164 $rm \$dlpath'
23165 shlibpath_overrides_runpath=yes
23167 case $host_os in
23168 cygwin*)
23169 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23170 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23171 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23173 mingw*)
23174 # MinGW DLLs use traditional 'lib' prefix
23175 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23176 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23177 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23178 # It is most probably a Windows format PATH printed by
23179 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23180 # path with ; separators, and with drive letters. We can handle the
23181 # drive letters (cygwin fileutils understands them), so leave them,
23182 # especially as we might pass files found there to a mingw objdump,
23183 # which wouldn't understand a cygwinified path. Ahh.
23184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23185 else
23186 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23189 pw32*)
23190 # pw32 DLLs use 'pw' prefix rather than 'lib'
23191 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23193 esac
23197 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23199 esac
23200 dynamic_linker='Win32 ld.exe'
23201 # FIXME: first we should search . and the directory the executable is in
23202 shlibpath_var=PATH
23205 darwin* | rhapsody*)
23206 dynamic_linker="$host_os dyld"
23207 version_type=darwin
23208 need_lib_prefix=no
23209 need_version=no
23210 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23211 soname_spec='${libname}${release}${major}$shared_ext'
23212 shlibpath_overrides_runpath=yes
23213 shlibpath_var=DYLD_LIBRARY_PATH
23214 shrext_cmds='.dylib'
23215 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23216 if test "$GCC" = yes; then
23217 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"`
23218 else
23219 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23221 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23224 dgux*)
23225 version_type=linux
23226 need_lib_prefix=no
23227 need_version=no
23228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23229 soname_spec='${libname}${release}${shared_ext}$major'
23230 shlibpath_var=LD_LIBRARY_PATH
23233 freebsd1*)
23234 dynamic_linker=no
23237 kfreebsd*-gnu)
23238 version_type=linux
23239 need_lib_prefix=no
23240 need_version=no
23241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23242 soname_spec='${libname}${release}${shared_ext}$major'
23243 shlibpath_var=LD_LIBRARY_PATH
23244 shlibpath_overrides_runpath=no
23245 hardcode_into_libs=yes
23246 dynamic_linker='GNU ld.so'
23249 freebsd* | dragonfly*)
23250 # DragonFly does not have aout. When/if they implement a new
23251 # versioning mechanism, adjust this.
23252 if test -x /usr/bin/objformat; then
23253 objformat=`/usr/bin/objformat`
23254 else
23255 case $host_os in
23256 freebsd[123]*) objformat=aout ;;
23257 *) objformat=elf ;;
23258 esac
23260 version_type=freebsd-$objformat
23261 case $version_type in
23262 freebsd-elf*)
23263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23264 need_version=no
23265 need_lib_prefix=no
23267 freebsd-*)
23268 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23269 need_version=yes
23271 esac
23272 shlibpath_var=LD_LIBRARY_PATH
23273 case $host_os in
23274 freebsd2*)
23275 shlibpath_overrides_runpath=yes
23277 freebsd3.[01]* | freebsdelf3.[01]*)
23278 shlibpath_overrides_runpath=yes
23279 hardcode_into_libs=yes
23281 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23282 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23283 shlibpath_overrides_runpath=no
23284 hardcode_into_libs=yes
23286 freebsd*) # from 4.6 on
23287 shlibpath_overrides_runpath=yes
23288 hardcode_into_libs=yes
23290 esac
23293 gnu*)
23294 version_type=linux
23295 need_lib_prefix=no
23296 need_version=no
23297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23298 soname_spec='${libname}${release}${shared_ext}$major'
23299 shlibpath_var=LD_LIBRARY_PATH
23300 hardcode_into_libs=yes
23303 hpux9* | hpux10* | hpux11*)
23304 # Give a soname corresponding to the major version so that dld.sl refuses to
23305 # link against other versions.
23306 version_type=sunos
23307 need_lib_prefix=no
23308 need_version=no
23309 case $host_cpu in
23310 ia64*)
23311 shrext_cmds='.so'
23312 hardcode_into_libs=yes
23313 dynamic_linker="$host_os dld.so"
23314 shlibpath_var=LD_LIBRARY_PATH
23315 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23317 soname_spec='${libname}${release}${shared_ext}$major'
23318 if test "X$HPUX_IA64_MODE" = X32; then
23319 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23320 else
23321 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23325 hppa*64*)
23326 shrext_cmds='.sl'
23327 hardcode_into_libs=yes
23328 dynamic_linker="$host_os dld.sl"
23329 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23332 soname_spec='${libname}${release}${shared_ext}$major'
23333 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23337 shrext_cmds='.sl'
23338 dynamic_linker="$host_os dld.sl"
23339 shlibpath_var=SHLIB_PATH
23340 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23342 soname_spec='${libname}${release}${shared_ext}$major'
23344 esac
23345 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23346 postinstall_cmds='chmod 555 $lib'
23349 interix3*)
23350 version_type=linux
23351 need_lib_prefix=no
23352 need_version=no
23353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23354 soname_spec='${libname}${release}${shared_ext}$major'
23355 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23356 shlibpath_var=LD_LIBRARY_PATH
23357 shlibpath_overrides_runpath=no
23358 hardcode_into_libs=yes
23361 irix5* | irix6* | nonstopux*)
23362 case $host_os in
23363 nonstopux*) version_type=nonstopux ;;
23365 if test "$lt_cv_prog_gnu_ld" = yes; then
23366 version_type=linux
23367 else
23368 version_type=irix
23369 fi ;;
23370 esac
23371 need_lib_prefix=no
23372 need_version=no
23373 soname_spec='${libname}${release}${shared_ext}$major'
23374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23375 case $host_os in
23376 irix5* | nonstopux*)
23377 libsuff= shlibsuff=
23380 case $LD in # libtool.m4 will add one of these switches to LD
23381 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23382 libsuff= shlibsuff= libmagic=32-bit;;
23383 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23384 libsuff=32 shlibsuff=N32 libmagic=N32;;
23385 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23386 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23387 *) libsuff= shlibsuff= libmagic=never-match;;
23388 esac
23390 esac
23391 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23392 shlibpath_overrides_runpath=no
23393 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23394 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23395 hardcode_into_libs=yes
23398 # No shared lib support for Linux oldld, aout, or coff.
23399 linux*oldld* | linux*aout* | linux*coff*)
23400 dynamic_linker=no
23403 # This must be Linux ELF.
23404 linux*)
23405 version_type=linux
23406 need_lib_prefix=no
23407 need_version=no
23408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23409 soname_spec='${libname}${release}${shared_ext}$major'
23410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23411 shlibpath_var=LD_LIBRARY_PATH
23412 shlibpath_overrides_runpath=no
23413 # This implies no fast_install, which is unacceptable.
23414 # Some rework will be needed to allow for fast_install
23415 # before this can be enabled.
23416 hardcode_into_libs=yes
23418 # Append ld.so.conf contents to the search path
23419 if test -f /etc/ld.so.conf; then
23420 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' ' '`
23421 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23424 # We used to test for /lib/ld.so.1 and disable shared libraries on
23425 # powerpc, because MkLinux only supported shared libraries with the
23426 # GNU dynamic linker. Since this was broken with cross compilers,
23427 # most powerpc-linux boxes support dynamic linking these days and
23428 # people can always --disable-shared, the test was removed, and we
23429 # assume the GNU/Linux dynamic linker is in use.
23430 dynamic_linker='GNU/Linux ld.so'
23433 knetbsd*-gnu)
23434 version_type=linux
23435 need_lib_prefix=no
23436 need_version=no
23437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23438 soname_spec='${libname}${release}${shared_ext}$major'
23439 shlibpath_var=LD_LIBRARY_PATH
23440 shlibpath_overrides_runpath=no
23441 hardcode_into_libs=yes
23442 dynamic_linker='GNU ld.so'
23445 netbsd*)
23446 version_type=sunos
23447 need_lib_prefix=no
23448 need_version=no
23449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23452 dynamic_linker='NetBSD (a.out) ld.so'
23453 else
23454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23455 soname_spec='${libname}${release}${shared_ext}$major'
23456 dynamic_linker='NetBSD ld.elf_so'
23458 shlibpath_var=LD_LIBRARY_PATH
23459 shlibpath_overrides_runpath=yes
23460 hardcode_into_libs=yes
23463 newsos6)
23464 version_type=linux
23465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23466 shlibpath_var=LD_LIBRARY_PATH
23467 shlibpath_overrides_runpath=yes
23470 nto-qnx*)
23471 version_type=linux
23472 need_lib_prefix=no
23473 need_version=no
23474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23475 soname_spec='${libname}${release}${shared_ext}$major'
23476 shlibpath_var=LD_LIBRARY_PATH
23477 shlibpath_overrides_runpath=yes
23480 openbsd*)
23481 version_type=sunos
23482 sys_lib_dlsearch_path_spec="/usr/lib"
23483 need_lib_prefix=no
23484 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23485 case $host_os in
23486 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23487 *) need_version=no ;;
23488 esac
23489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23491 shlibpath_var=LD_LIBRARY_PATH
23492 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23493 case $host_os in
23494 openbsd2.[89] | openbsd2.[89].*)
23495 shlibpath_overrides_runpath=no
23498 shlibpath_overrides_runpath=yes
23500 esac
23501 else
23502 shlibpath_overrides_runpath=yes
23506 os2*)
23507 libname_spec='$name'
23508 shrext_cmds=".dll"
23509 need_lib_prefix=no
23510 library_names_spec='$libname${shared_ext} $libname.a'
23511 dynamic_linker='OS/2 ld.exe'
23512 shlibpath_var=LIBPATH
23515 osf3* | osf4* | osf5*)
23516 version_type=osf
23517 need_lib_prefix=no
23518 need_version=no
23519 soname_spec='${libname}${release}${shared_ext}$major'
23520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23521 shlibpath_var=LD_LIBRARY_PATH
23522 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23523 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23526 solaris*)
23527 version_type=linux
23528 need_lib_prefix=no
23529 need_version=no
23530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23531 soname_spec='${libname}${release}${shared_ext}$major'
23532 shlibpath_var=LD_LIBRARY_PATH
23533 shlibpath_overrides_runpath=yes
23534 hardcode_into_libs=yes
23535 # ldd complains unless libraries are executable
23536 postinstall_cmds='chmod +x $lib'
23539 sunos4*)
23540 version_type=sunos
23541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23542 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23543 shlibpath_var=LD_LIBRARY_PATH
23544 shlibpath_overrides_runpath=yes
23545 if test "$with_gnu_ld" = yes; then
23546 need_lib_prefix=no
23548 need_version=yes
23551 sysv4 | sysv4.3*)
23552 version_type=linux
23553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23554 soname_spec='${libname}${release}${shared_ext}$major'
23555 shlibpath_var=LD_LIBRARY_PATH
23556 case $host_vendor in
23557 sni)
23558 shlibpath_overrides_runpath=no
23559 need_lib_prefix=no
23560 export_dynamic_flag_spec='${wl}-Blargedynsym'
23561 runpath_var=LD_RUN_PATH
23563 siemens)
23564 need_lib_prefix=no
23566 motorola)
23567 need_lib_prefix=no
23568 need_version=no
23569 shlibpath_overrides_runpath=no
23570 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23572 esac
23575 sysv4*MP*)
23576 if test -d /usr/nec ;then
23577 version_type=linux
23578 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23579 soname_spec='$libname${shared_ext}.$major'
23580 shlibpath_var=LD_LIBRARY_PATH
23584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23585 version_type=freebsd-elf
23586 need_lib_prefix=no
23587 need_version=no
23588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23589 soname_spec='${libname}${release}${shared_ext}$major'
23590 shlibpath_var=LD_LIBRARY_PATH
23591 hardcode_into_libs=yes
23592 if test "$with_gnu_ld" = yes; then
23593 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23594 shlibpath_overrides_runpath=no
23595 else
23596 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23597 shlibpath_overrides_runpath=yes
23598 case $host_os in
23599 sco3.2v5*)
23600 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23602 esac
23604 sys_lib_dlsearch_path_spec='/usr/lib'
23607 uts4*)
23608 version_type=linux
23609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23610 soname_spec='${libname}${release}${shared_ext}$major'
23611 shlibpath_var=LD_LIBRARY_PATH
23615 dynamic_linker=no
23617 esac
23618 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23619 echo "${ECHO_T}$dynamic_linker" >&6; }
23620 test "$dynamic_linker" = no && can_build_shared=no
23622 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23623 if test "$GCC" = yes; then
23624 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23627 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23628 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23629 hardcode_action_F77=
23630 if test -n "$hardcode_libdir_flag_spec_F77" || \
23631 test -n "$runpath_var_F77" || \
23632 test "X$hardcode_automatic_F77" = "Xyes" ; then
23634 # We can hardcode non-existant directories.
23635 if test "$hardcode_direct_F77" != no &&
23636 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23637 # have to relink, otherwise we might link with an installed library
23638 # when we should be linking with a yet-to-be-installed one
23639 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23640 test "$hardcode_minus_L_F77" != no; then
23641 # Linking always hardcodes the temporary library directory.
23642 hardcode_action_F77=relink
23643 else
23644 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23645 hardcode_action_F77=immediate
23647 else
23648 # We cannot hardcode anything, or else we can only hardcode existing
23649 # directories.
23650 hardcode_action_F77=unsupported
23652 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23653 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23655 if test "$hardcode_action_F77" = relink; then
23656 # Fast installation is not supported
23657 enable_fast_install=no
23658 elif test "$shlibpath_overrides_runpath" = yes ||
23659 test "$enable_shared" = no; then
23660 # Fast installation is not necessary
23661 enable_fast_install=needless
23665 # The else clause should only fire when bootstrapping the
23666 # libtool distribution, otherwise you forgot to ship ltmain.sh
23667 # with your package, and you will get complaints that there are
23668 # no rules to generate ltmain.sh.
23669 if test -f "$ltmain"; then
23670 # See if we are running on zsh, and set the options which allow our commands through
23671 # without removal of \ escapes.
23672 if test -n "${ZSH_VERSION+set}" ; then
23673 setopt NO_GLOB_SUBST
23675 # Now quote all the things that may contain metacharacters while being
23676 # careful not to overquote the AC_SUBSTed values. We take copies of the
23677 # variables and quote the copies for generation of the libtool script.
23678 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23679 SED SHELL STRIP \
23680 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23681 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23682 deplibs_check_method reload_flag reload_cmds need_locks \
23683 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23684 lt_cv_sys_global_symbol_to_c_name_address \
23685 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23686 old_postinstall_cmds old_postuninstall_cmds \
23687 compiler_F77 \
23688 CC_F77 \
23689 LD_F77 \
23690 lt_prog_compiler_wl_F77 \
23691 lt_prog_compiler_pic_F77 \
23692 lt_prog_compiler_static_F77 \
23693 lt_prog_compiler_no_builtin_flag_F77 \
23694 export_dynamic_flag_spec_F77 \
23695 thread_safe_flag_spec_F77 \
23696 whole_archive_flag_spec_F77 \
23697 enable_shared_with_static_runtimes_F77 \
23698 old_archive_cmds_F77 \
23699 old_archive_from_new_cmds_F77 \
23700 predep_objects_F77 \
23701 postdep_objects_F77 \
23702 predeps_F77 \
23703 postdeps_F77 \
23704 compiler_lib_search_path_F77 \
23705 archive_cmds_F77 \
23706 archive_expsym_cmds_F77 \
23707 postinstall_cmds_F77 \
23708 postuninstall_cmds_F77 \
23709 old_archive_from_expsyms_cmds_F77 \
23710 allow_undefined_flag_F77 \
23711 no_undefined_flag_F77 \
23712 export_symbols_cmds_F77 \
23713 hardcode_libdir_flag_spec_F77 \
23714 hardcode_libdir_flag_spec_ld_F77 \
23715 hardcode_libdir_separator_F77 \
23716 hardcode_automatic_F77 \
23717 module_cmds_F77 \
23718 module_expsym_cmds_F77 \
23719 lt_cv_prog_compiler_c_o_F77 \
23720 exclude_expsyms_F77 \
23721 include_expsyms_F77; do
23723 case $var in
23724 old_archive_cmds_F77 | \
23725 old_archive_from_new_cmds_F77 | \
23726 archive_cmds_F77 | \
23727 archive_expsym_cmds_F77 | \
23728 module_cmds_F77 | \
23729 module_expsym_cmds_F77 | \
23730 old_archive_from_expsyms_cmds_F77 | \
23731 export_symbols_cmds_F77 | \
23732 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23733 postinstall_cmds | postuninstall_cmds | \
23734 old_postinstall_cmds | old_postuninstall_cmds | \
23735 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23736 # Double-quote double-evaled strings.
23737 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23740 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23742 esac
23743 done
23745 case $lt_echo in
23746 *'\$0 --fallback-echo"')
23747 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23749 esac
23751 cfgfile="$ofile"
23753 cat <<__EOF__ >> "$cfgfile"
23754 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23756 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23758 # Shell to use when invoking shell scripts.
23759 SHELL=$lt_SHELL
23761 # Whether or not to build shared libraries.
23762 build_libtool_libs=$enable_shared
23764 # Whether or not to build static libraries.
23765 build_old_libs=$enable_static
23767 # Whether or not to add -lc for building shared libraries.
23768 build_libtool_need_lc=$archive_cmds_need_lc_F77
23770 # Whether or not to disallow shared libs when runtime libs are static
23771 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23773 # Whether or not to optimize for fast installation.
23774 fast_install=$enable_fast_install
23776 # The host system.
23777 host_alias=$host_alias
23778 host=$host
23779 host_os=$host_os
23781 # The build system.
23782 build_alias=$build_alias
23783 build=$build
23784 build_os=$build_os
23786 # An echo program that does not interpret backslashes.
23787 echo=$lt_echo
23789 # The archiver.
23790 AR=$lt_AR
23791 AR_FLAGS=$lt_AR_FLAGS
23793 # A C compiler.
23794 LTCC=$lt_LTCC
23796 # LTCC compiler flags.
23797 LTCFLAGS=$lt_LTCFLAGS
23799 # A language-specific compiler.
23800 CC=$lt_compiler_F77
23802 # Is the compiler the GNU C compiler?
23803 with_gcc=$GCC_F77
23805 # An ERE matcher.
23806 EGREP=$lt_EGREP
23808 # The linker used to build libraries.
23809 LD=$lt_LD_F77
23811 # Whether we need hard or soft links.
23812 LN_S=$lt_LN_S
23814 # A BSD-compatible nm program.
23815 NM=$lt_NM
23817 # A symbol stripping program
23818 STRIP=$lt_STRIP
23820 # Used to examine libraries when file_magic_cmd begins "file"
23821 MAGIC_CMD=$MAGIC_CMD
23823 # Used on cygwin: DLL creation program.
23824 DLLTOOL="$DLLTOOL"
23826 # Used on cygwin: object dumper.
23827 OBJDUMP="$OBJDUMP"
23829 # Used on cygwin: assembler.
23830 AS="$AS"
23832 # The name of the directory that contains temporary libtool files.
23833 objdir=$objdir
23835 # How to create reloadable object files.
23836 reload_flag=$lt_reload_flag
23837 reload_cmds=$lt_reload_cmds
23839 # How to pass a linker flag through the compiler.
23840 wl=$lt_lt_prog_compiler_wl_F77
23842 # Object file suffix (normally "o").
23843 objext="$ac_objext"
23845 # Old archive suffix (normally "a").
23846 libext="$libext"
23848 # Shared library suffix (normally ".so").
23849 shrext_cmds='$shrext_cmds'
23851 # Executable file suffix (normally "").
23852 exeext="$exeext"
23854 # Additional compiler flags for building library objects.
23855 pic_flag=$lt_lt_prog_compiler_pic_F77
23856 pic_mode=$pic_mode
23858 # What is the maximum length of a command?
23859 max_cmd_len=$lt_cv_sys_max_cmd_len
23861 # Does compiler simultaneously support -c and -o options?
23862 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23864 # Must we lock files when doing compilation?
23865 need_locks=$lt_need_locks
23867 # Do we need the lib prefix for modules?
23868 need_lib_prefix=$need_lib_prefix
23870 # Do we need a version for libraries?
23871 need_version=$need_version
23873 # Whether dlopen is supported.
23874 dlopen_support=$enable_dlopen
23876 # Whether dlopen of programs is supported.
23877 dlopen_self=$enable_dlopen_self
23879 # Whether dlopen of statically linked programs is supported.
23880 dlopen_self_static=$enable_dlopen_self_static
23882 # Compiler flag to prevent dynamic linking.
23883 link_static_flag=$lt_lt_prog_compiler_static_F77
23885 # Compiler flag to turn off builtin functions.
23886 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23888 # Compiler flag to allow reflexive dlopens.
23889 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23891 # Compiler flag to generate shared objects directly from archives.
23892 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23894 # Compiler flag to generate thread-safe objects.
23895 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23897 # Library versioning type.
23898 version_type=$version_type
23900 # Format of library name prefix.
23901 libname_spec=$lt_libname_spec
23903 # List of archive names. First name is the real one, the rest are links.
23904 # The last name is the one that the linker finds with -lNAME.
23905 library_names_spec=$lt_library_names_spec
23907 # The coded name of the library, if different from the real name.
23908 soname_spec=$lt_soname_spec
23910 # Commands used to build and install an old-style archive.
23911 RANLIB=$lt_RANLIB
23912 old_archive_cmds=$lt_old_archive_cmds_F77
23913 old_postinstall_cmds=$lt_old_postinstall_cmds
23914 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23916 # Create an old-style archive from a shared archive.
23917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23919 # Create a temporary old-style archive to link instead of a shared archive.
23920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23922 # Commands used to build and install a shared archive.
23923 archive_cmds=$lt_archive_cmds_F77
23924 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23925 postinstall_cmds=$lt_postinstall_cmds
23926 postuninstall_cmds=$lt_postuninstall_cmds
23928 # Commands used to build a loadable module (assumed same as above if empty)
23929 module_cmds=$lt_module_cmds_F77
23930 module_expsym_cmds=$lt_module_expsym_cmds_F77
23932 # Commands to strip libraries.
23933 old_striplib=$lt_old_striplib
23934 striplib=$lt_striplib
23936 # Dependencies to place before the objects being linked to create a
23937 # shared library.
23938 predep_objects=$lt_predep_objects_F77
23940 # Dependencies to place after the objects being linked to create a
23941 # shared library.
23942 postdep_objects=$lt_postdep_objects_F77
23944 # Dependencies to place before the objects being linked to create a
23945 # shared library.
23946 predeps=$lt_predeps_F77
23948 # Dependencies to place after the objects being linked to create a
23949 # shared library.
23950 postdeps=$lt_postdeps_F77
23952 # The library search path used internally by the compiler when linking
23953 # a shared library.
23954 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23956 # Method to check whether dependent libraries are shared objects.
23957 deplibs_check_method=$lt_deplibs_check_method
23959 # Command to use when deplibs_check_method == file_magic.
23960 file_magic_cmd=$lt_file_magic_cmd
23962 # Flag that allows shared libraries with undefined symbols to be built.
23963 allow_undefined_flag=$lt_allow_undefined_flag_F77
23965 # Flag that forces no undefined symbols.
23966 no_undefined_flag=$lt_no_undefined_flag_F77
23968 # Commands used to finish a libtool library installation in a directory.
23969 finish_cmds=$lt_finish_cmds
23971 # Same as above, but a single script fragment to be evaled but not shown.
23972 finish_eval=$lt_finish_eval
23974 # Take the output of nm and produce a listing of raw symbols and C names.
23975 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23977 # Transform the output of nm in a proper C declaration
23978 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23980 # Transform the output of nm in a C name address pair
23981 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23983 # This is the shared library runtime path variable.
23984 runpath_var=$runpath_var
23986 # This is the shared library path variable.
23987 shlibpath_var=$shlibpath_var
23989 # Is shlibpath searched before the hard-coded library search path?
23990 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23992 # How to hardcode a shared library path into an executable.
23993 hardcode_action=$hardcode_action_F77
23995 # Whether we should hardcode library paths into libraries.
23996 hardcode_into_libs=$hardcode_into_libs
23998 # Flag to hardcode \$libdir into a binary during linking.
23999 # This must work even if \$libdir does not exist.
24000 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24002 # If ld is used when linking, flag to hardcode \$libdir into
24003 # a binary during linking. This must work even if \$libdir does
24004 # not exist.
24005 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24007 # Whether we need a single -rpath flag with a separated argument.
24008 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24010 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24011 # resulting binary.
24012 hardcode_direct=$hardcode_direct_F77
24014 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24015 # resulting binary.
24016 hardcode_minus_L=$hardcode_minus_L_F77
24018 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24019 # the resulting binary.
24020 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24022 # Set to yes if building a shared library automatically hardcodes DIR into the library
24023 # and all subsequent libraries and executables linked against it.
24024 hardcode_automatic=$hardcode_automatic_F77
24026 # Variables whose values should be saved in libtool wrapper scripts and
24027 # restored at relink time.
24028 variables_saved_for_relink="$variables_saved_for_relink"
24030 # Whether libtool must link a program against all its dependency libraries.
24031 link_all_deplibs=$link_all_deplibs_F77
24033 # Compile-time system search path for libraries
24034 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24036 # Run-time system search path for libraries
24037 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24039 # Fix the shell variable \$srcfile for the compiler.
24040 fix_srcfile_path="$fix_srcfile_path_F77"
24042 # Set to yes if exported symbols are required.
24043 always_export_symbols=$always_export_symbols_F77
24045 # The commands to list exported symbols.
24046 export_symbols_cmds=$lt_export_symbols_cmds_F77
24048 # The commands to extract the exported symbol list from a shared archive.
24049 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24051 # Symbols that should not be listed in the preloaded symbols.
24052 exclude_expsyms=$lt_exclude_expsyms_F77
24054 # Symbols that must always be exported.
24055 include_expsyms=$lt_include_expsyms_F77
24057 # ### END LIBTOOL TAG CONFIG: $tagname
24059 __EOF__
24062 else
24063 # If there is no Makefile yet, we rely on a make rule to execute
24064 # `config.status --recheck' to rerun these tests and create the
24065 # libtool script then.
24066 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24067 if test -f "$ltmain_in"; then
24068 test -f Makefile && make "$ltmain"
24073 ac_ext=c
24074 ac_cpp='$CPP $CPPFLAGS'
24075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24079 CC="$lt_save_CC"
24081 else
24082 tagname=""
24086 GCJ)
24087 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24088 ac_ext=c
24089 ac_cpp='$CPP $CPPFLAGS'
24090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24095 # Source file extension for Java test sources.
24096 ac_ext=java
24098 # Object file extension for compiled Java test sources.
24099 objext=o
24100 objext_GCJ=$objext
24102 # Code to be used in simple compile tests
24103 lt_simple_compile_test_code="class foo {}\n"
24105 # Code to be used in simple link tests
24106 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24108 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24110 # If no C compiler was specified, use CC.
24111 LTCC=${LTCC-"$CC"}
24113 # If no C compiler flags were specified, use CFLAGS.
24114 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24116 # Allow CC to be a program name with arguments.
24117 compiler=$CC
24120 # save warnings/boilerplate of simple test code
24121 ac_outfile=conftest.$ac_objext
24122 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24123 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24124 _lt_compiler_boilerplate=`cat conftest.err`
24125 $rm conftest*
24127 ac_outfile=conftest.$ac_objext
24128 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24129 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24130 _lt_linker_boilerplate=`cat conftest.err`
24131 $rm conftest*
24134 # Allow CC to be a program name with arguments.
24135 lt_save_CC="$CC"
24136 CC=${GCJ-"gcj"}
24137 compiler=$CC
24138 compiler_GCJ=$CC
24139 for cc_temp in $compiler""; do
24140 case $cc_temp in
24141 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24142 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24143 \-*) ;;
24144 *) break;;
24145 esac
24146 done
24147 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24150 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24151 archive_cmds_need_lc_GCJ=no
24153 old_archive_cmds_GCJ=$old_archive_cmds
24156 lt_prog_compiler_no_builtin_flag_GCJ=
24158 if test "$GCC" = yes; then
24159 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24162 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24163 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24164 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24165 echo $ECHO_N "(cached) $ECHO_C" >&6
24166 else
24167 lt_cv_prog_compiler_rtti_exceptions=no
24168 ac_outfile=conftest.$ac_objext
24169 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24170 lt_compiler_flag="-fno-rtti -fno-exceptions"
24171 # Insert the option either (1) after the last *FLAGS variable, or
24172 # (2) before a word containing "conftest.", or (3) at the end.
24173 # Note that $ac_compile itself does not contain backslashes and begins
24174 # with a dollar sign (not a hyphen), so the echo should work correctly.
24175 # The option is referenced via a variable to avoid confusing sed.
24176 lt_compile=`echo "$ac_compile" | $SED \
24177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24179 -e 's:$: $lt_compiler_flag:'`
24180 (eval echo "\"\$as_me:24180: $lt_compile\"" >&5)
24181 (eval "$lt_compile" 2>conftest.err)
24182 ac_status=$?
24183 cat conftest.err >&5
24184 echo "$as_me:24184: \$? = $ac_status" >&5
24185 if (exit $ac_status) && test -s "$ac_outfile"; then
24186 # The compiler can only warn and ignore the option if not recognized
24187 # So say no if there are warnings other than the usual output.
24188 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24189 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24190 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24191 lt_cv_prog_compiler_rtti_exceptions=yes
24194 $rm conftest*
24197 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24198 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24200 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24201 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24202 else
24208 lt_prog_compiler_wl_GCJ=
24209 lt_prog_compiler_pic_GCJ=
24210 lt_prog_compiler_static_GCJ=
24212 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24213 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24215 if test "$GCC" = yes; then
24216 lt_prog_compiler_wl_GCJ='-Wl,'
24217 lt_prog_compiler_static_GCJ='-static'
24219 case $host_os in
24220 aix*)
24221 # All AIX code is PIC.
24222 if test "$host_cpu" = ia64; then
24223 # AIX 5 now supports IA64 processor
24224 lt_prog_compiler_static_GCJ='-Bstatic'
24228 amigaos*)
24229 # FIXME: we need at least 68020 code to build shared libraries, but
24230 # adding the `-m68020' flag to GCC prevents building anything better,
24231 # like `-m68040'.
24232 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24235 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24236 # PIC is the default for these OSes.
24239 mingw* | pw32* | os2*)
24240 # This hack is so that the source file can tell whether it is being
24241 # built for inclusion in a dll (and should export symbols for example).
24242 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24245 darwin* | rhapsody*)
24246 # PIC is the default on this platform
24247 # Common symbols not allowed in MH_DYLIB files
24248 lt_prog_compiler_pic_GCJ='-fno-common'
24251 interix3*)
24252 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24253 # Instead, we relocate shared libraries at runtime.
24256 msdosdjgpp*)
24257 # Just because we use GCC doesn't mean we suddenly get shared libraries
24258 # on systems that don't support them.
24259 lt_prog_compiler_can_build_shared_GCJ=no
24260 enable_shared=no
24263 sysv4*MP*)
24264 if test -d /usr/nec; then
24265 lt_prog_compiler_pic_GCJ=-Kconform_pic
24269 hpux*)
24270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24271 # not for PA HP-UX.
24272 case $host_cpu in
24273 hppa*64*|ia64*)
24274 # +Z the default
24277 lt_prog_compiler_pic_GCJ='-fPIC'
24279 esac
24283 lt_prog_compiler_pic_GCJ='-fPIC'
24285 esac
24286 else
24287 # PORTME Check for flag to pass linker flags through the system compiler.
24288 case $host_os in
24289 aix*)
24290 lt_prog_compiler_wl_GCJ='-Wl,'
24291 if test "$host_cpu" = ia64; then
24292 # AIX 5 now supports IA64 processor
24293 lt_prog_compiler_static_GCJ='-Bstatic'
24294 else
24295 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24298 darwin*)
24299 # PIC is the default on this platform
24300 # Common symbols not allowed in MH_DYLIB files
24301 case $cc_basename in
24302 xlc*)
24303 lt_prog_compiler_pic_GCJ='-qnocommon'
24304 lt_prog_compiler_wl_GCJ='-Wl,'
24306 esac
24309 mingw* | pw32* | os2*)
24310 # This hack is so that the source file can tell whether it is being
24311 # built for inclusion in a dll (and should export symbols for example).
24312 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24315 hpux9* | hpux10* | hpux11*)
24316 lt_prog_compiler_wl_GCJ='-Wl,'
24317 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24318 # not for PA HP-UX.
24319 case $host_cpu in
24320 hppa*64*|ia64*)
24321 # +Z the default
24324 lt_prog_compiler_pic_GCJ='+Z'
24326 esac
24327 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24328 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24331 irix5* | irix6* | nonstopux*)
24332 lt_prog_compiler_wl_GCJ='-Wl,'
24333 # PIC (with -KPIC) is the default.
24334 lt_prog_compiler_static_GCJ='-non_shared'
24337 newsos6)
24338 lt_prog_compiler_pic_GCJ='-KPIC'
24339 lt_prog_compiler_static_GCJ='-Bstatic'
24342 linux*)
24343 case $cc_basename in
24344 icc* | ecc*)
24345 lt_prog_compiler_wl_GCJ='-Wl,'
24346 lt_prog_compiler_pic_GCJ='-KPIC'
24347 lt_prog_compiler_static_GCJ='-static'
24349 pgcc* | pgf77* | pgf90* | pgf95*)
24350 # Portland Group compilers (*not* the Pentium gcc compiler,
24351 # which looks to be a dead project)
24352 lt_prog_compiler_wl_GCJ='-Wl,'
24353 lt_prog_compiler_pic_GCJ='-fpic'
24354 lt_prog_compiler_static_GCJ='-Bstatic'
24356 ccc*)
24357 lt_prog_compiler_wl_GCJ='-Wl,'
24358 # All Alpha code is PIC.
24359 lt_prog_compiler_static_GCJ='-non_shared'
24361 esac
24364 osf3* | osf4* | osf5*)
24365 lt_prog_compiler_wl_GCJ='-Wl,'
24366 # All OSF/1 code is PIC.
24367 lt_prog_compiler_static_GCJ='-non_shared'
24370 solaris*)
24371 lt_prog_compiler_pic_GCJ='-KPIC'
24372 lt_prog_compiler_static_GCJ='-Bstatic'
24373 case $cc_basename in
24374 f77* | f90* | f95*)
24375 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24377 lt_prog_compiler_wl_GCJ='-Wl,';;
24378 esac
24381 sunos4*)
24382 lt_prog_compiler_wl_GCJ='-Qoption ld '
24383 lt_prog_compiler_pic_GCJ='-PIC'
24384 lt_prog_compiler_static_GCJ='-Bstatic'
24387 sysv4 | sysv4.2uw2* | sysv4.3*)
24388 lt_prog_compiler_wl_GCJ='-Wl,'
24389 lt_prog_compiler_pic_GCJ='-KPIC'
24390 lt_prog_compiler_static_GCJ='-Bstatic'
24393 sysv4*MP*)
24394 if test -d /usr/nec ;then
24395 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24396 lt_prog_compiler_static_GCJ='-Bstatic'
24400 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24401 lt_prog_compiler_wl_GCJ='-Wl,'
24402 lt_prog_compiler_pic_GCJ='-KPIC'
24403 lt_prog_compiler_static_GCJ='-Bstatic'
24406 unicos*)
24407 lt_prog_compiler_wl_GCJ='-Wl,'
24408 lt_prog_compiler_can_build_shared_GCJ=no
24411 uts4*)
24412 lt_prog_compiler_pic_GCJ='-pic'
24413 lt_prog_compiler_static_GCJ='-Bstatic'
24417 lt_prog_compiler_can_build_shared_GCJ=no
24419 esac
24422 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24423 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24426 # Check to make sure the PIC flag actually works.
24428 if test -n "$lt_prog_compiler_pic_GCJ"; then
24430 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24431 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24432 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24433 echo $ECHO_N "(cached) $ECHO_C" >&6
24434 else
24435 lt_prog_compiler_pic_works_GCJ=no
24436 ac_outfile=conftest.$ac_objext
24437 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24438 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24439 # Insert the option either (1) after the last *FLAGS variable, or
24440 # (2) before a word containing "conftest.", or (3) at the end.
24441 # Note that $ac_compile itself does not contain backslashes and begins
24442 # with a dollar sign (not a hyphen), so the echo should work correctly.
24443 # The option is referenced via a variable to avoid confusing sed.
24444 lt_compile=`echo "$ac_compile" | $SED \
24445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24447 -e 's:$: $lt_compiler_flag:'`
24448 (eval echo "\"\$as_me:24448: $lt_compile\"" >&5)
24449 (eval "$lt_compile" 2>conftest.err)
24450 ac_status=$?
24451 cat conftest.err >&5
24452 echo "$as_me:24452: \$? = $ac_status" >&5
24453 if (exit $ac_status) && test -s "$ac_outfile"; then
24454 # The compiler can only warn and ignore the option if not recognized
24455 # So say no if there are warnings other than the usual output.
24456 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24459 lt_prog_compiler_pic_works_GCJ=yes
24462 $rm conftest*
24465 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24466 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24468 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24469 case $lt_prog_compiler_pic_GCJ in
24470 "" | " "*) ;;
24471 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24472 esac
24473 else
24474 lt_prog_compiler_pic_GCJ=
24475 lt_prog_compiler_can_build_shared_GCJ=no
24479 case $host_os in
24480 # For platforms which do not support PIC, -DPIC is meaningless:
24481 *djgpp*)
24482 lt_prog_compiler_pic_GCJ=
24485 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24487 esac
24490 # Check to make sure the static flag actually works.
24492 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24493 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24494 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24495 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24496 echo $ECHO_N "(cached) $ECHO_C" >&6
24497 else
24498 lt_prog_compiler_static_works_GCJ=no
24499 save_LDFLAGS="$LDFLAGS"
24500 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24501 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24502 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24503 # The linker can only warn and ignore the option if not recognized
24504 # So say no if there are warnings
24505 if test -s conftest.err; then
24506 # Append any errors to the config.log.
24507 cat conftest.err 1>&5
24508 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24510 if diff conftest.exp conftest.er2 >/dev/null; then
24511 lt_prog_compiler_static_works_GCJ=yes
24513 else
24514 lt_prog_compiler_static_works_GCJ=yes
24517 $rm conftest*
24518 LDFLAGS="$save_LDFLAGS"
24521 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24522 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24524 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24526 else
24527 lt_prog_compiler_static_GCJ=
24531 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24532 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24533 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24534 echo $ECHO_N "(cached) $ECHO_C" >&6
24535 else
24536 lt_cv_prog_compiler_c_o_GCJ=no
24537 $rm -r conftest 2>/dev/null
24538 mkdir conftest
24539 cd conftest
24540 mkdir out
24541 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24543 lt_compiler_flag="-o out/conftest2.$ac_objext"
24544 # Insert the option either (1) after the last *FLAGS variable, or
24545 # (2) before a word containing "conftest.", or (3) at the end.
24546 # Note that $ac_compile itself does not contain backslashes and begins
24547 # with a dollar sign (not a hyphen), so the echo should work correctly.
24548 lt_compile=`echo "$ac_compile" | $SED \
24549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24551 -e 's:$: $lt_compiler_flag:'`
24552 (eval echo "\"\$as_me:24552: $lt_compile\"" >&5)
24553 (eval "$lt_compile" 2>out/conftest.err)
24554 ac_status=$?
24555 cat out/conftest.err >&5
24556 echo "$as_me:24556: \$? = $ac_status" >&5
24557 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24558 then
24559 # The compiler can only warn and ignore the option if not recognized
24560 # So say no if there are warnings
24561 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24562 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24563 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24564 lt_cv_prog_compiler_c_o_GCJ=yes
24567 chmod u+w . 2>&5
24568 $rm conftest*
24569 # SGI C++ compiler will create directory out/ii_files/ for
24570 # template instantiation
24571 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24572 $rm out/* && rmdir out
24573 cd ..
24574 rmdir conftest
24575 $rm conftest*
24578 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24579 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24582 hard_links="nottested"
24583 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24584 # do not overwrite the value of need_locks provided by the user
24585 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24586 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24587 hard_links=yes
24588 $rm conftest*
24589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24590 touch conftest.a
24591 ln conftest.a conftest.b 2>&5 || hard_links=no
24592 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24593 { echo "$as_me:$LINENO: result: $hard_links" >&5
24594 echo "${ECHO_T}$hard_links" >&6; }
24595 if test "$hard_links" = no; then
24596 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24597 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24598 need_locks=warn
24600 else
24601 need_locks=no
24604 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24605 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24607 runpath_var=
24608 allow_undefined_flag_GCJ=
24609 enable_shared_with_static_runtimes_GCJ=no
24610 archive_cmds_GCJ=
24611 archive_expsym_cmds_GCJ=
24612 old_archive_From_new_cmds_GCJ=
24613 old_archive_from_expsyms_cmds_GCJ=
24614 export_dynamic_flag_spec_GCJ=
24615 whole_archive_flag_spec_GCJ=
24616 thread_safe_flag_spec_GCJ=
24617 hardcode_libdir_flag_spec_GCJ=
24618 hardcode_libdir_flag_spec_ld_GCJ=
24619 hardcode_libdir_separator_GCJ=
24620 hardcode_direct_GCJ=no
24621 hardcode_minus_L_GCJ=no
24622 hardcode_shlibpath_var_GCJ=unsupported
24623 link_all_deplibs_GCJ=unknown
24624 hardcode_automatic_GCJ=no
24625 module_cmds_GCJ=
24626 module_expsym_cmds_GCJ=
24627 always_export_symbols_GCJ=no
24628 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24629 # include_expsyms should be a list of space-separated symbols to be *always*
24630 # included in the symbol list
24631 include_expsyms_GCJ=
24632 # exclude_expsyms can be an extended regexp of symbols to exclude
24633 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24634 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24635 # as well as any symbol that contains `d'.
24636 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24637 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24638 # platforms (ab)use it in PIC code, but their linkers get confused if
24639 # the symbol is explicitly referenced. Since portable code cannot
24640 # rely on this symbol name, it's probably fine to never include it in
24641 # preloaded symbol tables.
24642 extract_expsyms_cmds=
24643 # Just being paranoid about ensuring that cc_basename is set.
24644 for cc_temp in $compiler""; do
24645 case $cc_temp in
24646 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24647 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24648 \-*) ;;
24649 *) break;;
24650 esac
24651 done
24652 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24654 case $host_os in
24655 cygwin* | mingw* | pw32*)
24656 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24657 # When not using gcc, we currently assume that we are using
24658 # Microsoft Visual C++.
24659 if test "$GCC" != yes; then
24660 with_gnu_ld=no
24663 interix*)
24664 # we just hope/assume this is gcc and not c89 (= MSVC++)
24665 with_gnu_ld=yes
24667 openbsd*)
24668 with_gnu_ld=no
24670 esac
24672 ld_shlibs_GCJ=yes
24673 if test "$with_gnu_ld" = yes; then
24674 # If archive_cmds runs LD, not CC, wlarc should be empty
24675 wlarc='${wl}'
24677 # Set some defaults for GNU ld with shared library support. These
24678 # are reset later if shared libraries are not supported. Putting them
24679 # here allows them to be overridden if necessary.
24680 runpath_var=LD_RUN_PATH
24681 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24682 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24683 # ancient GNU ld didn't support --whole-archive et. al.
24684 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24685 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24686 else
24687 whole_archive_flag_spec_GCJ=
24689 supports_anon_versioning=no
24690 case `$LD -v 2>/dev/null` in
24691 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24692 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24693 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24694 *\ 2.11.*) ;; # other 2.11 versions
24695 *) supports_anon_versioning=yes ;;
24696 esac
24698 # See if GNU ld supports shared libraries.
24699 case $host_os in
24700 aix3* | aix4* | aix5*)
24701 # On AIX/PPC, the GNU linker is very broken
24702 if test "$host_cpu" != ia64; then
24703 ld_shlibs_GCJ=no
24704 cat <<EOF 1>&2
24706 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24707 *** to be unable to reliably create shared libraries on AIX.
24708 *** Therefore, libtool is disabling shared libraries support. If you
24709 *** really care for shared libraries, you may want to modify your PATH
24710 *** so that a non-GNU linker is found, and then restart.
24716 amigaos*)
24717 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)'
24718 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24719 hardcode_minus_L_GCJ=yes
24721 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24722 # that the semantics of dynamic libraries on AmigaOS, at least up
24723 # to version 4, is to share data among multiple programs linked
24724 # with the same dynamic library. Since this doesn't match the
24725 # behavior of shared libraries on other platforms, we can't use
24726 # them.
24727 ld_shlibs_GCJ=no
24730 beos*)
24731 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24732 allow_undefined_flag_GCJ=unsupported
24733 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24734 # support --undefined. This deserves some investigation. FIXME
24735 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24736 else
24737 ld_shlibs_GCJ=no
24741 cygwin* | mingw* | pw32*)
24742 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24743 # as there is no search path for DLLs.
24744 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24745 allow_undefined_flag_GCJ=unsupported
24746 always_export_symbols_GCJ=no
24747 enable_shared_with_static_runtimes_GCJ=yes
24748 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24750 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24751 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24752 # If the export-symbols file already is a .def file (1st line
24753 # is EXPORTS), use it as is; otherwise, prepend...
24754 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24755 cp $export_symbols $output_objdir/$soname.def;
24756 else
24757 echo EXPORTS > $output_objdir/$soname.def;
24758 cat $export_symbols >> $output_objdir/$soname.def;
24760 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24761 else
24762 ld_shlibs_GCJ=no
24766 interix3*)
24767 hardcode_direct_GCJ=no
24768 hardcode_shlibpath_var_GCJ=no
24769 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24770 export_dynamic_flag_spec_GCJ='${wl}-E'
24771 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24772 # Instead, shared libraries are loaded at an image base (0x10000000 by
24773 # default) and relocated if they conflict, which is a slow very memory
24774 # consuming and fragmenting process. To avoid this, we pick a random,
24775 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24776 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24777 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'
24778 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'
24781 linux*)
24782 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24783 tmp_addflag=
24784 case $cc_basename,$host_cpu in
24785 pgcc*) # Portland Group C compiler
24786 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'
24787 tmp_addflag=' $pic_flag'
24789 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24790 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'
24791 tmp_addflag=' $pic_flag -Mnomain' ;;
24792 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24793 tmp_addflag=' -i_dynamic' ;;
24794 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24795 tmp_addflag=' -i_dynamic -nofor_main' ;;
24796 ifc* | ifort*) # Intel Fortran compiler
24797 tmp_addflag=' -nofor_main' ;;
24798 esac
24799 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24801 if test $supports_anon_versioning = yes; then
24802 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24803 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24804 $echo "local: *; };" >> $output_objdir/$libname.ver~
24805 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24807 else
24808 ld_shlibs_GCJ=no
24812 netbsd*)
24813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24814 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24815 wlarc=
24816 else
24817 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24818 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24822 solaris*)
24823 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24824 ld_shlibs_GCJ=no
24825 cat <<EOF 1>&2
24827 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24828 *** create shared libraries on Solaris systems. Therefore, libtool
24829 *** is disabling shared libraries support. We urge you to upgrade GNU
24830 *** binutils to release 2.9.1 or newer. Another option is to modify
24831 *** your PATH or compiler configuration so that the native linker is
24832 *** used, and then restart.
24835 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24836 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24837 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24838 else
24839 ld_shlibs_GCJ=no
24843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24844 case `$LD -v 2>&1` in
24845 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24846 ld_shlibs_GCJ=no
24847 cat <<_LT_EOF 1>&2
24849 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24850 *** reliably create shared libraries on SCO systems. Therefore, libtool
24851 *** is disabling shared libraries support. We urge you to upgrade GNU
24852 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24853 *** your PATH or compiler configuration so that the native linker is
24854 *** used, and then restart.
24856 _LT_EOF
24859 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24860 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24861 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24862 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24863 else
24864 ld_shlibs_GCJ=no
24867 esac
24870 sunos4*)
24871 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24872 wlarc=
24873 hardcode_direct_GCJ=yes
24874 hardcode_shlibpath_var_GCJ=no
24878 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24879 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24880 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24881 else
24882 ld_shlibs_GCJ=no
24885 esac
24887 if test "$ld_shlibs_GCJ" = no; then
24888 runpath_var=
24889 hardcode_libdir_flag_spec_GCJ=
24890 export_dynamic_flag_spec_GCJ=
24891 whole_archive_flag_spec_GCJ=
24893 else
24894 # PORTME fill in a description of your system's linker (not GNU ld)
24895 case $host_os in
24896 aix3*)
24897 allow_undefined_flag_GCJ=unsupported
24898 always_export_symbols_GCJ=yes
24899 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'
24900 # Note: this linker hardcodes the directories in LIBPATH if there
24901 # are no directories specified by -L.
24902 hardcode_minus_L_GCJ=yes
24903 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24904 # Neither direct hardcoding nor static linking is supported with a
24905 # broken collect2.
24906 hardcode_direct_GCJ=unsupported
24910 aix4* | aix5*)
24911 if test "$host_cpu" = ia64; then
24912 # On IA64, the linker does run time linking by default, so we don't
24913 # have to do anything special.
24914 aix_use_runtimelinking=no
24915 exp_sym_flag='-Bexport'
24916 no_entry_flag=""
24917 else
24918 # If we're using GNU nm, then we don't want the "-C" option.
24919 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24920 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24921 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'
24922 else
24923 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'
24925 aix_use_runtimelinking=no
24927 # Test if we are trying to use run time linking or normal
24928 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24929 # need to do runtime linking.
24930 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24931 for ld_flag in $LDFLAGS; do
24932 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24933 aix_use_runtimelinking=yes
24934 break
24936 done
24938 esac
24940 exp_sym_flag='-bexport'
24941 no_entry_flag='-bnoentry'
24944 # When large executables or shared objects are built, AIX ld can
24945 # have problems creating the table of contents. If linking a library
24946 # or program results in "error TOC overflow" add -mminimal-toc to
24947 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24948 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24950 archive_cmds_GCJ=''
24951 hardcode_direct_GCJ=yes
24952 hardcode_libdir_separator_GCJ=':'
24953 link_all_deplibs_GCJ=yes
24955 if test "$GCC" = yes; then
24956 case $host_os in aix4.[012]|aix4.[012].*)
24957 # We only want to do this on AIX 4.2 and lower, the check
24958 # below for broken collect2 doesn't work under 4.3+
24959 collect2name=`${CC} -print-prog-name=collect2`
24960 if test -f "$collect2name" && \
24961 strings "$collect2name" | grep resolve_lib_name >/dev/null
24962 then
24963 # We have reworked collect2
24964 hardcode_direct_GCJ=yes
24965 else
24966 # We have old collect2
24967 hardcode_direct_GCJ=unsupported
24968 # It fails to find uninstalled libraries when the uninstalled
24969 # path is not listed in the libpath. Setting hardcode_minus_L
24970 # to unsupported forces relinking
24971 hardcode_minus_L_GCJ=yes
24972 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24973 hardcode_libdir_separator_GCJ=
24976 esac
24977 shared_flag='-shared'
24978 if test "$aix_use_runtimelinking" = yes; then
24979 shared_flag="$shared_flag "'${wl}-G'
24981 else
24982 # not using gcc
24983 if test "$host_cpu" = ia64; then
24984 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24985 # chokes on -Wl,-G. The following line is correct:
24986 shared_flag='-G'
24987 else
24988 if test "$aix_use_runtimelinking" = yes; then
24989 shared_flag='${wl}-G'
24990 else
24991 shared_flag='${wl}-bM:SRE'
24996 # It seems that -bexpall does not export symbols beginning with
24997 # underscore (_), so it is better to generate a list of symbols to export.
24998 always_export_symbols_GCJ=yes
24999 if test "$aix_use_runtimelinking" = yes; then
25000 # Warning - without using the other runtime loading flags (-brtl),
25001 # -berok will link without error, but may produce a broken library.
25002 allow_undefined_flag_GCJ='-berok'
25003 # Determine the default libpath from the value encoded in an empty executable.
25004 cat >conftest.$ac_ext <<_ACEOF
25005 /* confdefs.h. */
25006 _ACEOF
25007 cat confdefs.h >>conftest.$ac_ext
25008 cat >>conftest.$ac_ext <<_ACEOF
25009 /* end confdefs.h. */
25012 main ()
25016 return 0;
25018 _ACEOF
25019 rm -f conftest.$ac_objext conftest$ac_exeext
25020 if { (ac_try="$ac_link"
25021 case "(($ac_try" in
25022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25023 *) ac_try_echo=$ac_try;;
25024 esac
25025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25026 (eval "$ac_link") 2>conftest.er1
25027 ac_status=$?
25028 grep -v '^ *+' conftest.er1 >conftest.err
25029 rm -f conftest.er1
25030 cat conftest.err >&5
25031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032 (exit $ac_status); } &&
25033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25034 { (case "(($ac_try" in
25035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25036 *) ac_try_echo=$ac_try;;
25037 esac
25038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25039 (eval "$ac_try") 2>&5
25040 ac_status=$?
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); }; } &&
25043 { ac_try='test -s conftest$ac_exeext'
25044 { (case "(($ac_try" in
25045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25046 *) ac_try_echo=$ac_try;;
25047 esac
25048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25049 (eval "$ac_try") 2>&5
25050 ac_status=$?
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); }; }; then
25054 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25056 # Check for a 64-bit object if we didn't find anything.
25057 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; }
25058 }'`; fi
25059 else
25060 echo "$as_me: failed program was:" >&5
25061 sed 's/^/| /' conftest.$ac_ext >&5
25066 rm -f core conftest.err conftest.$ac_objext \
25067 conftest$ac_exeext conftest.$ac_ext
25068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25070 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25071 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"
25072 else
25073 if test "$host_cpu" = ia64; then
25074 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25075 allow_undefined_flag_GCJ="-z nodefs"
25076 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"
25077 else
25078 # Determine the default libpath from the value encoded in an empty executable.
25079 cat >conftest.$ac_ext <<_ACEOF
25080 /* confdefs.h. */
25081 _ACEOF
25082 cat confdefs.h >>conftest.$ac_ext
25083 cat >>conftest.$ac_ext <<_ACEOF
25084 /* end confdefs.h. */
25087 main ()
25091 return 0;
25093 _ACEOF
25094 rm -f conftest.$ac_objext conftest$ac_exeext
25095 if { (ac_try="$ac_link"
25096 case "(($ac_try" in
25097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25098 *) ac_try_echo=$ac_try;;
25099 esac
25100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25101 (eval "$ac_link") 2>conftest.er1
25102 ac_status=$?
25103 grep -v '^ *+' conftest.er1 >conftest.err
25104 rm -f conftest.er1
25105 cat conftest.err >&5
25106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); } &&
25108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25109 { (case "(($ac_try" in
25110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25111 *) ac_try_echo=$ac_try;;
25112 esac
25113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25114 (eval "$ac_try") 2>&5
25115 ac_status=$?
25116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117 (exit $ac_status); }; } &&
25118 { ac_try='test -s conftest$ac_exeext'
25119 { (case "(($ac_try" in
25120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25121 *) ac_try_echo=$ac_try;;
25122 esac
25123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25124 (eval "$ac_try") 2>&5
25125 ac_status=$?
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); }; }; then
25129 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25131 # Check for a 64-bit object if we didn't find anything.
25132 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; }
25133 }'`; fi
25134 else
25135 echo "$as_me: failed program was:" >&5
25136 sed 's/^/| /' conftest.$ac_ext >&5
25141 rm -f core conftest.err conftest.$ac_objext \
25142 conftest$ac_exeext conftest.$ac_ext
25143 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25145 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25146 # Warning - without using the other run time loading flags,
25147 # -berok will link without error, but may produce a broken library.
25148 no_undefined_flag_GCJ=' ${wl}-bernotok'
25149 allow_undefined_flag_GCJ=' ${wl}-berok'
25150 # Exported symbols can be pulled into shared objects from archives
25151 whole_archive_flag_spec_GCJ='$convenience'
25152 archive_cmds_need_lc_GCJ=yes
25153 # This is similar to how AIX traditionally builds its shared libraries.
25154 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'
25159 amigaos*)
25160 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)'
25161 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25162 hardcode_minus_L_GCJ=yes
25163 # see comment about different semantics on the GNU ld section
25164 ld_shlibs_GCJ=no
25167 bsdi[45]*)
25168 export_dynamic_flag_spec_GCJ=-rdynamic
25171 cygwin* | mingw* | pw32*)
25172 # When not using gcc, we currently assume that we are using
25173 # Microsoft Visual C++.
25174 # hardcode_libdir_flag_spec is actually meaningless, as there is
25175 # no search path for DLLs.
25176 hardcode_libdir_flag_spec_GCJ=' '
25177 allow_undefined_flag_GCJ=unsupported
25178 # Tell ltmain to make .lib files, not .a files.
25179 libext=lib
25180 # Tell ltmain to make .dll files, not .so files.
25181 shrext_cmds=".dll"
25182 # FIXME: Setting linknames here is a bad hack.
25183 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25184 # The linker will automatically build a .lib file if we build a DLL.
25185 old_archive_From_new_cmds_GCJ='true'
25186 # FIXME: Should let the user specify the lib program.
25187 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25188 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25189 enable_shared_with_static_runtimes_GCJ=yes
25192 darwin* | rhapsody*)
25193 case $host_os in
25194 rhapsody* | darwin1.[012])
25195 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25197 *) # Darwin 1.3 on
25198 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25199 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25200 else
25201 case ${MACOSX_DEPLOYMENT_TARGET} in
25202 10.[012])
25203 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25205 10.*)
25206 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25208 esac
25211 esac
25212 archive_cmds_need_lc_GCJ=no
25213 hardcode_direct_GCJ=no
25214 hardcode_automatic_GCJ=yes
25215 hardcode_shlibpath_var_GCJ=unsupported
25216 whole_archive_flag_spec_GCJ=''
25217 link_all_deplibs_GCJ=yes
25218 if test "$GCC" = yes ; then
25219 output_verbose_link_cmd='echo'
25220 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25221 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25222 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25223 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}'
25224 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}'
25225 else
25226 case $cc_basename in
25227 xlc*)
25228 output_verbose_link_cmd='echo'
25229 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25230 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25231 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25232 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}'
25233 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}'
25236 ld_shlibs_GCJ=no
25238 esac
25242 dgux*)
25243 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25244 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25245 hardcode_shlibpath_var_GCJ=no
25248 freebsd1*)
25249 ld_shlibs_GCJ=no
25252 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25253 # support. Future versions do this automatically, but an explicit c++rt0.o
25254 # does not break anything, and helps significantly (at the cost of a little
25255 # extra space).
25256 freebsd2.2*)
25257 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25258 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25259 hardcode_direct_GCJ=yes
25260 hardcode_shlibpath_var_GCJ=no
25263 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25264 freebsd2*)
25265 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25266 hardcode_direct_GCJ=yes
25267 hardcode_minus_L_GCJ=yes
25268 hardcode_shlibpath_var_GCJ=no
25271 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25272 freebsd* | kfreebsd*-gnu | dragonfly*)
25273 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25274 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25275 hardcode_direct_GCJ=yes
25276 hardcode_shlibpath_var_GCJ=no
25279 hpux9*)
25280 if test "$GCC" = yes; then
25281 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'
25282 else
25283 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'
25285 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25286 hardcode_libdir_separator_GCJ=:
25287 hardcode_direct_GCJ=yes
25289 # hardcode_minus_L: Not really in the search PATH,
25290 # but as the default location of the library.
25291 hardcode_minus_L_GCJ=yes
25292 export_dynamic_flag_spec_GCJ='${wl}-E'
25295 hpux10*)
25296 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25297 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25298 else
25299 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25301 if test "$with_gnu_ld" = no; then
25302 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25303 hardcode_libdir_separator_GCJ=:
25305 hardcode_direct_GCJ=yes
25306 export_dynamic_flag_spec_GCJ='${wl}-E'
25308 # hardcode_minus_L: Not really in the search PATH,
25309 # but as the default location of the library.
25310 hardcode_minus_L_GCJ=yes
25314 hpux11*)
25315 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25316 case $host_cpu in
25317 hppa*64*)
25318 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25320 ia64*)
25321 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25324 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25326 esac
25327 else
25328 case $host_cpu in
25329 hppa*64*)
25330 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25332 ia64*)
25333 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25336 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25338 esac
25340 if test "$with_gnu_ld" = no; then
25341 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25342 hardcode_libdir_separator_GCJ=:
25344 case $host_cpu in
25345 hppa*64*|ia64*)
25346 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25347 hardcode_direct_GCJ=no
25348 hardcode_shlibpath_var_GCJ=no
25351 hardcode_direct_GCJ=yes
25352 export_dynamic_flag_spec_GCJ='${wl}-E'
25354 # hardcode_minus_L: Not really in the search PATH,
25355 # but as the default location of the library.
25356 hardcode_minus_L_GCJ=yes
25358 esac
25362 irix5* | irix6* | nonstopux*)
25363 if test "$GCC" = yes; then
25364 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'
25365 else
25366 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'
25367 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25369 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25370 hardcode_libdir_separator_GCJ=:
25371 link_all_deplibs_GCJ=yes
25374 netbsd*)
25375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25376 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25377 else
25378 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25380 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25381 hardcode_direct_GCJ=yes
25382 hardcode_shlibpath_var_GCJ=no
25385 newsos6)
25386 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25387 hardcode_direct_GCJ=yes
25388 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25389 hardcode_libdir_separator_GCJ=:
25390 hardcode_shlibpath_var_GCJ=no
25393 openbsd*)
25394 hardcode_direct_GCJ=yes
25395 hardcode_shlibpath_var_GCJ=no
25396 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25397 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25398 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25399 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25400 export_dynamic_flag_spec_GCJ='${wl}-E'
25401 else
25402 case $host_os in
25403 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25404 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25405 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25408 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25409 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25411 esac
25415 os2*)
25416 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25417 hardcode_minus_L_GCJ=yes
25418 allow_undefined_flag_GCJ=unsupported
25419 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'
25420 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25423 osf3*)
25424 if test "$GCC" = yes; then
25425 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25426 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'
25427 else
25428 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25429 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'
25431 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25432 hardcode_libdir_separator_GCJ=:
25435 osf4* | osf5*) # as osf3* with the addition of -msym flag
25436 if test "$GCC" = yes; then
25437 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25438 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'
25439 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25440 else
25441 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25442 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'
25443 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~
25444 $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'
25446 # Both c and cxx compiler support -rpath directly
25447 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25449 hardcode_libdir_separator_GCJ=:
25452 solaris*)
25453 no_undefined_flag_GCJ=' -z text'
25454 if test "$GCC" = yes; then
25455 wlarc='${wl}'
25456 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25457 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25458 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25459 else
25460 wlarc=''
25461 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25462 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25463 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25465 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25466 hardcode_shlibpath_var_GCJ=no
25467 case $host_os in
25468 solaris2.[0-5] | solaris2.[0-5].*) ;;
25470 # The compiler driver will combine linker options so we
25471 # cannot just pass the convience library names through
25472 # without $wl, iff we do not link with $LD.
25473 # Luckily, gcc supports the same syntax we need for Sun Studio.
25474 # Supported since Solaris 2.6 (maybe 2.5.1?)
25475 case $wlarc in
25477 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25479 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' ;;
25480 esac ;;
25481 esac
25482 link_all_deplibs_GCJ=yes
25485 sunos4*)
25486 if test "x$host_vendor" = xsequent; then
25487 # Use $CC to link under sequent, because it throws in some extra .o
25488 # files that make .init and .fini sections work.
25489 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25490 else
25491 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25493 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25494 hardcode_direct_GCJ=yes
25495 hardcode_minus_L_GCJ=yes
25496 hardcode_shlibpath_var_GCJ=no
25499 sysv4)
25500 case $host_vendor in
25501 sni)
25502 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25503 hardcode_direct_GCJ=yes # is this really true???
25505 siemens)
25506 ## LD is ld it makes a PLAMLIB
25507 ## CC just makes a GrossModule.
25508 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25509 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25510 hardcode_direct_GCJ=no
25512 motorola)
25513 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25514 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25516 esac
25517 runpath_var='LD_RUN_PATH'
25518 hardcode_shlibpath_var_GCJ=no
25521 sysv4.3*)
25522 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25523 hardcode_shlibpath_var_GCJ=no
25524 export_dynamic_flag_spec_GCJ='-Bexport'
25527 sysv4*MP*)
25528 if test -d /usr/nec; then
25529 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25530 hardcode_shlibpath_var_GCJ=no
25531 runpath_var=LD_RUN_PATH
25532 hardcode_runpath_var=yes
25533 ld_shlibs_GCJ=yes
25537 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25538 no_undefined_flag_GCJ='${wl}-z,text'
25539 archive_cmds_need_lc_GCJ=no
25540 hardcode_shlibpath_var_GCJ=no
25541 runpath_var='LD_RUN_PATH'
25543 if test "$GCC" = yes; then
25544 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25545 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25546 else
25547 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25548 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25552 sysv5* | sco3.2v5* | sco5v6*)
25553 # Note: We can NOT use -z defs as we might desire, because we do not
25554 # link with -lc, and that would cause any symbols used from libc to
25555 # always be unresolved, which means just about no library would
25556 # ever link correctly. If we're not using GNU ld we use -z text
25557 # though, which does catch some bad symbols but isn't as heavy-handed
25558 # as -z defs.
25559 no_undefined_flag_GCJ='${wl}-z,text'
25560 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25561 archive_cmds_need_lc_GCJ=no
25562 hardcode_shlibpath_var_GCJ=no
25563 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25564 hardcode_libdir_separator_GCJ=':'
25565 link_all_deplibs_GCJ=yes
25566 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25567 runpath_var='LD_RUN_PATH'
25569 if test "$GCC" = yes; then
25570 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25571 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25572 else
25573 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25574 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25578 uts4*)
25579 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25580 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25581 hardcode_shlibpath_var_GCJ=no
25585 ld_shlibs_GCJ=no
25587 esac
25590 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25591 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25592 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25595 # Do we need to explicitly link libc?
25597 case "x$archive_cmds_need_lc_GCJ" in
25598 x|xyes)
25599 # Assume -lc should be added
25600 archive_cmds_need_lc_GCJ=yes
25602 if test "$enable_shared" = yes && test "$GCC" = yes; then
25603 case $archive_cmds_GCJ in
25604 *'~'*)
25605 # FIXME: we may have to deal with multi-command sequences.
25607 '$CC '*)
25608 # Test whether the compiler implicitly links with -lc since on some
25609 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25610 # to ld, don't add -lc before -lgcc.
25611 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25612 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25613 $rm conftest*
25614 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25617 (eval $ac_compile) 2>&5
25618 ac_status=$?
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); } 2>conftest.err; then
25621 soname=conftest
25622 lib=conftest
25623 libobjs=conftest.$ac_objext
25624 deplibs=
25625 wl=$lt_prog_compiler_wl_GCJ
25626 pic_flag=$lt_prog_compiler_pic_GCJ
25627 compiler_flags=-v
25628 linker_flags=-v
25629 verstring=
25630 output_objdir=.
25631 libname=conftest
25632 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25633 allow_undefined_flag_GCJ=
25634 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25635 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25636 ac_status=$?
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); }
25639 then
25640 archive_cmds_need_lc_GCJ=no
25641 else
25642 archive_cmds_need_lc_GCJ=yes
25644 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25645 else
25646 cat conftest.err 1>&5
25648 $rm conftest*
25649 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25650 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25652 esac
25655 esac
25657 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25658 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25659 library_names_spec=
25660 libname_spec='lib$name'
25661 soname_spec=
25662 shrext_cmds=".so"
25663 postinstall_cmds=
25664 postuninstall_cmds=
25665 finish_cmds=
25666 finish_eval=
25667 shlibpath_var=
25668 shlibpath_overrides_runpath=unknown
25669 version_type=none
25670 dynamic_linker="$host_os ld.so"
25671 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25672 if test "$GCC" = yes; then
25673 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25674 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25675 # if the path contains ";" then we assume it to be the separator
25676 # otherwise default to the standard path separator (i.e. ":") - it is
25677 # assumed that no part of a normal pathname contains ";" but that should
25678 # okay in the real world where ";" in dirpaths is itself problematic.
25679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25680 else
25681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25683 else
25684 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25686 need_lib_prefix=unknown
25687 hardcode_into_libs=no
25689 # when you set need_version to no, make sure it does not cause -set_version
25690 # flags to be left without arguments
25691 need_version=unknown
25693 case $host_os in
25694 aix3*)
25695 version_type=linux
25696 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25697 shlibpath_var=LIBPATH
25699 # AIX 3 has no versioning support, so we append a major version to the name.
25700 soname_spec='${libname}${release}${shared_ext}$major'
25703 aix4* | aix5*)
25704 version_type=linux
25705 need_lib_prefix=no
25706 need_version=no
25707 hardcode_into_libs=yes
25708 if test "$host_cpu" = ia64; then
25709 # AIX 5 supports IA64
25710 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25711 shlibpath_var=LD_LIBRARY_PATH
25712 else
25713 # With GCC up to 2.95.x, collect2 would create an import file
25714 # for dependence libraries. The import file would start with
25715 # the line `#! .'. This would cause the generated library to
25716 # depend on `.', always an invalid library. This was fixed in
25717 # development snapshots of GCC prior to 3.0.
25718 case $host_os in
25719 aix4 | aix4.[01] | aix4.[01].*)
25720 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25721 echo ' yes '
25722 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25724 else
25725 can_build_shared=no
25728 esac
25729 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25730 # soname into executable. Probably we can add versioning support to
25731 # collect2, so additional links can be useful in future.
25732 if test "$aix_use_runtimelinking" = yes; then
25733 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25734 # instead of lib<name>.a to let people know that these are not
25735 # typical AIX shared libraries.
25736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25737 else
25738 # We preserve .a as extension for shared libraries through AIX4.2
25739 # and later when we are not doing run time linking.
25740 library_names_spec='${libname}${release}.a $libname.a'
25741 soname_spec='${libname}${release}${shared_ext}$major'
25743 shlibpath_var=LIBPATH
25747 amigaos*)
25748 library_names_spec='$libname.ixlibrary $libname.a'
25749 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25750 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'
25753 beos*)
25754 library_names_spec='${libname}${shared_ext}'
25755 dynamic_linker="$host_os ld.so"
25756 shlibpath_var=LIBRARY_PATH
25759 bsdi[45]*)
25760 version_type=linux
25761 need_version=no
25762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25763 soname_spec='${libname}${release}${shared_ext}$major'
25764 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25765 shlibpath_var=LD_LIBRARY_PATH
25766 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25767 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25768 # the default ld.so.conf also contains /usr/contrib/lib and
25769 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25770 # libtool to hard-code these into programs
25773 cygwin* | mingw* | pw32*)
25774 version_type=windows
25775 shrext_cmds=".dll"
25776 need_version=no
25777 need_lib_prefix=no
25779 case $GCC,$host_os in
25780 yes,cygwin* | yes,mingw* | yes,pw32*)
25781 library_names_spec='$libname.dll.a'
25782 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25783 postinstall_cmds='base_file=`basename \${file}`~
25784 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25785 dldir=$destdir/`dirname \$dlpath`~
25786 test -d \$dldir || mkdir -p \$dldir~
25787 $install_prog $dir/$dlname \$dldir/$dlname~
25788 chmod a+x \$dldir/$dlname'
25789 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25790 dlpath=$dir/\$dldll~
25791 $rm \$dlpath'
25792 shlibpath_overrides_runpath=yes
25794 case $host_os in
25795 cygwin*)
25796 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25797 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25798 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25800 mingw*)
25801 # MinGW DLLs use traditional 'lib' prefix
25802 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25803 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25804 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25805 # It is most probably a Windows format PATH printed by
25806 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25807 # path with ; separators, and with drive letters. We can handle the
25808 # drive letters (cygwin fileutils understands them), so leave them,
25809 # especially as we might pass files found there to a mingw objdump,
25810 # which wouldn't understand a cygwinified path. Ahh.
25811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25812 else
25813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25816 pw32*)
25817 # pw32 DLLs use 'pw' prefix rather than 'lib'
25818 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25820 esac
25824 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25826 esac
25827 dynamic_linker='Win32 ld.exe'
25828 # FIXME: first we should search . and the directory the executable is in
25829 shlibpath_var=PATH
25832 darwin* | rhapsody*)
25833 dynamic_linker="$host_os dyld"
25834 version_type=darwin
25835 need_lib_prefix=no
25836 need_version=no
25837 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25838 soname_spec='${libname}${release}${major}$shared_ext'
25839 shlibpath_overrides_runpath=yes
25840 shlibpath_var=DYLD_LIBRARY_PATH
25841 shrext_cmds='.dylib'
25842 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25843 if test "$GCC" = yes; then
25844 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"`
25845 else
25846 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25848 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25851 dgux*)
25852 version_type=linux
25853 need_lib_prefix=no
25854 need_version=no
25855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25856 soname_spec='${libname}${release}${shared_ext}$major'
25857 shlibpath_var=LD_LIBRARY_PATH
25860 freebsd1*)
25861 dynamic_linker=no
25864 kfreebsd*-gnu)
25865 version_type=linux
25866 need_lib_prefix=no
25867 need_version=no
25868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25869 soname_spec='${libname}${release}${shared_ext}$major'
25870 shlibpath_var=LD_LIBRARY_PATH
25871 shlibpath_overrides_runpath=no
25872 hardcode_into_libs=yes
25873 dynamic_linker='GNU ld.so'
25876 freebsd* | dragonfly*)
25877 # DragonFly does not have aout. When/if they implement a new
25878 # versioning mechanism, adjust this.
25879 if test -x /usr/bin/objformat; then
25880 objformat=`/usr/bin/objformat`
25881 else
25882 case $host_os in
25883 freebsd[123]*) objformat=aout ;;
25884 *) objformat=elf ;;
25885 esac
25887 version_type=freebsd-$objformat
25888 case $version_type in
25889 freebsd-elf*)
25890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25891 need_version=no
25892 need_lib_prefix=no
25894 freebsd-*)
25895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25896 need_version=yes
25898 esac
25899 shlibpath_var=LD_LIBRARY_PATH
25900 case $host_os in
25901 freebsd2*)
25902 shlibpath_overrides_runpath=yes
25904 freebsd3.[01]* | freebsdelf3.[01]*)
25905 shlibpath_overrides_runpath=yes
25906 hardcode_into_libs=yes
25908 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25909 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25910 shlibpath_overrides_runpath=no
25911 hardcode_into_libs=yes
25913 freebsd*) # from 4.6 on
25914 shlibpath_overrides_runpath=yes
25915 hardcode_into_libs=yes
25917 esac
25920 gnu*)
25921 version_type=linux
25922 need_lib_prefix=no
25923 need_version=no
25924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25925 soname_spec='${libname}${release}${shared_ext}$major'
25926 shlibpath_var=LD_LIBRARY_PATH
25927 hardcode_into_libs=yes
25930 hpux9* | hpux10* | hpux11*)
25931 # Give a soname corresponding to the major version so that dld.sl refuses to
25932 # link against other versions.
25933 version_type=sunos
25934 need_lib_prefix=no
25935 need_version=no
25936 case $host_cpu in
25937 ia64*)
25938 shrext_cmds='.so'
25939 hardcode_into_libs=yes
25940 dynamic_linker="$host_os dld.so"
25941 shlibpath_var=LD_LIBRARY_PATH
25942 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25944 soname_spec='${libname}${release}${shared_ext}$major'
25945 if test "X$HPUX_IA64_MODE" = X32; then
25946 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25947 else
25948 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25952 hppa*64*)
25953 shrext_cmds='.sl'
25954 hardcode_into_libs=yes
25955 dynamic_linker="$host_os dld.sl"
25956 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25959 soname_spec='${libname}${release}${shared_ext}$major'
25960 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25964 shrext_cmds='.sl'
25965 dynamic_linker="$host_os dld.sl"
25966 shlibpath_var=SHLIB_PATH
25967 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25969 soname_spec='${libname}${release}${shared_ext}$major'
25971 esac
25972 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25973 postinstall_cmds='chmod 555 $lib'
25976 interix3*)
25977 version_type=linux
25978 need_lib_prefix=no
25979 need_version=no
25980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25981 soname_spec='${libname}${release}${shared_ext}$major'
25982 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25983 shlibpath_var=LD_LIBRARY_PATH
25984 shlibpath_overrides_runpath=no
25985 hardcode_into_libs=yes
25988 irix5* | irix6* | nonstopux*)
25989 case $host_os in
25990 nonstopux*) version_type=nonstopux ;;
25992 if test "$lt_cv_prog_gnu_ld" = yes; then
25993 version_type=linux
25994 else
25995 version_type=irix
25996 fi ;;
25997 esac
25998 need_lib_prefix=no
25999 need_version=no
26000 soname_spec='${libname}${release}${shared_ext}$major'
26001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26002 case $host_os in
26003 irix5* | nonstopux*)
26004 libsuff= shlibsuff=
26007 case $LD in # libtool.m4 will add one of these switches to LD
26008 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26009 libsuff= shlibsuff= libmagic=32-bit;;
26010 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26011 libsuff=32 shlibsuff=N32 libmagic=N32;;
26012 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26013 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26014 *) libsuff= shlibsuff= libmagic=never-match;;
26015 esac
26017 esac
26018 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26019 shlibpath_overrides_runpath=no
26020 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26021 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26022 hardcode_into_libs=yes
26025 # No shared lib support for Linux oldld, aout, or coff.
26026 linux*oldld* | linux*aout* | linux*coff*)
26027 dynamic_linker=no
26030 # This must be Linux ELF.
26031 linux*)
26032 version_type=linux
26033 need_lib_prefix=no
26034 need_version=no
26035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26036 soname_spec='${libname}${release}${shared_ext}$major'
26037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26038 shlibpath_var=LD_LIBRARY_PATH
26039 shlibpath_overrides_runpath=no
26040 # This implies no fast_install, which is unacceptable.
26041 # Some rework will be needed to allow for fast_install
26042 # before this can be enabled.
26043 hardcode_into_libs=yes
26045 # Append ld.so.conf contents to the search path
26046 if test -f /etc/ld.so.conf; then
26047 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' ' '`
26048 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26051 # We used to test for /lib/ld.so.1 and disable shared libraries on
26052 # powerpc, because MkLinux only supported shared libraries with the
26053 # GNU dynamic linker. Since this was broken with cross compilers,
26054 # most powerpc-linux boxes support dynamic linking these days and
26055 # people can always --disable-shared, the test was removed, and we
26056 # assume the GNU/Linux dynamic linker is in use.
26057 dynamic_linker='GNU/Linux ld.so'
26060 knetbsd*-gnu)
26061 version_type=linux
26062 need_lib_prefix=no
26063 need_version=no
26064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26065 soname_spec='${libname}${release}${shared_ext}$major'
26066 shlibpath_var=LD_LIBRARY_PATH
26067 shlibpath_overrides_runpath=no
26068 hardcode_into_libs=yes
26069 dynamic_linker='GNU ld.so'
26072 netbsd*)
26073 version_type=sunos
26074 need_lib_prefix=no
26075 need_version=no
26076 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26079 dynamic_linker='NetBSD (a.out) ld.so'
26080 else
26081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26082 soname_spec='${libname}${release}${shared_ext}$major'
26083 dynamic_linker='NetBSD ld.elf_so'
26085 shlibpath_var=LD_LIBRARY_PATH
26086 shlibpath_overrides_runpath=yes
26087 hardcode_into_libs=yes
26090 newsos6)
26091 version_type=linux
26092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26093 shlibpath_var=LD_LIBRARY_PATH
26094 shlibpath_overrides_runpath=yes
26097 nto-qnx*)
26098 version_type=linux
26099 need_lib_prefix=no
26100 need_version=no
26101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26102 soname_spec='${libname}${release}${shared_ext}$major'
26103 shlibpath_var=LD_LIBRARY_PATH
26104 shlibpath_overrides_runpath=yes
26107 openbsd*)
26108 version_type=sunos
26109 sys_lib_dlsearch_path_spec="/usr/lib"
26110 need_lib_prefix=no
26111 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26112 case $host_os in
26113 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26114 *) need_version=no ;;
26115 esac
26116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26118 shlibpath_var=LD_LIBRARY_PATH
26119 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26120 case $host_os in
26121 openbsd2.[89] | openbsd2.[89].*)
26122 shlibpath_overrides_runpath=no
26125 shlibpath_overrides_runpath=yes
26127 esac
26128 else
26129 shlibpath_overrides_runpath=yes
26133 os2*)
26134 libname_spec='$name'
26135 shrext_cmds=".dll"
26136 need_lib_prefix=no
26137 library_names_spec='$libname${shared_ext} $libname.a'
26138 dynamic_linker='OS/2 ld.exe'
26139 shlibpath_var=LIBPATH
26142 osf3* | osf4* | osf5*)
26143 version_type=osf
26144 need_lib_prefix=no
26145 need_version=no
26146 soname_spec='${libname}${release}${shared_ext}$major'
26147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26148 shlibpath_var=LD_LIBRARY_PATH
26149 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26150 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26153 solaris*)
26154 version_type=linux
26155 need_lib_prefix=no
26156 need_version=no
26157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26158 soname_spec='${libname}${release}${shared_ext}$major'
26159 shlibpath_var=LD_LIBRARY_PATH
26160 shlibpath_overrides_runpath=yes
26161 hardcode_into_libs=yes
26162 # ldd complains unless libraries are executable
26163 postinstall_cmds='chmod +x $lib'
26166 sunos4*)
26167 version_type=sunos
26168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26169 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26170 shlibpath_var=LD_LIBRARY_PATH
26171 shlibpath_overrides_runpath=yes
26172 if test "$with_gnu_ld" = yes; then
26173 need_lib_prefix=no
26175 need_version=yes
26178 sysv4 | sysv4.3*)
26179 version_type=linux
26180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26181 soname_spec='${libname}${release}${shared_ext}$major'
26182 shlibpath_var=LD_LIBRARY_PATH
26183 case $host_vendor in
26184 sni)
26185 shlibpath_overrides_runpath=no
26186 need_lib_prefix=no
26187 export_dynamic_flag_spec='${wl}-Blargedynsym'
26188 runpath_var=LD_RUN_PATH
26190 siemens)
26191 need_lib_prefix=no
26193 motorola)
26194 need_lib_prefix=no
26195 need_version=no
26196 shlibpath_overrides_runpath=no
26197 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26199 esac
26202 sysv4*MP*)
26203 if test -d /usr/nec ;then
26204 version_type=linux
26205 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26206 soname_spec='$libname${shared_ext}.$major'
26207 shlibpath_var=LD_LIBRARY_PATH
26211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26212 version_type=freebsd-elf
26213 need_lib_prefix=no
26214 need_version=no
26215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26216 soname_spec='${libname}${release}${shared_ext}$major'
26217 shlibpath_var=LD_LIBRARY_PATH
26218 hardcode_into_libs=yes
26219 if test "$with_gnu_ld" = yes; then
26220 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26221 shlibpath_overrides_runpath=no
26222 else
26223 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26224 shlibpath_overrides_runpath=yes
26225 case $host_os in
26226 sco3.2v5*)
26227 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26229 esac
26231 sys_lib_dlsearch_path_spec='/usr/lib'
26234 uts4*)
26235 version_type=linux
26236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26237 soname_spec='${libname}${release}${shared_ext}$major'
26238 shlibpath_var=LD_LIBRARY_PATH
26242 dynamic_linker=no
26244 esac
26245 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26246 echo "${ECHO_T}$dynamic_linker" >&6; }
26247 test "$dynamic_linker" = no && can_build_shared=no
26249 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26250 if test "$GCC" = yes; then
26251 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26254 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26255 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26256 hardcode_action_GCJ=
26257 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26258 test -n "$runpath_var_GCJ" || \
26259 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26261 # We can hardcode non-existant directories.
26262 if test "$hardcode_direct_GCJ" != no &&
26263 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26264 # have to relink, otherwise we might link with an installed library
26265 # when we should be linking with a yet-to-be-installed one
26266 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26267 test "$hardcode_minus_L_GCJ" != no; then
26268 # Linking always hardcodes the temporary library directory.
26269 hardcode_action_GCJ=relink
26270 else
26271 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26272 hardcode_action_GCJ=immediate
26274 else
26275 # We cannot hardcode anything, or else we can only hardcode existing
26276 # directories.
26277 hardcode_action_GCJ=unsupported
26279 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26280 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26282 if test "$hardcode_action_GCJ" = relink; then
26283 # Fast installation is not supported
26284 enable_fast_install=no
26285 elif test "$shlibpath_overrides_runpath" = yes ||
26286 test "$enable_shared" = no; then
26287 # Fast installation is not necessary
26288 enable_fast_install=needless
26292 # The else clause should only fire when bootstrapping the
26293 # libtool distribution, otherwise you forgot to ship ltmain.sh
26294 # with your package, and you will get complaints that there are
26295 # no rules to generate ltmain.sh.
26296 if test -f "$ltmain"; then
26297 # See if we are running on zsh, and set the options which allow our commands through
26298 # without removal of \ escapes.
26299 if test -n "${ZSH_VERSION+set}" ; then
26300 setopt NO_GLOB_SUBST
26302 # Now quote all the things that may contain metacharacters while being
26303 # careful not to overquote the AC_SUBSTed values. We take copies of the
26304 # variables and quote the copies for generation of the libtool script.
26305 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26306 SED SHELL STRIP \
26307 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26308 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26309 deplibs_check_method reload_flag reload_cmds need_locks \
26310 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26311 lt_cv_sys_global_symbol_to_c_name_address \
26312 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26313 old_postinstall_cmds old_postuninstall_cmds \
26314 compiler_GCJ \
26315 CC_GCJ \
26316 LD_GCJ \
26317 lt_prog_compiler_wl_GCJ \
26318 lt_prog_compiler_pic_GCJ \
26319 lt_prog_compiler_static_GCJ \
26320 lt_prog_compiler_no_builtin_flag_GCJ \
26321 export_dynamic_flag_spec_GCJ \
26322 thread_safe_flag_spec_GCJ \
26323 whole_archive_flag_spec_GCJ \
26324 enable_shared_with_static_runtimes_GCJ \
26325 old_archive_cmds_GCJ \
26326 old_archive_from_new_cmds_GCJ \
26327 predep_objects_GCJ \
26328 postdep_objects_GCJ \
26329 predeps_GCJ \
26330 postdeps_GCJ \
26331 compiler_lib_search_path_GCJ \
26332 archive_cmds_GCJ \
26333 archive_expsym_cmds_GCJ \
26334 postinstall_cmds_GCJ \
26335 postuninstall_cmds_GCJ \
26336 old_archive_from_expsyms_cmds_GCJ \
26337 allow_undefined_flag_GCJ \
26338 no_undefined_flag_GCJ \
26339 export_symbols_cmds_GCJ \
26340 hardcode_libdir_flag_spec_GCJ \
26341 hardcode_libdir_flag_spec_ld_GCJ \
26342 hardcode_libdir_separator_GCJ \
26343 hardcode_automatic_GCJ \
26344 module_cmds_GCJ \
26345 module_expsym_cmds_GCJ \
26346 lt_cv_prog_compiler_c_o_GCJ \
26347 exclude_expsyms_GCJ \
26348 include_expsyms_GCJ; do
26350 case $var in
26351 old_archive_cmds_GCJ | \
26352 old_archive_from_new_cmds_GCJ | \
26353 archive_cmds_GCJ | \
26354 archive_expsym_cmds_GCJ | \
26355 module_cmds_GCJ | \
26356 module_expsym_cmds_GCJ | \
26357 old_archive_from_expsyms_cmds_GCJ | \
26358 export_symbols_cmds_GCJ | \
26359 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26360 postinstall_cmds | postuninstall_cmds | \
26361 old_postinstall_cmds | old_postuninstall_cmds | \
26362 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26363 # Double-quote double-evaled strings.
26364 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26369 esac
26370 done
26372 case $lt_echo in
26373 *'\$0 --fallback-echo"')
26374 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26376 esac
26378 cfgfile="$ofile"
26380 cat <<__EOF__ >> "$cfgfile"
26381 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26383 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26385 # Shell to use when invoking shell scripts.
26386 SHELL=$lt_SHELL
26388 # Whether or not to build shared libraries.
26389 build_libtool_libs=$enable_shared
26391 # Whether or not to build static libraries.
26392 build_old_libs=$enable_static
26394 # Whether or not to add -lc for building shared libraries.
26395 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26397 # Whether or not to disallow shared libs when runtime libs are static
26398 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26400 # Whether or not to optimize for fast installation.
26401 fast_install=$enable_fast_install
26403 # The host system.
26404 host_alias=$host_alias
26405 host=$host
26406 host_os=$host_os
26408 # The build system.
26409 build_alias=$build_alias
26410 build=$build
26411 build_os=$build_os
26413 # An echo program that does not interpret backslashes.
26414 echo=$lt_echo
26416 # The archiver.
26417 AR=$lt_AR
26418 AR_FLAGS=$lt_AR_FLAGS
26420 # A C compiler.
26421 LTCC=$lt_LTCC
26423 # LTCC compiler flags.
26424 LTCFLAGS=$lt_LTCFLAGS
26426 # A language-specific compiler.
26427 CC=$lt_compiler_GCJ
26429 # Is the compiler the GNU C compiler?
26430 with_gcc=$GCC_GCJ
26432 # An ERE matcher.
26433 EGREP=$lt_EGREP
26435 # The linker used to build libraries.
26436 LD=$lt_LD_GCJ
26438 # Whether we need hard or soft links.
26439 LN_S=$lt_LN_S
26441 # A BSD-compatible nm program.
26442 NM=$lt_NM
26444 # A symbol stripping program
26445 STRIP=$lt_STRIP
26447 # Used to examine libraries when file_magic_cmd begins "file"
26448 MAGIC_CMD=$MAGIC_CMD
26450 # Used on cygwin: DLL creation program.
26451 DLLTOOL="$DLLTOOL"
26453 # Used on cygwin: object dumper.
26454 OBJDUMP="$OBJDUMP"
26456 # Used on cygwin: assembler.
26457 AS="$AS"
26459 # The name of the directory that contains temporary libtool files.
26460 objdir=$objdir
26462 # How to create reloadable object files.
26463 reload_flag=$lt_reload_flag
26464 reload_cmds=$lt_reload_cmds
26466 # How to pass a linker flag through the compiler.
26467 wl=$lt_lt_prog_compiler_wl_GCJ
26469 # Object file suffix (normally "o").
26470 objext="$ac_objext"
26472 # Old archive suffix (normally "a").
26473 libext="$libext"
26475 # Shared library suffix (normally ".so").
26476 shrext_cmds='$shrext_cmds'
26478 # Executable file suffix (normally "").
26479 exeext="$exeext"
26481 # Additional compiler flags for building library objects.
26482 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26483 pic_mode=$pic_mode
26485 # What is the maximum length of a command?
26486 max_cmd_len=$lt_cv_sys_max_cmd_len
26488 # Does compiler simultaneously support -c and -o options?
26489 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26491 # Must we lock files when doing compilation?
26492 need_locks=$lt_need_locks
26494 # Do we need the lib prefix for modules?
26495 need_lib_prefix=$need_lib_prefix
26497 # Do we need a version for libraries?
26498 need_version=$need_version
26500 # Whether dlopen is supported.
26501 dlopen_support=$enable_dlopen
26503 # Whether dlopen of programs is supported.
26504 dlopen_self=$enable_dlopen_self
26506 # Whether dlopen of statically linked programs is supported.
26507 dlopen_self_static=$enable_dlopen_self_static
26509 # Compiler flag to prevent dynamic linking.
26510 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26512 # Compiler flag to turn off builtin functions.
26513 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26515 # Compiler flag to allow reflexive dlopens.
26516 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26518 # Compiler flag to generate shared objects directly from archives.
26519 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26521 # Compiler flag to generate thread-safe objects.
26522 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26524 # Library versioning type.
26525 version_type=$version_type
26527 # Format of library name prefix.
26528 libname_spec=$lt_libname_spec
26530 # List of archive names. First name is the real one, the rest are links.
26531 # The last name is the one that the linker finds with -lNAME.
26532 library_names_spec=$lt_library_names_spec
26534 # The coded name of the library, if different from the real name.
26535 soname_spec=$lt_soname_spec
26537 # Commands used to build and install an old-style archive.
26538 RANLIB=$lt_RANLIB
26539 old_archive_cmds=$lt_old_archive_cmds_GCJ
26540 old_postinstall_cmds=$lt_old_postinstall_cmds
26541 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26543 # Create an old-style archive from a shared archive.
26544 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26546 # Create a temporary old-style archive to link instead of a shared archive.
26547 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26549 # Commands used to build and install a shared archive.
26550 archive_cmds=$lt_archive_cmds_GCJ
26551 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26552 postinstall_cmds=$lt_postinstall_cmds
26553 postuninstall_cmds=$lt_postuninstall_cmds
26555 # Commands used to build a loadable module (assumed same as above if empty)
26556 module_cmds=$lt_module_cmds_GCJ
26557 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26559 # Commands to strip libraries.
26560 old_striplib=$lt_old_striplib
26561 striplib=$lt_striplib
26563 # Dependencies to place before the objects being linked to create a
26564 # shared library.
26565 predep_objects=$lt_predep_objects_GCJ
26567 # Dependencies to place after the objects being linked to create a
26568 # shared library.
26569 postdep_objects=$lt_postdep_objects_GCJ
26571 # Dependencies to place before the objects being linked to create a
26572 # shared library.
26573 predeps=$lt_predeps_GCJ
26575 # Dependencies to place after the objects being linked to create a
26576 # shared library.
26577 postdeps=$lt_postdeps_GCJ
26579 # The library search path used internally by the compiler when linking
26580 # a shared library.
26581 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26583 # Method to check whether dependent libraries are shared objects.
26584 deplibs_check_method=$lt_deplibs_check_method
26586 # Command to use when deplibs_check_method == file_magic.
26587 file_magic_cmd=$lt_file_magic_cmd
26589 # Flag that allows shared libraries with undefined symbols to be built.
26590 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26592 # Flag that forces no undefined symbols.
26593 no_undefined_flag=$lt_no_undefined_flag_GCJ
26595 # Commands used to finish a libtool library installation in a directory.
26596 finish_cmds=$lt_finish_cmds
26598 # Same as above, but a single script fragment to be evaled but not shown.
26599 finish_eval=$lt_finish_eval
26601 # Take the output of nm and produce a listing of raw symbols and C names.
26602 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26604 # Transform the output of nm in a proper C declaration
26605 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26607 # Transform the output of nm in a C name address pair
26608 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26610 # This is the shared library runtime path variable.
26611 runpath_var=$runpath_var
26613 # This is the shared library path variable.
26614 shlibpath_var=$shlibpath_var
26616 # Is shlibpath searched before the hard-coded library search path?
26617 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26619 # How to hardcode a shared library path into an executable.
26620 hardcode_action=$hardcode_action_GCJ
26622 # Whether we should hardcode library paths into libraries.
26623 hardcode_into_libs=$hardcode_into_libs
26625 # Flag to hardcode \$libdir into a binary during linking.
26626 # This must work even if \$libdir does not exist.
26627 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26629 # If ld is used when linking, flag to hardcode \$libdir into
26630 # a binary during linking. This must work even if \$libdir does
26631 # not exist.
26632 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26634 # Whether we need a single -rpath flag with a separated argument.
26635 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26637 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26638 # resulting binary.
26639 hardcode_direct=$hardcode_direct_GCJ
26641 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26642 # resulting binary.
26643 hardcode_minus_L=$hardcode_minus_L_GCJ
26645 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26646 # the resulting binary.
26647 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26649 # Set to yes if building a shared library automatically hardcodes DIR into the library
26650 # and all subsequent libraries and executables linked against it.
26651 hardcode_automatic=$hardcode_automatic_GCJ
26653 # Variables whose values should be saved in libtool wrapper scripts and
26654 # restored at relink time.
26655 variables_saved_for_relink="$variables_saved_for_relink"
26657 # Whether libtool must link a program against all its dependency libraries.
26658 link_all_deplibs=$link_all_deplibs_GCJ
26660 # Compile-time system search path for libraries
26661 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26663 # Run-time system search path for libraries
26664 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26666 # Fix the shell variable \$srcfile for the compiler.
26667 fix_srcfile_path="$fix_srcfile_path_GCJ"
26669 # Set to yes if exported symbols are required.
26670 always_export_symbols=$always_export_symbols_GCJ
26672 # The commands to list exported symbols.
26673 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26675 # The commands to extract the exported symbol list from a shared archive.
26676 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26678 # Symbols that should not be listed in the preloaded symbols.
26679 exclude_expsyms=$lt_exclude_expsyms_GCJ
26681 # Symbols that must always be exported.
26682 include_expsyms=$lt_include_expsyms_GCJ
26684 # ### END LIBTOOL TAG CONFIG: $tagname
26686 __EOF__
26689 else
26690 # If there is no Makefile yet, we rely on a make rule to execute
26691 # `config.status --recheck' to rerun these tests and create the
26692 # libtool script then.
26693 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26694 if test -f "$ltmain_in"; then
26695 test -f Makefile && make "$ltmain"
26700 ac_ext=c
26701 ac_cpp='$CPP $CPPFLAGS'
26702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26706 CC="$lt_save_CC"
26708 else
26709 tagname=""
26714 ac_ext=c
26715 ac_cpp='$CPP $CPPFLAGS'
26716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26721 # Source file extension for RC test sources.
26722 ac_ext=rc
26724 # Object file extension for compiled RC test sources.
26725 objext=o
26726 objext_RC=$objext
26728 # Code to be used in simple compile tests
26729 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26731 # Code to be used in simple link tests
26732 lt_simple_link_test_code="$lt_simple_compile_test_code"
26734 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26736 # If no C compiler was specified, use CC.
26737 LTCC=${LTCC-"$CC"}
26739 # If no C compiler flags were specified, use CFLAGS.
26740 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26742 # Allow CC to be a program name with arguments.
26743 compiler=$CC
26746 # save warnings/boilerplate of simple test code
26747 ac_outfile=conftest.$ac_objext
26748 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26749 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26750 _lt_compiler_boilerplate=`cat conftest.err`
26751 $rm conftest*
26753 ac_outfile=conftest.$ac_objext
26754 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26755 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26756 _lt_linker_boilerplate=`cat conftest.err`
26757 $rm conftest*
26760 # Allow CC to be a program name with arguments.
26761 lt_save_CC="$CC"
26762 CC=${RC-"windres"}
26763 compiler=$CC
26764 compiler_RC=$CC
26765 for cc_temp in $compiler""; do
26766 case $cc_temp in
26767 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26768 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26769 \-*) ;;
26770 *) break;;
26771 esac
26772 done
26773 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26775 lt_cv_prog_compiler_c_o_RC=yes
26777 # The else clause should only fire when bootstrapping the
26778 # libtool distribution, otherwise you forgot to ship ltmain.sh
26779 # with your package, and you will get complaints that there are
26780 # no rules to generate ltmain.sh.
26781 if test -f "$ltmain"; then
26782 # See if we are running on zsh, and set the options which allow our commands through
26783 # without removal of \ escapes.
26784 if test -n "${ZSH_VERSION+set}" ; then
26785 setopt NO_GLOB_SUBST
26787 # Now quote all the things that may contain metacharacters while being
26788 # careful not to overquote the AC_SUBSTed values. We take copies of the
26789 # variables and quote the copies for generation of the libtool script.
26790 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26791 SED SHELL STRIP \
26792 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26793 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26794 deplibs_check_method reload_flag reload_cmds need_locks \
26795 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26796 lt_cv_sys_global_symbol_to_c_name_address \
26797 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26798 old_postinstall_cmds old_postuninstall_cmds \
26799 compiler_RC \
26800 CC_RC \
26801 LD_RC \
26802 lt_prog_compiler_wl_RC \
26803 lt_prog_compiler_pic_RC \
26804 lt_prog_compiler_static_RC \
26805 lt_prog_compiler_no_builtin_flag_RC \
26806 export_dynamic_flag_spec_RC \
26807 thread_safe_flag_spec_RC \
26808 whole_archive_flag_spec_RC \
26809 enable_shared_with_static_runtimes_RC \
26810 old_archive_cmds_RC \
26811 old_archive_from_new_cmds_RC \
26812 predep_objects_RC \
26813 postdep_objects_RC \
26814 predeps_RC \
26815 postdeps_RC \
26816 compiler_lib_search_path_RC \
26817 archive_cmds_RC \
26818 archive_expsym_cmds_RC \
26819 postinstall_cmds_RC \
26820 postuninstall_cmds_RC \
26821 old_archive_from_expsyms_cmds_RC \
26822 allow_undefined_flag_RC \
26823 no_undefined_flag_RC \
26824 export_symbols_cmds_RC \
26825 hardcode_libdir_flag_spec_RC \
26826 hardcode_libdir_flag_spec_ld_RC \
26827 hardcode_libdir_separator_RC \
26828 hardcode_automatic_RC \
26829 module_cmds_RC \
26830 module_expsym_cmds_RC \
26831 lt_cv_prog_compiler_c_o_RC \
26832 exclude_expsyms_RC \
26833 include_expsyms_RC; do
26835 case $var in
26836 old_archive_cmds_RC | \
26837 old_archive_from_new_cmds_RC | \
26838 archive_cmds_RC | \
26839 archive_expsym_cmds_RC | \
26840 module_cmds_RC | \
26841 module_expsym_cmds_RC | \
26842 old_archive_from_expsyms_cmds_RC | \
26843 export_symbols_cmds_RC | \
26844 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26845 postinstall_cmds | postuninstall_cmds | \
26846 old_postinstall_cmds | old_postuninstall_cmds | \
26847 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26848 # Double-quote double-evaled strings.
26849 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26852 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26854 esac
26855 done
26857 case $lt_echo in
26858 *'\$0 --fallback-echo"')
26859 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26861 esac
26863 cfgfile="$ofile"
26865 cat <<__EOF__ >> "$cfgfile"
26866 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26868 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26870 # Shell to use when invoking shell scripts.
26871 SHELL=$lt_SHELL
26873 # Whether or not to build shared libraries.
26874 build_libtool_libs=$enable_shared
26876 # Whether or not to build static libraries.
26877 build_old_libs=$enable_static
26879 # Whether or not to add -lc for building shared libraries.
26880 build_libtool_need_lc=$archive_cmds_need_lc_RC
26882 # Whether or not to disallow shared libs when runtime libs are static
26883 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26885 # Whether or not to optimize for fast installation.
26886 fast_install=$enable_fast_install
26888 # The host system.
26889 host_alias=$host_alias
26890 host=$host
26891 host_os=$host_os
26893 # The build system.
26894 build_alias=$build_alias
26895 build=$build
26896 build_os=$build_os
26898 # An echo program that does not interpret backslashes.
26899 echo=$lt_echo
26901 # The archiver.
26902 AR=$lt_AR
26903 AR_FLAGS=$lt_AR_FLAGS
26905 # A C compiler.
26906 LTCC=$lt_LTCC
26908 # LTCC compiler flags.
26909 LTCFLAGS=$lt_LTCFLAGS
26911 # A language-specific compiler.
26912 CC=$lt_compiler_RC
26914 # Is the compiler the GNU C compiler?
26915 with_gcc=$GCC_RC
26917 # An ERE matcher.
26918 EGREP=$lt_EGREP
26920 # The linker used to build libraries.
26921 LD=$lt_LD_RC
26923 # Whether we need hard or soft links.
26924 LN_S=$lt_LN_S
26926 # A BSD-compatible nm program.
26927 NM=$lt_NM
26929 # A symbol stripping program
26930 STRIP=$lt_STRIP
26932 # Used to examine libraries when file_magic_cmd begins "file"
26933 MAGIC_CMD=$MAGIC_CMD
26935 # Used on cygwin: DLL creation program.
26936 DLLTOOL="$DLLTOOL"
26938 # Used on cygwin: object dumper.
26939 OBJDUMP="$OBJDUMP"
26941 # Used on cygwin: assembler.
26942 AS="$AS"
26944 # The name of the directory that contains temporary libtool files.
26945 objdir=$objdir
26947 # How to create reloadable object files.
26948 reload_flag=$lt_reload_flag
26949 reload_cmds=$lt_reload_cmds
26951 # How to pass a linker flag through the compiler.
26952 wl=$lt_lt_prog_compiler_wl_RC
26954 # Object file suffix (normally "o").
26955 objext="$ac_objext"
26957 # Old archive suffix (normally "a").
26958 libext="$libext"
26960 # Shared library suffix (normally ".so").
26961 shrext_cmds='$shrext_cmds'
26963 # Executable file suffix (normally "").
26964 exeext="$exeext"
26966 # Additional compiler flags for building library objects.
26967 pic_flag=$lt_lt_prog_compiler_pic_RC
26968 pic_mode=$pic_mode
26970 # What is the maximum length of a command?
26971 max_cmd_len=$lt_cv_sys_max_cmd_len
26973 # Does compiler simultaneously support -c and -o options?
26974 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26976 # Must we lock files when doing compilation?
26977 need_locks=$lt_need_locks
26979 # Do we need the lib prefix for modules?
26980 need_lib_prefix=$need_lib_prefix
26982 # Do we need a version for libraries?
26983 need_version=$need_version
26985 # Whether dlopen is supported.
26986 dlopen_support=$enable_dlopen
26988 # Whether dlopen of programs is supported.
26989 dlopen_self=$enable_dlopen_self
26991 # Whether dlopen of statically linked programs is supported.
26992 dlopen_self_static=$enable_dlopen_self_static
26994 # Compiler flag to prevent dynamic linking.
26995 link_static_flag=$lt_lt_prog_compiler_static_RC
26997 # Compiler flag to turn off builtin functions.
26998 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27000 # Compiler flag to allow reflexive dlopens.
27001 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27003 # Compiler flag to generate shared objects directly from archives.
27004 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27006 # Compiler flag to generate thread-safe objects.
27007 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27009 # Library versioning type.
27010 version_type=$version_type
27012 # Format of library name prefix.
27013 libname_spec=$lt_libname_spec
27015 # List of archive names. First name is the real one, the rest are links.
27016 # The last name is the one that the linker finds with -lNAME.
27017 library_names_spec=$lt_library_names_spec
27019 # The coded name of the library, if different from the real name.
27020 soname_spec=$lt_soname_spec
27022 # Commands used to build and install an old-style archive.
27023 RANLIB=$lt_RANLIB
27024 old_archive_cmds=$lt_old_archive_cmds_RC
27025 old_postinstall_cmds=$lt_old_postinstall_cmds
27026 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27028 # Create an old-style archive from a shared archive.
27029 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27031 # Create a temporary old-style archive to link instead of a shared archive.
27032 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27034 # Commands used to build and install a shared archive.
27035 archive_cmds=$lt_archive_cmds_RC
27036 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27037 postinstall_cmds=$lt_postinstall_cmds
27038 postuninstall_cmds=$lt_postuninstall_cmds
27040 # Commands used to build a loadable module (assumed same as above if empty)
27041 module_cmds=$lt_module_cmds_RC
27042 module_expsym_cmds=$lt_module_expsym_cmds_RC
27044 # Commands to strip libraries.
27045 old_striplib=$lt_old_striplib
27046 striplib=$lt_striplib
27048 # Dependencies to place before the objects being linked to create a
27049 # shared library.
27050 predep_objects=$lt_predep_objects_RC
27052 # Dependencies to place after the objects being linked to create a
27053 # shared library.
27054 postdep_objects=$lt_postdep_objects_RC
27056 # Dependencies to place before the objects being linked to create a
27057 # shared library.
27058 predeps=$lt_predeps_RC
27060 # Dependencies to place after the objects being linked to create a
27061 # shared library.
27062 postdeps=$lt_postdeps_RC
27064 # The library search path used internally by the compiler when linking
27065 # a shared library.
27066 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27068 # Method to check whether dependent libraries are shared objects.
27069 deplibs_check_method=$lt_deplibs_check_method
27071 # Command to use when deplibs_check_method == file_magic.
27072 file_magic_cmd=$lt_file_magic_cmd
27074 # Flag that allows shared libraries with undefined symbols to be built.
27075 allow_undefined_flag=$lt_allow_undefined_flag_RC
27077 # Flag that forces no undefined symbols.
27078 no_undefined_flag=$lt_no_undefined_flag_RC
27080 # Commands used to finish a libtool library installation in a directory.
27081 finish_cmds=$lt_finish_cmds
27083 # Same as above, but a single script fragment to be evaled but not shown.
27084 finish_eval=$lt_finish_eval
27086 # Take the output of nm and produce a listing of raw symbols and C names.
27087 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27089 # Transform the output of nm in a proper C declaration
27090 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27092 # Transform the output of nm in a C name address pair
27093 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27095 # This is the shared library runtime path variable.
27096 runpath_var=$runpath_var
27098 # This is the shared library path variable.
27099 shlibpath_var=$shlibpath_var
27101 # Is shlibpath searched before the hard-coded library search path?
27102 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27104 # How to hardcode a shared library path into an executable.
27105 hardcode_action=$hardcode_action_RC
27107 # Whether we should hardcode library paths into libraries.
27108 hardcode_into_libs=$hardcode_into_libs
27110 # Flag to hardcode \$libdir into a binary during linking.
27111 # This must work even if \$libdir does not exist.
27112 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27114 # If ld is used when linking, flag to hardcode \$libdir into
27115 # a binary during linking. This must work even if \$libdir does
27116 # not exist.
27117 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27119 # Whether we need a single -rpath flag with a separated argument.
27120 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27122 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27123 # resulting binary.
27124 hardcode_direct=$hardcode_direct_RC
27126 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27127 # resulting binary.
27128 hardcode_minus_L=$hardcode_minus_L_RC
27130 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27131 # the resulting binary.
27132 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27134 # Set to yes if building a shared library automatically hardcodes DIR into the library
27135 # and all subsequent libraries and executables linked against it.
27136 hardcode_automatic=$hardcode_automatic_RC
27138 # Variables whose values should be saved in libtool wrapper scripts and
27139 # restored at relink time.
27140 variables_saved_for_relink="$variables_saved_for_relink"
27142 # Whether libtool must link a program against all its dependency libraries.
27143 link_all_deplibs=$link_all_deplibs_RC
27145 # Compile-time system search path for libraries
27146 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27148 # Run-time system search path for libraries
27149 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27151 # Fix the shell variable \$srcfile for the compiler.
27152 fix_srcfile_path="$fix_srcfile_path_RC"
27154 # Set to yes if exported symbols are required.
27155 always_export_symbols=$always_export_symbols_RC
27157 # The commands to list exported symbols.
27158 export_symbols_cmds=$lt_export_symbols_cmds_RC
27160 # The commands to extract the exported symbol list from a shared archive.
27161 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27163 # Symbols that should not be listed in the preloaded symbols.
27164 exclude_expsyms=$lt_exclude_expsyms_RC
27166 # Symbols that must always be exported.
27167 include_expsyms=$lt_include_expsyms_RC
27169 # ### END LIBTOOL TAG CONFIG: $tagname
27171 __EOF__
27174 else
27175 # If there is no Makefile yet, we rely on a make rule to execute
27176 # `config.status --recheck' to rerun these tests and create the
27177 # libtool script then.
27178 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27179 if test -f "$ltmain_in"; then
27180 test -f Makefile && make "$ltmain"
27185 ac_ext=c
27186 ac_cpp='$CPP $CPPFLAGS'
27187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27191 CC="$lt_save_CC"
27196 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27197 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27198 { (exit 1); exit 1; }; }
27200 esac
27202 # Append the new tag name to the list of available tags.
27203 if test -n "$tagname" ; then
27204 available_tags="$available_tags $tagname"
27207 done
27208 IFS="$lt_save_ifs"
27210 # Now substitute the updated list of available tags.
27211 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27212 mv "${ofile}T" "$ofile"
27213 chmod +x "$ofile"
27214 else
27215 rm -f "${ofile}T"
27216 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27217 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27218 { (exit 1); exit 1; }; }
27224 # This can be used to rebuild libtool when needed
27225 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27227 # Always use our own libtool.
27228 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27230 # Prevent multiple expansion
27252 if test "$lt_cv_dlopen_self" = "yes" ; then
27254 cat >>confdefs.h <<\_ACEOF
27255 #define CAN_DLOPEN_SELF 1
27256 _ACEOF
27261 if test "$WITH_LLVMGCCDIR" = "default" ; then
27262 LLVMGCC="llvm-gcc${EXEEXT}"
27263 LLVMGXX="llvm-g++${EXEEXT}"
27264 LLVMGCCCOMMAND="$LLVMGCC"
27265 LLVMGXXCOMMAND="$LLVMGXX"
27266 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27268 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27270 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27271 set dummy $LLVMGCC; ac_word=$2
27272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27274 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27275 echo $ECHO_N "(cached) $ECHO_C" >&6
27276 else
27277 case $LLVMGCC in
27278 [\\/]* | ?:[\\/]*)
27279 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27283 for as_dir in $PATH
27285 IFS=$as_save_IFS
27286 test -z "$as_dir" && as_dir=.
27287 for ac_exec_ext in '' $ac_executable_extensions; do
27288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27289 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27291 break 2
27293 done
27294 done
27295 IFS=$as_save_IFS
27298 esac
27300 LLVMGCC=$ac_cv_path_LLVMGCC
27301 if test -n "$LLVMGCC"; then
27302 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27303 echo "${ECHO_T}$LLVMGCC" >&6; }
27304 else
27305 { echo "$as_me:$LINENO: result: no" >&5
27306 echo "${ECHO_T}no" >&6; }
27310 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27311 set dummy $LLVMGXX; ac_word=$2
27312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27314 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27315 echo $ECHO_N "(cached) $ECHO_C" >&6
27316 else
27317 case $LLVMGXX in
27318 [\\/]* | ?:[\\/]*)
27319 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27323 for as_dir in $PATH
27325 IFS=$as_save_IFS
27326 test -z "$as_dir" && as_dir=.
27327 for ac_exec_ext in '' $ac_executable_extensions; do
27328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27329 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27331 break 2
27333 done
27334 done
27335 IFS=$as_save_IFS
27338 esac
27340 LLVMGXX=$ac_cv_path_LLVMGXX
27341 if test -n "$LLVMGXX"; then
27342 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27343 echo "${ECHO_T}$LLVMGXX" >&6; }
27344 else
27345 { echo "$as_me:$LINENO: result: no" >&5
27346 echo "${ECHO_T}no" >&6; }
27350 else
27351 if test -z "$LLVMGCC"; then
27352 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27353 LLVMGCCCOMMAND="$LLVMGCC"
27355 if test -z "$LLVMGXX"; then
27356 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27357 LLVMGXXCOMMAND="$LLVMGXX"
27360 LLVMGCC=$LLVMGCC
27362 LLVMGXX=$LLVMGXX
27364 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27366 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27371 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27372 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27374 ICC=no
27375 IXX=no
27376 case $CC in
27377 icc*|icpc*)
27378 ICC=yes
27379 IXX=yes
27383 esac
27385 if test "$GCC" != "yes" && test "$ICC" != "yes"
27386 then
27387 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27388 echo "$as_me: error: gcc|icc required but not found" >&2;}
27389 { (exit 1); exit 1; }; }
27392 if test "$GXX" != "yes" && test "$IXX" != "yes"
27393 then
27394 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27395 echo "$as_me: error: g++|icc required but not found" >&2;}
27396 { (exit 1); exit 1; }; }
27399 if test "$GCC" = "yes"
27400 then
27401 cat >conftest.$ac_ext <<_ACEOF
27402 #if !defined(__GNUC__) || __GNUC__ < 3
27403 #error Unsupported GCC version
27404 #endif
27406 _ACEOF
27407 rm -f conftest.$ac_objext
27408 if { (ac_try="$ac_compile"
27409 case "(($ac_try" in
27410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27411 *) ac_try_echo=$ac_try;;
27412 esac
27413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27414 (eval "$ac_compile") 2>conftest.er1
27415 ac_status=$?
27416 grep -v '^ *+' conftest.er1 >conftest.err
27417 rm -f conftest.er1
27418 cat conftest.err >&5
27419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420 (exit $ac_status); } &&
27421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27422 { (case "(($ac_try" in
27423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424 *) ac_try_echo=$ac_try;;
27425 esac
27426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427 (eval "$ac_try") 2>&5
27428 ac_status=$?
27429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430 (exit $ac_status); }; } &&
27431 { ac_try='test -s conftest.$ac_objext'
27432 { (case "(($ac_try" in
27433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27434 *) ac_try_echo=$ac_try;;
27435 esac
27436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27437 (eval "$ac_try") 2>&5
27438 ac_status=$?
27439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440 (exit $ac_status); }; }; then
27442 else
27443 echo "$as_me: failed program was:" >&5
27444 sed 's/^/| /' conftest.$ac_ext >&5
27446 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27447 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27448 { (exit 1); exit 1; }; }
27451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27454 if test -z "$llvm_cv_gnu_make_command"
27455 then
27456 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27457 echo "$as_me: error: GNU Make required but not found" >&2;}
27458 { (exit 1); exit 1; }; }
27461 { echo "$as_me:$LINENO: result: ok" >&5
27462 echo "${ECHO_T}ok" >&6; }
27464 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
27465 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
27466 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
27468 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
27470 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
27471 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
27475 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27476 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27477 if test "${ac_cv_lib_m_sin+set}" = set; then
27478 echo $ECHO_N "(cached) $ECHO_C" >&6
27479 else
27480 ac_check_lib_save_LIBS=$LIBS
27481 LIBS="-lm $LIBS"
27482 cat >conftest.$ac_ext <<_ACEOF
27483 /* confdefs.h. */
27484 _ACEOF
27485 cat confdefs.h >>conftest.$ac_ext
27486 cat >>conftest.$ac_ext <<_ACEOF
27487 /* end confdefs.h. */
27489 /* Override any GCC internal prototype to avoid an error.
27490 Use char because int might match the return type of a GCC
27491 builtin and then its argument prototype would still apply. */
27492 #ifdef __cplusplus
27493 extern "C"
27494 #endif
27495 char sin ();
27497 main ()
27499 return sin ();
27501 return 0;
27503 _ACEOF
27504 rm -f conftest.$ac_objext conftest$ac_exeext
27505 if { (ac_try="$ac_link"
27506 case "(($ac_try" in
27507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508 *) ac_try_echo=$ac_try;;
27509 esac
27510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511 (eval "$ac_link") 2>conftest.er1
27512 ac_status=$?
27513 grep -v '^ *+' conftest.er1 >conftest.err
27514 rm -f conftest.er1
27515 cat conftest.err >&5
27516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517 (exit $ac_status); } &&
27518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27519 { (case "(($ac_try" in
27520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27521 *) ac_try_echo=$ac_try;;
27522 esac
27523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27524 (eval "$ac_try") 2>&5
27525 ac_status=$?
27526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527 (exit $ac_status); }; } &&
27528 { ac_try='test -s conftest$ac_exeext'
27529 { (case "(($ac_try" in
27530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27531 *) ac_try_echo=$ac_try;;
27532 esac
27533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27534 (eval "$ac_try") 2>&5
27535 ac_status=$?
27536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537 (exit $ac_status); }; }; then
27538 ac_cv_lib_m_sin=yes
27539 else
27540 echo "$as_me: failed program was:" >&5
27541 sed 's/^/| /' conftest.$ac_ext >&5
27543 ac_cv_lib_m_sin=no
27546 rm -f core conftest.err conftest.$ac_objext \
27547 conftest$ac_exeext conftest.$ac_ext
27548 LIBS=$ac_check_lib_save_LIBS
27550 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27551 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27552 if test $ac_cv_lib_m_sin = yes; then
27553 cat >>confdefs.h <<_ACEOF
27554 #define HAVE_LIBM 1
27555 _ACEOF
27557 LIBS="-lm $LIBS"
27561 if test "$llvm_cv_os_type" = "MingW" ; then
27563 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27564 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27565 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27566 echo $ECHO_N "(cached) $ECHO_C" >&6
27567 else
27568 ac_check_lib_save_LIBS=$LIBS
27569 LIBS="-limagehlp $LIBS"
27570 cat >conftest.$ac_ext <<_ACEOF
27571 /* confdefs.h. */
27572 _ACEOF
27573 cat confdefs.h >>conftest.$ac_ext
27574 cat >>conftest.$ac_ext <<_ACEOF
27575 /* end confdefs.h. */
27579 main ()
27581 return main ();
27583 return 0;
27585 _ACEOF
27586 rm -f conftest.$ac_objext conftest$ac_exeext
27587 if { (ac_try="$ac_link"
27588 case "(($ac_try" in
27589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27590 *) ac_try_echo=$ac_try;;
27591 esac
27592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27593 (eval "$ac_link") 2>conftest.er1
27594 ac_status=$?
27595 grep -v '^ *+' conftest.er1 >conftest.err
27596 rm -f conftest.er1
27597 cat conftest.err >&5
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); } &&
27600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27601 { (case "(($ac_try" in
27602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27603 *) ac_try_echo=$ac_try;;
27604 esac
27605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27606 (eval "$ac_try") 2>&5
27607 ac_status=$?
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); }; } &&
27610 { ac_try='test -s conftest$ac_exeext'
27611 { (case "(($ac_try" in
27612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27613 *) ac_try_echo=$ac_try;;
27614 esac
27615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27616 (eval "$ac_try") 2>&5
27617 ac_status=$?
27618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); }; }; then
27620 ac_cv_lib_imagehlp_main=yes
27621 else
27622 echo "$as_me: failed program was:" >&5
27623 sed 's/^/| /' conftest.$ac_ext >&5
27625 ac_cv_lib_imagehlp_main=no
27628 rm -f core conftest.err conftest.$ac_objext \
27629 conftest$ac_exeext conftest.$ac_ext
27630 LIBS=$ac_check_lib_save_LIBS
27632 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27633 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27634 if test $ac_cv_lib_imagehlp_main = yes; then
27635 cat >>confdefs.h <<_ACEOF
27636 #define HAVE_LIBIMAGEHLP 1
27637 _ACEOF
27639 LIBS="-limagehlp $LIBS"
27644 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27645 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27646 if test "${ac_cv_lib_psapi_main+set}" = set; then
27647 echo $ECHO_N "(cached) $ECHO_C" >&6
27648 else
27649 ac_check_lib_save_LIBS=$LIBS
27650 LIBS="-lpsapi $LIBS"
27651 cat >conftest.$ac_ext <<_ACEOF
27652 /* confdefs.h. */
27653 _ACEOF
27654 cat confdefs.h >>conftest.$ac_ext
27655 cat >>conftest.$ac_ext <<_ACEOF
27656 /* end confdefs.h. */
27660 main ()
27662 return main ();
27664 return 0;
27666 _ACEOF
27667 rm -f conftest.$ac_objext conftest$ac_exeext
27668 if { (ac_try="$ac_link"
27669 case "(($ac_try" in
27670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27671 *) ac_try_echo=$ac_try;;
27672 esac
27673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27674 (eval "$ac_link") 2>conftest.er1
27675 ac_status=$?
27676 grep -v '^ *+' conftest.er1 >conftest.err
27677 rm -f conftest.er1
27678 cat conftest.err >&5
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); } &&
27681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27682 { (case "(($ac_try" in
27683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27684 *) ac_try_echo=$ac_try;;
27685 esac
27686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27687 (eval "$ac_try") 2>&5
27688 ac_status=$?
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); }; } &&
27691 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
27698 ac_status=$?
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; }; then
27701 ac_cv_lib_psapi_main=yes
27702 else
27703 echo "$as_me: failed program was:" >&5
27704 sed 's/^/| /' conftest.$ac_ext >&5
27706 ac_cv_lib_psapi_main=no
27709 rm -f core conftest.err conftest.$ac_objext \
27710 conftest$ac_exeext conftest.$ac_ext
27711 LIBS=$ac_check_lib_save_LIBS
27713 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27714 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27715 if test $ac_cv_lib_psapi_main = yes; then
27716 cat >>confdefs.h <<_ACEOF
27717 #define HAVE_LIBPSAPI 1
27718 _ACEOF
27720 LIBS="-lpsapi $LIBS"
27726 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27727 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27728 if test "${ac_cv_search_dlopen+set}" = set; then
27729 echo $ECHO_N "(cached) $ECHO_C" >&6
27730 else
27731 ac_func_search_save_LIBS=$LIBS
27732 cat >conftest.$ac_ext <<_ACEOF
27733 /* confdefs.h. */
27734 _ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h. */
27739 /* Override any GCC internal prototype to avoid an error.
27740 Use char because int might match the return type of a GCC
27741 builtin and then its argument prototype would still apply. */
27742 #ifdef __cplusplus
27743 extern "C"
27744 #endif
27745 char dlopen ();
27747 main ()
27749 return dlopen ();
27751 return 0;
27753 _ACEOF
27754 for ac_lib in '' dl; do
27755 if test -z "$ac_lib"; then
27756 ac_res="none required"
27757 else
27758 ac_res=-l$ac_lib
27759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27761 rm -f conftest.$ac_objext conftest$ac_exeext
27762 if { (ac_try="$ac_link"
27763 case "(($ac_try" in
27764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27765 *) ac_try_echo=$ac_try;;
27766 esac
27767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27768 (eval "$ac_link") 2>conftest.er1
27769 ac_status=$?
27770 grep -v '^ *+' conftest.er1 >conftest.err
27771 rm -f conftest.er1
27772 cat conftest.err >&5
27773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774 (exit $ac_status); } &&
27775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27776 { (case "(($ac_try" in
27777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27778 *) ac_try_echo=$ac_try;;
27779 esac
27780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27781 (eval "$ac_try") 2>&5
27782 ac_status=$?
27783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784 (exit $ac_status); }; } &&
27785 { ac_try='test -s conftest$ac_exeext'
27786 { (case "(($ac_try" in
27787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27788 *) ac_try_echo=$ac_try;;
27789 esac
27790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27791 (eval "$ac_try") 2>&5
27792 ac_status=$?
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); }; }; then
27795 ac_cv_search_dlopen=$ac_res
27796 else
27797 echo "$as_me: failed program was:" >&5
27798 sed 's/^/| /' conftest.$ac_ext >&5
27803 rm -f core conftest.err conftest.$ac_objext \
27804 conftest$ac_exeext
27805 if test "${ac_cv_search_dlopen+set}" = set; then
27806 break
27808 done
27809 if test "${ac_cv_search_dlopen+set}" = set; then
27811 else
27812 ac_cv_search_dlopen=no
27814 rm conftest.$ac_ext
27815 LIBS=$ac_func_search_save_LIBS
27817 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27818 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27819 ac_res=$ac_cv_search_dlopen
27820 if test "$ac_res" != no; then
27821 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27823 cat >>confdefs.h <<\_ACEOF
27824 #define HAVE_DLOPEN 1
27825 _ACEOF
27827 else
27828 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27829 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27833 if test "$llvm_cv_enable_libffi" = "yes" ; then
27834 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27835 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27836 if test "${ac_cv_search_ffi_call+set}" = set; then
27837 echo $ECHO_N "(cached) $ECHO_C" >&6
27838 else
27839 ac_func_search_save_LIBS=$LIBS
27840 cat >conftest.$ac_ext <<_ACEOF
27841 /* confdefs.h. */
27842 _ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h. */
27847 /* Override any GCC internal prototype to avoid an error.
27848 Use char because int might match the return type of a GCC
27849 builtin and then its argument prototype would still apply. */
27850 #ifdef __cplusplus
27851 extern "C"
27852 #endif
27853 char ffi_call ();
27855 main ()
27857 return ffi_call ();
27859 return 0;
27861 _ACEOF
27862 for ac_lib in '' ffi; do
27863 if test -z "$ac_lib"; then
27864 ac_res="none required"
27865 else
27866 ac_res=-l$ac_lib
27867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27869 rm -f conftest.$ac_objext conftest$ac_exeext
27870 if { (ac_try="$ac_link"
27871 case "(($ac_try" in
27872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27873 *) ac_try_echo=$ac_try;;
27874 esac
27875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27876 (eval "$ac_link") 2>conftest.er1
27877 ac_status=$?
27878 grep -v '^ *+' conftest.er1 >conftest.err
27879 rm -f conftest.er1
27880 cat conftest.err >&5
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); } &&
27883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27884 { (case "(($ac_try" in
27885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27886 *) ac_try_echo=$ac_try;;
27887 esac
27888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27889 (eval "$ac_try") 2>&5
27890 ac_status=$?
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); }; } &&
27893 { ac_try='test -s conftest$ac_exeext'
27894 { (case "(($ac_try" in
27895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27896 *) ac_try_echo=$ac_try;;
27897 esac
27898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27899 (eval "$ac_try") 2>&5
27900 ac_status=$?
27901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902 (exit $ac_status); }; }; then
27903 ac_cv_search_ffi_call=$ac_res
27904 else
27905 echo "$as_me: failed program was:" >&5
27906 sed 's/^/| /' conftest.$ac_ext >&5
27911 rm -f core conftest.err conftest.$ac_objext \
27912 conftest$ac_exeext
27913 if test "${ac_cv_search_ffi_call+set}" = set; then
27914 break
27916 done
27917 if test "${ac_cv_search_ffi_call+set}" = set; then
27919 else
27920 ac_cv_search_ffi_call=no
27922 rm conftest.$ac_ext
27923 LIBS=$ac_func_search_save_LIBS
27925 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27926 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27927 ac_res=$ac_cv_search_ffi_call
27928 if test "$ac_res" != no; then
27929 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27931 cat >>confdefs.h <<\_ACEOF
27932 #define HAVE_FFI_CALL 1
27933 _ACEOF
27935 else
27936 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27937 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27942 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27943 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27944 if test "${ac_cv_search_mallinfo+set}" = set; then
27945 echo $ECHO_N "(cached) $ECHO_C" >&6
27946 else
27947 ac_func_search_save_LIBS=$LIBS
27948 cat >conftest.$ac_ext <<_ACEOF
27949 /* confdefs.h. */
27950 _ACEOF
27951 cat confdefs.h >>conftest.$ac_ext
27952 cat >>conftest.$ac_ext <<_ACEOF
27953 /* end confdefs.h. */
27955 /* Override any GCC internal prototype to avoid an error.
27956 Use char because int might match the return type of a GCC
27957 builtin and then its argument prototype would still apply. */
27958 #ifdef __cplusplus
27959 extern "C"
27960 #endif
27961 char mallinfo ();
27963 main ()
27965 return mallinfo ();
27967 return 0;
27969 _ACEOF
27970 for ac_lib in '' malloc; do
27971 if test -z "$ac_lib"; then
27972 ac_res="none required"
27973 else
27974 ac_res=-l$ac_lib
27975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27977 rm -f conftest.$ac_objext conftest$ac_exeext
27978 if { (ac_try="$ac_link"
27979 case "(($ac_try" in
27980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27981 *) ac_try_echo=$ac_try;;
27982 esac
27983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27984 (eval "$ac_link") 2>conftest.er1
27985 ac_status=$?
27986 grep -v '^ *+' conftest.er1 >conftest.err
27987 rm -f conftest.er1
27988 cat conftest.err >&5
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); } &&
27991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27992 { (case "(($ac_try" in
27993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27994 *) ac_try_echo=$ac_try;;
27995 esac
27996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27997 (eval "$ac_try") 2>&5
27998 ac_status=$?
27999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000 (exit $ac_status); }; } &&
28001 { ac_try='test -s conftest$ac_exeext'
28002 { (case "(($ac_try" in
28003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28004 *) ac_try_echo=$ac_try;;
28005 esac
28006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28007 (eval "$ac_try") 2>&5
28008 ac_status=$?
28009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010 (exit $ac_status); }; }; then
28011 ac_cv_search_mallinfo=$ac_res
28012 else
28013 echo "$as_me: failed program was:" >&5
28014 sed 's/^/| /' conftest.$ac_ext >&5
28019 rm -f core conftest.err conftest.$ac_objext \
28020 conftest$ac_exeext
28021 if test "${ac_cv_search_mallinfo+set}" = set; then
28022 break
28024 done
28025 if test "${ac_cv_search_mallinfo+set}" = set; then
28027 else
28028 ac_cv_search_mallinfo=no
28030 rm conftest.$ac_ext
28031 LIBS=$ac_func_search_save_LIBS
28033 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28034 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28035 ac_res=$ac_cv_search_mallinfo
28036 if test "$ac_res" != no; then
28037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28039 cat >>confdefs.h <<\_ACEOF
28040 #define HAVE_MALLINFO 1
28041 _ACEOF
28046 if test "$ENABLE_THREADS" -eq 1 ; then
28048 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28049 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28050 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28051 echo $ECHO_N "(cached) $ECHO_C" >&6
28052 else
28053 ac_check_lib_save_LIBS=$LIBS
28054 LIBS="-lpthread $LIBS"
28055 cat >conftest.$ac_ext <<_ACEOF
28056 /* confdefs.h. */
28057 _ACEOF
28058 cat confdefs.h >>conftest.$ac_ext
28059 cat >>conftest.$ac_ext <<_ACEOF
28060 /* end confdefs.h. */
28062 /* Override any GCC internal prototype to avoid an error.
28063 Use char because int might match the return type of a GCC
28064 builtin and then its argument prototype would still apply. */
28065 #ifdef __cplusplus
28066 extern "C"
28067 #endif
28068 char pthread_mutex_init ();
28070 main ()
28072 return pthread_mutex_init ();
28074 return 0;
28076 _ACEOF
28077 rm -f conftest.$ac_objext conftest$ac_exeext
28078 if { (ac_try="$ac_link"
28079 case "(($ac_try" in
28080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28081 *) ac_try_echo=$ac_try;;
28082 esac
28083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28084 (eval "$ac_link") 2>conftest.er1
28085 ac_status=$?
28086 grep -v '^ *+' conftest.er1 >conftest.err
28087 rm -f conftest.er1
28088 cat conftest.err >&5
28089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090 (exit $ac_status); } &&
28091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28092 { (case "(($ac_try" in
28093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28094 *) ac_try_echo=$ac_try;;
28095 esac
28096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28097 (eval "$ac_try") 2>&5
28098 ac_status=$?
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); }; } &&
28101 { ac_try='test -s conftest$ac_exeext'
28102 { (case "(($ac_try" in
28103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28104 *) ac_try_echo=$ac_try;;
28105 esac
28106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28107 (eval "$ac_try") 2>&5
28108 ac_status=$?
28109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110 (exit $ac_status); }; }; then
28111 ac_cv_lib_pthread_pthread_mutex_init=yes
28112 else
28113 echo "$as_me: failed program was:" >&5
28114 sed 's/^/| /' conftest.$ac_ext >&5
28116 ac_cv_lib_pthread_pthread_mutex_init=no
28119 rm -f core conftest.err conftest.$ac_objext \
28120 conftest$ac_exeext conftest.$ac_ext
28121 LIBS=$ac_check_lib_save_LIBS
28123 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28124 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28125 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28126 cat >>confdefs.h <<_ACEOF
28127 #define HAVE_LIBPTHREAD 1
28128 _ACEOF
28130 LIBS="-lpthread $LIBS"
28134 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28135 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28136 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28137 echo $ECHO_N "(cached) $ECHO_C" >&6
28138 else
28139 ac_func_search_save_LIBS=$LIBS
28140 cat >conftest.$ac_ext <<_ACEOF
28141 /* confdefs.h. */
28142 _ACEOF
28143 cat confdefs.h >>conftest.$ac_ext
28144 cat >>conftest.$ac_ext <<_ACEOF
28145 /* end confdefs.h. */
28147 /* Override any GCC internal prototype to avoid an error.
28148 Use char because int might match the return type of a GCC
28149 builtin and then its argument prototype would still apply. */
28150 #ifdef __cplusplus
28151 extern "C"
28152 #endif
28153 char pthread_mutex_lock ();
28155 main ()
28157 return pthread_mutex_lock ();
28159 return 0;
28161 _ACEOF
28162 for ac_lib in '' pthread; do
28163 if test -z "$ac_lib"; then
28164 ac_res="none required"
28165 else
28166 ac_res=-l$ac_lib
28167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28169 rm -f conftest.$ac_objext conftest$ac_exeext
28170 if { (ac_try="$ac_link"
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_link") 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); } &&
28183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28184 { (case "(($ac_try" in
28185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186 *) ac_try_echo=$ac_try;;
28187 esac
28188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189 (eval "$ac_try") 2>&5
28190 ac_status=$?
28191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); }; } &&
28193 { ac_try='test -s conftest$ac_exeext'
28194 { (case "(($ac_try" in
28195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28196 *) ac_try_echo=$ac_try;;
28197 esac
28198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28199 (eval "$ac_try") 2>&5
28200 ac_status=$?
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); }; }; then
28203 ac_cv_search_pthread_mutex_lock=$ac_res
28204 else
28205 echo "$as_me: failed program was:" >&5
28206 sed 's/^/| /' conftest.$ac_ext >&5
28211 rm -f core conftest.err conftest.$ac_objext \
28212 conftest$ac_exeext
28213 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28214 break
28216 done
28217 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28219 else
28220 ac_cv_search_pthread_mutex_lock=no
28222 rm conftest.$ac_ext
28223 LIBS=$ac_func_search_save_LIBS
28225 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28226 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28227 ac_res=$ac_cv_search_pthread_mutex_lock
28228 if test "$ac_res" != no; then
28229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28231 cat >>confdefs.h <<\_ACEOF
28232 #define HAVE_PTHREAD_MUTEX_LOCK 1
28233 _ACEOF
28237 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28238 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28239 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28240 echo $ECHO_N "(cached) $ECHO_C" >&6
28241 else
28242 ac_func_search_save_LIBS=$LIBS
28243 cat >conftest.$ac_ext <<_ACEOF
28244 /* confdefs.h. */
28245 _ACEOF
28246 cat confdefs.h >>conftest.$ac_ext
28247 cat >>conftest.$ac_ext <<_ACEOF
28248 /* end confdefs.h. */
28250 /* Override any GCC internal prototype to avoid an error.
28251 Use char because int might match the return type of a GCC
28252 builtin and then its argument prototype would still apply. */
28253 #ifdef __cplusplus
28254 extern "C"
28255 #endif
28256 char pthread_rwlock_init ();
28258 main ()
28260 return pthread_rwlock_init ();
28262 return 0;
28264 _ACEOF
28265 for ac_lib in '' pthread; do
28266 if test -z "$ac_lib"; then
28267 ac_res="none required"
28268 else
28269 ac_res=-l$ac_lib
28270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28272 rm -f conftest.$ac_objext conftest$ac_exeext
28273 if { (ac_try="$ac_link"
28274 case "(($ac_try" in
28275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276 *) ac_try_echo=$ac_try;;
28277 esac
28278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279 (eval "$ac_link") 2>conftest.er1
28280 ac_status=$?
28281 grep -v '^ *+' conftest.er1 >conftest.err
28282 rm -f conftest.er1
28283 cat conftest.err >&5
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); } &&
28286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28287 { (case "(($ac_try" in
28288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28289 *) ac_try_echo=$ac_try;;
28290 esac
28291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28292 (eval "$ac_try") 2>&5
28293 ac_status=$?
28294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295 (exit $ac_status); }; } &&
28296 { ac_try='test -s conftest$ac_exeext'
28297 { (case "(($ac_try" in
28298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28299 *) ac_try_echo=$ac_try;;
28300 esac
28301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28302 (eval "$ac_try") 2>&5
28303 ac_status=$?
28304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305 (exit $ac_status); }; }; then
28306 ac_cv_search_pthread_rwlock_init=$ac_res
28307 else
28308 echo "$as_me: failed program was:" >&5
28309 sed 's/^/| /' conftest.$ac_ext >&5
28314 rm -f core conftest.err conftest.$ac_objext \
28315 conftest$ac_exeext
28316 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28317 break
28319 done
28320 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28322 else
28323 ac_cv_search_pthread_rwlock_init=no
28325 rm conftest.$ac_ext
28326 LIBS=$ac_func_search_save_LIBS
28328 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28329 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28330 ac_res=$ac_cv_search_pthread_rwlock_init
28331 if test "$ac_res" != no; then
28332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28334 cat >>confdefs.h <<\_ACEOF
28335 #define HAVE_PTHREAD_RWLOCK_INIT 1
28336 _ACEOF
28340 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28341 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28342 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28343 echo $ECHO_N "(cached) $ECHO_C" >&6
28344 else
28345 ac_func_search_save_LIBS=$LIBS
28346 cat >conftest.$ac_ext <<_ACEOF
28347 /* confdefs.h. */
28348 _ACEOF
28349 cat confdefs.h >>conftest.$ac_ext
28350 cat >>conftest.$ac_ext <<_ACEOF
28351 /* end confdefs.h. */
28353 /* Override any GCC internal prototype to avoid an error.
28354 Use char because int might match the return type of a GCC
28355 builtin and then its argument prototype would still apply. */
28356 #ifdef __cplusplus
28357 extern "C"
28358 #endif
28359 char pthread_getspecific ();
28361 main ()
28363 return pthread_getspecific ();
28365 return 0;
28367 _ACEOF
28368 for ac_lib in '' pthread; do
28369 if test -z "$ac_lib"; then
28370 ac_res="none required"
28371 else
28372 ac_res=-l$ac_lib
28373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28375 rm -f conftest.$ac_objext conftest$ac_exeext
28376 if { (ac_try="$ac_link"
28377 case "(($ac_try" in
28378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28379 *) ac_try_echo=$ac_try;;
28380 esac
28381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28382 (eval "$ac_link") 2>conftest.er1
28383 ac_status=$?
28384 grep -v '^ *+' conftest.er1 >conftest.err
28385 rm -f conftest.er1
28386 cat conftest.err >&5
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); } &&
28389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28390 { (case "(($ac_try" in
28391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28392 *) ac_try_echo=$ac_try;;
28393 esac
28394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395 (eval "$ac_try") 2>&5
28396 ac_status=$?
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); }; } &&
28399 { ac_try='test -s conftest$ac_exeext'
28400 { (case "(($ac_try" in
28401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28402 *) ac_try_echo=$ac_try;;
28403 esac
28404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28405 (eval "$ac_try") 2>&5
28406 ac_status=$?
28407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); }; }; then
28409 ac_cv_search_pthread_getspecific=$ac_res
28410 else
28411 echo "$as_me: failed program was:" >&5
28412 sed 's/^/| /' conftest.$ac_ext >&5
28417 rm -f core conftest.err conftest.$ac_objext \
28418 conftest$ac_exeext
28419 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28420 break
28422 done
28423 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28425 else
28426 ac_cv_search_pthread_getspecific=no
28428 rm conftest.$ac_ext
28429 LIBS=$ac_func_search_save_LIBS
28431 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28432 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28433 ac_res=$ac_cv_search_pthread_getspecific
28434 if test "$ac_res" != no; then
28435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28437 cat >>confdefs.h <<\_ACEOF
28438 #define HAVE_PTHREAD_GETSPECIFIC 1
28439 _ACEOF
28446 # Check whether --with-udis86 was given.
28447 if test "${with_udis86+set}" = set; then
28448 withval=$with_udis86;
28449 USE_UDIS86=1
28451 case "$withval" in
28452 /usr/lib|yes) ;;
28453 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28454 esac
28456 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28457 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28458 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28459 echo $ECHO_N "(cached) $ECHO_C" >&6
28460 else
28461 ac_check_lib_save_LIBS=$LIBS
28462 LIBS="-ludis86 $LIBS"
28463 cat >conftest.$ac_ext <<_ACEOF
28464 /* confdefs.h. */
28465 _ACEOF
28466 cat confdefs.h >>conftest.$ac_ext
28467 cat >>conftest.$ac_ext <<_ACEOF
28468 /* end confdefs.h. */
28470 /* Override any GCC internal prototype to avoid an error.
28471 Use char because int might match the return type of a GCC
28472 builtin and then its argument prototype would still apply. */
28473 #ifdef __cplusplus
28474 extern "C"
28475 #endif
28476 char ud_init ();
28478 main ()
28480 return ud_init ();
28482 return 0;
28484 _ACEOF
28485 rm -f conftest.$ac_objext conftest$ac_exeext
28486 if { (ac_try="$ac_link"
28487 case "(($ac_try" in
28488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28489 *) ac_try_echo=$ac_try;;
28490 esac
28491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28492 (eval "$ac_link") 2>conftest.er1
28493 ac_status=$?
28494 grep -v '^ *+' conftest.er1 >conftest.err
28495 rm -f conftest.er1
28496 cat conftest.err >&5
28497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498 (exit $ac_status); } &&
28499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28500 { (case "(($ac_try" in
28501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28502 *) ac_try_echo=$ac_try;;
28503 esac
28504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28505 (eval "$ac_try") 2>&5
28506 ac_status=$?
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); }; } &&
28509 { ac_try='test -s conftest$ac_exeext'
28510 { (case "(($ac_try" in
28511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28512 *) ac_try_echo=$ac_try;;
28513 esac
28514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28515 (eval "$ac_try") 2>&5
28516 ac_status=$?
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); }; }; then
28519 ac_cv_lib_udis86_ud_init=yes
28520 else
28521 echo "$as_me: failed program was:" >&5
28522 sed 's/^/| /' conftest.$ac_ext >&5
28524 ac_cv_lib_udis86_ud_init=no
28527 rm -f core conftest.err conftest.$ac_objext \
28528 conftest$ac_exeext conftest.$ac_ext
28529 LIBS=$ac_check_lib_save_LIBS
28531 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28532 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28533 if test $ac_cv_lib_udis86_ud_init = yes; then
28534 cat >>confdefs.h <<_ACEOF
28535 #define HAVE_LIBUDIS86 1
28536 _ACEOF
28538 LIBS="-ludis86 $LIBS"
28540 else
28542 echo "Error! You need to have libudis86 around."
28543 exit -1
28548 else
28549 USE_UDIS86=0
28554 cat >>confdefs.h <<_ACEOF
28555 #define USE_UDIS86 $USE_UDIS86
28556 _ACEOF
28560 # Check whether --with-oprofile was given.
28561 if test "${with_oprofile+set}" = set; then
28562 withval=$with_oprofile;
28563 USE_OPROFILE=1
28565 case "$withval" in
28566 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28567 no) llvm_cv_oppath=
28568 USE_OPROFILE=0
28570 *) llvm_cv_oppath="${withval}/lib/oprofile"
28571 CPPFLAGS="-I${withval}/include";;
28572 esac
28573 if test -n "$llvm_cv_oppath" ; then
28574 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28575 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28576 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28577 if test "${ac_cv_search_bfd_init+set}" = set; then
28578 echo $ECHO_N "(cached) $ECHO_C" >&6
28579 else
28580 ac_func_search_save_LIBS=$LIBS
28581 cat >conftest.$ac_ext <<_ACEOF
28582 /* confdefs.h. */
28583 _ACEOF
28584 cat confdefs.h >>conftest.$ac_ext
28585 cat >>conftest.$ac_ext <<_ACEOF
28586 /* end confdefs.h. */
28588 /* Override any GCC internal prototype to avoid an error.
28589 Use char because int might match the return type of a GCC
28590 builtin and then its argument prototype would still apply. */
28591 #ifdef __cplusplus
28592 extern "C"
28593 #endif
28594 char bfd_init ();
28596 main ()
28598 return bfd_init ();
28600 return 0;
28602 _ACEOF
28603 for ac_lib in '' bfd; do
28604 if test -z "$ac_lib"; then
28605 ac_res="none required"
28606 else
28607 ac_res=-l$ac_lib
28608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28610 rm -f conftest.$ac_objext conftest$ac_exeext
28611 if { (ac_try="$ac_link"
28612 case "(($ac_try" in
28613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614 *) ac_try_echo=$ac_try;;
28615 esac
28616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28617 (eval "$ac_link") 2>conftest.er1
28618 ac_status=$?
28619 grep -v '^ *+' conftest.er1 >conftest.err
28620 rm -f conftest.er1
28621 cat conftest.err >&5
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); } &&
28624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28625 { (case "(($ac_try" in
28626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28627 *) ac_try_echo=$ac_try;;
28628 esac
28629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28630 (eval "$ac_try") 2>&5
28631 ac_status=$?
28632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633 (exit $ac_status); }; } &&
28634 { ac_try='test -s conftest$ac_exeext'
28635 { (case "(($ac_try" in
28636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28637 *) ac_try_echo=$ac_try;;
28638 esac
28639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28640 (eval "$ac_try") 2>&5
28641 ac_status=$?
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); }; }; then
28644 ac_cv_search_bfd_init=$ac_res
28645 else
28646 echo "$as_me: failed program was:" >&5
28647 sed 's/^/| /' conftest.$ac_ext >&5
28652 rm -f core conftest.err conftest.$ac_objext \
28653 conftest$ac_exeext
28654 if test "${ac_cv_search_bfd_init+set}" = set; then
28655 break
28657 done
28658 if test "${ac_cv_search_bfd_init+set}" = set; then
28660 else
28661 ac_cv_search_bfd_init=no
28663 rm conftest.$ac_ext
28664 LIBS=$ac_func_search_save_LIBS
28666 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28667 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28668 ac_res=$ac_cv_search_bfd_init
28669 if test "$ac_res" != no; then
28670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28674 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28675 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28676 if test "${ac_cv_search_op_open_agent+set}" = set; then
28677 echo $ECHO_N "(cached) $ECHO_C" >&6
28678 else
28679 ac_func_search_save_LIBS=$LIBS
28680 cat >conftest.$ac_ext <<_ACEOF
28681 /* confdefs.h. */
28682 _ACEOF
28683 cat confdefs.h >>conftest.$ac_ext
28684 cat >>conftest.$ac_ext <<_ACEOF
28685 /* end confdefs.h. */
28687 /* Override any GCC internal prototype to avoid an error.
28688 Use char because int might match the return type of a GCC
28689 builtin and then its argument prototype would still apply. */
28690 #ifdef __cplusplus
28691 extern "C"
28692 #endif
28693 char op_open_agent ();
28695 main ()
28697 return op_open_agent ();
28699 return 0;
28701 _ACEOF
28702 for ac_lib in '' opagent; do
28703 if test -z "$ac_lib"; then
28704 ac_res="none required"
28705 else
28706 ac_res=-l$ac_lib
28707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28709 rm -f conftest.$ac_objext conftest$ac_exeext
28710 if { (ac_try="$ac_link"
28711 case "(($ac_try" in
28712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28713 *) ac_try_echo=$ac_try;;
28714 esac
28715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28716 (eval "$ac_link") 2>conftest.er1
28717 ac_status=$?
28718 grep -v '^ *+' conftest.er1 >conftest.err
28719 rm -f conftest.er1
28720 cat conftest.err >&5
28721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); } &&
28723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28724 { (case "(($ac_try" in
28725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28726 *) ac_try_echo=$ac_try;;
28727 esac
28728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28729 (eval "$ac_try") 2>&5
28730 ac_status=$?
28731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); }; } &&
28733 { ac_try='test -s conftest$ac_exeext'
28734 { (case "(($ac_try" in
28735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28736 *) ac_try_echo=$ac_try;;
28737 esac
28738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28739 (eval "$ac_try") 2>&5
28740 ac_status=$?
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); }; }; then
28743 ac_cv_search_op_open_agent=$ac_res
28744 else
28745 echo "$as_me: failed program was:" >&5
28746 sed 's/^/| /' conftest.$ac_ext >&5
28751 rm -f core conftest.err conftest.$ac_objext \
28752 conftest$ac_exeext
28753 if test "${ac_cv_search_op_open_agent+set}" = set; then
28754 break
28756 done
28757 if test "${ac_cv_search_op_open_agent+set}" = set; then
28759 else
28760 ac_cv_search_op_open_agent=no
28762 rm conftest.$ac_ext
28763 LIBS=$ac_func_search_save_LIBS
28765 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28766 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28767 ac_res=$ac_cv_search_op_open_agent
28768 if test "$ac_res" != no; then
28769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28771 else
28773 echo "Error! You need to have libopagent around."
28774 exit -1
28778 if test "${ac_cv_header_opagent_h+set}" = set; then
28779 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28780 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28781 if test "${ac_cv_header_opagent_h+set}" = set; then
28782 echo $ECHO_N "(cached) $ECHO_C" >&6
28784 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28785 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28786 else
28787 # Is the header compilable?
28788 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28789 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28790 cat >conftest.$ac_ext <<_ACEOF
28791 /* confdefs.h. */
28792 _ACEOF
28793 cat confdefs.h >>conftest.$ac_ext
28794 cat >>conftest.$ac_ext <<_ACEOF
28795 /* end confdefs.h. */
28796 $ac_includes_default
28797 #include <opagent.h>
28798 _ACEOF
28799 rm -f conftest.$ac_objext
28800 if { (ac_try="$ac_compile"
28801 case "(($ac_try" in
28802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28803 *) ac_try_echo=$ac_try;;
28804 esac
28805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28806 (eval "$ac_compile") 2>conftest.er1
28807 ac_status=$?
28808 grep -v '^ *+' conftest.er1 >conftest.err
28809 rm -f conftest.er1
28810 cat conftest.err >&5
28811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812 (exit $ac_status); } &&
28813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28814 { (case "(($ac_try" in
28815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28816 *) ac_try_echo=$ac_try;;
28817 esac
28818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28819 (eval "$ac_try") 2>&5
28820 ac_status=$?
28821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822 (exit $ac_status); }; } &&
28823 { ac_try='test -s conftest.$ac_objext'
28824 { (case "(($ac_try" in
28825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28826 *) ac_try_echo=$ac_try;;
28827 esac
28828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28829 (eval "$ac_try") 2>&5
28830 ac_status=$?
28831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832 (exit $ac_status); }; }; then
28833 ac_header_compiler=yes
28834 else
28835 echo "$as_me: failed program was:" >&5
28836 sed 's/^/| /' conftest.$ac_ext >&5
28838 ac_header_compiler=no
28841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28843 echo "${ECHO_T}$ac_header_compiler" >&6; }
28845 # Is the header present?
28846 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28847 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28848 cat >conftest.$ac_ext <<_ACEOF
28849 /* confdefs.h. */
28850 _ACEOF
28851 cat confdefs.h >>conftest.$ac_ext
28852 cat >>conftest.$ac_ext <<_ACEOF
28853 /* end confdefs.h. */
28854 #include <opagent.h>
28855 _ACEOF
28856 if { (ac_try="$ac_cpp conftest.$ac_ext"
28857 case "(($ac_try" in
28858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28859 *) ac_try_echo=$ac_try;;
28860 esac
28861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28863 ac_status=$?
28864 grep -v '^ *+' conftest.er1 >conftest.err
28865 rm -f conftest.er1
28866 cat conftest.err >&5
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); } >/dev/null; then
28869 if test -s conftest.err; then
28870 ac_cpp_err=$ac_c_preproc_warn_flag
28871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28872 else
28873 ac_cpp_err=
28875 else
28876 ac_cpp_err=yes
28878 if test -z "$ac_cpp_err"; then
28879 ac_header_preproc=yes
28880 else
28881 echo "$as_me: failed program was:" >&5
28882 sed 's/^/| /' conftest.$ac_ext >&5
28884 ac_header_preproc=no
28887 rm -f conftest.err conftest.$ac_ext
28888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28889 echo "${ECHO_T}$ac_header_preproc" >&6; }
28891 # So? What about this header?
28892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28893 yes:no: )
28894 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28895 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28896 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28897 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28898 ac_header_preproc=yes
28900 no:yes:* )
28901 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28902 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28903 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28904 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28905 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28906 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28907 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28908 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28909 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28910 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28911 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28912 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28913 ( cat <<\_ASBOX
28914 ## ----------------------------------- ##
28915 ## Report this to llvmbugs@cs.uiuc.edu ##
28916 ## ----------------------------------- ##
28917 _ASBOX
28918 ) | sed "s/^/$as_me: WARNING: /" >&2
28920 esac
28921 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28922 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28923 if test "${ac_cv_header_opagent_h+set}" = set; then
28924 echo $ECHO_N "(cached) $ECHO_C" >&6
28925 else
28926 ac_cv_header_opagent_h=$ac_header_preproc
28928 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28929 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28932 if test $ac_cv_header_opagent_h = yes; then
28934 else
28936 echo "Error! You need to have opagent.h around."
28937 exit -1
28944 else
28946 USE_OPROFILE=0
28952 cat >>confdefs.h <<_ACEOF
28953 #define USE_OPROFILE $USE_OPROFILE
28954 _ACEOF
28963 ac_header_dirent=no
28964 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28965 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28966 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28967 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28969 echo $ECHO_N "(cached) $ECHO_C" >&6
28970 else
28971 cat >conftest.$ac_ext <<_ACEOF
28972 /* confdefs.h. */
28973 _ACEOF
28974 cat confdefs.h >>conftest.$ac_ext
28975 cat >>conftest.$ac_ext <<_ACEOF
28976 /* end confdefs.h. */
28977 #include <sys/types.h>
28978 #include <$ac_hdr>
28981 main ()
28983 if ((DIR *) 0)
28984 return 0;
28986 return 0;
28988 _ACEOF
28989 rm -f conftest.$ac_objext
28990 if { (ac_try="$ac_compile"
28991 case "(($ac_try" in
28992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28993 *) ac_try_echo=$ac_try;;
28994 esac
28995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28996 (eval "$ac_compile") 2>conftest.er1
28997 ac_status=$?
28998 grep -v '^ *+' conftest.er1 >conftest.err
28999 rm -f conftest.er1
29000 cat conftest.err >&5
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); } &&
29003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29004 { (case "(($ac_try" in
29005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29006 *) ac_try_echo=$ac_try;;
29007 esac
29008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29009 (eval "$ac_try") 2>&5
29010 ac_status=$?
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); }; } &&
29013 { ac_try='test -s conftest.$ac_objext'
29014 { (case "(($ac_try" in
29015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29016 *) ac_try_echo=$ac_try;;
29017 esac
29018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29019 (eval "$ac_try") 2>&5
29020 ac_status=$?
29021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); }; }; then
29023 eval "$as_ac_Header=yes"
29024 else
29025 echo "$as_me: failed program was:" >&5
29026 sed 's/^/| /' conftest.$ac_ext >&5
29028 eval "$as_ac_Header=no"
29031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29033 ac_res=`eval echo '${'$as_ac_Header'}'`
29034 { echo "$as_me:$LINENO: result: $ac_res" >&5
29035 echo "${ECHO_T}$ac_res" >&6; }
29036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29037 cat >>confdefs.h <<_ACEOF
29038 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29039 _ACEOF
29041 ac_header_dirent=$ac_hdr; break
29044 done
29045 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29046 if test $ac_header_dirent = dirent.h; then
29047 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29048 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29049 if test "${ac_cv_search_opendir+set}" = set; then
29050 echo $ECHO_N "(cached) $ECHO_C" >&6
29051 else
29052 ac_func_search_save_LIBS=$LIBS
29053 cat >conftest.$ac_ext <<_ACEOF
29054 /* confdefs.h. */
29055 _ACEOF
29056 cat confdefs.h >>conftest.$ac_ext
29057 cat >>conftest.$ac_ext <<_ACEOF
29058 /* end confdefs.h. */
29060 /* Override any GCC internal prototype to avoid an error.
29061 Use char because int might match the return type of a GCC
29062 builtin and then its argument prototype would still apply. */
29063 #ifdef __cplusplus
29064 extern "C"
29065 #endif
29066 char opendir ();
29068 main ()
29070 return opendir ();
29072 return 0;
29074 _ACEOF
29075 for ac_lib in '' dir; do
29076 if test -z "$ac_lib"; then
29077 ac_res="none required"
29078 else
29079 ac_res=-l$ac_lib
29080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29082 rm -f conftest.$ac_objext conftest$ac_exeext
29083 if { (ac_try="$ac_link"
29084 case "(($ac_try" in
29085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29086 *) ac_try_echo=$ac_try;;
29087 esac
29088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29089 (eval "$ac_link") 2>conftest.er1
29090 ac_status=$?
29091 grep -v '^ *+' conftest.er1 >conftest.err
29092 rm -f conftest.er1
29093 cat conftest.err >&5
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); } &&
29096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29097 { (case "(($ac_try" in
29098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29099 *) ac_try_echo=$ac_try;;
29100 esac
29101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29102 (eval "$ac_try") 2>&5
29103 ac_status=$?
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); }; } &&
29106 { ac_try='test -s conftest$ac_exeext'
29107 { (case "(($ac_try" in
29108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29109 *) ac_try_echo=$ac_try;;
29110 esac
29111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29112 (eval "$ac_try") 2>&5
29113 ac_status=$?
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); }; }; then
29116 ac_cv_search_opendir=$ac_res
29117 else
29118 echo "$as_me: failed program was:" >&5
29119 sed 's/^/| /' conftest.$ac_ext >&5
29124 rm -f core conftest.err conftest.$ac_objext \
29125 conftest$ac_exeext
29126 if test "${ac_cv_search_opendir+set}" = set; then
29127 break
29129 done
29130 if test "${ac_cv_search_opendir+set}" = set; then
29132 else
29133 ac_cv_search_opendir=no
29135 rm conftest.$ac_ext
29136 LIBS=$ac_func_search_save_LIBS
29138 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29139 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29140 ac_res=$ac_cv_search_opendir
29141 if test "$ac_res" != no; then
29142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29146 else
29147 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29148 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29149 if test "${ac_cv_search_opendir+set}" = set; then
29150 echo $ECHO_N "(cached) $ECHO_C" >&6
29151 else
29152 ac_func_search_save_LIBS=$LIBS
29153 cat >conftest.$ac_ext <<_ACEOF
29154 /* confdefs.h. */
29155 _ACEOF
29156 cat confdefs.h >>conftest.$ac_ext
29157 cat >>conftest.$ac_ext <<_ACEOF
29158 /* end confdefs.h. */
29160 /* Override any GCC internal prototype to avoid an error.
29161 Use char because int might match the return type of a GCC
29162 builtin and then its argument prototype would still apply. */
29163 #ifdef __cplusplus
29164 extern "C"
29165 #endif
29166 char opendir ();
29168 main ()
29170 return opendir ();
29172 return 0;
29174 _ACEOF
29175 for ac_lib in '' x; do
29176 if test -z "$ac_lib"; then
29177 ac_res="none required"
29178 else
29179 ac_res=-l$ac_lib
29180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29182 rm -f conftest.$ac_objext conftest$ac_exeext
29183 if { (ac_try="$ac_link"
29184 case "(($ac_try" in
29185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29186 *) ac_try_echo=$ac_try;;
29187 esac
29188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29189 (eval "$ac_link") 2>conftest.er1
29190 ac_status=$?
29191 grep -v '^ *+' conftest.er1 >conftest.err
29192 rm -f conftest.er1
29193 cat conftest.err >&5
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); } &&
29196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29197 { (case "(($ac_try" in
29198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199 *) ac_try_echo=$ac_try;;
29200 esac
29201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29202 (eval "$ac_try") 2>&5
29203 ac_status=$?
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); }; } &&
29206 { ac_try='test -s conftest$ac_exeext'
29207 { (case "(($ac_try" in
29208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209 *) ac_try_echo=$ac_try;;
29210 esac
29211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212 (eval "$ac_try") 2>&5
29213 ac_status=$?
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); }; }; then
29216 ac_cv_search_opendir=$ac_res
29217 else
29218 echo "$as_me: failed program was:" >&5
29219 sed 's/^/| /' conftest.$ac_ext >&5
29224 rm -f core conftest.err conftest.$ac_objext \
29225 conftest$ac_exeext
29226 if test "${ac_cv_search_opendir+set}" = set; then
29227 break
29229 done
29230 if test "${ac_cv_search_opendir+set}" = set; then
29232 else
29233 ac_cv_search_opendir=no
29235 rm conftest.$ac_ext
29236 LIBS=$ac_func_search_save_LIBS
29238 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29239 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29240 ac_res=$ac_cv_search_opendir
29241 if test "$ac_res" != no; then
29242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29248 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29249 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29250 if test "${ac_cv_header_mmap_anon+set}" = set; then
29251 echo $ECHO_N "(cached) $ECHO_C" >&6
29252 else
29253 ac_ext=c
29254 ac_cpp='$CPP $CPPFLAGS'
29255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29259 cat >conftest.$ac_ext <<_ACEOF
29260 /* confdefs.h. */
29261 _ACEOF
29262 cat confdefs.h >>conftest.$ac_ext
29263 cat >>conftest.$ac_ext <<_ACEOF
29264 /* end confdefs.h. */
29265 #include <sys/mman.h>
29266 #include <unistd.h>
29267 #include <fcntl.h>
29269 main ()
29271 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29273 return 0;
29275 _ACEOF
29276 rm -f conftest.$ac_objext
29277 if { (ac_try="$ac_compile"
29278 case "(($ac_try" in
29279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29280 *) ac_try_echo=$ac_try;;
29281 esac
29282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29283 (eval "$ac_compile") 2>conftest.er1
29284 ac_status=$?
29285 grep -v '^ *+' conftest.er1 >conftest.err
29286 rm -f conftest.er1
29287 cat conftest.err >&5
29288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289 (exit $ac_status); } &&
29290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29291 { (case "(($ac_try" in
29292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29293 *) ac_try_echo=$ac_try;;
29294 esac
29295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29296 (eval "$ac_try") 2>&5
29297 ac_status=$?
29298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299 (exit $ac_status); }; } &&
29300 { ac_try='test -s conftest.$ac_objext'
29301 { (case "(($ac_try" in
29302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29303 *) ac_try_echo=$ac_try;;
29304 esac
29305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29306 (eval "$ac_try") 2>&5
29307 ac_status=$?
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); }; }; then
29310 ac_cv_header_mmap_anon=yes
29311 else
29312 echo "$as_me: failed program was:" >&5
29313 sed 's/^/| /' conftest.$ac_ext >&5
29315 ac_cv_header_mmap_anon=no
29318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29319 ac_ext=c
29320 ac_cpp='$CPP $CPPFLAGS'
29321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29327 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29328 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29329 if test "$ac_cv_header_mmap_anon" = yes; then
29331 cat >>confdefs.h <<\_ACEOF
29332 #define HAVE_MMAP_ANONYMOUS 1
29333 _ACEOF
29337 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29338 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29339 if test "${ac_cv_header_stat_broken+set}" = set; then
29340 echo $ECHO_N "(cached) $ECHO_C" >&6
29341 else
29342 cat >conftest.$ac_ext <<_ACEOF
29343 /* confdefs.h. */
29344 _ACEOF
29345 cat confdefs.h >>conftest.$ac_ext
29346 cat >>conftest.$ac_ext <<_ACEOF
29347 /* end confdefs.h. */
29348 #include <sys/types.h>
29349 #include <sys/stat.h>
29351 #if defined S_ISBLK && defined S_IFDIR
29352 # if S_ISBLK (S_IFDIR)
29353 You lose.
29354 # endif
29355 #endif
29357 #if defined S_ISBLK && defined S_IFCHR
29358 # if S_ISBLK (S_IFCHR)
29359 You lose.
29360 # endif
29361 #endif
29363 #if defined S_ISLNK && defined S_IFREG
29364 # if S_ISLNK (S_IFREG)
29365 You lose.
29366 # endif
29367 #endif
29369 #if defined S_ISSOCK && defined S_IFREG
29370 # if S_ISSOCK (S_IFREG)
29371 You lose.
29372 # endif
29373 #endif
29375 _ACEOF
29376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29377 $EGREP "You lose" >/dev/null 2>&1; then
29378 ac_cv_header_stat_broken=yes
29379 else
29380 ac_cv_header_stat_broken=no
29382 rm -f conftest*
29385 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29386 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29387 if test $ac_cv_header_stat_broken = yes; then
29389 cat >>confdefs.h <<\_ACEOF
29390 #define STAT_MACROS_BROKEN 1
29391 _ACEOF
29395 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29396 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29397 if test "${ac_cv_header_stdc+set}" = set; then
29398 echo $ECHO_N "(cached) $ECHO_C" >&6
29399 else
29400 cat >conftest.$ac_ext <<_ACEOF
29401 /* confdefs.h. */
29402 _ACEOF
29403 cat confdefs.h >>conftest.$ac_ext
29404 cat >>conftest.$ac_ext <<_ACEOF
29405 /* end confdefs.h. */
29406 #include <stdlib.h>
29407 #include <stdarg.h>
29408 #include <string.h>
29409 #include <float.h>
29412 main ()
29416 return 0;
29418 _ACEOF
29419 rm -f conftest.$ac_objext
29420 if { (ac_try="$ac_compile"
29421 case "(($ac_try" in
29422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29423 *) ac_try_echo=$ac_try;;
29424 esac
29425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29426 (eval "$ac_compile") 2>conftest.er1
29427 ac_status=$?
29428 grep -v '^ *+' conftest.er1 >conftest.err
29429 rm -f conftest.er1
29430 cat conftest.err >&5
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); } &&
29433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29434 { (case "(($ac_try" in
29435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29436 *) ac_try_echo=$ac_try;;
29437 esac
29438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29439 (eval "$ac_try") 2>&5
29440 ac_status=$?
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); }; } &&
29443 { ac_try='test -s conftest.$ac_objext'
29444 { (case "(($ac_try" in
29445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29446 *) ac_try_echo=$ac_try;;
29447 esac
29448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29449 (eval "$ac_try") 2>&5
29450 ac_status=$?
29451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452 (exit $ac_status); }; }; then
29453 ac_cv_header_stdc=yes
29454 else
29455 echo "$as_me: failed program was:" >&5
29456 sed 's/^/| /' conftest.$ac_ext >&5
29458 ac_cv_header_stdc=no
29461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29463 if test $ac_cv_header_stdc = yes; then
29464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29465 cat >conftest.$ac_ext <<_ACEOF
29466 /* confdefs.h. */
29467 _ACEOF
29468 cat confdefs.h >>conftest.$ac_ext
29469 cat >>conftest.$ac_ext <<_ACEOF
29470 /* end confdefs.h. */
29471 #include <string.h>
29473 _ACEOF
29474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29475 $EGREP "memchr" >/dev/null 2>&1; then
29477 else
29478 ac_cv_header_stdc=no
29480 rm -f conftest*
29484 if test $ac_cv_header_stdc = yes; then
29485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29486 cat >conftest.$ac_ext <<_ACEOF
29487 /* confdefs.h. */
29488 _ACEOF
29489 cat confdefs.h >>conftest.$ac_ext
29490 cat >>conftest.$ac_ext <<_ACEOF
29491 /* end confdefs.h. */
29492 #include <stdlib.h>
29494 _ACEOF
29495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29496 $EGREP "free" >/dev/null 2>&1; then
29498 else
29499 ac_cv_header_stdc=no
29501 rm -f conftest*
29505 if test $ac_cv_header_stdc = yes; then
29506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29507 if test "$cross_compiling" = yes; then
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 #include <ctype.h>
29517 #include <stdlib.h>
29518 #if ((' ' & 0x0FF) == 0x020)
29519 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29520 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29521 #else
29522 # define ISLOWER(c) \
29523 (('a' <= (c) && (c) <= 'i') \
29524 || ('j' <= (c) && (c) <= 'r') \
29525 || ('s' <= (c) && (c) <= 'z'))
29526 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29527 #endif
29529 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29531 main ()
29533 int i;
29534 for (i = 0; i < 256; i++)
29535 if (XOR (islower (i), ISLOWER (i))
29536 || toupper (i) != TOUPPER (i))
29537 return 2;
29538 return 0;
29540 _ACEOF
29541 rm -f conftest$ac_exeext
29542 if { (ac_try="$ac_link"
29543 case "(($ac_try" in
29544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29545 *) ac_try_echo=$ac_try;;
29546 esac
29547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29548 (eval "$ac_link") 2>&5
29549 ac_status=$?
29550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29552 { (case "(($ac_try" in
29553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29554 *) ac_try_echo=$ac_try;;
29555 esac
29556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29557 (eval "$ac_try") 2>&5
29558 ac_status=$?
29559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560 (exit $ac_status); }; }; then
29562 else
29563 echo "$as_me: program exited with status $ac_status" >&5
29564 echo "$as_me: failed program was:" >&5
29565 sed 's/^/| /' conftest.$ac_ext >&5
29567 ( exit $ac_status )
29568 ac_cv_header_stdc=no
29570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29576 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29577 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29578 if test $ac_cv_header_stdc = yes; then
29580 cat >>confdefs.h <<\_ACEOF
29581 #define STDC_HEADERS 1
29582 _ACEOF
29586 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29587 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29588 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29589 echo $ECHO_N "(cached) $ECHO_C" >&6
29590 else
29591 cat >conftest.$ac_ext <<_ACEOF
29592 /* confdefs.h. */
29593 _ACEOF
29594 cat confdefs.h >>conftest.$ac_ext
29595 cat >>conftest.$ac_ext <<_ACEOF
29596 /* end confdefs.h. */
29597 #include <sys/types.h>
29598 #include <sys/wait.h>
29599 #ifndef WEXITSTATUS
29600 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29601 #endif
29602 #ifndef WIFEXITED
29603 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29604 #endif
29607 main ()
29609 int s;
29610 wait (&s);
29611 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29613 return 0;
29615 _ACEOF
29616 rm -f conftest.$ac_objext
29617 if { (ac_try="$ac_compile"
29618 case "(($ac_try" in
29619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29620 *) ac_try_echo=$ac_try;;
29621 esac
29622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29623 (eval "$ac_compile") 2>conftest.er1
29624 ac_status=$?
29625 grep -v '^ *+' conftest.er1 >conftest.err
29626 rm -f conftest.er1
29627 cat conftest.err >&5
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); } &&
29630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29631 { (case "(($ac_try" in
29632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29633 *) ac_try_echo=$ac_try;;
29634 esac
29635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29636 (eval "$ac_try") 2>&5
29637 ac_status=$?
29638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); }; } &&
29640 { ac_try='test -s conftest.$ac_objext'
29641 { (case "(($ac_try" in
29642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29643 *) ac_try_echo=$ac_try;;
29644 esac
29645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29646 (eval "$ac_try") 2>&5
29647 ac_status=$?
29648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649 (exit $ac_status); }; }; then
29650 ac_cv_header_sys_wait_h=yes
29651 else
29652 echo "$as_me: failed program was:" >&5
29653 sed 's/^/| /' conftest.$ac_ext >&5
29655 ac_cv_header_sys_wait_h=no
29658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29660 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29661 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29662 if test $ac_cv_header_sys_wait_h = yes; then
29664 cat >>confdefs.h <<\_ACEOF
29665 #define HAVE_SYS_WAIT_H 1
29666 _ACEOF
29670 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29671 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29672 if test "${ac_cv_header_time+set}" = set; then
29673 echo $ECHO_N "(cached) $ECHO_C" >&6
29674 else
29675 cat >conftest.$ac_ext <<_ACEOF
29676 /* confdefs.h. */
29677 _ACEOF
29678 cat confdefs.h >>conftest.$ac_ext
29679 cat >>conftest.$ac_ext <<_ACEOF
29680 /* end confdefs.h. */
29681 #include <sys/types.h>
29682 #include <sys/time.h>
29683 #include <time.h>
29686 main ()
29688 if ((struct tm *) 0)
29689 return 0;
29691 return 0;
29693 _ACEOF
29694 rm -f conftest.$ac_objext
29695 if { (ac_try="$ac_compile"
29696 case "(($ac_try" in
29697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29698 *) ac_try_echo=$ac_try;;
29699 esac
29700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29701 (eval "$ac_compile") 2>conftest.er1
29702 ac_status=$?
29703 grep -v '^ *+' conftest.er1 >conftest.err
29704 rm -f conftest.er1
29705 cat conftest.err >&5
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); } &&
29708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29709 { (case "(($ac_try" in
29710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29711 *) ac_try_echo=$ac_try;;
29712 esac
29713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29714 (eval "$ac_try") 2>&5
29715 ac_status=$?
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); }; } &&
29718 { ac_try='test -s conftest.$ac_objext'
29719 { (case "(($ac_try" in
29720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29721 *) ac_try_echo=$ac_try;;
29722 esac
29723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29724 (eval "$ac_try") 2>&5
29725 ac_status=$?
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); }; }; then
29728 ac_cv_header_time=yes
29729 else
29730 echo "$as_me: failed program was:" >&5
29731 sed 's/^/| /' conftest.$ac_ext >&5
29733 ac_cv_header_time=no
29736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29738 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29739 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29740 if test $ac_cv_header_time = yes; then
29742 cat >>confdefs.h <<\_ACEOF
29743 #define TIME_WITH_SYS_TIME 1
29744 _ACEOF
29755 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29762 echo $ECHO_N "(cached) $ECHO_C" >&6
29764 ac_res=`eval echo '${'$as_ac_Header'}'`
29765 { echo "$as_me:$LINENO: result: $ac_res" >&5
29766 echo "${ECHO_T}$ac_res" >&6; }
29767 else
29768 # Is the header compilable?
29769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29771 cat >conftest.$ac_ext <<_ACEOF
29772 /* confdefs.h. */
29773 _ACEOF
29774 cat confdefs.h >>conftest.$ac_ext
29775 cat >>conftest.$ac_ext <<_ACEOF
29776 /* end confdefs.h. */
29777 $ac_includes_default
29778 #include <$ac_header>
29779 _ACEOF
29780 rm -f conftest.$ac_objext
29781 if { (ac_try="$ac_compile"
29782 case "(($ac_try" in
29783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29784 *) ac_try_echo=$ac_try;;
29785 esac
29786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29787 (eval "$ac_compile") 2>conftest.er1
29788 ac_status=$?
29789 grep -v '^ *+' conftest.er1 >conftest.err
29790 rm -f conftest.er1
29791 cat conftest.err >&5
29792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29793 (exit $ac_status); } &&
29794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29795 { (case "(($ac_try" in
29796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29797 *) ac_try_echo=$ac_try;;
29798 esac
29799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29800 (eval "$ac_try") 2>&5
29801 ac_status=$?
29802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29803 (exit $ac_status); }; } &&
29804 { ac_try='test -s conftest.$ac_objext'
29805 { (case "(($ac_try" in
29806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29807 *) ac_try_echo=$ac_try;;
29808 esac
29809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29810 (eval "$ac_try") 2>&5
29811 ac_status=$?
29812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813 (exit $ac_status); }; }; then
29814 ac_header_compiler=yes
29815 else
29816 echo "$as_me: failed program was:" >&5
29817 sed 's/^/| /' conftest.$ac_ext >&5
29819 ac_header_compiler=no
29822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29824 echo "${ECHO_T}$ac_header_compiler" >&6; }
29826 # Is the header present?
29827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29829 cat >conftest.$ac_ext <<_ACEOF
29830 /* confdefs.h. */
29831 _ACEOF
29832 cat confdefs.h >>conftest.$ac_ext
29833 cat >>conftest.$ac_ext <<_ACEOF
29834 /* end confdefs.h. */
29835 #include <$ac_header>
29836 _ACEOF
29837 if { (ac_try="$ac_cpp conftest.$ac_ext"
29838 case "(($ac_try" in
29839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29840 *) ac_try_echo=$ac_try;;
29841 esac
29842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29844 ac_status=$?
29845 grep -v '^ *+' conftest.er1 >conftest.err
29846 rm -f conftest.er1
29847 cat conftest.err >&5
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); } >/dev/null; then
29850 if test -s conftest.err; then
29851 ac_cpp_err=$ac_c_preproc_warn_flag
29852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29853 else
29854 ac_cpp_err=
29856 else
29857 ac_cpp_err=yes
29859 if test -z "$ac_cpp_err"; then
29860 ac_header_preproc=yes
29861 else
29862 echo "$as_me: failed program was:" >&5
29863 sed 's/^/| /' conftest.$ac_ext >&5
29865 ac_header_preproc=no
29868 rm -f conftest.err conftest.$ac_ext
29869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29870 echo "${ECHO_T}$ac_header_preproc" >&6; }
29872 # So? What about this header?
29873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29874 yes:no: )
29875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29879 ac_header_preproc=yes
29881 no:yes:* )
29882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29894 ( cat <<\_ASBOX
29895 ## ----------------------------------- ##
29896 ## Report this to llvmbugs@cs.uiuc.edu ##
29897 ## ----------------------------------- ##
29898 _ASBOX
29899 ) | sed "s/^/$as_me: WARNING: /" >&2
29901 esac
29902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29905 echo $ECHO_N "(cached) $ECHO_C" >&6
29906 else
29907 eval "$as_ac_Header=\$ac_header_preproc"
29909 ac_res=`eval echo '${'$as_ac_Header'}'`
29910 { echo "$as_me:$LINENO: result: $ac_res" >&5
29911 echo "${ECHO_T}$ac_res" >&6; }
29914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29915 cat >>confdefs.h <<_ACEOF
29916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29917 _ACEOF
29921 done
29929 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29936 echo $ECHO_N "(cached) $ECHO_C" >&6
29938 ac_res=`eval echo '${'$as_ac_Header'}'`
29939 { echo "$as_me:$LINENO: result: $ac_res" >&5
29940 echo "${ECHO_T}$ac_res" >&6; }
29941 else
29942 # Is the header compilable?
29943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29945 cat >conftest.$ac_ext <<_ACEOF
29946 /* confdefs.h. */
29947 _ACEOF
29948 cat confdefs.h >>conftest.$ac_ext
29949 cat >>conftest.$ac_ext <<_ACEOF
29950 /* end confdefs.h. */
29951 $ac_includes_default
29952 #include <$ac_header>
29953 _ACEOF
29954 rm -f conftest.$ac_objext
29955 if { (ac_try="$ac_compile"
29956 case "(($ac_try" in
29957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29958 *) ac_try_echo=$ac_try;;
29959 esac
29960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29961 (eval "$ac_compile") 2>conftest.er1
29962 ac_status=$?
29963 grep -v '^ *+' conftest.er1 >conftest.err
29964 rm -f conftest.er1
29965 cat conftest.err >&5
29966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967 (exit $ac_status); } &&
29968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29969 { (case "(($ac_try" in
29970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29971 *) ac_try_echo=$ac_try;;
29972 esac
29973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29974 (eval "$ac_try") 2>&5
29975 ac_status=$?
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); }; } &&
29978 { ac_try='test -s conftest.$ac_objext'
29979 { (case "(($ac_try" in
29980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29981 *) ac_try_echo=$ac_try;;
29982 esac
29983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29984 (eval "$ac_try") 2>&5
29985 ac_status=$?
29986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987 (exit $ac_status); }; }; then
29988 ac_header_compiler=yes
29989 else
29990 echo "$as_me: failed program was:" >&5
29991 sed 's/^/| /' conftest.$ac_ext >&5
29993 ac_header_compiler=no
29996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29998 echo "${ECHO_T}$ac_header_compiler" >&6; }
30000 # Is the header present?
30001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30003 cat >conftest.$ac_ext <<_ACEOF
30004 /* confdefs.h. */
30005 _ACEOF
30006 cat confdefs.h >>conftest.$ac_ext
30007 cat >>conftest.$ac_ext <<_ACEOF
30008 /* end confdefs.h. */
30009 #include <$ac_header>
30010 _ACEOF
30011 if { (ac_try="$ac_cpp conftest.$ac_ext"
30012 case "(($ac_try" in
30013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30014 *) ac_try_echo=$ac_try;;
30015 esac
30016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30018 ac_status=$?
30019 grep -v '^ *+' conftest.er1 >conftest.err
30020 rm -f conftest.er1
30021 cat conftest.err >&5
30022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30023 (exit $ac_status); } >/dev/null; then
30024 if test -s conftest.err; then
30025 ac_cpp_err=$ac_c_preproc_warn_flag
30026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30027 else
30028 ac_cpp_err=
30030 else
30031 ac_cpp_err=yes
30033 if test -z "$ac_cpp_err"; then
30034 ac_header_preproc=yes
30035 else
30036 echo "$as_me: failed program was:" >&5
30037 sed 's/^/| /' conftest.$ac_ext >&5
30039 ac_header_preproc=no
30042 rm -f conftest.err conftest.$ac_ext
30043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30044 echo "${ECHO_T}$ac_header_preproc" >&6; }
30046 # So? What about this header?
30047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30048 yes:no: )
30049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30053 ac_header_preproc=yes
30055 no:yes:* )
30056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30068 ( cat <<\_ASBOX
30069 ## ----------------------------------- ##
30070 ## Report this to llvmbugs@cs.uiuc.edu ##
30071 ## ----------------------------------- ##
30072 _ASBOX
30073 ) | sed "s/^/$as_me: WARNING: /" >&2
30075 esac
30076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30079 echo $ECHO_N "(cached) $ECHO_C" >&6
30080 else
30081 eval "$as_ac_Header=\$ac_header_preproc"
30083 ac_res=`eval echo '${'$as_ac_Header'}'`
30084 { echo "$as_me:$LINENO: result: $ac_res" >&5
30085 echo "${ECHO_T}$ac_res" >&6; }
30088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30089 cat >>confdefs.h <<_ACEOF
30090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30091 _ACEOF
30095 done
30099 for ac_header in utime.h windows.h
30101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30106 echo $ECHO_N "(cached) $ECHO_C" >&6
30108 ac_res=`eval echo '${'$as_ac_Header'}'`
30109 { echo "$as_me:$LINENO: result: $ac_res" >&5
30110 echo "${ECHO_T}$ac_res" >&6; }
30111 else
30112 # Is the header compilable?
30113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30115 cat >conftest.$ac_ext <<_ACEOF
30116 /* confdefs.h. */
30117 _ACEOF
30118 cat confdefs.h >>conftest.$ac_ext
30119 cat >>conftest.$ac_ext <<_ACEOF
30120 /* end confdefs.h. */
30121 $ac_includes_default
30122 #include <$ac_header>
30123 _ACEOF
30124 rm -f conftest.$ac_objext
30125 if { (ac_try="$ac_compile"
30126 case "(($ac_try" in
30127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30128 *) ac_try_echo=$ac_try;;
30129 esac
30130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30131 (eval "$ac_compile") 2>conftest.er1
30132 ac_status=$?
30133 grep -v '^ *+' conftest.er1 >conftest.err
30134 rm -f conftest.er1
30135 cat conftest.err >&5
30136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); } &&
30138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30139 { (case "(($ac_try" in
30140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30141 *) ac_try_echo=$ac_try;;
30142 esac
30143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30144 (eval "$ac_try") 2>&5
30145 ac_status=$?
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); }; } &&
30148 { ac_try='test -s conftest.$ac_objext'
30149 { (case "(($ac_try" in
30150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30151 *) ac_try_echo=$ac_try;;
30152 esac
30153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30154 (eval "$ac_try") 2>&5
30155 ac_status=$?
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157 (exit $ac_status); }; }; then
30158 ac_header_compiler=yes
30159 else
30160 echo "$as_me: failed program was:" >&5
30161 sed 's/^/| /' conftest.$ac_ext >&5
30163 ac_header_compiler=no
30166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30168 echo "${ECHO_T}$ac_header_compiler" >&6; }
30170 # Is the header present?
30171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30173 cat >conftest.$ac_ext <<_ACEOF
30174 /* confdefs.h. */
30175 _ACEOF
30176 cat confdefs.h >>conftest.$ac_ext
30177 cat >>conftest.$ac_ext <<_ACEOF
30178 /* end confdefs.h. */
30179 #include <$ac_header>
30180 _ACEOF
30181 if { (ac_try="$ac_cpp conftest.$ac_ext"
30182 case "(($ac_try" in
30183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30184 *) ac_try_echo=$ac_try;;
30185 esac
30186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30188 ac_status=$?
30189 grep -v '^ *+' conftest.er1 >conftest.err
30190 rm -f conftest.er1
30191 cat conftest.err >&5
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); } >/dev/null; then
30194 if test -s conftest.err; then
30195 ac_cpp_err=$ac_c_preproc_warn_flag
30196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30197 else
30198 ac_cpp_err=
30200 else
30201 ac_cpp_err=yes
30203 if test -z "$ac_cpp_err"; then
30204 ac_header_preproc=yes
30205 else
30206 echo "$as_me: failed program was:" >&5
30207 sed 's/^/| /' conftest.$ac_ext >&5
30209 ac_header_preproc=no
30212 rm -f conftest.err conftest.$ac_ext
30213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30214 echo "${ECHO_T}$ac_header_preproc" >&6; }
30216 # So? What about this header?
30217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30218 yes:no: )
30219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30223 ac_header_preproc=yes
30225 no:yes:* )
30226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30238 ( cat <<\_ASBOX
30239 ## ----------------------------------- ##
30240 ## Report this to llvmbugs@cs.uiuc.edu ##
30241 ## ----------------------------------- ##
30242 _ASBOX
30243 ) | sed "s/^/$as_me: WARNING: /" >&2
30245 esac
30246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30249 echo $ECHO_N "(cached) $ECHO_C" >&6
30250 else
30251 eval "$as_ac_Header=\$ac_header_preproc"
30253 ac_res=`eval echo '${'$as_ac_Header'}'`
30254 { echo "$as_me:$LINENO: result: $ac_res" >&5
30255 echo "${ECHO_T}$ac_res" >&6; }
30258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30259 cat >>confdefs.h <<_ACEOF
30260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30261 _ACEOF
30265 done
30271 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30278 echo $ECHO_N "(cached) $ECHO_C" >&6
30280 ac_res=`eval echo '${'$as_ac_Header'}'`
30281 { echo "$as_me:$LINENO: result: $ac_res" >&5
30282 echo "${ECHO_T}$ac_res" >&6; }
30283 else
30284 # Is the header compilable?
30285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30287 cat >conftest.$ac_ext <<_ACEOF
30288 /* confdefs.h. */
30289 _ACEOF
30290 cat confdefs.h >>conftest.$ac_ext
30291 cat >>conftest.$ac_ext <<_ACEOF
30292 /* end confdefs.h. */
30293 $ac_includes_default
30294 #include <$ac_header>
30295 _ACEOF
30296 rm -f conftest.$ac_objext
30297 if { (ac_try="$ac_compile"
30298 case "(($ac_try" in
30299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30300 *) ac_try_echo=$ac_try;;
30301 esac
30302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30303 (eval "$ac_compile") 2>conftest.er1
30304 ac_status=$?
30305 grep -v '^ *+' conftest.er1 >conftest.err
30306 rm -f conftest.er1
30307 cat conftest.err >&5
30308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309 (exit $ac_status); } &&
30310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30311 { (case "(($ac_try" in
30312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30313 *) ac_try_echo=$ac_try;;
30314 esac
30315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30316 (eval "$ac_try") 2>&5
30317 ac_status=$?
30318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319 (exit $ac_status); }; } &&
30320 { ac_try='test -s conftest.$ac_objext'
30321 { (case "(($ac_try" in
30322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30323 *) ac_try_echo=$ac_try;;
30324 esac
30325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30326 (eval "$ac_try") 2>&5
30327 ac_status=$?
30328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329 (exit $ac_status); }; }; then
30330 ac_header_compiler=yes
30331 else
30332 echo "$as_me: failed program was:" >&5
30333 sed 's/^/| /' conftest.$ac_ext >&5
30335 ac_header_compiler=no
30338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30340 echo "${ECHO_T}$ac_header_compiler" >&6; }
30342 # Is the header present?
30343 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30345 cat >conftest.$ac_ext <<_ACEOF
30346 /* confdefs.h. */
30347 _ACEOF
30348 cat confdefs.h >>conftest.$ac_ext
30349 cat >>conftest.$ac_ext <<_ACEOF
30350 /* end confdefs.h. */
30351 #include <$ac_header>
30352 _ACEOF
30353 if { (ac_try="$ac_cpp conftest.$ac_ext"
30354 case "(($ac_try" in
30355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30356 *) ac_try_echo=$ac_try;;
30357 esac
30358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30360 ac_status=$?
30361 grep -v '^ *+' conftest.er1 >conftest.err
30362 rm -f conftest.er1
30363 cat conftest.err >&5
30364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365 (exit $ac_status); } >/dev/null; then
30366 if test -s conftest.err; then
30367 ac_cpp_err=$ac_c_preproc_warn_flag
30368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30369 else
30370 ac_cpp_err=
30372 else
30373 ac_cpp_err=yes
30375 if test -z "$ac_cpp_err"; then
30376 ac_header_preproc=yes
30377 else
30378 echo "$as_me: failed program was:" >&5
30379 sed 's/^/| /' conftest.$ac_ext >&5
30381 ac_header_preproc=no
30384 rm -f conftest.err conftest.$ac_ext
30385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30386 echo "${ECHO_T}$ac_header_preproc" >&6; }
30388 # So? What about this header?
30389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30390 yes:no: )
30391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30395 ac_header_preproc=yes
30397 no:yes:* )
30398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30405 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30410 ( cat <<\_ASBOX
30411 ## ----------------------------------- ##
30412 ## Report this to llvmbugs@cs.uiuc.edu ##
30413 ## ----------------------------------- ##
30414 _ASBOX
30415 ) | sed "s/^/$as_me: WARNING: /" >&2
30417 esac
30418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30421 echo $ECHO_N "(cached) $ECHO_C" >&6
30422 else
30423 eval "$as_ac_Header=\$ac_header_preproc"
30425 ac_res=`eval echo '${'$as_ac_Header'}'`
30426 { echo "$as_me:$LINENO: result: $ac_res" >&5
30427 echo "${ECHO_T}$ac_res" >&6; }
30430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30431 cat >>confdefs.h <<_ACEOF
30432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30433 _ACEOF
30437 done
30443 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30450 echo $ECHO_N "(cached) $ECHO_C" >&6
30452 ac_res=`eval echo '${'$as_ac_Header'}'`
30453 { echo "$as_me:$LINENO: result: $ac_res" >&5
30454 echo "${ECHO_T}$ac_res" >&6; }
30455 else
30456 # Is the header compilable?
30457 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30459 cat >conftest.$ac_ext <<_ACEOF
30460 /* confdefs.h. */
30461 _ACEOF
30462 cat confdefs.h >>conftest.$ac_ext
30463 cat >>conftest.$ac_ext <<_ACEOF
30464 /* end confdefs.h. */
30465 $ac_includes_default
30466 #include <$ac_header>
30467 _ACEOF
30468 rm -f conftest.$ac_objext
30469 if { (ac_try="$ac_compile"
30470 case "(($ac_try" in
30471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30472 *) ac_try_echo=$ac_try;;
30473 esac
30474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30475 (eval "$ac_compile") 2>conftest.er1
30476 ac_status=$?
30477 grep -v '^ *+' conftest.er1 >conftest.err
30478 rm -f conftest.er1
30479 cat conftest.err >&5
30480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30481 (exit $ac_status); } &&
30482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30483 { (case "(($ac_try" in
30484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30485 *) ac_try_echo=$ac_try;;
30486 esac
30487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30488 (eval "$ac_try") 2>&5
30489 ac_status=$?
30490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491 (exit $ac_status); }; } &&
30492 { ac_try='test -s conftest.$ac_objext'
30493 { (case "(($ac_try" in
30494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30495 *) ac_try_echo=$ac_try;;
30496 esac
30497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30498 (eval "$ac_try") 2>&5
30499 ac_status=$?
30500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501 (exit $ac_status); }; }; then
30502 ac_header_compiler=yes
30503 else
30504 echo "$as_me: failed program was:" >&5
30505 sed 's/^/| /' conftest.$ac_ext >&5
30507 ac_header_compiler=no
30510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30512 echo "${ECHO_T}$ac_header_compiler" >&6; }
30514 # Is the header present?
30515 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30517 cat >conftest.$ac_ext <<_ACEOF
30518 /* confdefs.h. */
30519 _ACEOF
30520 cat confdefs.h >>conftest.$ac_ext
30521 cat >>conftest.$ac_ext <<_ACEOF
30522 /* end confdefs.h. */
30523 #include <$ac_header>
30524 _ACEOF
30525 if { (ac_try="$ac_cpp conftest.$ac_ext"
30526 case "(($ac_try" in
30527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30528 *) ac_try_echo=$ac_try;;
30529 esac
30530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30532 ac_status=$?
30533 grep -v '^ *+' conftest.er1 >conftest.err
30534 rm -f conftest.er1
30535 cat conftest.err >&5
30536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537 (exit $ac_status); } >/dev/null; then
30538 if test -s conftest.err; then
30539 ac_cpp_err=$ac_c_preproc_warn_flag
30540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30541 else
30542 ac_cpp_err=
30544 else
30545 ac_cpp_err=yes
30547 if test -z "$ac_cpp_err"; then
30548 ac_header_preproc=yes
30549 else
30550 echo "$as_me: failed program was:" >&5
30551 sed 's/^/| /' conftest.$ac_ext >&5
30553 ac_header_preproc=no
30556 rm -f conftest.err conftest.$ac_ext
30557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30558 echo "${ECHO_T}$ac_header_preproc" >&6; }
30560 # So? What about this header?
30561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30562 yes:no: )
30563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30567 ac_header_preproc=yes
30569 no:yes:* )
30570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30582 ( cat <<\_ASBOX
30583 ## ----------------------------------- ##
30584 ## Report this to llvmbugs@cs.uiuc.edu ##
30585 ## ----------------------------------- ##
30586 _ASBOX
30587 ) | sed "s/^/$as_me: WARNING: /" >&2
30589 esac
30590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30593 echo $ECHO_N "(cached) $ECHO_C" >&6
30594 else
30595 eval "$as_ac_Header=\$ac_header_preproc"
30597 ac_res=`eval echo '${'$as_ac_Header'}'`
30598 { echo "$as_me:$LINENO: result: $ac_res" >&5
30599 echo "${ECHO_T}$ac_res" >&6; }
30602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30603 cat >>confdefs.h <<_ACEOF
30604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30605 _ACEOF
30609 done
30611 if test "$ENABLE_THREADS" -eq 1 ; then
30613 for ac_header in pthread.h
30615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30620 echo $ECHO_N "(cached) $ECHO_C" >&6
30622 ac_res=`eval echo '${'$as_ac_Header'}'`
30623 { echo "$as_me:$LINENO: result: $ac_res" >&5
30624 echo "${ECHO_T}$ac_res" >&6; }
30625 else
30626 # Is the header compilable?
30627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30629 cat >conftest.$ac_ext <<_ACEOF
30630 /* confdefs.h. */
30631 _ACEOF
30632 cat confdefs.h >>conftest.$ac_ext
30633 cat >>conftest.$ac_ext <<_ACEOF
30634 /* end confdefs.h. */
30635 $ac_includes_default
30636 #include <$ac_header>
30637 _ACEOF
30638 rm -f conftest.$ac_objext
30639 if { (ac_try="$ac_compile"
30640 case "(($ac_try" in
30641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30642 *) ac_try_echo=$ac_try;;
30643 esac
30644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30645 (eval "$ac_compile") 2>conftest.er1
30646 ac_status=$?
30647 grep -v '^ *+' conftest.er1 >conftest.err
30648 rm -f conftest.er1
30649 cat conftest.err >&5
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); } &&
30652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30653 { (case "(($ac_try" in
30654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30655 *) ac_try_echo=$ac_try;;
30656 esac
30657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30658 (eval "$ac_try") 2>&5
30659 ac_status=$?
30660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661 (exit $ac_status); }; } &&
30662 { ac_try='test -s conftest.$ac_objext'
30663 { (case "(($ac_try" in
30664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30665 *) ac_try_echo=$ac_try;;
30666 esac
30667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30668 (eval "$ac_try") 2>&5
30669 ac_status=$?
30670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671 (exit $ac_status); }; }; then
30672 ac_header_compiler=yes
30673 else
30674 echo "$as_me: failed program was:" >&5
30675 sed 's/^/| /' conftest.$ac_ext >&5
30677 ac_header_compiler=no
30680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30682 echo "${ECHO_T}$ac_header_compiler" >&6; }
30684 # Is the header present?
30685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30687 cat >conftest.$ac_ext <<_ACEOF
30688 /* confdefs.h. */
30689 _ACEOF
30690 cat confdefs.h >>conftest.$ac_ext
30691 cat >>conftest.$ac_ext <<_ACEOF
30692 /* end confdefs.h. */
30693 #include <$ac_header>
30694 _ACEOF
30695 if { (ac_try="$ac_cpp conftest.$ac_ext"
30696 case "(($ac_try" in
30697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30698 *) ac_try_echo=$ac_try;;
30699 esac
30700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30702 ac_status=$?
30703 grep -v '^ *+' conftest.er1 >conftest.err
30704 rm -f conftest.er1
30705 cat conftest.err >&5
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707 (exit $ac_status); } >/dev/null; then
30708 if test -s conftest.err; then
30709 ac_cpp_err=$ac_c_preproc_warn_flag
30710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30711 else
30712 ac_cpp_err=
30714 else
30715 ac_cpp_err=yes
30717 if test -z "$ac_cpp_err"; then
30718 ac_header_preproc=yes
30719 else
30720 echo "$as_me: failed program was:" >&5
30721 sed 's/^/| /' conftest.$ac_ext >&5
30723 ac_header_preproc=no
30726 rm -f conftest.err conftest.$ac_ext
30727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30728 echo "${ECHO_T}$ac_header_preproc" >&6; }
30730 # So? What about this header?
30731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30732 yes:no: )
30733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30737 ac_header_preproc=yes
30739 no:yes:* )
30740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30752 ( cat <<\_ASBOX
30753 ## ----------------------------------- ##
30754 ## Report this to llvmbugs@cs.uiuc.edu ##
30755 ## ----------------------------------- ##
30756 _ASBOX
30757 ) | sed "s/^/$as_me: WARNING: /" >&2
30759 esac
30760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30763 echo $ECHO_N "(cached) $ECHO_C" >&6
30764 else
30765 eval "$as_ac_Header=\$ac_header_preproc"
30767 ac_res=`eval echo '${'$as_ac_Header'}'`
30768 { echo "$as_me:$LINENO: result: $ac_res" >&5
30769 echo "${ECHO_T}$ac_res" >&6; }
30772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30773 cat >>confdefs.h <<_ACEOF
30774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30775 _ACEOF
30776 HAVE_PTHREAD=1
30778 else
30779 HAVE_PTHREAD=0
30783 done
30785 else
30786 HAVE_PTHREAD=0
30790 if test "$llvm_cv_enable_libffi" = "yes" ; then
30793 for ac_header in ffi.h ffi/ffi.h
30795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30800 echo $ECHO_N "(cached) $ECHO_C" >&6
30802 ac_res=`eval echo '${'$as_ac_Header'}'`
30803 { echo "$as_me:$LINENO: result: $ac_res" >&5
30804 echo "${ECHO_T}$ac_res" >&6; }
30805 else
30806 # Is the header compilable?
30807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30809 cat >conftest.$ac_ext <<_ACEOF
30810 /* confdefs.h. */
30811 _ACEOF
30812 cat confdefs.h >>conftest.$ac_ext
30813 cat >>conftest.$ac_ext <<_ACEOF
30814 /* end confdefs.h. */
30815 $ac_includes_default
30816 #include <$ac_header>
30817 _ACEOF
30818 rm -f conftest.$ac_objext
30819 if { (ac_try="$ac_compile"
30820 case "(($ac_try" in
30821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30822 *) ac_try_echo=$ac_try;;
30823 esac
30824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30825 (eval "$ac_compile") 2>conftest.er1
30826 ac_status=$?
30827 grep -v '^ *+' conftest.er1 >conftest.err
30828 rm -f conftest.er1
30829 cat conftest.err >&5
30830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); } &&
30832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
30839 ac_status=$?
30840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841 (exit $ac_status); }; } &&
30842 { ac_try='test -s conftest.$ac_objext'
30843 { (case "(($ac_try" in
30844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30845 *) ac_try_echo=$ac_try;;
30846 esac
30847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30848 (eval "$ac_try") 2>&5
30849 ac_status=$?
30850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851 (exit $ac_status); }; }; then
30852 ac_header_compiler=yes
30853 else
30854 echo "$as_me: failed program was:" >&5
30855 sed 's/^/| /' conftest.$ac_ext >&5
30857 ac_header_compiler=no
30860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30862 echo "${ECHO_T}$ac_header_compiler" >&6; }
30864 # Is the header present?
30865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30867 cat >conftest.$ac_ext <<_ACEOF
30868 /* confdefs.h. */
30869 _ACEOF
30870 cat confdefs.h >>conftest.$ac_ext
30871 cat >>conftest.$ac_ext <<_ACEOF
30872 /* end confdefs.h. */
30873 #include <$ac_header>
30874 _ACEOF
30875 if { (ac_try="$ac_cpp conftest.$ac_ext"
30876 case "(($ac_try" in
30877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30878 *) ac_try_echo=$ac_try;;
30879 esac
30880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30882 ac_status=$?
30883 grep -v '^ *+' conftest.er1 >conftest.err
30884 rm -f conftest.er1
30885 cat conftest.err >&5
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); } >/dev/null; then
30888 if test -s conftest.err; then
30889 ac_cpp_err=$ac_c_preproc_warn_flag
30890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30891 else
30892 ac_cpp_err=
30894 else
30895 ac_cpp_err=yes
30897 if test -z "$ac_cpp_err"; then
30898 ac_header_preproc=yes
30899 else
30900 echo "$as_me: failed program was:" >&5
30901 sed 's/^/| /' conftest.$ac_ext >&5
30903 ac_header_preproc=no
30906 rm -f conftest.err conftest.$ac_ext
30907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30908 echo "${ECHO_T}$ac_header_preproc" >&6; }
30910 # So? What about this header?
30911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30912 yes:no: )
30913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30917 ac_header_preproc=yes
30919 no:yes:* )
30920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30932 ( cat <<\_ASBOX
30933 ## ----------------------------------- ##
30934 ## Report this to llvmbugs@cs.uiuc.edu ##
30935 ## ----------------------------------- ##
30936 _ASBOX
30937 ) | sed "s/^/$as_me: WARNING: /" >&2
30939 esac
30940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30943 echo $ECHO_N "(cached) $ECHO_C" >&6
30944 else
30945 eval "$as_ac_Header=\$ac_header_preproc"
30947 ac_res=`eval echo '${'$as_ac_Header'}'`
30948 { echo "$as_me:$LINENO: result: $ac_res" >&5
30949 echo "${ECHO_T}$ac_res" >&6; }
30952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30953 cat >>confdefs.h <<_ACEOF
30954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30955 _ACEOF
30959 done
30965 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30966 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30967 if test "${ac_cv_huge_val_sanity+set}" = set; then
30968 echo $ECHO_N "(cached) $ECHO_C" >&6
30969 else
30971 ac_ext=cpp
30972 ac_cpp='$CXXCPP $CPPFLAGS'
30973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30977 CXXFLAGS=-pedantic
30978 if test "$cross_compiling" = yes; then
30979 ac_cv_huge_val_sanity=yes
30980 else
30981 cat >conftest.$ac_ext <<_ACEOF
30982 /* confdefs.h. */
30983 _ACEOF
30984 cat confdefs.h >>conftest.$ac_ext
30985 cat >>conftest.$ac_ext <<_ACEOF
30986 /* end confdefs.h. */
30987 #include <math.h>
30989 main ()
30991 double x = HUGE_VAL; return x != x;
30993 return 0;
30995 _ACEOF
30996 rm -f conftest$ac_exeext
30997 if { (ac_try="$ac_link"
30998 case "(($ac_try" in
30999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31000 *) ac_try_echo=$ac_try;;
31001 esac
31002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31003 (eval "$ac_link") 2>&5
31004 ac_status=$?
31005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31007 { (case "(($ac_try" in
31008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31009 *) ac_try_echo=$ac_try;;
31010 esac
31011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31012 (eval "$ac_try") 2>&5
31013 ac_status=$?
31014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015 (exit $ac_status); }; }; then
31016 ac_cv_huge_val_sanity=yes
31017 else
31018 echo "$as_me: program exited with status $ac_status" >&5
31019 echo "$as_me: failed program was:" >&5
31020 sed 's/^/| /' conftest.$ac_ext >&5
31022 ( exit $ac_status )
31023 ac_cv_huge_val_sanity=no
31025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31029 ac_ext=c
31030 ac_cpp='$CPP $CPPFLAGS'
31031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31037 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31038 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31039 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31042 { echo "$as_me:$LINENO: checking for pid_t" >&5
31043 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31044 if test "${ac_cv_type_pid_t+set}" = set; then
31045 echo $ECHO_N "(cached) $ECHO_C" >&6
31046 else
31047 cat >conftest.$ac_ext <<_ACEOF
31048 /* confdefs.h. */
31049 _ACEOF
31050 cat confdefs.h >>conftest.$ac_ext
31051 cat >>conftest.$ac_ext <<_ACEOF
31052 /* end confdefs.h. */
31053 $ac_includes_default
31054 typedef pid_t ac__type_new_;
31056 main ()
31058 if ((ac__type_new_ *) 0)
31059 return 0;
31060 if (sizeof (ac__type_new_))
31061 return 0;
31063 return 0;
31065 _ACEOF
31066 rm -f conftest.$ac_objext
31067 if { (ac_try="$ac_compile"
31068 case "(($ac_try" in
31069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31070 *) ac_try_echo=$ac_try;;
31071 esac
31072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31073 (eval "$ac_compile") 2>conftest.er1
31074 ac_status=$?
31075 grep -v '^ *+' conftest.er1 >conftest.err
31076 rm -f conftest.er1
31077 cat conftest.err >&5
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); } &&
31080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31081 { (case "(($ac_try" in
31082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31083 *) ac_try_echo=$ac_try;;
31084 esac
31085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31086 (eval "$ac_try") 2>&5
31087 ac_status=$?
31088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089 (exit $ac_status); }; } &&
31090 { ac_try='test -s conftest.$ac_objext'
31091 { (case "(($ac_try" in
31092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31093 *) ac_try_echo=$ac_try;;
31094 esac
31095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31096 (eval "$ac_try") 2>&5
31097 ac_status=$?
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); }; }; then
31100 ac_cv_type_pid_t=yes
31101 else
31102 echo "$as_me: failed program was:" >&5
31103 sed 's/^/| /' conftest.$ac_ext >&5
31105 ac_cv_type_pid_t=no
31108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31110 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31111 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31112 if test $ac_cv_type_pid_t = yes; then
31114 else
31116 cat >>confdefs.h <<_ACEOF
31117 #define pid_t int
31118 _ACEOF
31122 { echo "$as_me:$LINENO: checking for size_t" >&5
31123 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31124 if test "${ac_cv_type_size_t+set}" = set; then
31125 echo $ECHO_N "(cached) $ECHO_C" >&6
31126 else
31127 cat >conftest.$ac_ext <<_ACEOF
31128 /* confdefs.h. */
31129 _ACEOF
31130 cat confdefs.h >>conftest.$ac_ext
31131 cat >>conftest.$ac_ext <<_ACEOF
31132 /* end confdefs.h. */
31133 $ac_includes_default
31134 typedef size_t ac__type_new_;
31136 main ()
31138 if ((ac__type_new_ *) 0)
31139 return 0;
31140 if (sizeof (ac__type_new_))
31141 return 0;
31143 return 0;
31145 _ACEOF
31146 rm -f conftest.$ac_objext
31147 if { (ac_try="$ac_compile"
31148 case "(($ac_try" in
31149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31150 *) ac_try_echo=$ac_try;;
31151 esac
31152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31153 (eval "$ac_compile") 2>conftest.er1
31154 ac_status=$?
31155 grep -v '^ *+' conftest.er1 >conftest.err
31156 rm -f conftest.er1
31157 cat conftest.err >&5
31158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159 (exit $ac_status); } &&
31160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31161 { (case "(($ac_try" in
31162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31163 *) ac_try_echo=$ac_try;;
31164 esac
31165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31166 (eval "$ac_try") 2>&5
31167 ac_status=$?
31168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31169 (exit $ac_status); }; } &&
31170 { ac_try='test -s conftest.$ac_objext'
31171 { (case "(($ac_try" in
31172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31173 *) ac_try_echo=$ac_try;;
31174 esac
31175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31176 (eval "$ac_try") 2>&5
31177 ac_status=$?
31178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31179 (exit $ac_status); }; }; then
31180 ac_cv_type_size_t=yes
31181 else
31182 echo "$as_me: failed program was:" >&5
31183 sed 's/^/| /' conftest.$ac_ext >&5
31185 ac_cv_type_size_t=no
31188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31190 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31191 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31192 if test $ac_cv_type_size_t = yes; then
31194 else
31196 cat >>confdefs.h <<_ACEOF
31197 #define size_t unsigned int
31198 _ACEOF
31202 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31203 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31204 if test "${ac_cv_type_signal+set}" = set; then
31205 echo $ECHO_N "(cached) $ECHO_C" >&6
31206 else
31207 cat >conftest.$ac_ext <<_ACEOF
31208 /* confdefs.h. */
31209 _ACEOF
31210 cat confdefs.h >>conftest.$ac_ext
31211 cat >>conftest.$ac_ext <<_ACEOF
31212 /* end confdefs.h. */
31213 #include <sys/types.h>
31214 #include <signal.h>
31217 main ()
31219 return *(signal (0, 0)) (0) == 1;
31221 return 0;
31223 _ACEOF
31224 rm -f conftest.$ac_objext
31225 if { (ac_try="$ac_compile"
31226 case "(($ac_try" in
31227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31228 *) ac_try_echo=$ac_try;;
31229 esac
31230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31231 (eval "$ac_compile") 2>conftest.er1
31232 ac_status=$?
31233 grep -v '^ *+' conftest.er1 >conftest.err
31234 rm -f conftest.er1
31235 cat conftest.err >&5
31236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237 (exit $ac_status); } &&
31238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31239 { (case "(($ac_try" in
31240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31241 *) ac_try_echo=$ac_try;;
31242 esac
31243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31244 (eval "$ac_try") 2>&5
31245 ac_status=$?
31246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31247 (exit $ac_status); }; } &&
31248 { ac_try='test -s conftest.$ac_objext'
31249 { (case "(($ac_try" in
31250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31251 *) ac_try_echo=$ac_try;;
31252 esac
31253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31254 (eval "$ac_try") 2>&5
31255 ac_status=$?
31256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31257 (exit $ac_status); }; }; then
31258 ac_cv_type_signal=int
31259 else
31260 echo "$as_me: failed program was:" >&5
31261 sed 's/^/| /' conftest.$ac_ext >&5
31263 ac_cv_type_signal=void
31266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31268 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31269 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31271 cat >>confdefs.h <<_ACEOF
31272 #define RETSIGTYPE $ac_cv_type_signal
31273 _ACEOF
31276 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31277 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31278 if test "${ac_cv_struct_tm+set}" = set; then
31279 echo $ECHO_N "(cached) $ECHO_C" >&6
31280 else
31281 cat >conftest.$ac_ext <<_ACEOF
31282 /* confdefs.h. */
31283 _ACEOF
31284 cat confdefs.h >>conftest.$ac_ext
31285 cat >>conftest.$ac_ext <<_ACEOF
31286 /* end confdefs.h. */
31287 #include <sys/types.h>
31288 #include <time.h>
31291 main ()
31293 struct tm *tp; tp->tm_sec;
31295 return 0;
31297 _ACEOF
31298 rm -f conftest.$ac_objext
31299 if { (ac_try="$ac_compile"
31300 case "(($ac_try" in
31301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302 *) ac_try_echo=$ac_try;;
31303 esac
31304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305 (eval "$ac_compile") 2>conftest.er1
31306 ac_status=$?
31307 grep -v '^ *+' conftest.er1 >conftest.err
31308 rm -f conftest.er1
31309 cat conftest.err >&5
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); } &&
31312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31313 { (case "(($ac_try" in
31314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31315 *) ac_try_echo=$ac_try;;
31316 esac
31317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31318 (eval "$ac_try") 2>&5
31319 ac_status=$?
31320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31321 (exit $ac_status); }; } &&
31322 { ac_try='test -s conftest.$ac_objext'
31323 { (case "(($ac_try" in
31324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31325 *) ac_try_echo=$ac_try;;
31326 esac
31327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31328 (eval "$ac_try") 2>&5
31329 ac_status=$?
31330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331 (exit $ac_status); }; }; then
31332 ac_cv_struct_tm=time.h
31333 else
31334 echo "$as_me: failed program was:" >&5
31335 sed 's/^/| /' conftest.$ac_ext >&5
31337 ac_cv_struct_tm=sys/time.h
31340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31342 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31343 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31344 if test $ac_cv_struct_tm = sys/time.h; then
31346 cat >>confdefs.h <<\_ACEOF
31347 #define TM_IN_SYS_TIME 1
31348 _ACEOF
31352 { echo "$as_me:$LINENO: checking for int64_t" >&5
31353 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31354 if test "${ac_cv_type_int64_t+set}" = set; then
31355 echo $ECHO_N "(cached) $ECHO_C" >&6
31356 else
31357 cat >conftest.$ac_ext <<_ACEOF
31358 /* confdefs.h. */
31359 _ACEOF
31360 cat confdefs.h >>conftest.$ac_ext
31361 cat >>conftest.$ac_ext <<_ACEOF
31362 /* end confdefs.h. */
31363 $ac_includes_default
31364 typedef int64_t ac__type_new_;
31366 main ()
31368 if ((ac__type_new_ *) 0)
31369 return 0;
31370 if (sizeof (ac__type_new_))
31371 return 0;
31373 return 0;
31375 _ACEOF
31376 rm -f conftest.$ac_objext
31377 if { (ac_try="$ac_compile"
31378 case "(($ac_try" in
31379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31380 *) ac_try_echo=$ac_try;;
31381 esac
31382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31383 (eval "$ac_compile") 2>conftest.er1
31384 ac_status=$?
31385 grep -v '^ *+' conftest.er1 >conftest.err
31386 rm -f conftest.er1
31387 cat conftest.err >&5
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); } &&
31390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31391 { (case "(($ac_try" in
31392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31393 *) ac_try_echo=$ac_try;;
31394 esac
31395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31396 (eval "$ac_try") 2>&5
31397 ac_status=$?
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); }; } &&
31400 { ac_try='test -s conftest.$ac_objext'
31401 { (case "(($ac_try" in
31402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31403 *) ac_try_echo=$ac_try;;
31404 esac
31405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31406 (eval "$ac_try") 2>&5
31407 ac_status=$?
31408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31409 (exit $ac_status); }; }; then
31410 ac_cv_type_int64_t=yes
31411 else
31412 echo "$as_me: failed program was:" >&5
31413 sed 's/^/| /' conftest.$ac_ext >&5
31415 ac_cv_type_int64_t=no
31418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31420 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31421 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31422 if test $ac_cv_type_int64_t = yes; then
31424 cat >>confdefs.h <<_ACEOF
31425 #define HAVE_INT64_T 1
31426 _ACEOF
31429 else
31430 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31431 echo "$as_me: error: Type int64_t required but not found" >&2;}
31432 { (exit 1); exit 1; }; }
31435 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31436 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31437 if test "${ac_cv_type_uint64_t+set}" = set; then
31438 echo $ECHO_N "(cached) $ECHO_C" >&6
31439 else
31440 cat >conftest.$ac_ext <<_ACEOF
31441 /* confdefs.h. */
31442 _ACEOF
31443 cat confdefs.h >>conftest.$ac_ext
31444 cat >>conftest.$ac_ext <<_ACEOF
31445 /* end confdefs.h. */
31446 $ac_includes_default
31447 typedef uint64_t ac__type_new_;
31449 main ()
31451 if ((ac__type_new_ *) 0)
31452 return 0;
31453 if (sizeof (ac__type_new_))
31454 return 0;
31456 return 0;
31458 _ACEOF
31459 rm -f conftest.$ac_objext
31460 if { (ac_try="$ac_compile"
31461 case "(($ac_try" in
31462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31463 *) ac_try_echo=$ac_try;;
31464 esac
31465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31466 (eval "$ac_compile") 2>conftest.er1
31467 ac_status=$?
31468 grep -v '^ *+' conftest.er1 >conftest.err
31469 rm -f conftest.er1
31470 cat conftest.err >&5
31471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31472 (exit $ac_status); } &&
31473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31474 { (case "(($ac_try" in
31475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31476 *) ac_try_echo=$ac_try;;
31477 esac
31478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31479 (eval "$ac_try") 2>&5
31480 ac_status=$?
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); }; } &&
31483 { ac_try='test -s conftest.$ac_objext'
31484 { (case "(($ac_try" in
31485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31486 *) ac_try_echo=$ac_try;;
31487 esac
31488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31489 (eval "$ac_try") 2>&5
31490 ac_status=$?
31491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31492 (exit $ac_status); }; }; then
31493 ac_cv_type_uint64_t=yes
31494 else
31495 echo "$as_me: failed program was:" >&5
31496 sed 's/^/| /' conftest.$ac_ext >&5
31498 ac_cv_type_uint64_t=no
31501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31503 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31504 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31505 if test $ac_cv_type_uint64_t = yes; then
31507 cat >>confdefs.h <<_ACEOF
31508 #define HAVE_UINT64_T 1
31509 _ACEOF
31512 else
31513 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31514 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31515 if test "${ac_cv_type_u_int64_t+set}" = set; then
31516 echo $ECHO_N "(cached) $ECHO_C" >&6
31517 else
31518 cat >conftest.$ac_ext <<_ACEOF
31519 /* confdefs.h. */
31520 _ACEOF
31521 cat confdefs.h >>conftest.$ac_ext
31522 cat >>conftest.$ac_ext <<_ACEOF
31523 /* end confdefs.h. */
31524 $ac_includes_default
31525 typedef u_int64_t ac__type_new_;
31527 main ()
31529 if ((ac__type_new_ *) 0)
31530 return 0;
31531 if (sizeof (ac__type_new_))
31532 return 0;
31534 return 0;
31536 _ACEOF
31537 rm -f conftest.$ac_objext
31538 if { (ac_try="$ac_compile"
31539 case "(($ac_try" in
31540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31541 *) ac_try_echo=$ac_try;;
31542 esac
31543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31544 (eval "$ac_compile") 2>conftest.er1
31545 ac_status=$?
31546 grep -v '^ *+' conftest.er1 >conftest.err
31547 rm -f conftest.er1
31548 cat conftest.err >&5
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); } &&
31551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31552 { (case "(($ac_try" in
31553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31554 *) ac_try_echo=$ac_try;;
31555 esac
31556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31557 (eval "$ac_try") 2>&5
31558 ac_status=$?
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); }; } &&
31561 { ac_try='test -s conftest.$ac_objext'
31562 { (case "(($ac_try" in
31563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31564 *) ac_try_echo=$ac_try;;
31565 esac
31566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31567 (eval "$ac_try") 2>&5
31568 ac_status=$?
31569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31570 (exit $ac_status); }; }; then
31571 ac_cv_type_u_int64_t=yes
31572 else
31573 echo "$as_me: failed program was:" >&5
31574 sed 's/^/| /' conftest.$ac_ext >&5
31576 ac_cv_type_u_int64_t=no
31579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31581 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31582 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31583 if test $ac_cv_type_u_int64_t = yes; then
31585 cat >>confdefs.h <<_ACEOF
31586 #define HAVE_U_INT64_T 1
31587 _ACEOF
31590 else
31591 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31592 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31593 { (exit 1); exit 1; }; }
31607 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31613 echo $ECHO_N "(cached) $ECHO_C" >&6
31614 else
31615 cat >conftest.$ac_ext <<_ACEOF
31616 /* confdefs.h. */
31617 _ACEOF
31618 cat confdefs.h >>conftest.$ac_ext
31619 cat >>conftest.$ac_ext <<_ACEOF
31620 /* end confdefs.h. */
31621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31623 #define $ac_func innocuous_$ac_func
31625 /* System header to define __stub macros and hopefully few prototypes,
31626 which can conflict with char $ac_func (); below.
31627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31628 <limits.h> exists even on freestanding compilers. */
31630 #ifdef __STDC__
31631 # include <limits.h>
31632 #else
31633 # include <assert.h>
31634 #endif
31636 #undef $ac_func
31638 /* Override any GCC internal prototype to avoid an error.
31639 Use char because int might match the return type of a GCC
31640 builtin and then its argument prototype would still apply. */
31641 #ifdef __cplusplus
31642 extern "C"
31643 #endif
31644 char $ac_func ();
31645 /* The GNU C library defines this for functions which it implements
31646 to always fail with ENOSYS. Some functions are actually named
31647 something starting with __ and the normal name is an alias. */
31648 #if defined __stub_$ac_func || defined __stub___$ac_func
31649 choke me
31650 #endif
31653 main ()
31655 return $ac_func ();
31657 return 0;
31659 _ACEOF
31660 rm -f conftest.$ac_objext conftest$ac_exeext
31661 if { (ac_try="$ac_link"
31662 case "(($ac_try" in
31663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664 *) ac_try_echo=$ac_try;;
31665 esac
31666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667 (eval "$ac_link") 2>conftest.er1
31668 ac_status=$?
31669 grep -v '^ *+' conftest.er1 >conftest.err
31670 rm -f conftest.er1
31671 cat conftest.err >&5
31672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); } &&
31674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31675 { (case "(($ac_try" in
31676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31677 *) ac_try_echo=$ac_try;;
31678 esac
31679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31680 (eval "$ac_try") 2>&5
31681 ac_status=$?
31682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683 (exit $ac_status); }; } &&
31684 { ac_try='test -s conftest$ac_exeext'
31685 { (case "(($ac_try" in
31686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31687 *) ac_try_echo=$ac_try;;
31688 esac
31689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31690 (eval "$ac_try") 2>&5
31691 ac_status=$?
31692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); }; }; then
31694 eval "$as_ac_var=yes"
31695 else
31696 echo "$as_me: failed program was:" >&5
31697 sed 's/^/| /' conftest.$ac_ext >&5
31699 eval "$as_ac_var=no"
31702 rm -f core conftest.err conftest.$ac_objext \
31703 conftest$ac_exeext conftest.$ac_ext
31705 ac_res=`eval echo '${'$as_ac_var'}'`
31706 { echo "$as_me:$LINENO: result: $ac_res" >&5
31707 echo "${ECHO_T}$ac_res" >&6; }
31708 if test `eval echo '${'$as_ac_var'}'` = yes; then
31709 cat >>confdefs.h <<_ACEOF
31710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31711 _ACEOF
31714 done
31720 for ac_func in powf fmodf strtof round
31722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31723 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31726 echo $ECHO_N "(cached) $ECHO_C" >&6
31727 else
31728 cat >conftest.$ac_ext <<_ACEOF
31729 /* confdefs.h. */
31730 _ACEOF
31731 cat confdefs.h >>conftest.$ac_ext
31732 cat >>conftest.$ac_ext <<_ACEOF
31733 /* end confdefs.h. */
31734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31736 #define $ac_func innocuous_$ac_func
31738 /* System header to define __stub macros and hopefully few prototypes,
31739 which can conflict with char $ac_func (); below.
31740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31741 <limits.h> exists even on freestanding compilers. */
31743 #ifdef __STDC__
31744 # include <limits.h>
31745 #else
31746 # include <assert.h>
31747 #endif
31749 #undef $ac_func
31751 /* Override any GCC internal prototype to avoid an error.
31752 Use char because int might match the return type of a GCC
31753 builtin and then its argument prototype would still apply. */
31754 #ifdef __cplusplus
31755 extern "C"
31756 #endif
31757 char $ac_func ();
31758 /* The GNU C library defines this for functions which it implements
31759 to always fail with ENOSYS. Some functions are actually named
31760 something starting with __ and the normal name is an alias. */
31761 #if defined __stub_$ac_func || defined __stub___$ac_func
31762 choke me
31763 #endif
31766 main ()
31768 return $ac_func ();
31770 return 0;
31772 _ACEOF
31773 rm -f conftest.$ac_objext conftest$ac_exeext
31774 if { (ac_try="$ac_link"
31775 case "(($ac_try" in
31776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31777 *) ac_try_echo=$ac_try;;
31778 esac
31779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31780 (eval "$ac_link") 2>conftest.er1
31781 ac_status=$?
31782 grep -v '^ *+' conftest.er1 >conftest.err
31783 rm -f conftest.er1
31784 cat conftest.err >&5
31785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31786 (exit $ac_status); } &&
31787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31788 { (case "(($ac_try" in
31789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31790 *) ac_try_echo=$ac_try;;
31791 esac
31792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31793 (eval "$ac_try") 2>&5
31794 ac_status=$?
31795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796 (exit $ac_status); }; } &&
31797 { ac_try='test -s conftest$ac_exeext'
31798 { (case "(($ac_try" in
31799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31800 *) ac_try_echo=$ac_try;;
31801 esac
31802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31803 (eval "$ac_try") 2>&5
31804 ac_status=$?
31805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806 (exit $ac_status); }; }; then
31807 eval "$as_ac_var=yes"
31808 else
31809 echo "$as_me: failed program was:" >&5
31810 sed 's/^/| /' conftest.$ac_ext >&5
31812 eval "$as_ac_var=no"
31815 rm -f core conftest.err conftest.$ac_objext \
31816 conftest$ac_exeext conftest.$ac_ext
31818 ac_res=`eval echo '${'$as_ac_var'}'`
31819 { echo "$as_me:$LINENO: result: $ac_res" >&5
31820 echo "${ECHO_T}$ac_res" >&6; }
31821 if test `eval echo '${'$as_ac_var'}'` = yes; then
31822 cat >>confdefs.h <<_ACEOF
31823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31824 _ACEOF
31827 done
31834 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31840 echo $ECHO_N "(cached) $ECHO_C" >&6
31841 else
31842 cat >conftest.$ac_ext <<_ACEOF
31843 /* confdefs.h. */
31844 _ACEOF
31845 cat confdefs.h >>conftest.$ac_ext
31846 cat >>conftest.$ac_ext <<_ACEOF
31847 /* end confdefs.h. */
31848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31850 #define $ac_func innocuous_$ac_func
31852 /* System header to define __stub macros and hopefully few prototypes,
31853 which can conflict with char $ac_func (); below.
31854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31855 <limits.h> exists even on freestanding compilers. */
31857 #ifdef __STDC__
31858 # include <limits.h>
31859 #else
31860 # include <assert.h>
31861 #endif
31863 #undef $ac_func
31865 /* Override any GCC internal prototype to avoid an error.
31866 Use char because int might match the return type of a GCC
31867 builtin and then its argument prototype would still apply. */
31868 #ifdef __cplusplus
31869 extern "C"
31870 #endif
31871 char $ac_func ();
31872 /* The GNU C library defines this for functions which it implements
31873 to always fail with ENOSYS. Some functions are actually named
31874 something starting with __ and the normal name is an alias. */
31875 #if defined __stub_$ac_func || defined __stub___$ac_func
31876 choke me
31877 #endif
31880 main ()
31882 return $ac_func ();
31884 return 0;
31886 _ACEOF
31887 rm -f conftest.$ac_objext conftest$ac_exeext
31888 if { (ac_try="$ac_link"
31889 case "(($ac_try" in
31890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31891 *) ac_try_echo=$ac_try;;
31892 esac
31893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31894 (eval "$ac_link") 2>conftest.er1
31895 ac_status=$?
31896 grep -v '^ *+' conftest.er1 >conftest.err
31897 rm -f conftest.er1
31898 cat conftest.err >&5
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900 (exit $ac_status); } &&
31901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31902 { (case "(($ac_try" in
31903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31904 *) ac_try_echo=$ac_try;;
31905 esac
31906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31907 (eval "$ac_try") 2>&5
31908 ac_status=$?
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); }; } &&
31911 { ac_try='test -s conftest$ac_exeext'
31912 { (case "(($ac_try" in
31913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31914 *) ac_try_echo=$ac_try;;
31915 esac
31916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31917 (eval "$ac_try") 2>&5
31918 ac_status=$?
31919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920 (exit $ac_status); }; }; then
31921 eval "$as_ac_var=yes"
31922 else
31923 echo "$as_me: failed program was:" >&5
31924 sed 's/^/| /' conftest.$ac_ext >&5
31926 eval "$as_ac_var=no"
31929 rm -f core conftest.err conftest.$ac_objext \
31930 conftest$ac_exeext conftest.$ac_ext
31932 ac_res=`eval echo '${'$as_ac_var'}'`
31933 { echo "$as_me:$LINENO: result: $ac_res" >&5
31934 echo "${ECHO_T}$ac_res" >&6; }
31935 if test `eval echo '${'$as_ac_var'}'` = yes; then
31936 cat >>confdefs.h <<_ACEOF
31937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31938 _ACEOF
31941 done
31946 for ac_func in isatty mkdtemp mkstemp
31948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31952 echo $ECHO_N "(cached) $ECHO_C" >&6
31953 else
31954 cat >conftest.$ac_ext <<_ACEOF
31955 /* confdefs.h. */
31956 _ACEOF
31957 cat confdefs.h >>conftest.$ac_ext
31958 cat >>conftest.$ac_ext <<_ACEOF
31959 /* end confdefs.h. */
31960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31962 #define $ac_func innocuous_$ac_func
31964 /* System header to define __stub macros and hopefully few prototypes,
31965 which can conflict with char $ac_func (); below.
31966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31967 <limits.h> exists even on freestanding compilers. */
31969 #ifdef __STDC__
31970 # include <limits.h>
31971 #else
31972 # include <assert.h>
31973 #endif
31975 #undef $ac_func
31977 /* Override any GCC internal prototype to avoid an error.
31978 Use char because int might match the return type of a GCC
31979 builtin and then its argument prototype would still apply. */
31980 #ifdef __cplusplus
31981 extern "C"
31982 #endif
31983 char $ac_func ();
31984 /* The GNU C library defines this for functions which it implements
31985 to always fail with ENOSYS. Some functions are actually named
31986 something starting with __ and the normal name is an alias. */
31987 #if defined __stub_$ac_func || defined __stub___$ac_func
31988 choke me
31989 #endif
31992 main ()
31994 return $ac_func ();
31996 return 0;
31998 _ACEOF
31999 rm -f conftest.$ac_objext conftest$ac_exeext
32000 if { (ac_try="$ac_link"
32001 case "(($ac_try" in
32002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32003 *) ac_try_echo=$ac_try;;
32004 esac
32005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32006 (eval "$ac_link") 2>conftest.er1
32007 ac_status=$?
32008 grep -v '^ *+' conftest.er1 >conftest.err
32009 rm -f conftest.er1
32010 cat conftest.err >&5
32011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32012 (exit $ac_status); } &&
32013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32014 { (case "(($ac_try" in
32015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32016 *) ac_try_echo=$ac_try;;
32017 esac
32018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32019 (eval "$ac_try") 2>&5
32020 ac_status=$?
32021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022 (exit $ac_status); }; } &&
32023 { ac_try='test -s conftest$ac_exeext'
32024 { (case "(($ac_try" in
32025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026 *) ac_try_echo=$ac_try;;
32027 esac
32028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029 (eval "$ac_try") 2>&5
32030 ac_status=$?
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); }; }; then
32033 eval "$as_ac_var=yes"
32034 else
32035 echo "$as_me: failed program was:" >&5
32036 sed 's/^/| /' conftest.$ac_ext >&5
32038 eval "$as_ac_var=no"
32041 rm -f core conftest.err conftest.$ac_objext \
32042 conftest$ac_exeext conftest.$ac_ext
32044 ac_res=`eval echo '${'$as_ac_var'}'`
32045 { echo "$as_me:$LINENO: result: $ac_res" >&5
32046 echo "${ECHO_T}$ac_res" >&6; }
32047 if test `eval echo '${'$as_ac_var'}'` = yes; then
32048 cat >>confdefs.h <<_ACEOF
32049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32050 _ACEOF
32053 done
32060 for ac_func in mktemp realpath sbrk setrlimit strdup
32062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32063 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32065 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32066 echo $ECHO_N "(cached) $ECHO_C" >&6
32067 else
32068 cat >conftest.$ac_ext <<_ACEOF
32069 /* confdefs.h. */
32070 _ACEOF
32071 cat confdefs.h >>conftest.$ac_ext
32072 cat >>conftest.$ac_ext <<_ACEOF
32073 /* end confdefs.h. */
32074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32076 #define $ac_func innocuous_$ac_func
32078 /* System header to define __stub macros and hopefully few prototypes,
32079 which can conflict with char $ac_func (); below.
32080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32081 <limits.h> exists even on freestanding compilers. */
32083 #ifdef __STDC__
32084 # include <limits.h>
32085 #else
32086 # include <assert.h>
32087 #endif
32089 #undef $ac_func
32091 /* Override any GCC internal prototype to avoid an error.
32092 Use char because int might match the return type of a GCC
32093 builtin and then its argument prototype would still apply. */
32094 #ifdef __cplusplus
32095 extern "C"
32096 #endif
32097 char $ac_func ();
32098 /* The GNU C library defines this for functions which it implements
32099 to always fail with ENOSYS. Some functions are actually named
32100 something starting with __ and the normal name is an alias. */
32101 #if defined __stub_$ac_func || defined __stub___$ac_func
32102 choke me
32103 #endif
32106 main ()
32108 return $ac_func ();
32110 return 0;
32112 _ACEOF
32113 rm -f conftest.$ac_objext conftest$ac_exeext
32114 if { (ac_try="$ac_link"
32115 case "(($ac_try" in
32116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32117 *) ac_try_echo=$ac_try;;
32118 esac
32119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32120 (eval "$ac_link") 2>conftest.er1
32121 ac_status=$?
32122 grep -v '^ *+' conftest.er1 >conftest.err
32123 rm -f conftest.er1
32124 cat conftest.err >&5
32125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32126 (exit $ac_status); } &&
32127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32128 { (case "(($ac_try" in
32129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32130 *) ac_try_echo=$ac_try;;
32131 esac
32132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32133 (eval "$ac_try") 2>&5
32134 ac_status=$?
32135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136 (exit $ac_status); }; } &&
32137 { ac_try='test -s conftest$ac_exeext'
32138 { (case "(($ac_try" in
32139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32140 *) ac_try_echo=$ac_try;;
32141 esac
32142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32143 (eval "$ac_try") 2>&5
32144 ac_status=$?
32145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32146 (exit $ac_status); }; }; then
32147 eval "$as_ac_var=yes"
32148 else
32149 echo "$as_me: failed program was:" >&5
32150 sed 's/^/| /' conftest.$ac_ext >&5
32152 eval "$as_ac_var=no"
32155 rm -f core conftest.err conftest.$ac_objext \
32156 conftest$ac_exeext conftest.$ac_ext
32158 ac_res=`eval echo '${'$as_ac_var'}'`
32159 { echo "$as_me:$LINENO: result: $ac_res" >&5
32160 echo "${ECHO_T}$ac_res" >&6; }
32161 if test `eval echo '${'$as_ac_var'}'` = yes; then
32162 cat >>confdefs.h <<_ACEOF
32163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32164 _ACEOF
32167 done
32173 for ac_func in strerror strerror_r strerror_s setenv
32175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32179 echo $ECHO_N "(cached) $ECHO_C" >&6
32180 else
32181 cat >conftest.$ac_ext <<_ACEOF
32182 /* confdefs.h. */
32183 _ACEOF
32184 cat confdefs.h >>conftest.$ac_ext
32185 cat >>conftest.$ac_ext <<_ACEOF
32186 /* end confdefs.h. */
32187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32189 #define $ac_func innocuous_$ac_func
32191 /* System header to define __stub macros and hopefully few prototypes,
32192 which can conflict with char $ac_func (); below.
32193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32194 <limits.h> exists even on freestanding compilers. */
32196 #ifdef __STDC__
32197 # include <limits.h>
32198 #else
32199 # include <assert.h>
32200 #endif
32202 #undef $ac_func
32204 /* Override any GCC internal prototype to avoid an error.
32205 Use char because int might match the return type of a GCC
32206 builtin and then its argument prototype would still apply. */
32207 #ifdef __cplusplus
32208 extern "C"
32209 #endif
32210 char $ac_func ();
32211 /* The GNU C library defines this for functions which it implements
32212 to always fail with ENOSYS. Some functions are actually named
32213 something starting with __ and the normal name is an alias. */
32214 #if defined __stub_$ac_func || defined __stub___$ac_func
32215 choke me
32216 #endif
32219 main ()
32221 return $ac_func ();
32223 return 0;
32225 _ACEOF
32226 rm -f conftest.$ac_objext conftest$ac_exeext
32227 if { (ac_try="$ac_link"
32228 case "(($ac_try" in
32229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32230 *) ac_try_echo=$ac_try;;
32231 esac
32232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32233 (eval "$ac_link") 2>conftest.er1
32234 ac_status=$?
32235 grep -v '^ *+' conftest.er1 >conftest.err
32236 rm -f conftest.er1
32237 cat conftest.err >&5
32238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32239 (exit $ac_status); } &&
32240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32241 { (case "(($ac_try" in
32242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32243 *) ac_try_echo=$ac_try;;
32244 esac
32245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32246 (eval "$ac_try") 2>&5
32247 ac_status=$?
32248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32249 (exit $ac_status); }; } &&
32250 { ac_try='test -s conftest$ac_exeext'
32251 { (case "(($ac_try" in
32252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32253 *) ac_try_echo=$ac_try;;
32254 esac
32255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32256 (eval "$ac_try") 2>&5
32257 ac_status=$?
32258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32259 (exit $ac_status); }; }; then
32260 eval "$as_ac_var=yes"
32261 else
32262 echo "$as_me: failed program was:" >&5
32263 sed 's/^/| /' conftest.$ac_ext >&5
32265 eval "$as_ac_var=no"
32268 rm -f core conftest.err conftest.$ac_objext \
32269 conftest$ac_exeext conftest.$ac_ext
32271 ac_res=`eval echo '${'$as_ac_var'}'`
32272 { echo "$as_me:$LINENO: result: $ac_res" >&5
32273 echo "${ECHO_T}$ac_res" >&6; }
32274 if test `eval echo '${'$as_ac_var'}'` = yes; then
32275 cat >>confdefs.h <<_ACEOF
32276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32277 _ACEOF
32280 done
32286 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32292 echo $ECHO_N "(cached) $ECHO_C" >&6
32293 else
32294 cat >conftest.$ac_ext <<_ACEOF
32295 /* confdefs.h. */
32296 _ACEOF
32297 cat confdefs.h >>conftest.$ac_ext
32298 cat >>conftest.$ac_ext <<_ACEOF
32299 /* end confdefs.h. */
32300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32302 #define $ac_func innocuous_$ac_func
32304 /* System header to define __stub macros and hopefully few prototypes,
32305 which can conflict with char $ac_func (); below.
32306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32307 <limits.h> exists even on freestanding compilers. */
32309 #ifdef __STDC__
32310 # include <limits.h>
32311 #else
32312 # include <assert.h>
32313 #endif
32315 #undef $ac_func
32317 /* Override any GCC internal prototype to avoid an error.
32318 Use char because int might match the return type of a GCC
32319 builtin and then its argument prototype would still apply. */
32320 #ifdef __cplusplus
32321 extern "C"
32322 #endif
32323 char $ac_func ();
32324 /* The GNU C library defines this for functions which it implements
32325 to always fail with ENOSYS. Some functions are actually named
32326 something starting with __ and the normal name is an alias. */
32327 #if defined __stub_$ac_func || defined __stub___$ac_func
32328 choke me
32329 #endif
32332 main ()
32334 return $ac_func ();
32336 return 0;
32338 _ACEOF
32339 rm -f conftest.$ac_objext conftest$ac_exeext
32340 if { (ac_try="$ac_link"
32341 case "(($ac_try" in
32342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32343 *) ac_try_echo=$ac_try;;
32344 esac
32345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32346 (eval "$ac_link") 2>conftest.er1
32347 ac_status=$?
32348 grep -v '^ *+' conftest.er1 >conftest.err
32349 rm -f conftest.er1
32350 cat conftest.err >&5
32351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352 (exit $ac_status); } &&
32353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32354 { (case "(($ac_try" in
32355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32356 *) ac_try_echo=$ac_try;;
32357 esac
32358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32359 (eval "$ac_try") 2>&5
32360 ac_status=$?
32361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362 (exit $ac_status); }; } &&
32363 { ac_try='test -s conftest$ac_exeext'
32364 { (case "(($ac_try" in
32365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32366 *) ac_try_echo=$ac_try;;
32367 esac
32368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32369 (eval "$ac_try") 2>&5
32370 ac_status=$?
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); }; }; then
32373 eval "$as_ac_var=yes"
32374 else
32375 echo "$as_me: failed program was:" >&5
32376 sed 's/^/| /' conftest.$ac_ext >&5
32378 eval "$as_ac_var=no"
32381 rm -f core conftest.err conftest.$ac_objext \
32382 conftest$ac_exeext conftest.$ac_ext
32384 ac_res=`eval echo '${'$as_ac_var'}'`
32385 { echo "$as_me:$LINENO: result: $ac_res" >&5
32386 echo "${ECHO_T}$ac_res" >&6; }
32387 if test `eval echo '${'$as_ac_var'}'` = yes; then
32388 cat >>confdefs.h <<_ACEOF
32389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32390 _ACEOF
32393 done
32399 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32402 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32405 echo $ECHO_N "(cached) $ECHO_C" >&6
32406 else
32407 cat >conftest.$ac_ext <<_ACEOF
32408 /* confdefs.h. */
32409 _ACEOF
32410 cat confdefs.h >>conftest.$ac_ext
32411 cat >>conftest.$ac_ext <<_ACEOF
32412 /* end confdefs.h. */
32413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32415 #define $ac_func innocuous_$ac_func
32417 /* System header to define __stub macros and hopefully few prototypes,
32418 which can conflict with char $ac_func (); below.
32419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32420 <limits.h> exists even on freestanding compilers. */
32422 #ifdef __STDC__
32423 # include <limits.h>
32424 #else
32425 # include <assert.h>
32426 #endif
32428 #undef $ac_func
32430 /* Override any GCC internal prototype to avoid an error.
32431 Use char because int might match the return type of a GCC
32432 builtin and then its argument prototype would still apply. */
32433 #ifdef __cplusplus
32434 extern "C"
32435 #endif
32436 char $ac_func ();
32437 /* The GNU C library defines this for functions which it implements
32438 to always fail with ENOSYS. Some functions are actually named
32439 something starting with __ and the normal name is an alias. */
32440 #if defined __stub_$ac_func || defined __stub___$ac_func
32441 choke me
32442 #endif
32445 main ()
32447 return $ac_func ();
32449 return 0;
32451 _ACEOF
32452 rm -f conftest.$ac_objext conftest$ac_exeext
32453 if { (ac_try="$ac_link"
32454 case "(($ac_try" in
32455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456 *) ac_try_echo=$ac_try;;
32457 esac
32458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459 (eval "$ac_link") 2>conftest.er1
32460 ac_status=$?
32461 grep -v '^ *+' conftest.er1 >conftest.err
32462 rm -f conftest.er1
32463 cat conftest.err >&5
32464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465 (exit $ac_status); } &&
32466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32467 { (case "(($ac_try" in
32468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32469 *) ac_try_echo=$ac_try;;
32470 esac
32471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32472 (eval "$ac_try") 2>&5
32473 ac_status=$?
32474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475 (exit $ac_status); }; } &&
32476 { ac_try='test -s conftest$ac_exeext'
32477 { (case "(($ac_try" in
32478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32479 *) ac_try_echo=$ac_try;;
32480 esac
32481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32482 (eval "$ac_try") 2>&5
32483 ac_status=$?
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); }; }; then
32486 eval "$as_ac_var=yes"
32487 else
32488 echo "$as_me: failed program was:" >&5
32489 sed 's/^/| /' conftest.$ac_ext >&5
32491 eval "$as_ac_var=no"
32494 rm -f core conftest.err conftest.$ac_objext \
32495 conftest$ac_exeext conftest.$ac_ext
32497 ac_res=`eval echo '${'$as_ac_var'}'`
32498 { echo "$as_me:$LINENO: result: $ac_res" >&5
32499 echo "${ECHO_T}$ac_res" >&6; }
32500 if test `eval echo '${'$as_ac_var'}'` = yes; then
32501 cat >>confdefs.h <<_ACEOF
32502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32503 _ACEOF
32506 done
32508 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32509 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32510 if test "${llvm_cv_c_printf_a+set}" = set; then
32511 echo $ECHO_N "(cached) $ECHO_C" >&6
32512 else
32513 ac_ext=c
32514 ac_cpp='$CPP $CPPFLAGS'
32515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32519 if test "$cross_compiling" = yes; then
32520 llvmac_cv_c_printf_a=no
32521 else
32522 cat >conftest.$ac_ext <<_ACEOF
32524 /* confdefs.h. */
32525 _ACEOF
32526 cat confdefs.h >>conftest.$ac_ext
32527 cat >>conftest.$ac_ext <<_ACEOF
32528 /* end confdefs.h. */
32530 #include <stdio.h>
32531 #include <stdlib.h>
32534 main ()
32537 volatile double A, B;
32538 char Buffer[100];
32539 A = 1;
32540 A /= 10.0;
32541 sprintf(Buffer, "%a", A);
32542 B = atof(Buffer);
32543 if (A != B)
32544 return (1);
32545 if (A != 0x1.999999999999ap-4)
32546 return (1);
32547 return (0);
32549 return 0;
32551 _ACEOF
32552 rm -f conftest$ac_exeext
32553 if { (ac_try="$ac_link"
32554 case "(($ac_try" in
32555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32556 *) ac_try_echo=$ac_try;;
32557 esac
32558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32559 (eval "$ac_link") 2>&5
32560 ac_status=$?
32561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32563 { (case "(($ac_try" in
32564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32565 *) ac_try_echo=$ac_try;;
32566 esac
32567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32568 (eval "$ac_try") 2>&5
32569 ac_status=$?
32570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32571 (exit $ac_status); }; }; then
32572 llvm_cv_c_printf_a=yes
32573 else
32574 echo "$as_me: program exited with status $ac_status" >&5
32575 echo "$as_me: failed program was:" >&5
32576 sed 's/^/| /' conftest.$ac_ext >&5
32578 ( exit $ac_status )
32579 llvmac_cv_c_printf_a=no
32581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32585 ac_ext=c
32586 ac_cpp='$CPP $CPPFLAGS'
32587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32592 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32593 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32594 if test "$llvm_cv_c_printf_a" = "yes"; then
32596 cat >>confdefs.h <<\_ACEOF
32597 #define HAVE_PRINTF_A 1
32598 _ACEOF
32602 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32603 # for constant arguments. Useless!
32604 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32605 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32606 if test "${ac_cv_working_alloca_h+set}" = set; then
32607 echo $ECHO_N "(cached) $ECHO_C" >&6
32608 else
32609 cat >conftest.$ac_ext <<_ACEOF
32610 /* confdefs.h. */
32611 _ACEOF
32612 cat confdefs.h >>conftest.$ac_ext
32613 cat >>conftest.$ac_ext <<_ACEOF
32614 /* end confdefs.h. */
32615 #include <alloca.h>
32617 main ()
32619 char *p = (char *) alloca (2 * sizeof (int));
32620 if (p) return 0;
32622 return 0;
32624 _ACEOF
32625 rm -f conftest.$ac_objext conftest$ac_exeext
32626 if { (ac_try="$ac_link"
32627 case "(($ac_try" in
32628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32629 *) ac_try_echo=$ac_try;;
32630 esac
32631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32632 (eval "$ac_link") 2>conftest.er1
32633 ac_status=$?
32634 grep -v '^ *+' conftest.er1 >conftest.err
32635 rm -f conftest.er1
32636 cat conftest.err >&5
32637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638 (exit $ac_status); } &&
32639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32640 { (case "(($ac_try" in
32641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32642 *) ac_try_echo=$ac_try;;
32643 esac
32644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32645 (eval "$ac_try") 2>&5
32646 ac_status=$?
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); }; } &&
32649 { ac_try='test -s conftest$ac_exeext'
32650 { (case "(($ac_try" in
32651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32652 *) ac_try_echo=$ac_try;;
32653 esac
32654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32655 (eval "$ac_try") 2>&5
32656 ac_status=$?
32657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); }; }; then
32659 ac_cv_working_alloca_h=yes
32660 else
32661 echo "$as_me: failed program was:" >&5
32662 sed 's/^/| /' conftest.$ac_ext >&5
32664 ac_cv_working_alloca_h=no
32667 rm -f core conftest.err conftest.$ac_objext \
32668 conftest$ac_exeext conftest.$ac_ext
32670 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32671 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32672 if test $ac_cv_working_alloca_h = yes; then
32674 cat >>confdefs.h <<\_ACEOF
32675 #define HAVE_ALLOCA_H 1
32676 _ACEOF
32680 { echo "$as_me:$LINENO: checking for alloca" >&5
32681 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32682 if test "${ac_cv_func_alloca_works+set}" = set; then
32683 echo $ECHO_N "(cached) $ECHO_C" >&6
32684 else
32685 cat >conftest.$ac_ext <<_ACEOF
32686 /* confdefs.h. */
32687 _ACEOF
32688 cat confdefs.h >>conftest.$ac_ext
32689 cat >>conftest.$ac_ext <<_ACEOF
32690 /* end confdefs.h. */
32691 #ifdef __GNUC__
32692 # define alloca __builtin_alloca
32693 #else
32694 # ifdef _MSC_VER
32695 # include <malloc.h>
32696 # define alloca _alloca
32697 # else
32698 # if HAVE_ALLOCA_H
32699 # include <alloca.h>
32700 # else
32701 # ifdef _AIX
32702 #pragma alloca
32703 # else
32704 # ifndef alloca /* predefined by HP cc +Olibcalls */
32705 char *alloca ();
32706 # endif
32707 # endif
32708 # endif
32709 # endif
32710 #endif
32713 main ()
32715 char *p = (char *) alloca (1);
32716 if (p) return 0;
32718 return 0;
32720 _ACEOF
32721 rm -f conftest.$ac_objext conftest$ac_exeext
32722 if { (ac_try="$ac_link"
32723 case "(($ac_try" in
32724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32725 *) ac_try_echo=$ac_try;;
32726 esac
32727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32728 (eval "$ac_link") 2>conftest.er1
32729 ac_status=$?
32730 grep -v '^ *+' conftest.er1 >conftest.err
32731 rm -f conftest.er1
32732 cat conftest.err >&5
32733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32734 (exit $ac_status); } &&
32735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32736 { (case "(($ac_try" in
32737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32738 *) ac_try_echo=$ac_try;;
32739 esac
32740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32741 (eval "$ac_try") 2>&5
32742 ac_status=$?
32743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32744 (exit $ac_status); }; } &&
32745 { ac_try='test -s conftest$ac_exeext'
32746 { (case "(($ac_try" in
32747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32748 *) ac_try_echo=$ac_try;;
32749 esac
32750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32751 (eval "$ac_try") 2>&5
32752 ac_status=$?
32753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754 (exit $ac_status); }; }; then
32755 ac_cv_func_alloca_works=yes
32756 else
32757 echo "$as_me: failed program was:" >&5
32758 sed 's/^/| /' conftest.$ac_ext >&5
32760 ac_cv_func_alloca_works=no
32763 rm -f core conftest.err conftest.$ac_objext \
32764 conftest$ac_exeext conftest.$ac_ext
32766 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32767 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32769 if test $ac_cv_func_alloca_works = yes; then
32771 cat >>confdefs.h <<\_ACEOF
32772 #define HAVE_ALLOCA 1
32773 _ACEOF
32775 else
32776 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32777 # that cause trouble. Some versions do not even contain alloca or
32778 # contain a buggy version. If you still want to use their alloca,
32779 # use ar to extract alloca.o from them instead of compiling alloca.c.
32781 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32783 cat >>confdefs.h <<\_ACEOF
32784 #define C_ALLOCA 1
32785 _ACEOF
32788 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32789 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32790 if test "${ac_cv_os_cray+set}" = set; then
32791 echo $ECHO_N "(cached) $ECHO_C" >&6
32792 else
32793 cat >conftest.$ac_ext <<_ACEOF
32794 /* confdefs.h. */
32795 _ACEOF
32796 cat confdefs.h >>conftest.$ac_ext
32797 cat >>conftest.$ac_ext <<_ACEOF
32798 /* end confdefs.h. */
32799 #if defined CRAY && ! defined CRAY2
32800 webecray
32801 #else
32802 wenotbecray
32803 #endif
32805 _ACEOF
32806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32807 $EGREP "webecray" >/dev/null 2>&1; then
32808 ac_cv_os_cray=yes
32809 else
32810 ac_cv_os_cray=no
32812 rm -f conftest*
32815 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32816 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32817 if test $ac_cv_os_cray = yes; then
32818 for ac_func in _getb67 GETB67 getb67; do
32819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32820 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32823 echo $ECHO_N "(cached) $ECHO_C" >&6
32824 else
32825 cat >conftest.$ac_ext <<_ACEOF
32826 /* confdefs.h. */
32827 _ACEOF
32828 cat confdefs.h >>conftest.$ac_ext
32829 cat >>conftest.$ac_ext <<_ACEOF
32830 /* end confdefs.h. */
32831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32833 #define $ac_func innocuous_$ac_func
32835 /* System header to define __stub macros and hopefully few prototypes,
32836 which can conflict with char $ac_func (); below.
32837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32838 <limits.h> exists even on freestanding compilers. */
32840 #ifdef __STDC__
32841 # include <limits.h>
32842 #else
32843 # include <assert.h>
32844 #endif
32846 #undef $ac_func
32848 /* Override any GCC internal prototype to avoid an error.
32849 Use char because int might match the return type of a GCC
32850 builtin and then its argument prototype would still apply. */
32851 #ifdef __cplusplus
32852 extern "C"
32853 #endif
32854 char $ac_func ();
32855 /* The GNU C library defines this for functions which it implements
32856 to always fail with ENOSYS. Some functions are actually named
32857 something starting with __ and the normal name is an alias. */
32858 #if defined __stub_$ac_func || defined __stub___$ac_func
32859 choke me
32860 #endif
32863 main ()
32865 return $ac_func ();
32867 return 0;
32869 _ACEOF
32870 rm -f conftest.$ac_objext conftest$ac_exeext
32871 if { (ac_try="$ac_link"
32872 case "(($ac_try" in
32873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874 *) ac_try_echo=$ac_try;;
32875 esac
32876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877 (eval "$ac_link") 2>conftest.er1
32878 ac_status=$?
32879 grep -v '^ *+' conftest.er1 >conftest.err
32880 rm -f conftest.er1
32881 cat conftest.err >&5
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); } &&
32884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32885 { (case "(($ac_try" in
32886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32887 *) ac_try_echo=$ac_try;;
32888 esac
32889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32890 (eval "$ac_try") 2>&5
32891 ac_status=$?
32892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893 (exit $ac_status); }; } &&
32894 { ac_try='test -s conftest$ac_exeext'
32895 { (case "(($ac_try" in
32896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32897 *) ac_try_echo=$ac_try;;
32898 esac
32899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32900 (eval "$ac_try") 2>&5
32901 ac_status=$?
32902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903 (exit $ac_status); }; }; then
32904 eval "$as_ac_var=yes"
32905 else
32906 echo "$as_me: failed program was:" >&5
32907 sed 's/^/| /' conftest.$ac_ext >&5
32909 eval "$as_ac_var=no"
32912 rm -f core conftest.err conftest.$ac_objext \
32913 conftest$ac_exeext conftest.$ac_ext
32915 ac_res=`eval echo '${'$as_ac_var'}'`
32916 { echo "$as_me:$LINENO: result: $ac_res" >&5
32917 echo "${ECHO_T}$ac_res" >&6; }
32918 if test `eval echo '${'$as_ac_var'}'` = yes; then
32920 cat >>confdefs.h <<_ACEOF
32921 #define CRAY_STACKSEG_END $ac_func
32922 _ACEOF
32924 break
32927 done
32930 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32931 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32932 if test "${ac_cv_c_stack_direction+set}" = set; then
32933 echo $ECHO_N "(cached) $ECHO_C" >&6
32934 else
32935 if test "$cross_compiling" = yes; then
32936 ac_cv_c_stack_direction=0
32937 else
32938 cat >conftest.$ac_ext <<_ACEOF
32939 /* confdefs.h. */
32940 _ACEOF
32941 cat confdefs.h >>conftest.$ac_ext
32942 cat >>conftest.$ac_ext <<_ACEOF
32943 /* end confdefs.h. */
32944 $ac_includes_default
32946 find_stack_direction ()
32948 static char *addr = 0;
32949 auto char dummy;
32950 if (addr == 0)
32952 addr = &dummy;
32953 return find_stack_direction ();
32955 else
32956 return (&dummy > addr) ? 1 : -1;
32960 main ()
32962 return find_stack_direction () < 0;
32964 _ACEOF
32965 rm -f conftest$ac_exeext
32966 if { (ac_try="$ac_link"
32967 case "(($ac_try" in
32968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969 *) ac_try_echo=$ac_try;;
32970 esac
32971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972 (eval "$ac_link") 2>&5
32973 ac_status=$?
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32976 { (case "(($ac_try" in
32977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32978 *) ac_try_echo=$ac_try;;
32979 esac
32980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32981 (eval "$ac_try") 2>&5
32982 ac_status=$?
32983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32984 (exit $ac_status); }; }; then
32985 ac_cv_c_stack_direction=1
32986 else
32987 echo "$as_me: program exited with status $ac_status" >&5
32988 echo "$as_me: failed program was:" >&5
32989 sed 's/^/| /' conftest.$ac_ext >&5
32991 ( exit $ac_status )
32992 ac_cv_c_stack_direction=-1
32994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32999 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33000 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33002 cat >>confdefs.h <<_ACEOF
33003 #define STACK_DIRECTION $ac_cv_c_stack_direction
33004 _ACEOF
33010 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33011 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33012 if test "${ac_cv_func_rand48+set}" = set; then
33013 echo $ECHO_N "(cached) $ECHO_C" >&6
33014 else
33015 ac_ext=cpp
33016 ac_cpp='$CXXCPP $CPPFLAGS'
33017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33021 cat >conftest.$ac_ext <<_ACEOF
33022 /* confdefs.h. */
33023 _ACEOF
33024 cat confdefs.h >>conftest.$ac_ext
33025 cat >>conftest.$ac_ext <<_ACEOF
33026 /* end confdefs.h. */
33027 #include <stdlib.h>
33029 main ()
33031 srand48(0);lrand48();drand48();
33033 return 0;
33035 _ACEOF
33036 rm -f conftest.$ac_objext
33037 if { (ac_try="$ac_compile"
33038 case "(($ac_try" in
33039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33040 *) ac_try_echo=$ac_try;;
33041 esac
33042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33043 (eval "$ac_compile") 2>conftest.er1
33044 ac_status=$?
33045 grep -v '^ *+' conftest.er1 >conftest.err
33046 rm -f conftest.er1
33047 cat conftest.err >&5
33048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049 (exit $ac_status); } &&
33050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33051 { (case "(($ac_try" in
33052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33053 *) ac_try_echo=$ac_try;;
33054 esac
33055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33056 (eval "$ac_try") 2>&5
33057 ac_status=$?
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); }; } &&
33060 { ac_try='test -s conftest.$ac_objext'
33061 { (case "(($ac_try" in
33062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33063 *) ac_try_echo=$ac_try;;
33064 esac
33065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33066 (eval "$ac_try") 2>&5
33067 ac_status=$?
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); }; }; then
33070 ac_cv_func_rand48=yes
33071 else
33072 echo "$as_me: failed program was:" >&5
33073 sed 's/^/| /' conftest.$ac_ext >&5
33075 ac_cv_func_rand48=no
33078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33079 ac_ext=c
33080 ac_cpp='$CPP $CPPFLAGS'
33081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33086 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33087 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33089 if test "$ac_cv_func_rand48" = "yes" ; then
33091 cat >>confdefs.h <<\_ACEOF
33092 #define HAVE_RAND48 1
33093 _ACEOF
33098 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33099 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33100 if test "${ac_cv_cxx_namespaces+set}" = set; then
33101 echo $ECHO_N "(cached) $ECHO_C" >&6
33102 else
33103 ac_ext=cpp
33104 ac_cpp='$CXXCPP $CPPFLAGS'
33105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33109 cat >conftest.$ac_ext <<_ACEOF
33110 /* confdefs.h. */
33111 _ACEOF
33112 cat confdefs.h >>conftest.$ac_ext
33113 cat >>conftest.$ac_ext <<_ACEOF
33114 /* end confdefs.h. */
33115 namespace Outer { namespace Inner { int i = 0; }}
33117 main ()
33119 using namespace Outer::Inner; return i;
33121 return 0;
33123 _ACEOF
33124 rm -f conftest.$ac_objext
33125 if { (ac_try="$ac_compile"
33126 case "(($ac_try" in
33127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33128 *) ac_try_echo=$ac_try;;
33129 esac
33130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33131 (eval "$ac_compile") 2>conftest.er1
33132 ac_status=$?
33133 grep -v '^ *+' conftest.er1 >conftest.err
33134 rm -f conftest.er1
33135 cat conftest.err >&5
33136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137 (exit $ac_status); } &&
33138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33139 { (case "(($ac_try" in
33140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33141 *) ac_try_echo=$ac_try;;
33142 esac
33143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33144 (eval "$ac_try") 2>&5
33145 ac_status=$?
33146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147 (exit $ac_status); }; } &&
33148 { ac_try='test -s conftest.$ac_objext'
33149 { (case "(($ac_try" in
33150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33151 *) ac_try_echo=$ac_try;;
33152 esac
33153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33154 (eval "$ac_try") 2>&5
33155 ac_status=$?
33156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33157 (exit $ac_status); }; }; then
33158 ac_cv_cxx_namespaces=yes
33159 else
33160 echo "$as_me: failed program was:" >&5
33161 sed 's/^/| /' conftest.$ac_ext >&5
33163 ac_cv_cxx_namespaces=no
33166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33167 ac_ext=c
33168 ac_cpp='$CPP $CPPFLAGS'
33169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33175 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33176 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33177 if test "$ac_cv_cxx_namespaces" = yes; then
33179 cat >>confdefs.h <<\_ACEOF
33180 #define HAVE_NAMESPACES
33181 _ACEOF
33185 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33186 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33187 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33188 echo $ECHO_N "(cached) $ECHO_C" >&6
33189 else
33191 ac_ext=cpp
33192 ac_cpp='$CXXCPP $CPPFLAGS'
33193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33197 cat >conftest.$ac_ext <<_ACEOF
33198 /* confdefs.h. */
33199 _ACEOF
33200 cat confdefs.h >>conftest.$ac_ext
33201 cat >>conftest.$ac_ext <<_ACEOF
33202 /* end confdefs.h. */
33203 #include <iterator>
33204 #ifdef HAVE_NAMESPACES
33205 using namespace std;
33206 #endif
33208 main ()
33210 iterator<int,int,int> t; return 0;
33212 return 0;
33214 _ACEOF
33215 rm -f conftest.$ac_objext
33216 if { (ac_try="$ac_compile"
33217 case "(($ac_try" in
33218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33219 *) ac_try_echo=$ac_try;;
33220 esac
33221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33222 (eval "$ac_compile") 2>conftest.er1
33223 ac_status=$?
33224 grep -v '^ *+' conftest.er1 >conftest.err
33225 rm -f conftest.er1
33226 cat conftest.err >&5
33227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228 (exit $ac_status); } &&
33229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33230 { (case "(($ac_try" in
33231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33232 *) ac_try_echo=$ac_try;;
33233 esac
33234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33235 (eval "$ac_try") 2>&5
33236 ac_status=$?
33237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238 (exit $ac_status); }; } &&
33239 { ac_try='test -s conftest.$ac_objext'
33240 { (case "(($ac_try" in
33241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33242 *) ac_try_echo=$ac_try;;
33243 esac
33244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33245 (eval "$ac_try") 2>&5
33246 ac_status=$?
33247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248 (exit $ac_status); }; }; then
33249 ac_cv_cxx_have_std_iterator=yes
33250 else
33251 echo "$as_me: failed program was:" >&5
33252 sed 's/^/| /' conftest.$ac_ext >&5
33254 ac_cv_cxx_have_std_iterator=no
33257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33258 ac_ext=c
33259 ac_cpp='$CPP $CPPFLAGS'
33260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33266 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33267 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33268 if test "$ac_cv_cxx_have_std_iterator" = yes
33269 then
33271 cat >>confdefs.h <<\_ACEOF
33272 #define HAVE_STD_ITERATOR 1
33273 _ACEOF
33275 else
33277 cat >>confdefs.h <<\_ACEOF
33278 #define HAVE_STD_ITERATOR 0
33279 _ACEOF
33283 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33284 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33285 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33286 echo $ECHO_N "(cached) $ECHO_C" >&6
33287 else
33289 ac_ext=cpp
33290 ac_cpp='$CXXCPP $CPPFLAGS'
33291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33295 cat >conftest.$ac_ext <<_ACEOF
33296 /* confdefs.h. */
33297 _ACEOF
33298 cat confdefs.h >>conftest.$ac_ext
33299 cat >>conftest.$ac_ext <<_ACEOF
33300 /* end confdefs.h. */
33301 #include <iterator>
33302 #ifdef HAVE_NAMESPACES
33303 using namespace std;
33304 #endif
33306 main ()
33308 bidirectional_iterator<int,int> t; return 0;
33310 return 0;
33312 _ACEOF
33313 rm -f conftest.$ac_objext
33314 if { (ac_try="$ac_compile"
33315 case "(($ac_try" in
33316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33317 *) ac_try_echo=$ac_try;;
33318 esac
33319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33320 (eval "$ac_compile") 2>conftest.er1
33321 ac_status=$?
33322 grep -v '^ *+' conftest.er1 >conftest.err
33323 rm -f conftest.er1
33324 cat conftest.err >&5
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); } &&
33327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33328 { (case "(($ac_try" in
33329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33330 *) ac_try_echo=$ac_try;;
33331 esac
33332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33333 (eval "$ac_try") 2>&5
33334 ac_status=$?
33335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336 (exit $ac_status); }; } &&
33337 { ac_try='test -s conftest.$ac_objext'
33338 { (case "(($ac_try" in
33339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33340 *) ac_try_echo=$ac_try;;
33341 esac
33342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33343 (eval "$ac_try") 2>&5
33344 ac_status=$?
33345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346 (exit $ac_status); }; }; then
33347 ac_cv_cxx_have_bi_iterator=yes
33348 else
33349 echo "$as_me: failed program was:" >&5
33350 sed 's/^/| /' conftest.$ac_ext >&5
33352 ac_cv_cxx_have_bi_iterator=no
33355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33356 ac_ext=c
33357 ac_cpp='$CPP $CPPFLAGS'
33358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33364 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33365 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33366 if test "$ac_cv_cxx_have_bi_iterator" = yes
33367 then
33369 cat >>confdefs.h <<\_ACEOF
33370 #define HAVE_BI_ITERATOR 1
33371 _ACEOF
33373 else
33375 cat >>confdefs.h <<\_ACEOF
33376 #define HAVE_BI_ITERATOR 0
33377 _ACEOF
33381 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33382 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33383 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33384 echo $ECHO_N "(cached) $ECHO_C" >&6
33385 else
33387 ac_ext=cpp
33388 ac_cpp='$CXXCPP $CPPFLAGS'
33389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33393 cat >conftest.$ac_ext <<_ACEOF
33394 /* confdefs.h. */
33395 _ACEOF
33396 cat confdefs.h >>conftest.$ac_ext
33397 cat >>conftest.$ac_ext <<_ACEOF
33398 /* end confdefs.h. */
33399 #include <iterator>
33400 #ifdef HAVE_NAMESPACES
33401 using namespace std;
33402 #endif
33404 main ()
33406 forward_iterator<int,int> t; return 0;
33408 return 0;
33410 _ACEOF
33411 rm -f conftest.$ac_objext
33412 if { (ac_try="$ac_compile"
33413 case "(($ac_try" in
33414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33415 *) ac_try_echo=$ac_try;;
33416 esac
33417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33418 (eval "$ac_compile") 2>conftest.er1
33419 ac_status=$?
33420 grep -v '^ *+' conftest.er1 >conftest.err
33421 rm -f conftest.er1
33422 cat conftest.err >&5
33423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33424 (exit $ac_status); } &&
33425 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33426 { (case "(($ac_try" in
33427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33428 *) ac_try_echo=$ac_try;;
33429 esac
33430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33431 (eval "$ac_try") 2>&5
33432 ac_status=$?
33433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434 (exit $ac_status); }; } &&
33435 { ac_try='test -s conftest.$ac_objext'
33436 { (case "(($ac_try" in
33437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33438 *) ac_try_echo=$ac_try;;
33439 esac
33440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33441 (eval "$ac_try") 2>&5
33442 ac_status=$?
33443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33444 (exit $ac_status); }; }; then
33445 ac_cv_cxx_have_fwd_iterator=yes
33446 else
33447 echo "$as_me: failed program was:" >&5
33448 sed 's/^/| /' conftest.$ac_ext >&5
33450 ac_cv_cxx_have_fwd_iterator=no
33453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33454 ac_ext=c
33455 ac_cpp='$CPP $CPPFLAGS'
33456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33462 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33463 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33464 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33465 then
33467 cat >>confdefs.h <<\_ACEOF
33468 #define HAVE_FWD_ITERATOR 1
33469 _ACEOF
33471 else
33473 cat >>confdefs.h <<\_ACEOF
33474 #define HAVE_FWD_ITERATOR 0
33475 _ACEOF
33480 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33481 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33482 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33483 echo $ECHO_N "(cached) $ECHO_C" >&6
33484 else
33485 ac_ext=cpp
33486 ac_cpp='$CXXCPP $CPPFLAGS'
33487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33491 cat >conftest.$ac_ext <<_ACEOF
33492 /* confdefs.h. */
33493 _ACEOF
33494 cat confdefs.h >>conftest.$ac_ext
33495 cat >>conftest.$ac_ext <<_ACEOF
33496 /* end confdefs.h. */
33497 #include <math.h>
33499 main ()
33501 float f; isnan(f);
33503 return 0;
33505 _ACEOF
33506 rm -f conftest.$ac_objext
33507 if { (ac_try="$ac_compile"
33508 case "(($ac_try" in
33509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33510 *) ac_try_echo=$ac_try;;
33511 esac
33512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33513 (eval "$ac_compile") 2>conftest.er1
33514 ac_status=$?
33515 grep -v '^ *+' conftest.er1 >conftest.err
33516 rm -f conftest.er1
33517 cat conftest.err >&5
33518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33519 (exit $ac_status); } &&
33520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33521 { (case "(($ac_try" in
33522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33523 *) ac_try_echo=$ac_try;;
33524 esac
33525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33526 (eval "$ac_try") 2>&5
33527 ac_status=$?
33528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529 (exit $ac_status); }; } &&
33530 { ac_try='test -s conftest.$ac_objext'
33531 { (case "(($ac_try" in
33532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33533 *) ac_try_echo=$ac_try;;
33534 esac
33535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33536 (eval "$ac_try") 2>&5
33537 ac_status=$?
33538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539 (exit $ac_status); }; }; then
33540 ac_cv_func_isnan_in_math_h=yes
33541 else
33542 echo "$as_me: failed program was:" >&5
33543 sed 's/^/| /' conftest.$ac_ext >&5
33545 ac_cv_func_isnan_in_math_h=no
33548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33549 ac_ext=c
33550 ac_cpp='$CPP $CPPFLAGS'
33551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33556 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33557 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33560 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33562 cat >>confdefs.h <<\_ACEOF
33563 #define HAVE_ISNAN_IN_MATH_H 1
33564 _ACEOF
33568 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33569 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33570 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33571 echo $ECHO_N "(cached) $ECHO_C" >&6
33572 else
33573 ac_ext=cpp
33574 ac_cpp='$CXXCPP $CPPFLAGS'
33575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33579 cat >conftest.$ac_ext <<_ACEOF
33580 /* confdefs.h. */
33581 _ACEOF
33582 cat confdefs.h >>conftest.$ac_ext
33583 cat >>conftest.$ac_ext <<_ACEOF
33584 /* end confdefs.h. */
33585 #include <cmath>
33587 main ()
33589 float f; isnan(f);
33591 return 0;
33593 _ACEOF
33594 rm -f conftest.$ac_objext
33595 if { (ac_try="$ac_compile"
33596 case "(($ac_try" in
33597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33598 *) ac_try_echo=$ac_try;;
33599 esac
33600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33601 (eval "$ac_compile") 2>conftest.er1
33602 ac_status=$?
33603 grep -v '^ *+' conftest.er1 >conftest.err
33604 rm -f conftest.er1
33605 cat conftest.err >&5
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); } &&
33608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33609 { (case "(($ac_try" in
33610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33611 *) ac_try_echo=$ac_try;;
33612 esac
33613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33614 (eval "$ac_try") 2>&5
33615 ac_status=$?
33616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33617 (exit $ac_status); }; } &&
33618 { ac_try='test -s conftest.$ac_objext'
33619 { (case "(($ac_try" in
33620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33621 *) ac_try_echo=$ac_try;;
33622 esac
33623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33624 (eval "$ac_try") 2>&5
33625 ac_status=$?
33626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627 (exit $ac_status); }; }; then
33628 ac_cv_func_isnan_in_cmath=yes
33629 else
33630 echo "$as_me: failed program was:" >&5
33631 sed 's/^/| /' conftest.$ac_ext >&5
33633 ac_cv_func_isnan_in_cmath=no
33636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33637 ac_ext=c
33638 ac_cpp='$CPP $CPPFLAGS'
33639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33644 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33645 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33647 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33649 cat >>confdefs.h <<\_ACEOF
33650 #define HAVE_ISNAN_IN_CMATH 1
33651 _ACEOF
33655 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33656 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33657 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33658 echo $ECHO_N "(cached) $ECHO_C" >&6
33659 else
33660 ac_ext=cpp
33661 ac_cpp='$CXXCPP $CPPFLAGS'
33662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33666 cat >conftest.$ac_ext <<_ACEOF
33667 /* confdefs.h. */
33668 _ACEOF
33669 cat confdefs.h >>conftest.$ac_ext
33670 cat >>conftest.$ac_ext <<_ACEOF
33671 /* end confdefs.h. */
33672 #include <cmath>
33674 main ()
33676 float f; std::isnan(f);
33678 return 0;
33680 _ACEOF
33681 rm -f conftest.$ac_objext
33682 if { (ac_try="$ac_compile"
33683 case "(($ac_try" in
33684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33685 *) ac_try_echo=$ac_try;;
33686 esac
33687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33688 (eval "$ac_compile") 2>conftest.er1
33689 ac_status=$?
33690 grep -v '^ *+' conftest.er1 >conftest.err
33691 rm -f conftest.er1
33692 cat conftest.err >&5
33693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694 (exit $ac_status); } &&
33695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33696 { (case "(($ac_try" in
33697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33698 *) ac_try_echo=$ac_try;;
33699 esac
33700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33701 (eval "$ac_try") 2>&5
33702 ac_status=$?
33703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33704 (exit $ac_status); }; } &&
33705 { ac_try='test -s conftest.$ac_objext'
33706 { (case "(($ac_try" in
33707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33708 *) ac_try_echo=$ac_try;;
33709 esac
33710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33711 (eval "$ac_try") 2>&5
33712 ac_status=$?
33713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33714 (exit $ac_status); }; }; then
33715 ac_cv_func_std_isnan_in_cmath=yes
33716 else
33717 echo "$as_me: failed program was:" >&5
33718 sed 's/^/| /' conftest.$ac_ext >&5
33720 ac_cv_func_std_isnan_in_cmath=no
33723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33724 ac_ext=c
33725 ac_cpp='$CPP $CPPFLAGS'
33726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33731 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33732 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33734 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33736 cat >>confdefs.h <<\_ACEOF
33737 #define HAVE_STD_ISNAN_IN_CMATH 1
33738 _ACEOF
33743 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33744 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33745 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33746 echo $ECHO_N "(cached) $ECHO_C" >&6
33747 else
33748 ac_ext=cpp
33749 ac_cpp='$CXXCPP $CPPFLAGS'
33750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33754 cat >conftest.$ac_ext <<_ACEOF
33755 /* confdefs.h. */
33756 _ACEOF
33757 cat confdefs.h >>conftest.$ac_ext
33758 cat >>conftest.$ac_ext <<_ACEOF
33759 /* end confdefs.h. */
33760 #include <math.h>
33762 main ()
33764 float f; isinf(f);
33766 return 0;
33768 _ACEOF
33769 rm -f conftest.$ac_objext
33770 if { (ac_try="$ac_compile"
33771 case "(($ac_try" in
33772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33773 *) ac_try_echo=$ac_try;;
33774 esac
33775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33776 (eval "$ac_compile") 2>conftest.er1
33777 ac_status=$?
33778 grep -v '^ *+' conftest.er1 >conftest.err
33779 rm -f conftest.er1
33780 cat conftest.err >&5
33781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782 (exit $ac_status); } &&
33783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33784 { (case "(($ac_try" in
33785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33786 *) ac_try_echo=$ac_try;;
33787 esac
33788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33789 (eval "$ac_try") 2>&5
33790 ac_status=$?
33791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792 (exit $ac_status); }; } &&
33793 { ac_try='test -s conftest.$ac_objext'
33794 { (case "(($ac_try" in
33795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33796 *) ac_try_echo=$ac_try;;
33797 esac
33798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33799 (eval "$ac_try") 2>&5
33800 ac_status=$?
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); }; }; then
33803 ac_cv_func_isinf_in_math_h=yes
33804 else
33805 echo "$as_me: failed program was:" >&5
33806 sed 's/^/| /' conftest.$ac_ext >&5
33808 ac_cv_func_isinf_in_math_h=no
33811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33812 ac_ext=c
33813 ac_cpp='$CPP $CPPFLAGS'
33814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33819 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33820 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33822 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33824 cat >>confdefs.h <<\_ACEOF
33825 #define HAVE_ISINF_IN_MATH_H 1
33826 _ACEOF
33830 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33831 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33832 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33833 echo $ECHO_N "(cached) $ECHO_C" >&6
33834 else
33835 ac_ext=cpp
33836 ac_cpp='$CXXCPP $CPPFLAGS'
33837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33841 cat >conftest.$ac_ext <<_ACEOF
33842 /* confdefs.h. */
33843 _ACEOF
33844 cat confdefs.h >>conftest.$ac_ext
33845 cat >>conftest.$ac_ext <<_ACEOF
33846 /* end confdefs.h. */
33847 #include <cmath>
33849 main ()
33851 float f; isinf(f);
33853 return 0;
33855 _ACEOF
33856 rm -f conftest.$ac_objext
33857 if { (ac_try="$ac_compile"
33858 case "(($ac_try" in
33859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33860 *) ac_try_echo=$ac_try;;
33861 esac
33862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33863 (eval "$ac_compile") 2>conftest.er1
33864 ac_status=$?
33865 grep -v '^ *+' conftest.er1 >conftest.err
33866 rm -f conftest.er1
33867 cat conftest.err >&5
33868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33869 (exit $ac_status); } &&
33870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33871 { (case "(($ac_try" in
33872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33873 *) ac_try_echo=$ac_try;;
33874 esac
33875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33876 (eval "$ac_try") 2>&5
33877 ac_status=$?
33878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879 (exit $ac_status); }; } &&
33880 { ac_try='test -s conftest.$ac_objext'
33881 { (case "(($ac_try" in
33882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33883 *) ac_try_echo=$ac_try;;
33884 esac
33885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33886 (eval "$ac_try") 2>&5
33887 ac_status=$?
33888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33889 (exit $ac_status); }; }; then
33890 ac_cv_func_isinf_in_cmath=yes
33891 else
33892 echo "$as_me: failed program was:" >&5
33893 sed 's/^/| /' conftest.$ac_ext >&5
33895 ac_cv_func_isinf_in_cmath=no
33898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33899 ac_ext=c
33900 ac_cpp='$CPP $CPPFLAGS'
33901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33906 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33907 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33909 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33911 cat >>confdefs.h <<\_ACEOF
33912 #define HAVE_ISINF_IN_CMATH 1
33913 _ACEOF
33917 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33918 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33919 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33920 echo $ECHO_N "(cached) $ECHO_C" >&6
33921 else
33922 ac_ext=cpp
33923 ac_cpp='$CXXCPP $CPPFLAGS'
33924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33928 cat >conftest.$ac_ext <<_ACEOF
33929 /* confdefs.h. */
33930 _ACEOF
33931 cat confdefs.h >>conftest.$ac_ext
33932 cat >>conftest.$ac_ext <<_ACEOF
33933 /* end confdefs.h. */
33934 #include <cmath>
33936 main ()
33938 float f; std::isinf(f)}
33940 return 0;
33942 _ACEOF
33943 rm -f conftest.$ac_objext
33944 if { (ac_try="$ac_compile"
33945 case "(($ac_try" in
33946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33947 *) ac_try_echo=$ac_try;;
33948 esac
33949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33950 (eval "$ac_compile") 2>conftest.er1
33951 ac_status=$?
33952 grep -v '^ *+' conftest.er1 >conftest.err
33953 rm -f conftest.er1
33954 cat conftest.err >&5
33955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33956 (exit $ac_status); } &&
33957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33958 { (case "(($ac_try" in
33959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33960 *) ac_try_echo=$ac_try;;
33961 esac
33962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33963 (eval "$ac_try") 2>&5
33964 ac_status=$?
33965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33966 (exit $ac_status); }; } &&
33967 { ac_try='test -s conftest.$ac_objext'
33968 { (case "(($ac_try" in
33969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33970 *) ac_try_echo=$ac_try;;
33971 esac
33972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33973 (eval "$ac_try") 2>&5
33974 ac_status=$?
33975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976 (exit $ac_status); }; }; then
33977 ac_cv_func_std_isinf_in_cmath=yes
33978 else
33979 echo "$as_me: failed program was:" >&5
33980 sed 's/^/| /' conftest.$ac_ext >&5
33982 ac_cv_func_std_isinf_in_cmath=no
33985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33986 ac_ext=c
33987 ac_cpp='$CPP $CPPFLAGS'
33988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33993 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33994 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33996 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33998 cat >>confdefs.h <<\_ACEOF
33999 #define HAVE_STD_ISINF_IN_CMATH 1
34000 _ACEOF
34004 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34005 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34006 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34007 echo $ECHO_N "(cached) $ECHO_C" >&6
34008 else
34009 ac_ext=cpp
34010 ac_cpp='$CXXCPP $CPPFLAGS'
34011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34015 cat >conftest.$ac_ext <<_ACEOF
34016 /* confdefs.h. */
34017 _ACEOF
34018 cat confdefs.h >>conftest.$ac_ext
34019 cat >>conftest.$ac_ext <<_ACEOF
34020 /* end confdefs.h. */
34021 #include <ieeefp.h>
34023 main ()
34025 float f; finite(f);
34027 return 0;
34029 _ACEOF
34030 rm -f conftest.$ac_objext
34031 if { (ac_try="$ac_compile"
34032 case "(($ac_try" in
34033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34034 *) ac_try_echo=$ac_try;;
34035 esac
34036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34037 (eval "$ac_compile") 2>conftest.er1
34038 ac_status=$?
34039 grep -v '^ *+' conftest.er1 >conftest.err
34040 rm -f conftest.er1
34041 cat conftest.err >&5
34042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043 (exit $ac_status); } &&
34044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34045 { (case "(($ac_try" in
34046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34047 *) ac_try_echo=$ac_try;;
34048 esac
34049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34050 (eval "$ac_try") 2>&5
34051 ac_status=$?
34052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34053 (exit $ac_status); }; } &&
34054 { ac_try='test -s conftest.$ac_objext'
34055 { (case "(($ac_try" in
34056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34057 *) ac_try_echo=$ac_try;;
34058 esac
34059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34060 (eval "$ac_try") 2>&5
34061 ac_status=$?
34062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34063 (exit $ac_status); }; }; then
34064 ac_cv_func_finite_in_ieeefp_h=yes
34065 else
34066 echo "$as_me: failed program was:" >&5
34067 sed 's/^/| /' conftest.$ac_ext >&5
34069 ac_cv_func_finite_in_ieeefp_h=no
34072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34073 ac_ext=c
34074 ac_cpp='$CPP $CPPFLAGS'
34075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34080 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34081 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34083 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34085 cat >>confdefs.h <<\_ACEOF
34086 #define HAVE_FINITE_IN_IEEEFP_H 1
34087 _ACEOF
34093 if test "$llvm_cv_platform_type" = "Unix" ; then
34096 for ac_header in stdlib.h unistd.h
34098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34103 echo $ECHO_N "(cached) $ECHO_C" >&6
34105 ac_res=`eval echo '${'$as_ac_Header'}'`
34106 { echo "$as_me:$LINENO: result: $ac_res" >&5
34107 echo "${ECHO_T}$ac_res" >&6; }
34108 else
34109 # Is the header compilable?
34110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34112 cat >conftest.$ac_ext <<_ACEOF
34113 /* confdefs.h. */
34114 _ACEOF
34115 cat confdefs.h >>conftest.$ac_ext
34116 cat >>conftest.$ac_ext <<_ACEOF
34117 /* end confdefs.h. */
34118 $ac_includes_default
34119 #include <$ac_header>
34120 _ACEOF
34121 rm -f conftest.$ac_objext
34122 if { (ac_try="$ac_compile"
34123 case "(($ac_try" in
34124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34125 *) ac_try_echo=$ac_try;;
34126 esac
34127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34128 (eval "$ac_compile") 2>conftest.er1
34129 ac_status=$?
34130 grep -v '^ *+' conftest.er1 >conftest.err
34131 rm -f conftest.er1
34132 cat conftest.err >&5
34133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134 (exit $ac_status); } &&
34135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34136 { (case "(($ac_try" in
34137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34138 *) ac_try_echo=$ac_try;;
34139 esac
34140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34141 (eval "$ac_try") 2>&5
34142 ac_status=$?
34143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144 (exit $ac_status); }; } &&
34145 { ac_try='test -s conftest.$ac_objext'
34146 { (case "(($ac_try" in
34147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34148 *) ac_try_echo=$ac_try;;
34149 esac
34150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34151 (eval "$ac_try") 2>&5
34152 ac_status=$?
34153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34154 (exit $ac_status); }; }; then
34155 ac_header_compiler=yes
34156 else
34157 echo "$as_me: failed program was:" >&5
34158 sed 's/^/| /' conftest.$ac_ext >&5
34160 ac_header_compiler=no
34163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34165 echo "${ECHO_T}$ac_header_compiler" >&6; }
34167 # Is the header present?
34168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34170 cat >conftest.$ac_ext <<_ACEOF
34171 /* confdefs.h. */
34172 _ACEOF
34173 cat confdefs.h >>conftest.$ac_ext
34174 cat >>conftest.$ac_ext <<_ACEOF
34175 /* end confdefs.h. */
34176 #include <$ac_header>
34177 _ACEOF
34178 if { (ac_try="$ac_cpp conftest.$ac_ext"
34179 case "(($ac_try" in
34180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34181 *) ac_try_echo=$ac_try;;
34182 esac
34183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34185 ac_status=$?
34186 grep -v '^ *+' conftest.er1 >conftest.err
34187 rm -f conftest.er1
34188 cat conftest.err >&5
34189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190 (exit $ac_status); } >/dev/null; then
34191 if test -s conftest.err; then
34192 ac_cpp_err=$ac_c_preproc_warn_flag
34193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34194 else
34195 ac_cpp_err=
34197 else
34198 ac_cpp_err=yes
34200 if test -z "$ac_cpp_err"; then
34201 ac_header_preproc=yes
34202 else
34203 echo "$as_me: failed program was:" >&5
34204 sed 's/^/| /' conftest.$ac_ext >&5
34206 ac_header_preproc=no
34209 rm -f conftest.err conftest.$ac_ext
34210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34211 echo "${ECHO_T}$ac_header_preproc" >&6; }
34213 # So? What about this header?
34214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34215 yes:no: )
34216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34220 ac_header_preproc=yes
34222 no:yes:* )
34223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34235 ( cat <<\_ASBOX
34236 ## ----------------------------------- ##
34237 ## Report this to llvmbugs@cs.uiuc.edu ##
34238 ## ----------------------------------- ##
34239 _ASBOX
34240 ) | sed "s/^/$as_me: WARNING: /" >&2
34242 esac
34243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34246 echo $ECHO_N "(cached) $ECHO_C" >&6
34247 else
34248 eval "$as_ac_Header=\$ac_header_preproc"
34250 ac_res=`eval echo '${'$as_ac_Header'}'`
34251 { echo "$as_me:$LINENO: result: $ac_res" >&5
34252 echo "${ECHO_T}$ac_res" >&6; }
34255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34256 cat >>confdefs.h <<_ACEOF
34257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34258 _ACEOF
34262 done
34265 for ac_func in getpagesize
34267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34268 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34270 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34271 echo $ECHO_N "(cached) $ECHO_C" >&6
34272 else
34273 cat >conftest.$ac_ext <<_ACEOF
34274 /* confdefs.h. */
34275 _ACEOF
34276 cat confdefs.h >>conftest.$ac_ext
34277 cat >>conftest.$ac_ext <<_ACEOF
34278 /* end confdefs.h. */
34279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34281 #define $ac_func innocuous_$ac_func
34283 /* System header to define __stub macros and hopefully few prototypes,
34284 which can conflict with char $ac_func (); below.
34285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34286 <limits.h> exists even on freestanding compilers. */
34288 #ifdef __STDC__
34289 # include <limits.h>
34290 #else
34291 # include <assert.h>
34292 #endif
34294 #undef $ac_func
34296 /* Override any GCC internal prototype to avoid an error.
34297 Use char because int might match the return type of a GCC
34298 builtin and then its argument prototype would still apply. */
34299 #ifdef __cplusplus
34300 extern "C"
34301 #endif
34302 char $ac_func ();
34303 /* The GNU C library defines this for functions which it implements
34304 to always fail with ENOSYS. Some functions are actually named
34305 something starting with __ and the normal name is an alias. */
34306 #if defined __stub_$ac_func || defined __stub___$ac_func
34307 choke me
34308 #endif
34311 main ()
34313 return $ac_func ();
34315 return 0;
34317 _ACEOF
34318 rm -f conftest.$ac_objext conftest$ac_exeext
34319 if { (ac_try="$ac_link"
34320 case "(($ac_try" in
34321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34322 *) ac_try_echo=$ac_try;;
34323 esac
34324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34325 (eval "$ac_link") 2>conftest.er1
34326 ac_status=$?
34327 grep -v '^ *+' conftest.er1 >conftest.err
34328 rm -f conftest.er1
34329 cat conftest.err >&5
34330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331 (exit $ac_status); } &&
34332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34333 { (case "(($ac_try" in
34334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34335 *) ac_try_echo=$ac_try;;
34336 esac
34337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34338 (eval "$ac_try") 2>&5
34339 ac_status=$?
34340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34341 (exit $ac_status); }; } &&
34342 { ac_try='test -s conftest$ac_exeext'
34343 { (case "(($ac_try" in
34344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34345 *) ac_try_echo=$ac_try;;
34346 esac
34347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34348 (eval "$ac_try") 2>&5
34349 ac_status=$?
34350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34351 (exit $ac_status); }; }; then
34352 eval "$as_ac_var=yes"
34353 else
34354 echo "$as_me: failed program was:" >&5
34355 sed 's/^/| /' conftest.$ac_ext >&5
34357 eval "$as_ac_var=no"
34360 rm -f core conftest.err conftest.$ac_objext \
34361 conftest$ac_exeext conftest.$ac_ext
34363 ac_res=`eval echo '${'$as_ac_var'}'`
34364 { echo "$as_me:$LINENO: result: $ac_res" >&5
34365 echo "${ECHO_T}$ac_res" >&6; }
34366 if test `eval echo '${'$as_ac_var'}'` = yes; then
34367 cat >>confdefs.h <<_ACEOF
34368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34369 _ACEOF
34372 done
34374 { echo "$as_me:$LINENO: checking for working mmap" >&5
34375 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34376 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34377 echo $ECHO_N "(cached) $ECHO_C" >&6
34378 else
34379 if test "$cross_compiling" = yes; then
34380 ac_cv_func_mmap_fixed_mapped=no
34381 else
34382 cat >conftest.$ac_ext <<_ACEOF
34383 /* confdefs.h. */
34384 _ACEOF
34385 cat confdefs.h >>conftest.$ac_ext
34386 cat >>conftest.$ac_ext <<_ACEOF
34387 /* end confdefs.h. */
34388 $ac_includes_default
34389 /* malloc might have been renamed as rpl_malloc. */
34390 #undef malloc
34392 /* Thanks to Mike Haertel and Jim Avera for this test.
34393 Here is a matrix of mmap possibilities:
34394 mmap private not fixed
34395 mmap private fixed at somewhere currently unmapped
34396 mmap private fixed at somewhere already mapped
34397 mmap shared not fixed
34398 mmap shared fixed at somewhere currently unmapped
34399 mmap shared fixed at somewhere already mapped
34400 For private mappings, we should verify that changes cannot be read()
34401 back from the file, nor mmap's back from the file at a different
34402 address. (There have been systems where private was not correctly
34403 implemented like the infamous i386 svr4.0, and systems where the
34404 VM page cache was not coherent with the file system buffer cache
34405 like early versions of FreeBSD and possibly contemporary NetBSD.)
34406 For shared mappings, we should conversely verify that changes get
34407 propagated back to all the places they're supposed to be.
34409 Grep wants private fixed already mapped.
34410 The main things grep needs to know about mmap are:
34411 * does it exist and is it safe to write into the mmap'd area
34412 * how to use it (BSD variants) */
34414 #include <fcntl.h>
34415 #include <sys/mman.h>
34417 #if !STDC_HEADERS && !HAVE_STDLIB_H
34418 char *malloc ();
34419 #endif
34421 /* This mess was copied from the GNU getpagesize.h. */
34422 #if !HAVE_GETPAGESIZE
34423 /* Assume that all systems that can run configure have sys/param.h. */
34424 # if !HAVE_SYS_PARAM_H
34425 # define HAVE_SYS_PARAM_H 1
34426 # endif
34428 # ifdef _SC_PAGESIZE
34429 # define getpagesize() sysconf(_SC_PAGESIZE)
34430 # else /* no _SC_PAGESIZE */
34431 # if HAVE_SYS_PARAM_H
34432 # include <sys/param.h>
34433 # ifdef EXEC_PAGESIZE
34434 # define getpagesize() EXEC_PAGESIZE
34435 # else /* no EXEC_PAGESIZE */
34436 # ifdef NBPG
34437 # define getpagesize() NBPG * CLSIZE
34438 # ifndef CLSIZE
34439 # define CLSIZE 1
34440 # endif /* no CLSIZE */
34441 # else /* no NBPG */
34442 # ifdef NBPC
34443 # define getpagesize() NBPC
34444 # else /* no NBPC */
34445 # ifdef PAGESIZE
34446 # define getpagesize() PAGESIZE
34447 # endif /* PAGESIZE */
34448 # endif /* no NBPC */
34449 # endif /* no NBPG */
34450 # endif /* no EXEC_PAGESIZE */
34451 # else /* no HAVE_SYS_PARAM_H */
34452 # define getpagesize() 8192 /* punt totally */
34453 # endif /* no HAVE_SYS_PARAM_H */
34454 # endif /* no _SC_PAGESIZE */
34456 #endif /* no HAVE_GETPAGESIZE */
34459 main ()
34461 char *data, *data2, *data3;
34462 int i, pagesize;
34463 int fd;
34465 pagesize = getpagesize ();
34467 /* First, make a file with some known garbage in it. */
34468 data = (char *) malloc (pagesize);
34469 if (!data)
34470 return 1;
34471 for (i = 0; i < pagesize; ++i)
34472 *(data + i) = rand ();
34473 umask (0);
34474 fd = creat ("conftest.mmap", 0600);
34475 if (fd < 0)
34476 return 1;
34477 if (write (fd, data, pagesize) != pagesize)
34478 return 1;
34479 close (fd);
34481 /* Next, try to mmap the file at a fixed address which already has
34482 something else allocated at it. If we can, also make sure that
34483 we see the same garbage. */
34484 fd = open ("conftest.mmap", O_RDWR);
34485 if (fd < 0)
34486 return 1;
34487 data2 = (char *) malloc (2 * pagesize);
34488 if (!data2)
34489 return 1;
34490 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34491 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34492 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34493 return 1;
34494 for (i = 0; i < pagesize; ++i)
34495 if (*(data + i) != *(data2 + i))
34496 return 1;
34498 /* Finally, make sure that changes to the mapped area do not
34499 percolate back to the file as seen by read(). (This is a bug on
34500 some variants of i386 svr4.0.) */
34501 for (i = 0; i < pagesize; ++i)
34502 *(data2 + i) = *(data2 + i) + 1;
34503 data3 = (char *) malloc (pagesize);
34504 if (!data3)
34505 return 1;
34506 if (read (fd, data3, pagesize) != pagesize)
34507 return 1;
34508 for (i = 0; i < pagesize; ++i)
34509 if (*(data + i) != *(data3 + i))
34510 return 1;
34511 close (fd);
34512 return 0;
34514 _ACEOF
34515 rm -f conftest$ac_exeext
34516 if { (ac_try="$ac_link"
34517 case "(($ac_try" in
34518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34519 *) ac_try_echo=$ac_try;;
34520 esac
34521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34522 (eval "$ac_link") 2>&5
34523 ac_status=$?
34524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34526 { (case "(($ac_try" in
34527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34528 *) ac_try_echo=$ac_try;;
34529 esac
34530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34531 (eval "$ac_try") 2>&5
34532 ac_status=$?
34533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34534 (exit $ac_status); }; }; then
34535 ac_cv_func_mmap_fixed_mapped=yes
34536 else
34537 echo "$as_me: program exited with status $ac_status" >&5
34538 echo "$as_me: failed program was:" >&5
34539 sed 's/^/| /' conftest.$ac_ext >&5
34541 ( exit $ac_status )
34542 ac_cv_func_mmap_fixed_mapped=no
34544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34549 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34550 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34551 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34553 cat >>confdefs.h <<\_ACEOF
34554 #define HAVE_MMAP 1
34555 _ACEOF
34558 rm -f conftest.mmap
34560 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34561 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34562 if test "${ac_cv_func_mmap_file+set}" = set; then
34563 echo $ECHO_N "(cached) $ECHO_C" >&6
34564 else
34565 ac_ext=c
34566 ac_cpp='$CPP $CPPFLAGS'
34567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34571 if test "$cross_compiling" = yes; then
34572 ac_cv_func_mmap_file=no
34573 else
34574 cat >conftest.$ac_ext <<_ACEOF
34576 /* confdefs.h. */
34577 _ACEOF
34578 cat confdefs.h >>conftest.$ac_ext
34579 cat >>conftest.$ac_ext <<_ACEOF
34580 /* end confdefs.h. */
34582 #include <sys/types.h>
34583 #include <sys/mman.h>
34584 #include <fcntl.h>
34587 main ()
34590 int fd;
34591 fd = creat ("foo",0777);
34592 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34593 unlink ("foo");
34594 return (fd != (int) MAP_FAILED);
34596 return 0;
34598 _ACEOF
34599 rm -f conftest$ac_exeext
34600 if { (ac_try="$ac_link"
34601 case "(($ac_try" in
34602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34603 *) ac_try_echo=$ac_try;;
34604 esac
34605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34606 (eval "$ac_link") 2>&5
34607 ac_status=$?
34608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34610 { (case "(($ac_try" in
34611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34612 *) ac_try_echo=$ac_try;;
34613 esac
34614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34615 (eval "$ac_try") 2>&5
34616 ac_status=$?
34617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34618 (exit $ac_status); }; }; then
34619 ac_cv_func_mmap_file=yes
34620 else
34621 echo "$as_me: program exited with status $ac_status" >&5
34622 echo "$as_me: failed program was:" >&5
34623 sed 's/^/| /' conftest.$ac_ext >&5
34625 ( exit $ac_status )
34626 ac_cv_func_mmap_file=no
34628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34632 ac_ext=c
34633 ac_cpp='$CPP $CPPFLAGS'
34634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34640 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34641 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34642 if test "$ac_cv_func_mmap_file" = yes; then
34644 cat >>confdefs.h <<\_ACEOF
34645 #define HAVE_MMAP_FILE
34646 _ACEOF
34648 MMAP_FILE=yes
34652 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34653 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34654 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34655 echo $ECHO_N "(cached) $ECHO_C" >&6
34656 else
34657 if test "$llvm_cv_os_type" = "Interix" ; then
34658 ac_cv_need_dev_zero_for_mmap=yes
34659 else
34660 ac_cv_need_dev_zero_for_mmap=no
34664 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34665 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34666 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34668 cat >>confdefs.h <<\_ACEOF
34669 #define NEED_DEV_ZERO_FOR_MMAP 1
34670 _ACEOF
34674 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34675 then
34676 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34677 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34679 if test "$ac_cv_func_mmap_file" = "no"
34680 then
34681 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34682 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34686 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34687 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34688 cat >conftest.$ac_ext <<_ACEOF
34689 /* confdefs.h. */
34690 _ACEOF
34691 cat confdefs.h >>conftest.$ac_ext
34692 cat >>conftest.$ac_ext <<_ACEOF
34693 /* end confdefs.h. */
34694 int main() {
34695 volatile unsigned long val = 1;
34696 __sync_synchronize();
34697 __sync_val_compare_and_swap(&val, 1, 0);
34698 __sync_add_and_fetch(&val, 1);
34699 __sync_sub_and_fetch(&val, 1);
34700 return 0;
34703 _ACEOF
34704 rm -f conftest.$ac_objext conftest$ac_exeext
34705 if { (ac_try="$ac_link"
34706 case "(($ac_try" in
34707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34708 *) ac_try_echo=$ac_try;;
34709 esac
34710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34711 (eval "$ac_link") 2>conftest.er1
34712 ac_status=$?
34713 grep -v '^ *+' conftest.er1 >conftest.err
34714 rm -f conftest.er1
34715 cat conftest.err >&5
34716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34717 (exit $ac_status); } &&
34718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34719 { (case "(($ac_try" in
34720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34721 *) ac_try_echo=$ac_try;;
34722 esac
34723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34724 (eval "$ac_try") 2>&5
34725 ac_status=$?
34726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34727 (exit $ac_status); }; } &&
34728 { ac_try='test -s conftest$ac_exeext'
34729 { (case "(($ac_try" in
34730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34731 *) ac_try_echo=$ac_try;;
34732 esac
34733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34734 (eval "$ac_try") 2>&5
34735 ac_status=$?
34736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34737 (exit $ac_status); }; }; then
34738 { echo "$as_me:$LINENO: result: yes" >&5
34739 echo "${ECHO_T}yes" >&6; }
34741 cat >>confdefs.h <<\_ACEOF
34742 #define LLVM_MULTITHREADED 1
34743 _ACEOF
34745 else
34746 echo "$as_me: failed program was:" >&5
34747 sed 's/^/| /' conftest.$ac_ext >&5
34749 { echo "$as_me:$LINENO: result: no" >&5
34750 echo "${ECHO_T}no" >&6; }
34752 cat >>confdefs.h <<\_ACEOF
34753 #define LLVM_MULTITHREADED 0
34754 _ACEOF
34756 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34757 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34760 rm -f core conftest.err conftest.$ac_objext \
34761 conftest$ac_exeext conftest.$ac_ext
34765 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34766 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34767 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34768 if test "${llvm_cv_linux_mixed+set}" = set; then
34769 echo $ECHO_N "(cached) $ECHO_C" >&6
34770 else
34771 ac_ext=c
34772 ac_cpp='$CPP $CPPFLAGS'
34773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34777 cat >conftest.$ac_ext <<_ACEOF
34778 /* confdefs.h. */
34779 _ACEOF
34780 cat confdefs.h >>conftest.$ac_ext
34781 cat >>conftest.$ac_ext <<_ACEOF
34782 /* end confdefs.h. */
34783 #ifndef __x86_64__
34784 error: Not x86-64 even if uname says so!
34785 #endif
34788 main ()
34792 return 0;
34794 _ACEOF
34795 rm -f conftest.$ac_objext
34796 if { (ac_try="$ac_compile"
34797 case "(($ac_try" in
34798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34799 *) ac_try_echo=$ac_try;;
34800 esac
34801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34802 (eval "$ac_compile") 2>conftest.er1
34803 ac_status=$?
34804 grep -v '^ *+' conftest.er1 >conftest.err
34805 rm -f conftest.er1
34806 cat conftest.err >&5
34807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808 (exit $ac_status); } &&
34809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34810 { (case "(($ac_try" in
34811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34812 *) ac_try_echo=$ac_try;;
34813 esac
34814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34815 (eval "$ac_try") 2>&5
34816 ac_status=$?
34817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34818 (exit $ac_status); }; } &&
34819 { ac_try='test -s conftest.$ac_objext'
34820 { (case "(($ac_try" in
34821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34822 *) ac_try_echo=$ac_try;;
34823 esac
34824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34825 (eval "$ac_try") 2>&5
34826 ac_status=$?
34827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34828 (exit $ac_status); }; }; then
34829 llvm_cv_linux_mixed=no
34830 else
34831 echo "$as_me: failed program was:" >&5
34832 sed 's/^/| /' conftest.$ac_ext >&5
34834 llvm_cv_linux_mixed=yes
34837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34838 ac_ext=c
34839 ac_cpp='$CPP $CPPFLAGS'
34840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34846 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34847 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34849 if test "$llvm_cv_linux_mixed" = "yes"; then
34850 llvm_cv_target_arch="x86"
34851 ARCH="x86"
34856 for ac_func in __dso_handle
34858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34859 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34861 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34862 echo $ECHO_N "(cached) $ECHO_C" >&6
34863 else
34864 cat >conftest.$ac_ext <<_ACEOF
34865 /* confdefs.h. */
34866 _ACEOF
34867 cat confdefs.h >>conftest.$ac_ext
34868 cat >>conftest.$ac_ext <<_ACEOF
34869 /* end confdefs.h. */
34870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34872 #define $ac_func innocuous_$ac_func
34874 /* System header to define __stub macros and hopefully few prototypes,
34875 which can conflict with char $ac_func (); below.
34876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34877 <limits.h> exists even on freestanding compilers. */
34879 #ifdef __STDC__
34880 # include <limits.h>
34881 #else
34882 # include <assert.h>
34883 #endif
34885 #undef $ac_func
34887 /* Override any GCC internal prototype to avoid an error.
34888 Use char because int might match the return type of a GCC
34889 builtin and then its argument prototype would still apply. */
34890 #ifdef __cplusplus
34891 extern "C"
34892 #endif
34893 char $ac_func ();
34894 /* The GNU C library defines this for functions which it implements
34895 to always fail with ENOSYS. Some functions are actually named
34896 something starting with __ and the normal name is an alias. */
34897 #if defined __stub_$ac_func || defined __stub___$ac_func
34898 choke me
34899 #endif
34902 main ()
34904 return $ac_func ();
34906 return 0;
34908 _ACEOF
34909 rm -f conftest.$ac_objext conftest$ac_exeext
34910 if { (ac_try="$ac_link"
34911 case "(($ac_try" in
34912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34913 *) ac_try_echo=$ac_try;;
34914 esac
34915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34916 (eval "$ac_link") 2>conftest.er1
34917 ac_status=$?
34918 grep -v '^ *+' conftest.er1 >conftest.err
34919 rm -f conftest.er1
34920 cat conftest.err >&5
34921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922 (exit $ac_status); } &&
34923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34924 { (case "(($ac_try" in
34925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34926 *) ac_try_echo=$ac_try;;
34927 esac
34928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34929 (eval "$ac_try") 2>&5
34930 ac_status=$?
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); }; } &&
34933 { ac_try='test -s conftest$ac_exeext'
34934 { (case "(($ac_try" in
34935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34936 *) ac_try_echo=$ac_try;;
34937 esac
34938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34939 (eval "$ac_try") 2>&5
34940 ac_status=$?
34941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34942 (exit $ac_status); }; }; then
34943 eval "$as_ac_var=yes"
34944 else
34945 echo "$as_me: failed program was:" >&5
34946 sed 's/^/| /' conftest.$ac_ext >&5
34948 eval "$as_ac_var=no"
34951 rm -f core conftest.err conftest.$ac_objext \
34952 conftest$ac_exeext conftest.$ac_ext
34954 ac_res=`eval echo '${'$as_ac_var'}'`
34955 { echo "$as_me:$LINENO: result: $ac_res" >&5
34956 echo "${ECHO_T}$ac_res" >&6; }
34957 if test `eval echo '${'$as_ac_var'}'` = yes; then
34958 cat >>confdefs.h <<_ACEOF
34959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34960 _ACEOF
34963 done
34966 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34967 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34968 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34969 echo $ECHO_N "(cached) $ECHO_C" >&6
34970 else
34971 llvm_cv_llvmgcc_sanity="no"
34972 if test -x "$LLVMGCC" ; then
34973 cp /dev/null conftest.c
34974 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34975 grep 'target datalayout =' > /dev/null 2>&1
34976 if test $? -eq 0 ; then
34977 llvm_cv_llvmgcc_sanity="yes"
34979 rm conftest.c
34982 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34983 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34985 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34986 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34987 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34988 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34989 LLVMCC1=$llvmcc1path
34991 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34992 LLVMCC1PLUS=$llvmcc1pluspath
34994 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34995 LLVMGCCDIR=$llvmgccdir
34997 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34998 LLVMGCCLIBEXEC=$llvmgcclibexec
35000 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35001 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35002 LLVMGCC_VERSION=$llvmgccversion
35004 LLVMGCC_MAJVERS=$llvmgccmajvers
35006 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35007 LLVMGCC_LANGS=$llvmgcclangs
35009 { echo "$as_me:$LINENO: result: ok" >&5
35010 echo "${ECHO_T}ok" >&6; }
35013 SHLIBEXT=$libltdl_cv_shlibext
35016 # Translate the various configuration directories and other basic
35017 # information into substitutions that will end up in Makefile.config.in
35018 # that these configured values can be used by the makefiles
35019 if test "${prefix}" = "NONE" ; then
35020 prefix="/usr/local"
35022 eval LLVM_PREFIX="${prefix}";
35023 eval LLVM_BINDIR="${prefix}/bin";
35024 eval LLVM_LIBDIR="${prefix}/lib";
35025 eval LLVM_DATADIR="${prefix}/share/llvm";
35026 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35027 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35028 eval LLVM_INCLUDEDIR="${prefix}/include";
35029 eval LLVM_INFODIR="${prefix}/info";
35030 eval LLVM_MANDIR="${prefix}/man";
35031 LLVM_CONFIGTIME=`date`
35043 # Place the various directores into the config.h file as #defines so that we
35044 # can know about the installation paths within LLVM.
35046 cat >>confdefs.h <<_ACEOF
35047 #define LLVM_PREFIX "$LLVM_PREFIX"
35048 _ACEOF
35051 cat >>confdefs.h <<_ACEOF
35052 #define LLVM_BINDIR "$LLVM_BINDIR"
35053 _ACEOF
35056 cat >>confdefs.h <<_ACEOF
35057 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35058 _ACEOF
35061 cat >>confdefs.h <<_ACEOF
35062 #define LLVM_DATADIR "$LLVM_DATADIR"
35063 _ACEOF
35066 cat >>confdefs.h <<_ACEOF
35067 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35068 _ACEOF
35071 cat >>confdefs.h <<_ACEOF
35072 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35073 _ACEOF
35076 cat >>confdefs.h <<_ACEOF
35077 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35078 _ACEOF
35081 cat >>confdefs.h <<_ACEOF
35082 #define LLVM_INFODIR "$LLVM_INFODIR"
35083 _ACEOF
35086 cat >>confdefs.h <<_ACEOF
35087 #define LLVM_MANDIR "$LLVM_MANDIR"
35088 _ACEOF
35091 cat >>confdefs.h <<_ACEOF
35092 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35093 _ACEOF
35096 cat >>confdefs.h <<_ACEOF
35097 #define LLVM_HOSTTRIPLE "$host"
35098 _ACEOF
35101 # Determine which bindings to build.
35102 if test "$BINDINGS_TO_BUILD" = auto ; then
35103 BINDINGS_TO_BUILD=""
35104 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35105 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35108 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35111 # This isn't really configurey, but it avoids having to repeat the list in
35112 # other files.
35113 ALL_BINDINGS=ocaml
35116 # Do any work necessary to ensure that bindings have what they need.
35117 binding_prereqs_failed=0
35118 for a_binding in $BINDINGS_TO_BUILD ; do
35119 case "$a_binding" in
35120 ocaml)
35121 if test "x$OCAMLC" = x ; then
35122 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35123 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35124 binding_prereqs_failed=1
35126 if test "x$OCAMLDEP" = x ; then
35127 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35128 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35129 binding_prereqs_failed=1
35131 if test "x$OCAMLOPT" = x ; then
35132 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35133 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35135 if test "x$with_ocaml_libdir" != xauto ; then
35136 OCAML_LIBDIR=$with_ocaml_libdir
35138 else
35139 ocaml_stdlib="`"$OCAMLC" -where`"
35140 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35141 then
35142 # ocaml stdlib is beneath our prefix; use stdlib
35143 OCAML_LIBDIR=$ocaml_stdlib
35145 else
35146 # ocaml stdlib is outside our prefix; use libdir/ocaml
35147 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35152 esac
35153 done
35154 if test "$binding_prereqs_failed" = 1 ; then
35155 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35156 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35157 { (exit 1); exit 1; }; }
35160 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35161 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35162 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35163 echo $ECHO_N "(cached) $ECHO_C" >&6
35164 else
35165 ac_ext=cpp
35166 ac_cpp='$CXXCPP $CPPFLAGS'
35167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35171 oldcxxflags="$CXXFLAGS"
35172 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35173 cat >conftest.$ac_ext <<_ACEOF
35174 /* confdefs.h. */
35175 _ACEOF
35176 cat confdefs.h >>conftest.$ac_ext
35177 cat >>conftest.$ac_ext <<_ACEOF
35178 /* end confdefs.h. */
35181 main ()
35185 return 0;
35187 _ACEOF
35188 rm -f conftest.$ac_objext
35189 if { (ac_try="$ac_compile"
35190 case "(($ac_try" in
35191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35192 *) ac_try_echo=$ac_try;;
35193 esac
35194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35195 (eval "$ac_compile") 2>conftest.er1
35196 ac_status=$?
35197 grep -v '^ *+' conftest.er1 >conftest.err
35198 rm -f conftest.er1
35199 cat conftest.err >&5
35200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201 (exit $ac_status); } &&
35202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35203 { (case "(($ac_try" in
35204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35205 *) ac_try_echo=$ac_try;;
35206 esac
35207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35208 (eval "$ac_try") 2>&5
35209 ac_status=$?
35210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35211 (exit $ac_status); }; } &&
35212 { ac_try='test -s conftest.$ac_objext'
35213 { (case "(($ac_try" in
35214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35215 *) ac_try_echo=$ac_try;;
35216 esac
35217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35218 (eval "$ac_try") 2>&5
35219 ac_status=$?
35220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35221 (exit $ac_status); }; }; then
35222 llvm_cv_cxx_visibility_inlines_hidden=yes
35223 else
35224 echo "$as_me: failed program was:" >&5
35225 sed 's/^/| /' conftest.$ac_ext >&5
35227 llvm_cv_cxx_visibility_inlines_hidden=no
35230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35231 CXXFLAGS="$oldcxxflags"
35232 ac_ext=c
35233 ac_cpp='$CPP $CPPFLAGS'
35234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35240 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35241 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35242 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35243 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35245 else
35246 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35251 if test "$llvm_cv_link_use_r" = "yes" ; then
35252 RPATH="-Wl,-R"
35253 else
35254 RPATH="-Wl,-rpath"
35258 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35259 RDYNAMIC="-Wl,-export-dynamic"
35260 else
35261 RDYNAMIC=""
35266 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35268 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35270 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35272 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35274 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
35277 ac_config_files="$ac_config_files Makefile.config"
35280 ac_config_files="$ac_config_files llvm.spec"
35283 ac_config_files="$ac_config_files docs/doxygen.cfg"
35286 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35289 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35292 ac_config_commands="$ac_config_commands setup"
35294 ac_config_commands="$ac_config_commands Makefile"
35297 ac_config_commands="$ac_config_commands Makefile.common"
35300 ac_config_commands="$ac_config_commands examples/Makefile"
35303 ac_config_commands="$ac_config_commands lib/Makefile"
35306 ac_config_commands="$ac_config_commands runtime/Makefile"
35309 ac_config_commands="$ac_config_commands test/Makefile"
35312 ac_config_commands="$ac_config_commands test/Makefile.tests"
35315 ac_config_commands="$ac_config_commands unittests/Makefile"
35318 ac_config_commands="$ac_config_commands tools/Makefile"
35321 ac_config_commands="$ac_config_commands utils/Makefile"
35324 ac_config_commands="$ac_config_commands projects/Makefile"
35327 ac_config_commands="$ac_config_commands bindings/Makefile"
35330 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35334 cat >confcache <<\_ACEOF
35335 # This file is a shell script that caches the results of configure
35336 # tests run on this system so they can be shared between configure
35337 # scripts and configure runs, see configure's option --config-cache.
35338 # It is not useful on other systems. If it contains results you don't
35339 # want to keep, you may remove or edit it.
35341 # config.status only pays attention to the cache file if you give it
35342 # the --recheck option to rerun configure.
35344 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35345 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35346 # following values.
35348 _ACEOF
35350 # The following way of writing the cache mishandles newlines in values,
35351 # but we know of no workaround that is simple, portable, and efficient.
35352 # So, we kill variables containing newlines.
35353 # Ultrix sh set writes to stderr and can't be redirected directly,
35354 # and sets the high bit in the cache file unless we assign to the vars.
35356 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35357 eval ac_val=\$$ac_var
35358 case $ac_val in #(
35359 *${as_nl}*)
35360 case $ac_var in #(
35361 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35362 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35363 esac
35364 case $ac_var in #(
35365 _ | IFS | as_nl) ;; #(
35366 *) $as_unset $ac_var ;;
35367 esac ;;
35368 esac
35369 done
35371 (set) 2>&1 |
35372 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35373 *${as_nl}ac_space=\ *)
35374 # `set' does not quote correctly, so add quotes (double-quote
35375 # substitution turns \\\\ into \\, and sed turns \\ into \).
35376 sed -n \
35377 "s/'/'\\\\''/g;
35378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35379 ;; #(
35381 # `set' quotes correctly as required by POSIX, so do not add quotes.
35382 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35384 esac |
35385 sort
35387 sed '
35388 /^ac_cv_env_/b end
35389 t clear
35390 :clear
35391 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35392 t end
35393 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35394 :end' >>confcache
35395 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35396 if test -w "$cache_file"; then
35397 test "x$cache_file" != "x/dev/null" &&
35398 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35399 echo "$as_me: updating cache $cache_file" >&6;}
35400 cat confcache >$cache_file
35401 else
35402 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35403 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35406 rm -f confcache
35408 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35409 # Let make expand exec_prefix.
35410 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35412 DEFS=-DHAVE_CONFIG_H
35414 ac_libobjs=
35415 ac_ltlibobjs=
35416 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35417 # 1. Remove the extension, and $U if already installed.
35418 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35419 ac_i=`echo "$ac_i" | sed "$ac_script"`
35420 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35421 # will be set to the directory where LIBOBJS objects are built.
35422 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35423 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35424 done
35425 LIBOBJS=$ac_libobjs
35427 LTLIBOBJS=$ac_ltlibobjs
35430 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35431 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35432 Usually this means the macro was only invoked conditionally." >&5
35433 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35434 Usually this means the macro was only invoked conditionally." >&2;}
35435 { (exit 1); exit 1; }; }
35437 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35438 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35439 Usually this means the macro was only invoked conditionally." >&5
35440 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35441 Usually this means the macro was only invoked conditionally." >&2;}
35442 { (exit 1); exit 1; }; }
35445 : ${CONFIG_STATUS=./config.status}
35446 ac_clean_files_save=$ac_clean_files
35447 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35448 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35449 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35450 cat >$CONFIG_STATUS <<_ACEOF
35451 #! $SHELL
35452 # Generated by $as_me.
35453 # Run this file to recreate the current configuration.
35454 # Compiler output produced by configure, useful for debugging
35455 # configure, is in config.log if it exists.
35457 debug=false
35458 ac_cs_recheck=false
35459 ac_cs_silent=false
35460 SHELL=\${CONFIG_SHELL-$SHELL}
35461 _ACEOF
35463 cat >>$CONFIG_STATUS <<\_ACEOF
35464 ## --------------------- ##
35465 ## M4sh Initialization. ##
35466 ## --------------------- ##
35468 # Be Bourne compatible
35469 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35470 emulate sh
35471 NULLCMD=:
35472 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35473 # is contrary to our usage. Disable this feature.
35474 alias -g '${1+"$@"}'='"$@"'
35475 setopt NO_GLOB_SUBST
35476 else
35477 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35479 BIN_SH=xpg4; export BIN_SH # for Tru64
35480 DUALCASE=1; export DUALCASE # for MKS sh
35483 # PATH needs CR
35484 # Avoid depending upon Character Ranges.
35485 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35486 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35487 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35488 as_cr_digits='0123456789'
35489 as_cr_alnum=$as_cr_Letters$as_cr_digits
35491 # The user is always right.
35492 if test "${PATH_SEPARATOR+set}" != set; then
35493 echo "#! /bin/sh" >conf$$.sh
35494 echo "exit 0" >>conf$$.sh
35495 chmod +x conf$$.sh
35496 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35497 PATH_SEPARATOR=';'
35498 else
35499 PATH_SEPARATOR=:
35501 rm -f conf$$.sh
35504 # Support unset when possible.
35505 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35506 as_unset=unset
35507 else
35508 as_unset=false
35512 # IFS
35513 # We need space, tab and new line, in precisely that order. Quoting is
35514 # there to prevent editors from complaining about space-tab.
35515 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35516 # splitting by setting IFS to empty value.)
35517 as_nl='
35519 IFS=" "" $as_nl"
35521 # Find who we are. Look in the path if we contain no directory separator.
35522 case $0 in
35523 *[\\/]* ) as_myself=$0 ;;
35524 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35525 for as_dir in $PATH
35527 IFS=$as_save_IFS
35528 test -z "$as_dir" && as_dir=.
35529 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35530 done
35531 IFS=$as_save_IFS
35534 esac
35535 # We did not find ourselves, most probably we were run as `sh COMMAND'
35536 # in which case we are not to be found in the path.
35537 if test "x$as_myself" = x; then
35538 as_myself=$0
35540 if test ! -f "$as_myself"; then
35541 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35542 { (exit 1); exit 1; }
35545 # Work around bugs in pre-3.0 UWIN ksh.
35546 for as_var in ENV MAIL MAILPATH
35547 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35548 done
35549 PS1='$ '
35550 PS2='> '
35551 PS4='+ '
35553 # NLS nuisances.
35554 for as_var in \
35555 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35556 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35557 LC_TELEPHONE LC_TIME
35559 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35560 eval $as_var=C; export $as_var
35561 else
35562 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35564 done
35566 # Required to use basename.
35567 if expr a : '\(a\)' >/dev/null 2>&1 &&
35568 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35569 as_expr=expr
35570 else
35571 as_expr=false
35574 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35575 as_basename=basename
35576 else
35577 as_basename=false
35581 # Name of the executable.
35582 as_me=`$as_basename -- "$0" ||
35583 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35584 X"$0" : 'X\(//\)$' \| \
35585 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35586 echo X/"$0" |
35587 sed '/^.*\/\([^/][^/]*\)\/*$/{
35588 s//\1/
35591 /^X\/\(\/\/\)$/{
35592 s//\1/
35595 /^X\/\(\/\).*/{
35596 s//\1/
35599 s/.*/./; q'`
35601 # CDPATH.
35602 $as_unset CDPATH
35606 as_lineno_1=$LINENO
35607 as_lineno_2=$LINENO
35608 test "x$as_lineno_1" != "x$as_lineno_2" &&
35609 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35611 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35612 # uniformly replaced by the line number. The first 'sed' inserts a
35613 # line-number line after each line using $LINENO; the second 'sed'
35614 # does the real work. The second script uses 'N' to pair each
35615 # line-number line with the line containing $LINENO, and appends
35616 # trailing '-' during substitution so that $LINENO is not a special
35617 # case at line end.
35618 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35619 # scripts with optimization help from Paolo Bonzini. Blame Lee
35620 # E. McMahon (1931-1989) for sed's syntax. :-)
35621 sed -n '
35623 /[$]LINENO/=
35624 ' <$as_myself |
35625 sed '
35626 s/[$]LINENO.*/&-/
35627 t lineno
35629 :lineno
35631 :loop
35632 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35633 t loop
35634 s/-\n.*//
35635 ' >$as_me.lineno &&
35636 chmod +x "$as_me.lineno" ||
35637 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35638 { (exit 1); exit 1; }; }
35640 # Don't try to exec as it changes $[0], causing all sort of problems
35641 # (the dirname of $[0] is not the place where we might find the
35642 # original and so on. Autoconf is especially sensitive to this).
35643 . "./$as_me.lineno"
35644 # Exit status is that of the last command.
35645 exit
35649 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35650 as_dirname=dirname
35651 else
35652 as_dirname=false
35655 ECHO_C= ECHO_N= ECHO_T=
35656 case `echo -n x` in
35657 -n*)
35658 case `echo 'x\c'` in
35659 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35660 *) ECHO_C='\c';;
35661 esac;;
35663 ECHO_N='-n';;
35664 esac
35666 if expr a : '\(a\)' >/dev/null 2>&1 &&
35667 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35668 as_expr=expr
35669 else
35670 as_expr=false
35673 rm -f conf$$ conf$$.exe conf$$.file
35674 if test -d conf$$.dir; then
35675 rm -f conf$$.dir/conf$$.file
35676 else
35677 rm -f conf$$.dir
35678 mkdir conf$$.dir
35680 echo >conf$$.file
35681 if ln -s conf$$.file conf$$ 2>/dev/null; then
35682 as_ln_s='ln -s'
35683 # ... but there are two gotchas:
35684 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35685 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35686 # In both cases, we have to default to `cp -p'.
35687 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35688 as_ln_s='cp -p'
35689 elif ln conf$$.file conf$$ 2>/dev/null; then
35690 as_ln_s=ln
35691 else
35692 as_ln_s='cp -p'
35694 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35695 rmdir conf$$.dir 2>/dev/null
35697 if mkdir -p . 2>/dev/null; then
35698 as_mkdir_p=:
35699 else
35700 test -d ./-p && rmdir ./-p
35701 as_mkdir_p=false
35704 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35705 # systems may use methods other than mode bits to determine executability.
35706 cat >conf$$.file <<_ASEOF
35707 #! /bin/sh
35708 exit 0
35709 _ASEOF
35710 chmod +x conf$$.file
35711 if test -x conf$$.file >/dev/null 2>&1; then
35712 as_executable_p="test -x"
35713 else
35714 as_executable_p=:
35716 rm -f conf$$.file
35718 # Sed expression to map a string onto a valid CPP name.
35719 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35721 # Sed expression to map a string onto a valid variable name.
35722 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35725 exec 6>&1
35727 # Save the log message, to keep $[0] and so on meaningful, and to
35728 # report actual input values of CONFIG_FILES etc. instead of their
35729 # values after options handling.
35730 ac_log="
35731 This file was extended by llvm $as_me 2.7svn, which was
35732 generated by GNU Autoconf 2.60. Invocation command line was
35734 CONFIG_FILES = $CONFIG_FILES
35735 CONFIG_HEADERS = $CONFIG_HEADERS
35736 CONFIG_LINKS = $CONFIG_LINKS
35737 CONFIG_COMMANDS = $CONFIG_COMMANDS
35738 $ $0 $@
35740 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35743 _ACEOF
35745 cat >>$CONFIG_STATUS <<_ACEOF
35746 # Files that config.status was made for.
35747 config_files="$ac_config_files"
35748 config_headers="$ac_config_headers"
35749 config_commands="$ac_config_commands"
35751 _ACEOF
35753 cat >>$CONFIG_STATUS <<\_ACEOF
35754 ac_cs_usage="\
35755 \`$as_me' instantiates files from templates according to the
35756 current configuration.
35758 Usage: $0 [OPTIONS] [FILE]...
35760 -h, --help print this help, then exit
35761 -V, --version print version number, then exit
35762 -q, --quiet do not print progress messages
35763 -d, --debug don't remove temporary files
35764 --recheck update $as_me by reconfiguring in the same conditions
35765 --file=FILE[:TEMPLATE]
35766 instantiate the configuration file FILE
35767 --header=FILE[:TEMPLATE]
35768 instantiate the configuration header FILE
35770 Configuration files:
35771 $config_files
35773 Configuration headers:
35774 $config_headers
35776 Configuration commands:
35777 $config_commands
35779 Report bugs to <bug-autoconf@gnu.org>."
35781 _ACEOF
35782 cat >>$CONFIG_STATUS <<_ACEOF
35783 ac_cs_version="\\
35784 llvm config.status 2.7svn
35785 configured by $0, generated by GNU Autoconf 2.60,
35786 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35788 Copyright (C) 2006 Free Software Foundation, Inc.
35789 This config.status script is free software; the Free Software Foundation
35790 gives unlimited permission to copy, distribute and modify it."
35792 ac_pwd='$ac_pwd'
35793 srcdir='$srcdir'
35794 INSTALL='$INSTALL'
35795 _ACEOF
35797 cat >>$CONFIG_STATUS <<\_ACEOF
35798 # If no file are specified by the user, then we need to provide default
35799 # value. By we need to know if files were specified by the user.
35800 ac_need_defaults=:
35801 while test $# != 0
35803 case $1 in
35804 --*=*)
35805 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35806 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35807 ac_shift=:
35810 ac_option=$1
35811 ac_optarg=$2
35812 ac_shift=shift
35814 esac
35816 case $ac_option in
35817 # Handling of the options.
35818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35819 ac_cs_recheck=: ;;
35820 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35821 echo "$ac_cs_version"; exit ;;
35822 --debug | --debu | --deb | --de | --d | -d )
35823 debug=: ;;
35824 --file | --fil | --fi | --f )
35825 $ac_shift
35826 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35827 ac_need_defaults=false;;
35828 --header | --heade | --head | --hea )
35829 $ac_shift
35830 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35831 ac_need_defaults=false;;
35832 --he | --h)
35833 # Conflict between --help and --header
35834 { echo "$as_me: error: ambiguous option: $1
35835 Try \`$0 --help' for more information." >&2
35836 { (exit 1); exit 1; }; };;
35837 --help | --hel | -h )
35838 echo "$ac_cs_usage"; exit ;;
35839 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35840 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35841 ac_cs_silent=: ;;
35843 # This is an error.
35844 -*) { echo "$as_me: error: unrecognized option: $1
35845 Try \`$0 --help' for more information." >&2
35846 { (exit 1); exit 1; }; } ;;
35848 *) ac_config_targets="$ac_config_targets $1"
35849 ac_need_defaults=false ;;
35851 esac
35852 shift
35853 done
35855 ac_configure_extra_args=
35857 if $ac_cs_silent; then
35858 exec 6>/dev/null
35859 ac_configure_extra_args="$ac_configure_extra_args --silent"
35862 _ACEOF
35863 cat >>$CONFIG_STATUS <<_ACEOF
35864 if \$ac_cs_recheck; then
35865 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35866 CONFIG_SHELL=$SHELL
35867 export CONFIG_SHELL
35868 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35871 _ACEOF
35872 cat >>$CONFIG_STATUS <<\_ACEOF
35873 exec 5>>config.log
35875 echo
35876 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35877 ## Running $as_me. ##
35878 _ASBOX
35879 echo "$ac_log"
35880 } >&5
35882 _ACEOF
35883 cat >>$CONFIG_STATUS <<_ACEOF
35885 # INIT-COMMANDS
35887 llvm_src="${srcdir}"
35889 _ACEOF
35891 cat >>$CONFIG_STATUS <<\_ACEOF
35893 # Handling of arguments.
35894 for ac_config_target in $ac_config_targets
35896 case $ac_config_target in
35897 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35898 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35899 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35900 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35901 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
35902 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35903 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35904 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35905 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35906 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35907 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35908 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35909 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35910 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35911 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35912 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35913 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35914 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35915 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35916 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35917 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35918 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35919 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35920 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35922 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35923 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35924 { (exit 1); exit 1; }; };;
35925 esac
35926 done
35929 # If the user did not use the arguments to specify the items to instantiate,
35930 # then the envvar interface is used. Set only those that are not.
35931 # We use the long form for the default assignment because of an extremely
35932 # bizarre bug on SunOS 4.1.3.
35933 if $ac_need_defaults; then
35934 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35935 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35936 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35939 # Have a temporary directory for convenience. Make it in the build tree
35940 # simply because there is no reason against having it here, and in addition,
35941 # creating and moving files from /tmp can sometimes cause problems.
35942 # Hook for its removal unless debugging.
35943 # Note that there is a small window in which the directory will not be cleaned:
35944 # after its creation but before its name has been assigned to `$tmp'.
35945 $debug ||
35947 tmp=
35948 trap 'exit_status=$?
35949 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35951 trap '{ (exit 1); exit 1; }' 1 2 13 15
35953 # Create a (secure) tmp directory for tmp files.
35956 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35957 test -n "$tmp" && test -d "$tmp"
35958 } ||
35960 tmp=./conf$$-$RANDOM
35961 (umask 077 && mkdir "$tmp")
35962 } ||
35964 echo "$me: cannot create a temporary directory in ." >&2
35965 { (exit 1); exit 1; }
35969 # Set up the sed scripts for CONFIG_FILES section.
35972 # No need to generate the scripts if there are no CONFIG_FILES.
35973 # This happens for instance when ./config.status config.h
35974 if test -n "$CONFIG_FILES"; then
35976 _ACEOF
35980 ac_delim='%!_!# '
35981 for ac_last_try in false false false false false :; do
35982 cat >conf$$subs.sed <<_ACEOF
35983 SHELL!$SHELL$ac_delim
35984 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35985 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35986 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35987 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35988 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35989 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35990 exec_prefix!$exec_prefix$ac_delim
35991 prefix!$prefix$ac_delim
35992 program_transform_name!$program_transform_name$ac_delim
35993 bindir!$bindir$ac_delim
35994 sbindir!$sbindir$ac_delim
35995 libexecdir!$libexecdir$ac_delim
35996 datarootdir!$datarootdir$ac_delim
35997 datadir!$datadir$ac_delim
35998 sysconfdir!$sysconfdir$ac_delim
35999 sharedstatedir!$sharedstatedir$ac_delim
36000 localstatedir!$localstatedir$ac_delim
36001 includedir!$includedir$ac_delim
36002 oldincludedir!$oldincludedir$ac_delim
36003 docdir!$docdir$ac_delim
36004 infodir!$infodir$ac_delim
36005 htmldir!$htmldir$ac_delim
36006 dvidir!$dvidir$ac_delim
36007 pdfdir!$pdfdir$ac_delim
36008 psdir!$psdir$ac_delim
36009 libdir!$libdir$ac_delim
36010 localedir!$localedir$ac_delim
36011 mandir!$mandir$ac_delim
36012 DEFS!$DEFS$ac_delim
36013 ECHO_C!$ECHO_C$ac_delim
36014 ECHO_N!$ECHO_N$ac_delim
36015 ECHO_T!$ECHO_T$ac_delim
36016 LIBS!$LIBS$ac_delim
36017 build_alias!$build_alias$ac_delim
36018 host_alias!$host_alias$ac_delim
36019 target_alias!$target_alias$ac_delim
36020 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36021 subdirs!$subdirs$ac_delim
36022 build!$build$ac_delim
36023 build_cpu!$build_cpu$ac_delim
36024 build_vendor!$build_vendor$ac_delim
36025 build_os!$build_os$ac_delim
36026 host!$host$ac_delim
36027 host_cpu!$host_cpu$ac_delim
36028 host_vendor!$host_vendor$ac_delim
36029 host_os!$host_os$ac_delim
36030 target!$target$ac_delim
36031 target_cpu!$target_cpu$ac_delim
36032 target_vendor!$target_vendor$ac_delim
36033 target_os!$target_os$ac_delim
36034 OS!$OS$ac_delim
36035 HOST_OS!$HOST_OS$ac_delim
36036 TARGET_OS!$TARGET_OS$ac_delim
36037 LINKALL!$LINKALL$ac_delim
36038 NOLINKALL!$NOLINKALL$ac_delim
36039 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36040 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36041 ARCH!$ARCH$ac_delim
36042 ENDIAN!$ENDIAN$ac_delim
36043 CC!$CC$ac_delim
36044 CFLAGS!$CFLAGS$ac_delim
36045 LDFLAGS!$LDFLAGS$ac_delim
36046 CPPFLAGS!$CPPFLAGS$ac_delim
36047 ac_ct_CC!$ac_ct_CC$ac_delim
36048 EXEEXT!$EXEEXT$ac_delim
36049 OBJEXT!$OBJEXT$ac_delim
36050 CPP!$CPP$ac_delim
36051 GREP!$GREP$ac_delim
36052 EGREP!$EGREP$ac_delim
36053 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36054 BUILD_CC!$BUILD_CC$ac_delim
36055 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36056 BUILD_CXX!$BUILD_CXX$ac_delim
36057 CVSBUILD!$CVSBUILD$ac_delim
36058 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36059 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36060 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36061 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36062 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36063 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36064 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
36065 JIT!$JIT$ac_delim
36066 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36067 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36068 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36069 ENABLE_PIC!$ENABLE_PIC$ac_delim
36070 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36071 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36072 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36073 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36074 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36075 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36076 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36077 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36078 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36079 CXX!$CXX$ac_delim
36080 _ACEOF
36082 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36083 break
36084 elif $ac_last_try; then
36085 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36086 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36087 { (exit 1); exit 1; }; }
36088 else
36089 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36091 done
36093 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36094 if test -n "$ac_eof"; then
36095 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36096 ac_eof=`expr $ac_eof + 1`
36099 cat >>$CONFIG_STATUS <<_ACEOF
36100 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36101 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36102 _ACEOF
36103 sed '
36104 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36105 s/^/s,@/; s/!/@,|#_!!_#|/
36108 s/'"$ac_delim"'$/,g/; t
36109 s/$/\\/; p
36110 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36111 ' >>$CONFIG_STATUS <conf$$subs.sed
36112 rm -f conf$$subs.sed
36113 cat >>$CONFIG_STATUS <<_ACEOF
36114 CEOF$ac_eof
36115 _ACEOF
36118 ac_delim='%!_!# '
36119 for ac_last_try in false false false false false :; do
36120 cat >conf$$subs.sed <<_ACEOF
36121 CXXFLAGS!$CXXFLAGS$ac_delim
36122 ac_ct_CXX!$ac_ct_CXX$ac_delim
36123 NM!$NM$ac_delim
36124 ifGNUmake!$ifGNUmake$ac_delim
36125 LN_S!$LN_S$ac_delim
36126 CMP!$CMP$ac_delim
36127 CP!$CP$ac_delim
36128 DATE!$DATE$ac_delim
36129 FIND!$FIND$ac_delim
36130 MKDIR!$MKDIR$ac_delim
36131 MV!$MV$ac_delim
36132 RANLIB!$RANLIB$ac_delim
36133 RM!$RM$ac_delim
36134 SED!$SED$ac_delim
36135 TAR!$TAR$ac_delim
36136 BINPWD!$BINPWD$ac_delim
36137 GRAPHVIZ!$GRAPHVIZ$ac_delim
36138 DOT!$DOT$ac_delim
36139 FDP!$FDP$ac_delim
36140 NEATO!$NEATO$ac_delim
36141 TWOPI!$TWOPI$ac_delim
36142 CIRCO!$CIRCO$ac_delim
36143 GV!$GV$ac_delim
36144 DOTTY!$DOTTY$ac_delim
36145 PERL!$PERL$ac_delim
36146 HAVE_PERL!$HAVE_PERL$ac_delim
36147 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36148 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36149 INSTALL_DATA!$INSTALL_DATA$ac_delim
36150 BZIP2!$BZIP2$ac_delim
36151 DOXYGEN!$DOXYGEN$ac_delim
36152 GROFF!$GROFF$ac_delim
36153 GZIP!$GZIP$ac_delim
36154 POD2HTML!$POD2HTML$ac_delim
36155 POD2MAN!$POD2MAN$ac_delim
36156 RUNTEST!$RUNTEST$ac_delim
36157 TCLSH!$TCLSH$ac_delim
36158 ZIP!$ZIP$ac_delim
36159 OCAMLC!$OCAMLC$ac_delim
36160 OCAMLOPT!$OCAMLOPT$ac_delim
36161 OCAMLDEP!$OCAMLDEP$ac_delim
36162 OCAMLDOC!$OCAMLDOC$ac_delim
36163 GAS!$GAS$ac_delim
36164 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36165 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36166 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36167 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36168 LIBADD_DL!$LIBADD_DL$ac_delim
36169 ECHO!$ECHO$ac_delim
36170 AR!$AR$ac_delim
36171 STRIP!$STRIP$ac_delim
36172 CXXCPP!$CXXCPP$ac_delim
36173 F77!$F77$ac_delim
36174 FFLAGS!$FFLAGS$ac_delim
36175 ac_ct_F77!$ac_ct_F77$ac_delim
36176 LIBTOOL!$LIBTOOL$ac_delim
36177 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36178 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36179 LLVMGCC!$LLVMGCC$ac_delim
36180 LLVMGXX!$LLVMGXX$ac_delim
36181 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
36182 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
36183 USE_UDIS86!$USE_UDIS86$ac_delim
36184 USE_OPROFILE!$USE_OPROFILE$ac_delim
36185 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36186 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36187 ALLOCA!$ALLOCA$ac_delim
36188 MMAP_FILE!$MMAP_FILE$ac_delim
36189 LLVMCC1!$LLVMCC1$ac_delim
36190 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36191 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36192 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36193 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36194 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36195 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36196 SHLIBEXT!$SHLIBEXT$ac_delim
36197 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36198 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36199 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36200 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36201 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36202 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36203 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36204 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36205 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36206 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36207 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36208 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36209 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36210 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36211 RPATH!$RPATH$ac_delim
36212 RDYNAMIC!$RDYNAMIC$ac_delim
36213 LIBOBJS!$LIBOBJS$ac_delim
36214 LTLIBOBJS!$LTLIBOBJS$ac_delim
36215 _ACEOF
36217 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
36218 break
36219 elif $ac_last_try; then
36220 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36221 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36222 { (exit 1); exit 1; }; }
36223 else
36224 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36226 done
36228 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36229 if test -n "$ac_eof"; then
36230 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36231 ac_eof=`expr $ac_eof + 1`
36234 cat >>$CONFIG_STATUS <<_ACEOF
36235 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36236 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36237 _ACEOF
36238 sed '
36239 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36240 s/^/s,@/; s/!/@,|#_!!_#|/
36243 s/'"$ac_delim"'$/,g/; t
36244 s/$/\\/; p
36245 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36246 ' >>$CONFIG_STATUS <conf$$subs.sed
36247 rm -f conf$$subs.sed
36248 cat >>$CONFIG_STATUS <<_ACEOF
36249 :end
36250 s/|#_!!_#|//g
36251 CEOF$ac_eof
36252 _ACEOF
36255 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36256 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36257 # trailing colons and then remove the whole line if VPATH becomes empty
36258 # (actually we leave an empty line to preserve line numbers).
36259 if test "x$srcdir" = x.; then
36260 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36261 s/:*\$(srcdir):*/:/
36262 s/:*\${srcdir}:*/:/
36263 s/:*@srcdir@:*/:/
36264 s/^\([^=]*=[ ]*\):*/\1/
36265 s/:*$//
36266 s/^[^=]*=[ ]*$//
36270 cat >>$CONFIG_STATUS <<\_ACEOF
36271 fi # test -n "$CONFIG_FILES"
36274 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36276 case $ac_tag in
36277 :[FHLC]) ac_mode=$ac_tag; continue;;
36278 esac
36279 case $ac_mode$ac_tag in
36280 :[FHL]*:*);;
36281 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36282 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36283 { (exit 1); exit 1; }; };;
36284 :[FH]-) ac_tag=-:-;;
36285 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36286 esac
36287 ac_save_IFS=$IFS
36288 IFS=:
36289 set x $ac_tag
36290 IFS=$ac_save_IFS
36291 shift
36292 ac_file=$1
36293 shift
36295 case $ac_mode in
36296 :L) ac_source=$1;;
36297 :[FH])
36298 ac_file_inputs=
36299 for ac_f
36301 case $ac_f in
36302 -) ac_f="$tmp/stdin";;
36303 *) # Look for the file first in the build tree, then in the source tree
36304 # (if the path is not absolute). The absolute path cannot be DOS-style,
36305 # because $ac_f cannot contain `:'.
36306 test -f "$ac_f" ||
36307 case $ac_f in
36308 [\\/$]*) false;;
36309 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36310 esac ||
36311 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36312 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36313 { (exit 1); exit 1; }; };;
36314 esac
36315 ac_file_inputs="$ac_file_inputs $ac_f"
36316 done
36318 # Let's still pretend it is `configure' which instantiates (i.e., don't
36319 # use $as_me), people would be surprised to read:
36320 # /* config.h. Generated by config.status. */
36321 configure_input="Generated from "`IFS=:
36322 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36323 if test x"$ac_file" != x-; then
36324 configure_input="$ac_file. $configure_input"
36325 { echo "$as_me:$LINENO: creating $ac_file" >&5
36326 echo "$as_me: creating $ac_file" >&6;}
36329 case $ac_tag in
36330 *:-:* | *:-) cat >"$tmp/stdin";;
36331 esac
36333 esac
36335 ac_dir=`$as_dirname -- "$ac_file" ||
36336 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36337 X"$ac_file" : 'X\(//\)[^/]' \| \
36338 X"$ac_file" : 'X\(//\)$' \| \
36339 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36340 echo X"$ac_file" |
36341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36342 s//\1/
36345 /^X\(\/\/\)[^/].*/{
36346 s//\1/
36349 /^X\(\/\/\)$/{
36350 s//\1/
36353 /^X\(\/\).*/{
36354 s//\1/
36357 s/.*/./; q'`
36358 { as_dir="$ac_dir"
36359 case $as_dir in #(
36360 -*) as_dir=./$as_dir;;
36361 esac
36362 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36363 as_dirs=
36364 while :; do
36365 case $as_dir in #(
36366 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36367 *) as_qdir=$as_dir;;
36368 esac
36369 as_dirs="'$as_qdir' $as_dirs"
36370 as_dir=`$as_dirname -- "$as_dir" ||
36371 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36372 X"$as_dir" : 'X\(//\)[^/]' \| \
36373 X"$as_dir" : 'X\(//\)$' \| \
36374 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36375 echo X"$as_dir" |
36376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36377 s//\1/
36380 /^X\(\/\/\)[^/].*/{
36381 s//\1/
36384 /^X\(\/\/\)$/{
36385 s//\1/
36388 /^X\(\/\).*/{
36389 s//\1/
36392 s/.*/./; q'`
36393 test -d "$as_dir" && break
36394 done
36395 test -z "$as_dirs" || eval "mkdir $as_dirs"
36396 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36397 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36398 { (exit 1); exit 1; }; }; }
36399 ac_builddir=.
36401 case "$ac_dir" in
36402 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36404 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36405 # A ".." for each directory in $ac_dir_suffix.
36406 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36407 case $ac_top_builddir_sub in
36408 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36409 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36410 esac ;;
36411 esac
36412 ac_abs_top_builddir=$ac_pwd
36413 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36414 # for backward compatibility:
36415 ac_top_builddir=$ac_top_build_prefix
36417 case $srcdir in
36418 .) # We are building in place.
36419 ac_srcdir=.
36420 ac_top_srcdir=$ac_top_builddir_sub
36421 ac_abs_top_srcdir=$ac_pwd ;;
36422 [\\/]* | ?:[\\/]* ) # Absolute name.
36423 ac_srcdir=$srcdir$ac_dir_suffix;
36424 ac_top_srcdir=$srcdir
36425 ac_abs_top_srcdir=$srcdir ;;
36426 *) # Relative name.
36427 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36428 ac_top_srcdir=$ac_top_build_prefix$srcdir
36429 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36430 esac
36431 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36434 case $ac_mode in
36437 # CONFIG_FILE
36440 case $INSTALL in
36441 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36442 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36443 esac
36444 _ACEOF
36446 cat >>$CONFIG_STATUS <<\_ACEOF
36447 # If the template does not know about datarootdir, expand it.
36448 # FIXME: This hack should be removed a few years after 2.60.
36449 ac_datarootdir_hack=; ac_datarootdir_seen=
36451 case `sed -n '/datarootdir/ {
36455 /@datadir@/p
36456 /@docdir@/p
36457 /@infodir@/p
36458 /@localedir@/p
36459 /@mandir@/p
36460 ' $ac_file_inputs` in
36461 *datarootdir*) ac_datarootdir_seen=yes;;
36462 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36463 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36464 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36465 _ACEOF
36466 cat >>$CONFIG_STATUS <<_ACEOF
36467 ac_datarootdir_hack='
36468 s&@datadir@&$datadir&g
36469 s&@docdir@&$docdir&g
36470 s&@infodir@&$infodir&g
36471 s&@localedir@&$localedir&g
36472 s&@mandir@&$mandir&g
36473 s&\\\${datarootdir}&$datarootdir&g' ;;
36474 esac
36475 _ACEOF
36477 # Neutralize VPATH when `$srcdir' = `.'.
36478 # Shell code in configure.ac might set extrasub.
36479 # FIXME: do we really want to maintain this feature?
36480 cat >>$CONFIG_STATUS <<_ACEOF
36481 sed "$ac_vpsub
36482 $extrasub
36483 _ACEOF
36484 cat >>$CONFIG_STATUS <<\_ACEOF
36486 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36487 s&@configure_input@&$configure_input&;t t
36488 s&@top_builddir@&$ac_top_builddir_sub&;t t
36489 s&@srcdir@&$ac_srcdir&;t t
36490 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36491 s&@top_srcdir@&$ac_top_srcdir&;t t
36492 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36493 s&@builddir@&$ac_builddir&;t t
36494 s&@abs_builddir@&$ac_abs_builddir&;t t
36495 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36496 s&@INSTALL@&$ac_INSTALL&;t t
36497 $ac_datarootdir_hack
36498 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36500 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36501 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36502 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36503 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36504 which seems to be undefined. Please make sure it is defined." >&5
36505 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36506 which seems to be undefined. Please make sure it is defined." >&2;}
36508 rm -f "$tmp/stdin"
36509 case $ac_file in
36510 -) cat "$tmp/out"; rm -f "$tmp/out";;
36511 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36512 esac
36516 # CONFIG_HEADER
36518 _ACEOF
36520 # Transform confdefs.h into a sed script `conftest.defines', that
36521 # substitutes the proper values into config.h.in to produce config.h.
36522 rm -f conftest.defines conftest.tail
36523 # First, append a space to every undef/define line, to ease matching.
36524 echo 's/$/ /' >conftest.defines
36525 # Then, protect against being on the right side of a sed subst, or in
36526 # an unquoted here document, in config.status. If some macros were
36527 # called several times there might be several #defines for the same
36528 # symbol, which is useless. But do not sort them, since the last
36529 # AC_DEFINE must be honored.
36530 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36531 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36532 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36533 # PARAMS is the parameter list in the macro definition--in most cases, it's
36534 # just an empty string.
36535 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36536 ac_dB='\\)[ (].*,\\1define\\2'
36537 ac_dC=' '
36538 ac_dD=' ,'
36540 uniq confdefs.h |
36541 sed -n '
36542 t rset
36543 :rset
36544 s/^[ ]*#[ ]*define[ ][ ]*//
36545 t ok
36548 s/[\\&,]/\\&/g
36549 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36550 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36551 ' >>conftest.defines
36553 # Remove the space that was appended to ease matching.
36554 # Then replace #undef with comments. This is necessary, for
36555 # example, in the case of _POSIX_SOURCE, which is predefined and required
36556 # on some systems where configure will not decide to define it.
36557 # (The regexp can be short, since the line contains either #define or #undef.)
36558 echo 's/ $//
36559 s,^[ #]*u.*,/* & */,' >>conftest.defines
36561 # Break up conftest.defines:
36562 ac_max_sed_lines=50
36564 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36565 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36566 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36567 # et cetera.
36568 ac_in='$ac_file_inputs'
36569 ac_out='"$tmp/out1"'
36570 ac_nxt='"$tmp/out2"'
36572 while :
36574 # Write a here document:
36575 cat >>$CONFIG_STATUS <<_ACEOF
36576 # First, check the format of the line:
36577 cat >"\$tmp/defines.sed" <<\\CEOF
36578 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36579 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36581 :def
36582 _ACEOF
36583 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36584 echo 'CEOF
36585 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36586 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36587 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36588 grep . conftest.tail >/dev/null || break
36589 rm -f conftest.defines
36590 mv conftest.tail conftest.defines
36591 done
36592 rm -f conftest.defines conftest.tail
36594 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36595 cat >>$CONFIG_STATUS <<\_ACEOF
36596 if test x"$ac_file" != x-; then
36597 echo "/* $configure_input */" >"$tmp/config.h"
36598 cat "$ac_result" >>"$tmp/config.h"
36599 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36600 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36601 echo "$as_me: $ac_file is unchanged" >&6;}
36602 else
36603 rm -f $ac_file
36604 mv "$tmp/config.h" $ac_file
36606 else
36607 echo "/* $configure_input */"
36608 cat "$ac_result"
36610 rm -f "$tmp/out12"
36613 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36614 echo "$as_me: executing $ac_file commands" >&6;}
36616 esac
36619 case $ac_file$ac_mode in
36620 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36621 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36622 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36623 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36624 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36625 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36626 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36627 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36628 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36629 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36630 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36631 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36632 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36633 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36634 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36635 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36636 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36637 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36638 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36639 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36640 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36641 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36642 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36643 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36644 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36645 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36647 esac
36648 done # for ac_tag
36651 { (exit 0); exit 0; }
36652 _ACEOF
36653 chmod +x $CONFIG_STATUS
36654 ac_clean_files=$ac_clean_files_save
36657 # configure is writing to config.log, and then calls config.status.
36658 # config.status does its own redirection, appending to config.log.
36659 # Unfortunately, on DOS this fails, as config.log is still kept open
36660 # by configure, so config.status won't be able to write to it; its
36661 # output is simply discarded. So we exec the FD to /dev/null,
36662 # effectively closing config.log, so it can be properly (re)opened and
36663 # appended to by config.status. When coming back to configure, we
36664 # need to make the FD available again.
36665 if test "$no_create" != yes; then
36666 ac_cs_success=:
36667 ac_config_status_args=
36668 test "$silent" = yes &&
36669 ac_config_status_args="$ac_config_status_args --quiet"
36670 exec 5>/dev/null
36671 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36672 exec 5>>config.log
36673 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36674 # would make configure fail if this is the last instruction.
36675 $ac_cs_success || { (exit 1); exit 1; }
36679 # CONFIG_SUBDIRS section.
36681 if test "$no_recursion" != yes; then
36683 # Remove --cache-file and --srcdir arguments so they do not pile up.
36684 ac_sub_configure_args=
36685 ac_prev=
36686 eval "set x $ac_configure_args"
36687 shift
36688 for ac_arg
36690 if test -n "$ac_prev"; then
36691 ac_prev=
36692 continue
36694 case $ac_arg in
36695 -cache-file | --cache-file | --cache-fil | --cache-fi \
36696 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36697 ac_prev=cache_file ;;
36698 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36699 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36700 | --c=*)
36702 --config-cache | -C)
36704 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36705 ac_prev=srcdir ;;
36706 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36708 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36709 ac_prev=prefix ;;
36710 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36713 case $ac_arg in
36714 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36715 esac
36716 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36717 esac
36718 done
36720 # Always prepend --prefix to ensure using the same prefix
36721 # in subdir configurations.
36722 ac_arg="--prefix=$prefix"
36723 case $ac_arg in
36724 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36725 esac
36726 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36728 ac_popdir=`pwd`
36729 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36731 # Do not complain, so a configure script can configure whichever
36732 # parts of a large source tree are present.
36733 test -d "$srcdir/$ac_dir" || continue
36735 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36736 echo "$as_me:$LINENO: $ac_msg" >&5
36737 echo "$ac_msg" >&6
36738 { as_dir="$ac_dir"
36739 case $as_dir in #(
36740 -*) as_dir=./$as_dir;;
36741 esac
36742 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36743 as_dirs=
36744 while :; do
36745 case $as_dir in #(
36746 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36747 *) as_qdir=$as_dir;;
36748 esac
36749 as_dirs="'$as_qdir' $as_dirs"
36750 as_dir=`$as_dirname -- "$as_dir" ||
36751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36752 X"$as_dir" : 'X\(//\)[^/]' \| \
36753 X"$as_dir" : 'X\(//\)$' \| \
36754 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36755 echo X"$as_dir" |
36756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36757 s//\1/
36760 /^X\(\/\/\)[^/].*/{
36761 s//\1/
36764 /^X\(\/\/\)$/{
36765 s//\1/
36768 /^X\(\/\).*/{
36769 s//\1/
36772 s/.*/./; q'`
36773 test -d "$as_dir" && break
36774 done
36775 test -z "$as_dirs" || eval "mkdir $as_dirs"
36776 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36777 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36778 { (exit 1); exit 1; }; }; }
36779 ac_builddir=.
36781 case "$ac_dir" in
36782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36784 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36785 # A ".." for each directory in $ac_dir_suffix.
36786 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36787 case $ac_top_builddir_sub in
36788 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36789 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36790 esac ;;
36791 esac
36792 ac_abs_top_builddir=$ac_pwd
36793 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36794 # for backward compatibility:
36795 ac_top_builddir=$ac_top_build_prefix
36797 case $srcdir in
36798 .) # We are building in place.
36799 ac_srcdir=.
36800 ac_top_srcdir=$ac_top_builddir_sub
36801 ac_abs_top_srcdir=$ac_pwd ;;
36802 [\\/]* | ?:[\\/]* ) # Absolute name.
36803 ac_srcdir=$srcdir$ac_dir_suffix;
36804 ac_top_srcdir=$srcdir
36805 ac_abs_top_srcdir=$srcdir ;;
36806 *) # Relative name.
36807 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36808 ac_top_srcdir=$ac_top_build_prefix$srcdir
36809 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36810 esac
36811 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36814 cd "$ac_dir"
36816 # Check for guested configure; otherwise get Cygnus style configure.
36817 if test -f "$ac_srcdir/configure.gnu"; then
36818 ac_sub_configure=$ac_srcdir/configure.gnu
36819 elif test -f "$ac_srcdir/configure"; then
36820 ac_sub_configure=$ac_srcdir/configure
36821 elif test -f "$ac_srcdir/configure.in"; then
36822 # This should be Cygnus configure.
36823 ac_sub_configure=$ac_aux_dir/configure
36824 else
36825 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36826 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36827 ac_sub_configure=
36830 # The recursion is here.
36831 if test -n "$ac_sub_configure"; then
36832 # Make the cache file name correct relative to the subdirectory.
36833 case $cache_file in
36834 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36835 *) # Relative name.
36836 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36837 esac
36839 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36840 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36841 # The eval makes quoting arguments work.
36842 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36843 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36844 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36845 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36846 { (exit 1); exit 1; }; }
36849 cd "$ac_popdir"
36850 done