Added register-to-register ADD instructions to the
[llvm/avr.git] / configure
blobbed64f85163a40335b841ecaf2ccda77e9fd19cb
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
841 TARGET_HAS_JIT
842 ENABLE_DOXYGEN
843 ENABLE_THREADS
844 ENABLE_PIC
845 TARGETS_TO_BUILD
846 LLVM_ENUM_TARGETS
847 LLVM_ENUM_ASM_PRINTERS
848 LLVM_ENUM_ASM_PARSERS
849 ENABLE_CBE_PRINTF_A
850 EXTRA_OPTIONS
851 BINUTILS_INCDIR
852 ENABLE_LLVMC_DYNAMIC
853 ENABLE_LLVMC_DYNAMIC_PLUGINS
855 CXXFLAGS
856 ac_ct_CXX
858 ifGNUmake
859 LN_S
862 DATE
863 FIND
864 MKDIR
866 RANLIB
870 BINPWD
871 GRAPHVIZ
874 NEATO
875 TWOPI
876 CIRCO
878 DOTTY
879 PERL
880 HAVE_PERL
881 INSTALL_PROGRAM
882 INSTALL_SCRIPT
883 INSTALL_DATA
884 BZIP2
885 DOXYGEN
886 GROFF
887 GZIP
888 POD2HTML
889 POD2MAN
890 RUNTEST
891 TCLSH
893 OCAMLC
894 OCAMLOPT
895 OCAMLDEP
896 OCAMLDOC
898 INSTALL_LTDL_TRUE
899 INSTALL_LTDL_FALSE
900 CONVENIENCE_LTDL_TRUE
901 CONVENIENCE_LTDL_FALSE
902 LIBADD_DL
903 ECHO
905 STRIP
906 CXXCPP
908 FFLAGS
909 ac_ct_F77
910 LIBTOOL
911 LLVMGCCCOMMAND
912 LLVMGXXCOMMAND
913 LLVMGCC
914 LLVMGXX
915 USE_UDIS86
916 USE_OPROFILE
917 HAVE_PTHREAD
918 HUGE_VAL_SANITY
919 ALLOCA
920 MMAP_FILE
921 LLVMCC1
922 LLVMCC1PLUS
923 LLVMGCCDIR
924 LLVMGCCLIBEXEC
925 LLVMGCC_VERSION
926 LLVMGCC_MAJVERS
927 LLVMGCC_LANGS
928 SHLIBEXT
929 LLVM_PREFIX
930 LLVM_BINDIR
931 LLVM_LIBDIR
932 LLVM_DATADIR
933 LLVM_DOCSDIR
934 LLVM_ETCDIR
935 LLVM_INCLUDEDIR
936 LLVM_INFODIR
937 LLVM_MANDIR
938 LLVM_CONFIGTIME
939 BINDINGS_TO_BUILD
940 ALL_BINDINGS
941 OCAML_LIBDIR
942 ENABLE_VISIBILITY_INLINES_HIDDEN
943 RPATH
944 RDYNAMIC
945 LIBOBJS
946 LTLIBOBJS'
947 ac_subst_files=''
948 ac_precious_vars='build_alias
949 host_alias
950 target_alias
952 CFLAGS
953 LDFLAGS
954 CPPFLAGS
957 CXXFLAGS
959 CXXCPP
961 FFLAGS'
962 ac_subdirs_all='projects/sample
963 projects/privbracket
964 projects/llvm-stacker
965 projects/llvm-test
966 projects/test-suite
967 projects/llvm-reopt
968 projects/llvm-gcc
969 projects/llvm-java
970 projects/llvm-tv
971 projects/llvm-poolalloc
972 projects/poolalloc
973 projects/llvm-kernel'
975 # Initialize some variables set by options.
976 ac_init_help=
977 ac_init_version=false
978 # The variables have the same names as the options, with
979 # dashes changed to underlines.
980 cache_file=/dev/null
981 exec_prefix=NONE
982 no_create=
983 no_recursion=
984 prefix=NONE
985 program_prefix=NONE
986 program_suffix=NONE
987 program_transform_name=s,x,x,
988 silent=
989 site=
990 srcdir=
991 verbose=
992 x_includes=NONE
993 x_libraries=NONE
995 # Installation directory options.
996 # These are left unexpanded so users can "make install exec_prefix=/foo"
997 # and all the variables that are supposed to be based on exec_prefix
998 # by default will actually change.
999 # Use braces instead of parens because sh, perl, etc. also accept them.
1000 # (The list follows the same order as the GNU Coding Standards.)
1001 bindir='${exec_prefix}/bin'
1002 sbindir='${exec_prefix}/sbin'
1003 libexecdir='${exec_prefix}/libexec'
1004 datarootdir='${prefix}/share'
1005 datadir='${datarootdir}'
1006 sysconfdir='${prefix}/etc'
1007 sharedstatedir='${prefix}/com'
1008 localstatedir='${prefix}/var'
1009 includedir='${prefix}/include'
1010 oldincludedir='/usr/include'
1011 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1012 infodir='${datarootdir}/info'
1013 htmldir='${docdir}'
1014 dvidir='${docdir}'
1015 pdfdir='${docdir}'
1016 psdir='${docdir}'
1017 libdir='${exec_prefix}/lib'
1018 localedir='${datarootdir}/locale'
1019 mandir='${datarootdir}/man'
1021 ac_prev=
1022 ac_dashdash=
1023 for ac_option
1025 # If the previous option needs an argument, assign it.
1026 if test -n "$ac_prev"; then
1027 eval $ac_prev=\$ac_option
1028 ac_prev=
1029 continue
1032 case $ac_option in
1033 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 *) ac_optarg=yes ;;
1035 esac
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1039 case $ac_dashdash$ac_option in
1041 ac_dashdash=yes ;;
1043 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044 ac_prev=bindir ;;
1045 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046 bindir=$ac_optarg ;;
1048 -build | --build | --buil | --bui | --bu)
1049 ac_prev=build_alias ;;
1050 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051 build_alias=$ac_optarg ;;
1053 -cache-file | --cache-file | --cache-fil | --cache-fi \
1054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055 ac_prev=cache_file ;;
1056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058 cache_file=$ac_optarg ;;
1060 --config-cache | -C)
1061 cache_file=config.cache ;;
1063 -datadir | --datadir | --datadi | --datad)
1064 ac_prev=datadir ;;
1065 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1066 datadir=$ac_optarg ;;
1068 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069 | --dataroo | --dataro | --datar)
1070 ac_prev=datarootdir ;;
1071 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073 datarootdir=$ac_optarg ;;
1075 -disable-* | --disable-*)
1076 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1082 eval enable_$ac_feature=no ;;
1084 -docdir | --docdir | --docdi | --doc | --do)
1085 ac_prev=docdir ;;
1086 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087 docdir=$ac_optarg ;;
1089 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090 ac_prev=dvidir ;;
1091 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092 dvidir=$ac_optarg ;;
1094 -enable-* | --enable-*)
1095 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1098 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1099 { (exit 1); exit 1; }; }
1100 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1101 eval enable_$ac_feature=\$ac_optarg ;;
1103 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1104 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1105 | --exec | --exe | --ex)
1106 ac_prev=exec_prefix ;;
1107 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1108 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1109 | --exec=* | --exe=* | --ex=*)
1110 exec_prefix=$ac_optarg ;;
1112 -gas | --gas | --ga | --g)
1113 # Obsolete; use --with-gas.
1114 with_gas=yes ;;
1116 -help | --help | --hel | --he | -h)
1117 ac_init_help=long ;;
1118 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1119 ac_init_help=recursive ;;
1120 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1121 ac_init_help=short ;;
1123 -host | --host | --hos | --ho)
1124 ac_prev=host_alias ;;
1125 -host=* | --host=* | --hos=* | --ho=*)
1126 host_alias=$ac_optarg ;;
1128 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1129 ac_prev=htmldir ;;
1130 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1131 | --ht=*)
1132 htmldir=$ac_optarg ;;
1134 -includedir | --includedir | --includedi | --included | --include \
1135 | --includ | --inclu | --incl | --inc)
1136 ac_prev=includedir ;;
1137 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1138 | --includ=* | --inclu=* | --incl=* | --inc=*)
1139 includedir=$ac_optarg ;;
1141 -infodir | --infodir | --infodi | --infod | --info | --inf)
1142 ac_prev=infodir ;;
1143 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1144 infodir=$ac_optarg ;;
1146 -libdir | --libdir | --libdi | --libd)
1147 ac_prev=libdir ;;
1148 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1149 libdir=$ac_optarg ;;
1151 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1152 | --libexe | --libex | --libe)
1153 ac_prev=libexecdir ;;
1154 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1155 | --libexe=* | --libex=* | --libe=*)
1156 libexecdir=$ac_optarg ;;
1158 -localedir | --localedir | --localedi | --localed | --locale)
1159 ac_prev=localedir ;;
1160 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1161 localedir=$ac_optarg ;;
1163 -localstatedir | --localstatedir | --localstatedi | --localstated \
1164 | --localstate | --localstat | --localsta | --localst | --locals)
1165 ac_prev=localstatedir ;;
1166 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1167 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1168 localstatedir=$ac_optarg ;;
1170 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1171 ac_prev=mandir ;;
1172 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1173 mandir=$ac_optarg ;;
1175 -nfp | --nfp | --nf)
1176 # Obsolete; use --without-fp.
1177 with_fp=no ;;
1179 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1180 | --no-cr | --no-c | -n)
1181 no_create=yes ;;
1183 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 no_recursion=yes ;;
1187 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1188 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1189 | --oldin | --oldi | --old | --ol | --o)
1190 ac_prev=oldincludedir ;;
1191 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1192 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1193 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1194 oldincludedir=$ac_optarg ;;
1196 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1197 ac_prev=prefix ;;
1198 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1199 prefix=$ac_optarg ;;
1201 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1202 | --program-pre | --program-pr | --program-p)
1203 ac_prev=program_prefix ;;
1204 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1205 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1206 program_prefix=$ac_optarg ;;
1208 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1209 | --program-suf | --program-su | --program-s)
1210 ac_prev=program_suffix ;;
1211 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1212 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1213 program_suffix=$ac_optarg ;;
1215 -program-transform-name | --program-transform-name \
1216 | --program-transform-nam | --program-transform-na \
1217 | --program-transform-n | --program-transform- \
1218 | --program-transform | --program-transfor \
1219 | --program-transfo | --program-transf \
1220 | --program-trans | --program-tran \
1221 | --progr-tra | --program-tr | --program-t)
1222 ac_prev=program_transform_name ;;
1223 -program-transform-name=* | --program-transform-name=* \
1224 | --program-transform-nam=* | --program-transform-na=* \
1225 | --program-transform-n=* | --program-transform-=* \
1226 | --program-transform=* | --program-transfor=* \
1227 | --program-transfo=* | --program-transf=* \
1228 | --program-trans=* | --program-tran=* \
1229 | --progr-tra=* | --program-tr=* | --program-t=*)
1230 program_transform_name=$ac_optarg ;;
1232 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1233 ac_prev=pdfdir ;;
1234 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1235 pdfdir=$ac_optarg ;;
1237 -psdir | --psdir | --psdi | --psd | --ps)
1238 ac_prev=psdir ;;
1239 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 psdir=$ac_optarg ;;
1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1244 silent=yes ;;
1246 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247 ac_prev=sbindir ;;
1248 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249 | --sbi=* | --sb=*)
1250 sbindir=$ac_optarg ;;
1252 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254 | --sharedst | --shareds | --shared | --share | --shar \
1255 | --sha | --sh)
1256 ac_prev=sharedstatedir ;;
1257 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260 | --sha=* | --sh=*)
1261 sharedstatedir=$ac_optarg ;;
1263 -site | --site | --sit)
1264 ac_prev=site ;;
1265 -site=* | --site=* | --sit=*)
1266 site=$ac_optarg ;;
1268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269 ac_prev=srcdir ;;
1270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271 srcdir=$ac_optarg ;;
1273 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274 | --syscon | --sysco | --sysc | --sys | --sy)
1275 ac_prev=sysconfdir ;;
1276 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278 sysconfdir=$ac_optarg ;;
1280 -target | --target | --targe | --targ | --tar | --ta | --t)
1281 ac_prev=target_alias ;;
1282 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283 target_alias=$ac_optarg ;;
1285 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 verbose=yes ;;
1288 -version | --version | --versio | --versi | --vers | -V)
1289 ac_init_version=: ;;
1291 -with-* | --with-*)
1292 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1295 { echo "$as_me: error: invalid package name: $ac_package" >&2
1296 { (exit 1); exit 1; }; }
1297 ac_package=`echo $ac_package| sed 's/-/_/g'`
1298 eval with_$ac_package=\$ac_optarg ;;
1300 -without-* | --without-*)
1301 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1304 { echo "$as_me: error: invalid package name: $ac_package" >&2
1305 { (exit 1); exit 1; }; }
1306 ac_package=`echo $ac_package | sed 's/-/_/g'`
1307 eval with_$ac_package=no ;;
1309 --x)
1310 # Obsolete; use --with-x.
1311 with_x=yes ;;
1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314 | --x-incl | --x-inc | --x-in | --x-i)
1315 ac_prev=x_includes ;;
1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318 x_includes=$ac_optarg ;;
1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322 ac_prev=x_libraries ;;
1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325 x_libraries=$ac_optarg ;;
1327 -*) { echo "$as_me: error: unrecognized option: $ac_option
1328 Try \`$0 --help' for more information." >&2
1329 { (exit 1); exit 1; }; }
1332 *=*)
1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1336 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1337 { (exit 1); exit 1; }; }
1338 eval $ac_envvar=\$ac_optarg
1339 export $ac_envvar ;;
1342 # FIXME: should be removed in autoconf 3.0.
1343 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 esac
1350 done
1352 if test -n "$ac_prev"; then
1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354 { echo "$as_me: error: missing argument to $ac_option" >&2
1355 { (exit 1); exit 1; }; }
1358 # Be sure to have absolute directory names.
1359 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1360 datadir sysconfdir sharedstatedir localstatedir includedir \
1361 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1362 libdir localedir mandir
1364 eval ac_val=\$$ac_var
1365 case $ac_val in
1366 [\\/$]* | ?:[\\/]* ) continue;;
1367 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368 esac
1369 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1370 { (exit 1); exit 1; }; }
1371 done
1373 # There might be people who depend on the old broken behavior: `$host'
1374 # used to hold the argument of --host etc.
1375 # FIXME: To remove some day.
1376 build=$build_alias
1377 host=$host_alias
1378 target=$target_alias
1380 # FIXME: To remove some day.
1381 if test "x$host_alias" != x; then
1382 if test "x$build_alias" = x; then
1383 cross_compiling=maybe
1384 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1385 If a cross compiler is detected then cross compile mode will be used." >&2
1386 elif test "x$build_alias" != "x$host_alias"; then
1387 cross_compiling=yes
1391 ac_tool_prefix=
1392 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1394 test "$silent" = yes && exec 6>/dev/null
1397 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1398 ac_ls_di=`ls -di .` &&
1399 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1400 { echo "$as_me: error: Working directory cannot be determined" >&2
1401 { (exit 1); exit 1; }; }
1402 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1403 { echo "$as_me: error: pwd does not report name of working directory" >&2
1404 { (exit 1); exit 1; }; }
1407 # Find the source files, if location was not specified.
1408 if test -z "$srcdir"; then
1409 ac_srcdir_defaulted=yes
1410 # Try the directory containing this script, then the parent directory.
1411 ac_confdir=`$as_dirname -- "$0" ||
1412 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1413 X"$0" : 'X\(//\)[^/]' \| \
1414 X"$0" : 'X\(//\)$' \| \
1415 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1416 echo X"$0" |
1417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418 s//\1/
1421 /^X\(\/\/\)[^/].*/{
1422 s//\1/
1425 /^X\(\/\/\)$/{
1426 s//\1/
1429 /^X\(\/\).*/{
1430 s//\1/
1433 s/.*/./; q'`
1434 srcdir=$ac_confdir
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1436 srcdir=..
1438 else
1439 ac_srcdir_defaulted=no
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1444 { (exit 1); exit 1; }; }
1446 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1447 ac_abs_confdir=`(
1448 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1449 { (exit 1); exit 1; }; }
1450 pwd)`
1451 # When building in place, set srcdir=.
1452 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 srcdir=.
1455 # Remove unnecessary trailing slashes from srcdir.
1456 # Double slashes in file names in object file debugging info
1457 # mess up M-x gdb in Emacs.
1458 case $srcdir in
1459 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460 esac
1461 for ac_var in $ac_precious_vars; do
1462 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_env_${ac_var}_value=\$${ac_var}
1464 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466 done
1469 # Report the --help message.
1471 if test "$ac_init_help" = "long"; then
1472 # Omit some internal or obsolete options to make the list less imposing.
1473 # This message is too long to be a string in the A/UX 3.1 sh.
1474 cat <<_ACEOF
1475 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1477 Usage: $0 [OPTION]... [VAR=VALUE]...
1479 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480 VAR=VALUE. See below for descriptions of some of the useful variables.
1482 Defaults for the options are specified in brackets.
1484 Configuration:
1485 -h, --help display this help and exit
1486 --help=short display options specific to this package
1487 --help=recursive display the short help of all the included packages
1488 -V, --version display version information and exit
1489 -q, --quiet, --silent do not print \`checking...' messages
1490 --cache-file=FILE cache test results in FILE [disabled]
1491 -C, --config-cache alias for \`--cache-file=config.cache'
1492 -n, --no-create do not create output files
1493 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1495 Installation directories:
1496 --prefix=PREFIX install architecture-independent files in PREFIX
1497 [$ac_default_prefix]
1498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 [PREFIX]
1501 By default, \`make install' will install all the files in
1502 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1503 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504 for instance \`--prefix=\$HOME'.
1506 For better control, use the options below.
1508 Fine tuning of the installation directories:
1509 --bindir=DIR user executables [EPREFIX/bin]
1510 --sbindir=DIR system admin executables [EPREFIX/sbin]
1511 --libexecdir=DIR program executables [EPREFIX/libexec]
1512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1515 --libdir=DIR object code libraries [EPREFIX/lib]
1516 --includedir=DIR C header files [PREFIX/include]
1517 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1520 --infodir=DIR info documentation [DATAROOTDIR/info]
1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1522 --mandir=DIR man documentation [DATAROOTDIR/man]
1523 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1524 --htmldir=DIR html documentation [DOCDIR]
1525 --dvidir=DIR dvi documentation [DOCDIR]
1526 --pdfdir=DIR pdf documentation [DOCDIR]
1527 --psdir=DIR ps documentation [DOCDIR]
1528 _ACEOF
1530 cat <<\_ACEOF
1532 System types:
1533 --build=BUILD configure for building on BUILD [guessed]
1534 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1535 --target=TARGET configure for building compilers for TARGET [HOST]
1536 _ACEOF
1539 if test -n "$ac_init_help"; then
1540 case $ac_init_help in
1541 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1542 esac
1543 cat <<\_ACEOF
1545 Optional Features:
1546 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1547 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1548 --enable-optimized Compile with optimizations enabled (default is NO)
1549 --enable-profiling Compile with profiling enabled (default is NO)
1550 --enable-assertions Compile with assertion checks enabled (default is
1551 YES)
1552 --enable-expensive-checks
1553 Compile with expensive debug checks enabled (default
1554 is NO)
1555 --enable-debug-runtime Build runtime libs with debug symbols (default is
1557 --enable-jit Enable Just In Time Compiling (default is YES)
1558 --enable-doxygen Build doxygen documentation (default is NO)
1559 --enable-threads Use threads if available (default is YES)
1560 --enable-pic Build LLVM with Position Independent Code (default
1561 is YES)
1562 --enable-targets Build specific host targets:
1563 all,host-only,{target-name} (default=all)
1564 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1565 %a (default is YES)
1566 --enable-bindings Build specific language bindings:
1567 all,auto,none,{binding-name} (default=auto)
1568 --enable-libffi Check for the presence of libffi (default is YES)
1569 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1570 Win32)
1571 --enable-llvmc-dynamic-plugins
1572 Enable dynamic LLVMC plugins (default is YES)
1573 --enable-ltdl-install install libltdl
1574 --enable-shared[=PKGS] build shared libraries
1575 [default=yes]
1576 --enable-static[=PKGS] build static libraries
1577 [default=yes]
1578 --enable-fast-install[=PKGS]
1579 optimize for fast installation
1580 [default=yes]
1581 --disable-libtool-lock avoid locking (might break parallel builds)
1583 Optional Packages:
1584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1586 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1587 searches PATH)
1588 --with-llvmgcc Specify location of llvm-gcc driver (default
1589 searches PATH)
1590 --with-llvmgxx Specify location of llvm-g++ driver (default
1591 searches PATH)
1592 --with-extra-options Specify additional options to compile LLVM with
1593 --with-ocaml-libdir Specify install location for ocaml bindings (default
1594 is stdlib)
1595 --with-binutils-include Specify path to binutils/include/ containing
1596 plugin-api.h file for gold plugin.
1597 --with-tclinclude directory where tcl headers are
1598 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1599 --with-pic try to use only PIC/non-PIC objects [default=use
1600 both]
1601 --with-tags[=TAGS] include additional configurations [automatic]
1602 --with-udis86=<path> Use udis86 external x86 disassembler library
1603 --with-oprofile=<prefix>
1604 Tell OProfile >= 0.9.4 how to symbolize JIT output
1606 Some influential environment variables:
1607 CC C compiler command
1608 CFLAGS C compiler flags
1609 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1610 nonstandard directory <lib dir>
1611 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1612 you have headers in a nonstandard directory <include dir>
1613 CPP C preprocessor
1614 CXX C++ compiler command
1615 CXXFLAGS C++ compiler flags
1616 CXXCPP C++ preprocessor
1617 F77 Fortran 77 compiler command
1618 FFLAGS Fortran 77 compiler flags
1620 Use these variables to override the choices made by `configure' or to help
1621 it to find libraries and programs with nonstandard names/locations.
1623 Report bugs to <llvmbugs@cs.uiuc.edu>.
1624 _ACEOF
1625 ac_status=$?
1628 if test "$ac_init_help" = "recursive"; then
1629 # If there are subdirs, report their specific --help.
1630 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631 test -d "$ac_dir" || continue
1632 ac_builddir=.
1634 case "$ac_dir" in
1635 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1638 # A ".." for each directory in $ac_dir_suffix.
1639 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1640 case $ac_top_builddir_sub in
1641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643 esac ;;
1644 esac
1645 ac_abs_top_builddir=$ac_pwd
1646 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1647 # for backward compatibility:
1648 ac_top_builddir=$ac_top_build_prefix
1650 case $srcdir in
1651 .) # We are building in place.
1652 ac_srcdir=.
1653 ac_top_srcdir=$ac_top_builddir_sub
1654 ac_abs_top_srcdir=$ac_pwd ;;
1655 [\\/]* | ?:[\\/]* ) # Absolute name.
1656 ac_srcdir=$srcdir$ac_dir_suffix;
1657 ac_top_srcdir=$srcdir
1658 ac_abs_top_srcdir=$srcdir ;;
1659 *) # Relative name.
1660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661 ac_top_srcdir=$ac_top_build_prefix$srcdir
1662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1663 esac
1664 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666 cd "$ac_dir" || { ac_status=$?; continue; }
1667 # Check for guested configure.
1668 if test -f "$ac_srcdir/configure.gnu"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671 elif test -f "$ac_srcdir/configure"; then
1672 echo &&
1673 $SHELL "$ac_srcdir/configure" --help=recursive
1674 else
1675 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1676 fi || ac_status=$?
1677 cd "$ac_pwd" || { ac_status=$?; break; }
1678 done
1681 test -n "$ac_init_help" && exit $ac_status
1682 if $ac_init_version; then
1683 cat <<\_ACEOF
1684 llvm configure 2.7svn
1685 generated by GNU Autoconf 2.60
1687 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1688 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1689 This configure script is free software; the Free Software Foundation
1690 gives unlimited permission to copy, distribute and modify it.
1692 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1693 _ACEOF
1694 exit
1696 cat >config.log <<_ACEOF
1697 This file contains any messages produced by compilers while
1698 running configure, to aid debugging if configure makes a mistake.
1700 It was created by llvm $as_me 2.7svn, which was
1701 generated by GNU Autoconf 2.60. Invocation command line was
1703 $ $0 $@
1705 _ACEOF
1706 exec 5>>config.log
1708 cat <<_ASUNAME
1709 ## --------- ##
1710 ## Platform. ##
1711 ## --------- ##
1713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1722 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1723 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1725 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1726 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1727 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1728 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1730 _ASUNAME
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 echo "PATH: $as_dir"
1738 done
1739 IFS=$as_save_IFS
1741 } >&5
1743 cat >&5 <<_ACEOF
1746 ## ----------- ##
1747 ## Core tests. ##
1748 ## ----------- ##
1750 _ACEOF
1753 # Keep a trace of the command line.
1754 # Strip out --no-create and --no-recursion so they do not pile up.
1755 # Strip out --silent because we don't want to record it for future runs.
1756 # Also quote any args containing shell meta-characters.
1757 # Make two passes to allow for proper duplicate-argument suppression.
1758 ac_configure_args=
1759 ac_configure_args0=
1760 ac_configure_args1=
1761 ac_must_keep_next=false
1762 for ac_pass in 1 2
1764 for ac_arg
1766 case $ac_arg in
1767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769 | -silent | --silent | --silen | --sile | --sil)
1770 continue ;;
1771 *\'*)
1772 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1773 esac
1774 case $ac_pass in
1775 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1777 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1778 if test $ac_must_keep_next = true; then
1779 ac_must_keep_next=false # Got value, back to normal.
1780 else
1781 case $ac_arg in
1782 *=* | --config-cache | -C | -disable-* | --disable-* \
1783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785 | -with-* | --with-* | -without-* | --without-* | --x)
1786 case "$ac_configure_args0 " in
1787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1788 esac
1790 -* ) ac_must_keep_next=true ;;
1791 esac
1793 ac_configure_args="$ac_configure_args '$ac_arg'"
1795 esac
1796 done
1797 done
1798 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1799 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1801 # When interrupted or exit'd, cleanup temporary files, and complete
1802 # config.log. We remove comments because anyway the quotes in there
1803 # would cause problems or look ugly.
1804 # WARNING: Use '\'' to represent an apostrophe within the trap.
1805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1806 trap 'exit_status=$?
1807 # Save into config.log some information that might help in debugging.
1809 echo
1811 cat <<\_ASBOX
1812 ## ---------------- ##
1813 ## Cache variables. ##
1814 ## ---------------- ##
1815 _ASBOX
1816 echo
1817 # The following way of writing the cache mishandles newlines in values,
1819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820 eval ac_val=\$$ac_var
1821 case $ac_val in #(
1822 *${as_nl}*)
1823 case $ac_var in #(
1824 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1825 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1826 esac
1827 case $ac_var in #(
1828 _ | IFS | as_nl) ;; #(
1829 *) $as_unset $ac_var ;;
1830 esac ;;
1831 esac
1832 done
1833 (set) 2>&1 |
1834 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835 *${as_nl}ac_space=\ *)
1836 sed -n \
1837 "s/'\''/'\''\\\\'\'''\''/g;
1838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1839 ;; #(
1841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1843 esac |
1844 sort
1846 echo
1848 cat <<\_ASBOX
1849 ## ----------------- ##
1850 ## Output variables. ##
1851 ## ----------------- ##
1852 _ASBOX
1853 echo
1854 for ac_var in $ac_subst_vars
1856 eval ac_val=\$$ac_var
1857 case $ac_val in
1858 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 esac
1860 echo "$ac_var='\''$ac_val'\''"
1861 done | sort
1862 echo
1864 if test -n "$ac_subst_files"; then
1865 cat <<\_ASBOX
1866 ## ------------------- ##
1867 ## File substitutions. ##
1868 ## ------------------- ##
1869 _ASBOX
1870 echo
1871 for ac_var in $ac_subst_files
1873 eval ac_val=\$$ac_var
1874 case $ac_val in
1875 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 esac
1877 echo "$ac_var='\''$ac_val'\''"
1878 done | sort
1879 echo
1882 if test -s confdefs.h; then
1883 cat <<\_ASBOX
1884 ## ----------- ##
1885 ## confdefs.h. ##
1886 ## ----------- ##
1887 _ASBOX
1888 echo
1889 cat confdefs.h
1890 echo
1892 test "$ac_signal" != 0 &&
1893 echo "$as_me: caught signal $ac_signal"
1894 echo "$as_me: exit $exit_status"
1895 } >&5
1896 rm -f core *.core core.conftest.* &&
1897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1898 exit $exit_status
1900 for ac_signal in 1 2 13 15; do
1901 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1902 done
1903 ac_signal=0
1905 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1906 rm -f -r conftest* confdefs.h
1908 # Predefined preprocessor variables.
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_NAME "$PACKAGE_NAME"
1912 _ACEOF
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917 _ACEOF
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1922 _ACEOF
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_STRING "$PACKAGE_STRING"
1927 _ACEOF
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1932 _ACEOF
1935 # Let the site file select an alternate cache file if it wants to.
1936 # Prefer explicitly selected file to automatically selected ones.
1937 if test -n "$CONFIG_SITE"; then
1938 set x "$CONFIG_SITE"
1939 elif test "x$prefix" != xNONE; then
1940 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1941 else
1942 set x "$ac_default_prefix/share/config.site" \
1943 "$ac_default_prefix/etc/config.site"
1945 shift
1946 for ac_site_file
1948 if test -r "$ac_site_file"; then
1949 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1950 echo "$as_me: loading site script $ac_site_file" >&6;}
1951 sed 's/^/| /' "$ac_site_file" >&5
1952 . "$ac_site_file"
1954 done
1956 if test -r "$cache_file"; then
1957 # Some versions of bash will fail to source /dev/null (special
1958 # files actually), so we avoid doing that.
1959 if test -f "$cache_file"; then
1960 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1961 echo "$as_me: loading cache $cache_file" >&6;}
1962 case $cache_file in
1963 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964 *) . "./$cache_file";;
1965 esac
1967 else
1968 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1969 echo "$as_me: creating cache $cache_file" >&6;}
1970 >$cache_file
1973 # Check that the precious variables saved in the cache have kept the same
1974 # value.
1975 ac_cache_corrupted=false
1976 for ac_var in $ac_precious_vars; do
1977 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1978 eval ac_new_set=\$ac_env_${ac_var}_set
1979 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1980 eval ac_new_val=\$ac_env_${ac_var}_value
1981 case $ac_old_set,$ac_new_set in
1982 set,)
1983 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1985 ac_cache_corrupted=: ;;
1986 ,set)
1987 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1989 ac_cache_corrupted=: ;;
1990 ,);;
1992 if test "x$ac_old_val" != "x$ac_new_val"; then
1993 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1994 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1995 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1996 echo "$as_me: former value: $ac_old_val" >&2;}
1997 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1998 echo "$as_me: current value: $ac_new_val" >&2;}
1999 ac_cache_corrupted=:
2000 fi;;
2001 esac
2002 # Pass precious variables to config.status.
2003 if test "$ac_new_set" = set; then
2004 case $ac_new_val in
2005 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006 *) ac_arg=$ac_var=$ac_new_val ;;
2007 esac
2008 case " $ac_configure_args " in
2009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2010 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2011 esac
2013 done
2014 if $ac_cache_corrupted; then
2015 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019 { (exit 1); exit 1; }; }
2046 ac_ext=c
2047 ac_cpp='$CPP $CPPFLAGS'
2048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2054 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2062 ac_aux_dir=
2063 for ac_dir in autoconf "$srcdir"/autoconf; do
2064 if test -f "$ac_dir/install-sh"; then
2065 ac_aux_dir=$ac_dir
2066 ac_install_sh="$ac_aux_dir/install-sh -c"
2067 break
2068 elif test -f "$ac_dir/install.sh"; then
2069 ac_aux_dir=$ac_dir
2070 ac_install_sh="$ac_aux_dir/install.sh -c"
2071 break
2072 elif test -f "$ac_dir/shtool"; then
2073 ac_aux_dir=$ac_dir
2074 ac_install_sh="$ac_aux_dir/shtool install -c"
2075 break
2077 done
2078 if test -z "$ac_aux_dir"; then
2079 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2080 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2081 { (exit 1); exit 1; }; }
2084 # These three variables are undocumented and unsupported,
2085 # and are intended to be withdrawn in a future Autoconf release.
2086 # They can cause serious problems if a builder's source tree is in a directory
2087 # whose full name contains unusual characters.
2088 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2089 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2090 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2094 if test ${srcdir} != "." ; then
2095 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2096 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2097 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2098 { (exit 1); exit 1; }; }
2102 for i in `ls ${srcdir}/projects`
2104 if test -d ${srcdir}/projects/${i} ; then
2105 case ${i} in
2106 CVS) ;;
2107 sample) subdirs="$subdirs projects/sample"
2109 privbracket) subdirs="$subdirs projects/privbracket"
2111 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2113 # llvm-test is the old name of the test-suite, kept here for backwards
2114 # compatibility
2115 llvm-test) subdirs="$subdirs projects/llvm-test"
2117 test-suite) subdirs="$subdirs projects/test-suite"
2119 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2121 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2123 llvm-java) subdirs="$subdirs projects/llvm-java"
2125 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2127 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2129 poolalloc) subdirs="$subdirs projects/poolalloc"
2131 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2134 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2135 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2137 esac
2139 done
2142 # Make sure we can run config.sub.
2143 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2144 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2145 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2146 { (exit 1); exit 1; }; }
2148 { echo "$as_me:$LINENO: checking build system type" >&5
2149 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2150 if test "${ac_cv_build+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 ac_build_alias=$build_alias
2154 test "x$ac_build_alias" = x &&
2155 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2156 test "x$ac_build_alias" = x &&
2157 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2158 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2159 { (exit 1); exit 1; }; }
2160 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2161 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2162 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2163 { (exit 1); exit 1; }; }
2166 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2167 echo "${ECHO_T}$ac_cv_build" >&6; }
2168 case $ac_cv_build in
2169 *-*-*) ;;
2170 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2171 echo "$as_me: error: invalid value of canonical build" >&2;}
2172 { (exit 1); exit 1; }; };;
2173 esac
2174 build=$ac_cv_build
2175 ac_save_IFS=$IFS; IFS='-'
2176 set x $ac_cv_build
2177 shift
2178 build_cpu=$1
2179 build_vendor=$2
2180 shift; shift
2181 # Remember, the first character of IFS is used to create $*,
2182 # except with old shells:
2183 build_os=$*
2184 IFS=$ac_save_IFS
2185 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2188 { echo "$as_me:$LINENO: checking host system type" >&5
2189 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2190 if test "${ac_cv_host+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 if test "x$host_alias" = x; then
2194 ac_cv_host=$ac_cv_build
2195 else
2196 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2197 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2198 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2203 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2204 echo "${ECHO_T}$ac_cv_host" >&6; }
2205 case $ac_cv_host in
2206 *-*-*) ;;
2207 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2208 echo "$as_me: error: invalid value of canonical host" >&2;}
2209 { (exit 1); exit 1; }; };;
2210 esac
2211 host=$ac_cv_host
2212 ac_save_IFS=$IFS; IFS='-'
2213 set x $ac_cv_host
2214 shift
2215 host_cpu=$1
2216 host_vendor=$2
2217 shift; shift
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2220 host_os=$*
2221 IFS=$ac_save_IFS
2222 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2225 { echo "$as_me:$LINENO: checking target system type" >&5
2226 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2227 if test "${ac_cv_target+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 if test "x$target_alias" = x; then
2231 ac_cv_target=$ac_cv_host
2232 else
2233 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2234 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2235 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2236 { (exit 1); exit 1; }; }
2240 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2241 echo "${ECHO_T}$ac_cv_target" >&6; }
2242 case $ac_cv_target in
2243 *-*-*) ;;
2244 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2245 echo "$as_me: error: invalid value of canonical target" >&2;}
2246 { (exit 1); exit 1; }; };;
2247 esac
2248 target=$ac_cv_target
2249 ac_save_IFS=$IFS; IFS='-'
2250 set x $ac_cv_target
2251 shift
2252 target_cpu=$1
2253 target_vendor=$2
2254 shift; shift
2255 # Remember, the first character of IFS is used to create $*,
2256 # except with old shells:
2257 target_os=$*
2258 IFS=$ac_save_IFS
2259 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2262 # The aliases save the names the user supplied, while $host etc.
2263 # will get canonicalized.
2264 test -n "$target_alias" &&
2265 test "$program_prefix$program_suffix$program_transform_name" = \
2266 NONENONEs,x,x, &&
2267 program_prefix=${target_alias}-
2269 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2270 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2271 if test "${llvm_cv_os_type+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274 case $host in
2275 *-*-aix*)
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="AIX"
2279 llvm_cv_platform_type="Unix" ;;
2280 *-*-irix*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="IRIX"
2284 llvm_cv_platform_type="Unix" ;;
2285 *-*-cygwin*)
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="Cygwin"
2289 llvm_cv_platform_type="Unix" ;;
2290 *-*-darwin*)
2291 llvm_cv_link_all_option="-Wl,-all_load"
2292 llvm_cv_no_link_all_option="-Wl,-noall_load"
2293 llvm_cv_os_type="Darwin"
2294 llvm_cv_platform_type="Unix" ;;
2295 *-*-freebsd*)
2296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298 llvm_cv_os_type="FreeBSD"
2299 llvm_cv_platform_type="Unix" ;;
2300 *-*-openbsd*)
2301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303 llvm_cv_os_type="OpenBSD"
2304 llvm_cv_platform_type="Unix" ;;
2305 *-*-netbsd*)
2306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308 llvm_cv_os_type="NetBSD"
2309 llvm_cv_platform_type="Unix" ;;
2310 *-*-dragonfly*)
2311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313 llvm_cv_os_type="DragonFly"
2314 llvm_cv_platform_type="Unix" ;;
2315 *-*-hpux*)
2316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2318 llvm_cv_os_type="HP-UX"
2319 llvm_cv_platform_type="Unix" ;;
2320 *-*-interix*)
2321 llvm_cv_link_all_option="-Wl,--whole-archive"
2322 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2323 llvm_cv_os_type="Interix"
2324 llvm_cv_platform_type="Unix" ;;
2325 *-*-linux*)
2326 llvm_cv_link_all_option="-Wl,--whole-archive"
2327 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2328 llvm_cv_os_type="Linux"
2329 llvm_cv_platform_type="Unix" ;;
2330 *-*-solaris*)
2331 llvm_cv_link_all_option="-Wl,-z,allextract"
2332 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2333 llvm_cv_os_type="SunOS"
2334 llvm_cv_platform_type="Unix" ;;
2335 *-*-win32*)
2336 llvm_cv_link_all_option="-Wl,--whole-archive"
2337 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2338 llvm_cv_os_type="Win32"
2339 llvm_cv_platform_type="Win32" ;;
2340 *-*-mingw*)
2341 llvm_cv_link_all_option="-Wl,--whole-archive"
2342 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2343 llvm_cv_os_type="MingW"
2344 llvm_cv_platform_type="Win32" ;;
2345 *-unknown-eabi*)
2346 llvm_cv_link_all_option="-Wl,--whole-archive"
2347 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2348 llvm_cv_os_type="Freestanding"
2349 llvm_cv_platform_type="Unix" ;;
2350 *-unknown-elf*)
2351 llvm_cv_link_all_option="-Wl,--whole-archive"
2352 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2353 llvm_cv_os_type="Freestanding"
2354 llvm_cv_platform_type="Unix" ;;
2356 llvm_cv_link_all_option=""
2357 llvm_cv_no_link_all_option=""
2358 llvm_cv_os_type="Unknown"
2359 llvm_cv_platform_type="Unknown" ;;
2360 esac
2362 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2363 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2365 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2366 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2367 if test "${llvm_cv_target_os_type+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 case $target in
2371 *-*-aix*)
2372 llvm_cv_target_os_type="AIX" ;;
2373 *-*-irix*)
2374 llvm_cv_target_os_type="IRIX" ;;
2375 *-*-cygwin*)
2376 llvm_cv_target_os_type="Cygwin" ;;
2377 *-*-darwin*)
2378 llvm_cv_target_os_type="Darwin" ;;
2379 *-*-freebsd*)
2380 llvm_cv_target_os_type="FreeBSD" ;;
2381 *-*-openbsd*)
2382 llvm_cv_target_os_type="OpenBSD" ;;
2383 *-*-netbsd*)
2384 llvm_cv_target_os_type="NetBSD" ;;
2385 *-*-dragonfly*)
2386 llvm_cv_target_os_type="DragonFly" ;;
2387 *-*-hpux*)
2388 llvm_cv_target_os_type="HP-UX" ;;
2389 *-*-interix*)
2390 llvm_cv_target_os_type="Interix" ;;
2391 *-*-linux*)
2392 llvm_cv_target_os_type="Linux" ;;
2393 *-*-solaris*)
2394 llvm_cv_target_os_type="SunOS" ;;
2395 *-*-win32*)
2396 llvm_cv_target_os_type="Win32" ;;
2397 *-*-mingw*)
2398 llvm_cv_target_os_type="MingW" ;;
2399 *-unknown-eabi*)
2400 llvm_cv_target_os_type="Freestanding" ;;
2402 llvm_cv_target_os_type="Unknown" ;;
2403 esac
2405 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2406 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2408 if test "$llvm_cv_os_type" = "Unknown" ; then
2409 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2410 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2411 { (exit 1); exit 1; }; }
2414 OS=$llvm_cv_os_type
2416 HOST_OS=$llvm_cv_os_type
2418 TARGET_OS=$llvm_cv_target_os_type
2421 LINKALL=$llvm_cv_link_all_option
2423 NOLINKALL=$llvm_cv_no_link_all_option
2426 case $llvm_cv_platform_type in
2427 Unix)
2429 cat >>confdefs.h <<\_ACEOF
2430 #define LLVM_ON_UNIX 1
2431 _ACEOF
2433 LLVM_ON_UNIX=1
2435 LLVM_ON_WIN32=0
2438 Win32)
2440 cat >>confdefs.h <<\_ACEOF
2441 #define LLVM_ON_WIN32 1
2442 _ACEOF
2444 LLVM_ON_UNIX=0
2446 LLVM_ON_WIN32=1
2449 esac
2451 { echo "$as_me:$LINENO: checking target architecture" >&5
2452 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2453 if test "${llvm_cv_target_arch+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 else
2456 case $target in
2457 i?86-*) llvm_cv_target_arch="x86" ;;
2458 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2459 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2460 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2461 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2462 arm*-*) llvm_cv_target_arch="ARM" ;;
2463 mips-*) llvm_cv_target_arch="Mips" ;;
2464 pic16-*) llvm_cv_target_arch="PIC16" ;;
2465 xcore-*) llvm_cv_target_arch="XCore" ;;
2466 msp430-*) llvm_cv_target_arch="MSP430" ;;
2467 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2468 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2469 *) llvm_cv_target_arch="Unknown" ;;
2470 esac
2472 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2473 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2475 if test "$llvm_cv_target_arch" = "Unknown" ; then
2476 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2477 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2480 # Determine the LLVM native architecture for the target
2481 case "$llvm_cv_target_arch" in
2482 x86) LLVM_NATIVE_ARCH="X86" ;;
2483 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2484 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2485 esac
2487 ARCH=$llvm_cv_target_arch
2490 ac_ext=c
2491 ac_cpp='$CPP $CPPFLAGS'
2492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2495 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2500 if test "${ac_cv_prog_CC+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2513 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2517 done
2518 done
2519 IFS=$as_save_IFS
2523 CC=$ac_cv_prog_CC
2524 if test -n "$CC"; then
2525 { echo "$as_me:$LINENO: result: $CC" >&5
2526 echo "${ECHO_T}$CC" >&6; }
2527 else
2528 { echo "$as_me:$LINENO: result: no" >&5
2529 echo "${ECHO_T}no" >&6; }
2534 if test -z "$ac_cv_prog_CC"; then
2535 ac_ct_CC=$CC
2536 # Extract the first word of "gcc", so it can be a program name with args.
2537 set dummy gcc; ac_word=$2
2538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2540 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543 if test -n "$ac_ct_CC"; then
2544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_ac_ct_CC="gcc"
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2557 done
2558 done
2559 IFS=$as_save_IFS
2563 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2564 if test -n "$ac_ct_CC"; then
2565 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2566 echo "${ECHO_T}$ac_ct_CC" >&6; }
2567 else
2568 { echo "$as_me:$LINENO: result: no" >&5
2569 echo "${ECHO_T}no" >&6; }
2572 if test "x$ac_ct_CC" = x; then
2573 CC=""
2574 else
2575 case $cross_compiling:$ac_tool_warned in
2576 yes:)
2577 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2578 whose name does not start with the host triplet. If you think this
2579 configuration is useful to you, please write to autoconf@gnu.org." >&5
2580 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2581 whose name does not start with the host triplet. If you think this
2582 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2583 ac_tool_warned=yes ;;
2584 esac
2585 CC=$ac_ct_CC
2587 else
2588 CC="$ac_cv_prog_CC"
2591 if test -z "$CC"; then
2592 if test -n "$ac_tool_prefix"; then
2593 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2594 set dummy ${ac_tool_prefix}cc; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_CC+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600 if test -n "$CC"; then
2601 ac_cv_prog_CC="$CC" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_CC="${ac_tool_prefix}cc"
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 break 2
2614 done
2615 done
2616 IFS=$as_save_IFS
2620 CC=$ac_cv_prog_CC
2621 if test -n "$CC"; then
2622 { echo "$as_me:$LINENO: result: $CC" >&5
2623 echo "${ECHO_T}$CC" >&6; }
2624 else
2625 { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2632 if test -z "$CC"; then
2633 # Extract the first word of "cc", so it can be a program name with args.
2634 set dummy cc; ac_word=$2
2635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 else
2643 ac_prog_rejected=no
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2652 ac_prog_rejected=yes
2653 continue
2655 ac_cv_prog_CC="cc"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2659 done
2660 done
2661 IFS=$as_save_IFS
2663 if test $ac_prog_rejected = yes; then
2664 # We found a bogon in the path, so make sure we never use it.
2665 set dummy $ac_cv_prog_CC
2666 shift
2667 if test $# != 0; then
2668 # We chose a different compiler from the bogus one.
2669 # However, it has the same basename, so the bogon will be chosen
2670 # first if we set CC to just the basename; use the full file name.
2671 shift
2672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2677 CC=$ac_cv_prog_CC
2678 if test -n "$CC"; then
2679 { echo "$as_me:$LINENO: result: $CC" >&5
2680 echo "${ECHO_T}$CC" >&6; }
2681 else
2682 { echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6; }
2688 if test -z "$CC"; then
2689 if test -n "$ac_tool_prefix"; then
2690 for ac_prog in cl.exe
2692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696 if test "${ac_cv_prog_CC+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC="$CC" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2713 done
2714 done
2715 IFS=$as_save_IFS
2719 CC=$ac_cv_prog_CC
2720 if test -n "$CC"; then
2721 { echo "$as_me:$LINENO: result: $CC" >&5
2722 echo "${ECHO_T}$CC" >&6; }
2723 else
2724 { echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6; }
2729 test -n "$CC" && break
2730 done
2732 if test -z "$CC"; then
2733 ac_ct_CC=$CC
2734 for ac_prog in cl.exe
2736 # Extract the first word of "$ac_prog", so it can be a program name with args.
2737 set dummy $ac_prog; ac_word=$2
2738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2740 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 else
2743 if test -n "$ac_ct_CC"; then
2744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2753 ac_cv_prog_ac_ct_CC="$ac_prog"
2754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2757 done
2758 done
2759 IFS=$as_save_IFS
2763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2764 if test -n "$ac_ct_CC"; then
2765 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2766 echo "${ECHO_T}$ac_ct_CC" >&6; }
2767 else
2768 { echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6; }
2773 test -n "$ac_ct_CC" && break
2774 done
2776 if test "x$ac_ct_CC" = x; then
2777 CC=""
2778 else
2779 case $cross_compiling:$ac_tool_warned in
2780 yes:)
2781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2782 whose name does not start with the host triplet. If you think this
2783 configuration is useful to you, please write to autoconf@gnu.org." >&5
2784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2785 whose name does not start with the host triplet. If you think this
2786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2787 ac_tool_warned=yes ;;
2788 esac
2789 CC=$ac_ct_CC
2796 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2797 See \`config.log' for more details." >&5
2798 echo "$as_me: error: no acceptable C compiler found in \$PATH
2799 See \`config.log' for more details." >&2;}
2800 { (exit 1); exit 1; }; }
2802 # Provide some information about the compiler.
2803 echo "$as_me:$LINENO: checking for C compiler version" >&5
2804 ac_compiler=`set X $ac_compile; echo $2`
2805 { (ac_try="$ac_compiler --version >&5"
2806 case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809 esac
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_compiler --version >&5") 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }
2815 { (ac_try="$ac_compiler -v >&5"
2816 case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2819 esac
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821 (eval "$ac_compiler -v >&5") 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }
2825 { (ac_try="$ac_compiler -V >&5"
2826 case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829 esac
2830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831 (eval "$ac_compiler -V >&5") 2>&5
2832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }
2836 cat >conftest.$ac_ext <<_ACEOF
2837 /* confdefs.h. */
2838 _ACEOF
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h. */
2844 main ()
2848 return 0;
2850 _ACEOF
2851 ac_clean_files_save=$ac_clean_files
2852 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2853 # Try to create an executable without -o first, disregard a.out.
2854 # It will help us diagnose broken compilers, and finding out an intuition
2855 # of exeext.
2856 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2857 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2858 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2860 # List of possible output files, starting from the most likely.
2861 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2862 # only as a last resort. b.out is created by i960 compilers.
2863 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2865 # The IRIX 6 linker writes into existing files which may not be
2866 # executable, retaining their permissions. Remove them first so a
2867 # subsequent execution test works.
2868 ac_rmfiles=
2869 for ac_file in $ac_files
2871 case $ac_file in
2872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2873 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2874 esac
2875 done
2876 rm -f $ac_rmfiles
2878 if { (ac_try="$ac_link_default"
2879 case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882 esac
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_link_default") 2>&5
2885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
2888 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2889 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2890 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2891 # so that the user can short-circuit this test for compilers unknown to
2892 # Autoconf.
2893 for ac_file in $ac_files
2895 test -f "$ac_file" || continue
2896 case $ac_file in
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2899 [ab].out )
2900 # We found the default executable, but exeext='' is most
2901 # certainly right.
2902 break;;
2903 *.* )
2904 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2905 then :; else
2906 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2908 # We set ac_cv_exeext here because the later test for it is not
2909 # safe: cross compilers may not add the suffix if given an `-o'
2910 # argument, so we may need to know it at that point already.
2911 # Even if this section looks crufty: it has the advantage of
2912 # actually working.
2913 break;;
2915 break;;
2916 esac
2917 done
2918 test "$ac_cv_exeext" = no && ac_cv_exeext=
2920 else
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2924 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: C compiler cannot create executables
2927 See \`config.log' for more details." >&2;}
2928 { (exit 77); exit 77; }; }
2931 ac_exeext=$ac_cv_exeext
2932 { echo "$as_me:$LINENO: result: $ac_file" >&5
2933 echo "${ECHO_T}$ac_file" >&6; }
2935 # Check that the compiler produces executables we can run. If not, either
2936 # the compiler is broken, or we cross compile.
2937 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2938 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2939 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2940 # If not cross compiling, check that we can run a simple program.
2941 if test "$cross_compiling" != yes; then
2942 if { ac_try='./$ac_file'
2943 { (case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_try") 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; }; then
2952 cross_compiling=no
2953 else
2954 if test "$cross_compiling" = maybe; then
2955 cross_compiling=yes
2956 else
2957 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2958 If you meant to cross compile, use \`--host'.
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: cannot run C compiled programs.
2961 If you meant to cross compile, use \`--host'.
2962 See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
2967 { echo "$as_me:$LINENO: result: yes" >&5
2968 echo "${ECHO_T}yes" >&6; }
2970 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2971 ac_clean_files=$ac_clean_files_save
2972 # Check that the compiler produces executables we can run. If not, either
2973 # the compiler is broken, or we cross compile.
2974 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2975 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2976 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2977 echo "${ECHO_T}$cross_compiling" >&6; }
2979 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2980 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2981 if { (ac_try="$ac_link"
2982 case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_link") 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; then
2991 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2992 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2993 # work properly (i.e., refer to `conftest.exe'), while it won't with
2994 # `rm'.
2995 for ac_file in conftest.exe conftest conftest.*; do
2996 test -f "$ac_file" || continue
2997 case $ac_file in
2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2999 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3000 break;;
3001 * ) break;;
3002 esac
3003 done
3004 else
3005 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3008 See \`config.log' for more details." >&2;}
3009 { (exit 1); exit 1; }; }
3012 rm -f conftest$ac_cv_exeext
3013 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3014 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3016 rm -f conftest.$ac_ext
3017 EXEEXT=$ac_cv_exeext
3018 ac_exeext=$EXEEXT
3019 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3020 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3021 if test "${ac_cv_objext+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h. */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3032 main ()
3036 return 0;
3038 _ACEOF
3039 rm -f conftest.o conftest.obj
3040 if { (ac_try="$ac_compile"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; then
3050 for ac_file in conftest.o conftest.obj conftest.*; do
3051 test -f "$ac_file" || continue;
3052 case $ac_file in
3053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3054 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3055 break;;
3056 esac
3057 done
3058 else
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3062 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3063 See \`config.log' for more details." >&5
3064 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3065 See \`config.log' for more details." >&2;}
3066 { (exit 1); exit 1; }; }
3069 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3071 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3072 echo "${ECHO_T}$ac_cv_objext" >&6; }
3073 OBJEXT=$ac_cv_objext
3074 ac_objext=$OBJEXT
3075 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3076 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3077 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080 cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h. */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3088 main ()
3090 #ifndef __GNUC__
3091 choke me
3092 #endif
3095 return 0;
3097 _ACEOF
3098 rm -f conftest.$ac_objext
3099 if { (ac_try="$ac_compile"
3100 case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_compile") 2>conftest.er1
3106 ac_status=$?
3107 grep -v '^ *+' conftest.er1 >conftest.err
3108 rm -f conftest.er1
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3113 { (case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_try") 2>&5
3119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; } &&
3122 { ac_try='test -s conftest.$ac_objext'
3123 { (case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_try") 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; }; then
3132 ac_compiler_gnu=yes
3133 else
3134 echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3137 ac_compiler_gnu=no
3140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3141 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3144 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3145 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3146 GCC=`test $ac_compiler_gnu = yes && echo yes`
3147 ac_test_CFLAGS=${CFLAGS+set}
3148 ac_save_CFLAGS=$CFLAGS
3149 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3150 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3151 if test "${ac_cv_prog_cc_g+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154 ac_save_c_werror_flag=$ac_c_werror_flag
3155 ac_c_werror_flag=yes
3156 ac_cv_prog_cc_g=no
3157 CFLAGS="-g"
3158 cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h. */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3166 main ()
3170 return 0;
3172 _ACEOF
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3175 case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178 esac
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_compile") 2>conftest.er1
3181 ac_status=$?
3182 grep -v '^ *+' conftest.er1 >conftest.err
3183 rm -f conftest.er1
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3188 { (case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_try") 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; } &&
3197 { ac_try='test -s conftest.$ac_objext'
3198 { (case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201 esac
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_try") 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; }; then
3207 ac_cv_prog_cc_g=yes
3208 else
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3212 CFLAGS=""
3213 cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h. */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3221 main ()
3225 return 0;
3227 _ACEOF
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compile") 2>conftest.er1
3236 ac_status=$?
3237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3243 { (case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_try") 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256 esac
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_try") 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3263 else
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3267 ac_c_werror_flag=$ac_save_c_werror_flag
3268 CFLAGS="-g"
3269 cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h. */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3277 main ()
3281 return 0;
3283 _ACEOF
3284 rm -f conftest.$ac_objext
3285 if { (ac_try="$ac_compile"
3286 case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289 esac
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compile") 2>conftest.er1
3292 ac_status=$?
3293 grep -v '^ *+' conftest.er1 >conftest.err
3294 rm -f conftest.er1
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } &&
3298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3299 { (case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302 esac
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_try") 2>&5
3305 ac_status=$?
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; } &&
3308 { ac_try='test -s conftest.$ac_objext'
3309 { (case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312 esac
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_try") 2>&5
3315 ac_status=$?
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }; }; then
3318 ac_cv_prog_cc_g=yes
3319 else
3320 echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 ac_c_werror_flag=$ac_save_c_werror_flag
3335 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3336 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3337 if test "$ac_test_CFLAGS" = set; then
3338 CFLAGS=$ac_save_CFLAGS
3339 elif test $ac_cv_prog_cc_g = yes; then
3340 if test "$GCC" = yes; then
3341 CFLAGS="-g -O2"
3342 else
3343 CFLAGS="-g"
3345 else
3346 if test "$GCC" = yes; then
3347 CFLAGS="-O2"
3348 else
3349 CFLAGS=
3352 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3353 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3354 if test "${ac_cv_prog_cc_c89+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357 ac_cv_prog_cc_c89=no
3358 ac_save_CC=$CC
3359 cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h. */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3365 #include <stdarg.h>
3366 #include <stdio.h>
3367 #include <sys/types.h>
3368 #include <sys/stat.h>
3369 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3370 struct buf { int x; };
3371 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3372 static char *e (p, i)
3373 char **p;
3374 int i;
3376 return p[i];
3378 static char *f (char * (*g) (char **, int), char **p, ...)
3380 char *s;
3381 va_list v;
3382 va_start (v,p);
3383 s = g (p, va_arg (v,int));
3384 va_end (v);
3385 return s;
3388 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3389 function prototypes and stuff, but not '\xHH' hex character constants.
3390 These don't provoke an error unfortunately, instead are silently treated
3391 as 'x'. The following induces an error, until -std is added to get
3392 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3393 array size at least. It's necessary to write '\x00'==0 to get something
3394 that's true only with -std. */
3395 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3397 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3398 inside strings and character constants. */
3399 #define FOO(x) 'x'
3400 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3402 int test (int i, double x);
3403 struct s1 {int (*f) (int a);};
3404 struct s2 {int (*f) (double a);};
3405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3406 int argc;
3407 char **argv;
3409 main ()
3411 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3413 return 0;
3415 _ACEOF
3416 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3417 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3419 CC="$ac_save_CC $ac_arg"
3420 rm -f conftest.$ac_objext
3421 if { (ac_try="$ac_compile"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_compile") 2>conftest.er1
3428 ac_status=$?
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3435 { (case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_try") 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; } &&
3444 { ac_try='test -s conftest.$ac_objext'
3445 { (case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448 esac
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_try") 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3454 ac_cv_prog_cc_c89=$ac_arg
3455 else
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3462 rm -f core conftest.err conftest.$ac_objext
3463 test "x$ac_cv_prog_cc_c89" != "xno" && break
3464 done
3465 rm -f conftest.$ac_ext
3466 CC=$ac_save_CC
3469 # AC_CACHE_VAL
3470 case "x$ac_cv_prog_cc_c89" in
3472 { echo "$as_me:$LINENO: result: none needed" >&5
3473 echo "${ECHO_T}none needed" >&6; } ;;
3474 xno)
3475 { echo "$as_me:$LINENO: result: unsupported" >&5
3476 echo "${ECHO_T}unsupported" >&6; } ;;
3478 CC="$CC $ac_cv_prog_cc_c89"
3479 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3480 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3481 esac
3484 ac_ext=c
3485 ac_cpp='$CPP $CPPFLAGS'
3486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3497 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3498 # On Suns, sometimes $CPP names a directory.
3499 if test -n "$CPP" && test -d "$CPP"; then
3500 CPP=
3502 if test -z "$CPP"; then
3503 if test "${ac_cv_prog_CPP+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506 # Double quotes because CPP needs to be expanded
3507 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3509 ac_preproc_ok=false
3510 for ac_c_preproc_warn_flag in '' yes
3512 # Use a header file that comes with gcc, so configuring glibc
3513 # with a fresh cross-compiler works.
3514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3515 # <limits.h> exists even on freestanding compilers.
3516 # On the NeXT, cc -E runs the code through the compiler's parser,
3517 # not just through cpp. "Syntax error" is here to catch this case.
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #ifdef __STDC__
3525 # include <limits.h>
3526 #else
3527 # include <assert.h>
3528 #endif
3529 Syntax error
3530 _ACEOF
3531 if { (ac_try="$ac_cpp conftest.$ac_ext"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } >/dev/null; then
3544 if test -s conftest.err; then
3545 ac_cpp_err=$ac_c_preproc_warn_flag
3546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3547 else
3548 ac_cpp_err=
3550 else
3551 ac_cpp_err=yes
3553 if test -z "$ac_cpp_err"; then
3555 else
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 # Broken: fails on valid input.
3560 continue
3563 rm -f conftest.err conftest.$ac_ext
3565 # OK, works on sane cases. Now check whether nonexistent headers
3566 # can be detected and how.
3567 cat >conftest.$ac_ext <<_ACEOF
3568 /* confdefs.h. */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3573 #include <ac_nonexistent.h>
3574 _ACEOF
3575 if { (ac_try="$ac_cpp conftest.$ac_ext"
3576 case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3582 ac_status=$?
3583 grep -v '^ *+' conftest.er1 >conftest.err
3584 rm -f conftest.er1
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } >/dev/null; then
3588 if test -s conftest.err; then
3589 ac_cpp_err=$ac_c_preproc_warn_flag
3590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3591 else
3592 ac_cpp_err=
3594 else
3595 ac_cpp_err=yes
3597 if test -z "$ac_cpp_err"; then
3598 # Broken: success on invalid input.
3599 continue
3600 else
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 # Passes both tests.
3605 ac_preproc_ok=:
3606 break
3609 rm -f conftest.err conftest.$ac_ext
3611 done
3612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3613 rm -f conftest.err conftest.$ac_ext
3614 if $ac_preproc_ok; then
3615 break
3618 done
3619 ac_cv_prog_CPP=$CPP
3622 CPP=$ac_cv_prog_CPP
3623 else
3624 ac_cv_prog_CPP=$CPP
3626 { echo "$as_me:$LINENO: result: $CPP" >&5
3627 echo "${ECHO_T}$CPP" >&6; }
3628 ac_preproc_ok=false
3629 for ac_c_preproc_warn_flag in '' yes
3631 # Use a header file that comes with gcc, so configuring glibc
3632 # with a fresh cross-compiler works.
3633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3634 # <limits.h> exists even on freestanding compilers.
3635 # On the NeXT, cc -E runs the code through the compiler's parser,
3636 # not just through cpp. "Syntax error" is here to catch this case.
3637 cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h. */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3643 #ifdef __STDC__
3644 # include <limits.h>
3645 #else
3646 # include <assert.h>
3647 #endif
3648 Syntax error
3649 _ACEOF
3650 if { (ac_try="$ac_cpp conftest.$ac_ext"
3651 case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3657 ac_status=$?
3658 grep -v '^ *+' conftest.er1 >conftest.err
3659 rm -f conftest.er1
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } >/dev/null; then
3663 if test -s conftest.err; then
3664 ac_cpp_err=$ac_c_preproc_warn_flag
3665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3666 else
3667 ac_cpp_err=
3669 else
3670 ac_cpp_err=yes
3672 if test -z "$ac_cpp_err"; then
3674 else
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3678 # Broken: fails on valid input.
3679 continue
3682 rm -f conftest.err conftest.$ac_ext
3684 # OK, works on sane cases. Now check whether nonexistent headers
3685 # can be detected and how.
3686 cat >conftest.$ac_ext <<_ACEOF
3687 /* confdefs.h. */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3692 #include <ac_nonexistent.h>
3693 _ACEOF
3694 if { (ac_try="$ac_cpp conftest.$ac_ext"
3695 case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3701 ac_status=$?
3702 grep -v '^ *+' conftest.er1 >conftest.err
3703 rm -f conftest.er1
3704 cat conftest.err >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } >/dev/null; then
3707 if test -s conftest.err; then
3708 ac_cpp_err=$ac_c_preproc_warn_flag
3709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3710 else
3711 ac_cpp_err=
3713 else
3714 ac_cpp_err=yes
3716 if test -z "$ac_cpp_err"; then
3717 # Broken: success on invalid input.
3718 continue
3719 else
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 # Passes both tests.
3724 ac_preproc_ok=:
3725 break
3728 rm -f conftest.err conftest.$ac_ext
3730 done
3731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3732 rm -f conftest.err conftest.$ac_ext
3733 if $ac_preproc_ok; then
3735 else
3736 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3737 See \`config.log' for more details." >&5
3738 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3739 See \`config.log' for more details." >&2;}
3740 { (exit 1); exit 1; }; }
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3751 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3752 if test "${ac_cv_path_GREP+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755 # Extract the first word of "grep ggrep" to use in msg output
3756 if test -z "$GREP"; then
3757 set dummy grep ggrep; ac_prog_name=$2
3758 if test "${ac_cv_path_GREP+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761 ac_path_GREP_found=false
3762 # Loop through the user's path and test for each of PROGNAME-LIST
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_prog in grep ggrep; do
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3771 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3772 # Check for GNU ac_path_GREP and select it if it is found.
3773 # Check for GNU $ac_path_GREP
3774 case `"$ac_path_GREP" --version 2>&1` in
3775 *GNU*)
3776 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3778 ac_count=0
3779 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3780 while :
3782 cat "conftest.in" "conftest.in" >"conftest.tmp"
3783 mv "conftest.tmp" "conftest.in"
3784 cp "conftest.in" "conftest.nl"
3785 echo 'GREP' >> "conftest.nl"
3786 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3788 ac_count=`expr $ac_count + 1`
3789 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3790 # Best one so far, save it but keep looking for a better one
3791 ac_cv_path_GREP="$ac_path_GREP"
3792 ac_path_GREP_max=$ac_count
3794 # 10*(2^10) chars as input seems more than enough
3795 test $ac_count -gt 10 && break
3796 done
3797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3798 esac
3801 $ac_path_GREP_found && break 3
3802 done
3803 done
3805 done
3806 IFS=$as_save_IFS
3811 GREP="$ac_cv_path_GREP"
3812 if test -z "$GREP"; then
3813 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3814 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3815 { (exit 1); exit 1; }; }
3818 else
3819 ac_cv_path_GREP=$GREP
3824 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3825 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3826 GREP="$ac_cv_path_GREP"
3829 { echo "$as_me:$LINENO: checking for egrep" >&5
3830 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3831 if test "${ac_cv_path_EGREP+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3835 then ac_cv_path_EGREP="$GREP -E"
3836 else
3837 # Extract the first word of "egrep" to use in msg output
3838 if test -z "$EGREP"; then
3839 set dummy egrep; ac_prog_name=$2
3840 if test "${ac_cv_path_EGREP+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843 ac_path_EGREP_found=false
3844 # Loop through the user's path and test for each of PROGNAME-LIST
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
3850 for ac_prog in egrep; do
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3853 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3854 # Check for GNU ac_path_EGREP and select it if it is found.
3855 # Check for GNU $ac_path_EGREP
3856 case `"$ac_path_EGREP" --version 2>&1` in
3857 *GNU*)
3858 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3860 ac_count=0
3861 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3862 while :
3864 cat "conftest.in" "conftest.in" >"conftest.tmp"
3865 mv "conftest.tmp" "conftest.in"
3866 cp "conftest.in" "conftest.nl"
3867 echo 'EGREP' >> "conftest.nl"
3868 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3870 ac_count=`expr $ac_count + 1`
3871 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3872 # Best one so far, save it but keep looking for a better one
3873 ac_cv_path_EGREP="$ac_path_EGREP"
3874 ac_path_EGREP_max=$ac_count
3876 # 10*(2^10) chars as input seems more than enough
3877 test $ac_count -gt 10 && break
3878 done
3879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3880 esac
3883 $ac_path_EGREP_found && break 3
3884 done
3885 done
3887 done
3888 IFS=$as_save_IFS
3893 EGREP="$ac_cv_path_EGREP"
3894 if test -z "$EGREP"; then
3895 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3896 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3897 { (exit 1); exit 1; }; }
3900 else
3901 ac_cv_path_EGREP=$EGREP
3907 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3908 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3909 EGREP="$ac_cv_path_EGREP"
3912 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3913 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3914 if test "${ac_cv_header_stdc+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h. */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3923 #include <stdlib.h>
3924 #include <stdarg.h>
3925 #include <string.h>
3926 #include <float.h>
3929 main ()
3933 return 0;
3935 _ACEOF
3936 rm -f conftest.$ac_objext
3937 if { (ac_try="$ac_compile"
3938 case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941 esac
3942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943 (eval "$ac_compile") 2>conftest.er1
3944 ac_status=$?
3945 grep -v '^ *+' conftest.er1 >conftest.err
3946 rm -f conftest.er1
3947 cat conftest.err >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } &&
3950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3951 { (case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954 esac
3955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_try") 2>&5
3957 ac_status=$?
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; } &&
3960 { ac_try='test -s conftest.$ac_objext'
3961 { (case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964 esac
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_try") 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 ac_cv_header_stdc=yes
3971 else
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3975 ac_cv_header_stdc=no
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980 if test $ac_cv_header_stdc = yes; then
3981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3982 cat >conftest.$ac_ext <<_ACEOF
3983 /* confdefs.h. */
3984 _ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3988 #include <string.h>
3990 _ACEOF
3991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3992 $EGREP "memchr" >/dev/null 2>&1; then
3994 else
3995 ac_cv_header_stdc=no
3997 rm -f conftest*
4001 if test $ac_cv_header_stdc = yes; then
4002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4003 cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h. */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 #include <stdlib.h>
4011 _ACEOF
4012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4013 $EGREP "free" >/dev/null 2>&1; then
4015 else
4016 ac_cv_header_stdc=no
4018 rm -f conftest*
4022 if test $ac_cv_header_stdc = yes; then
4023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4024 if test "$cross_compiling" = yes; then
4026 else
4027 cat >conftest.$ac_ext <<_ACEOF
4028 /* confdefs.h. */
4029 _ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4033 #include <ctype.h>
4034 #include <stdlib.h>
4035 #if ((' ' & 0x0FF) == 0x020)
4036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4038 #else
4039 # define ISLOWER(c) \
4040 (('a' <= (c) && (c) <= 'i') \
4041 || ('j' <= (c) && (c) <= 'r') \
4042 || ('s' <= (c) && (c) <= 'z'))
4043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4044 #endif
4046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4048 main ()
4050 int i;
4051 for (i = 0; i < 256; i++)
4052 if (XOR (islower (i), ISLOWER (i))
4053 || toupper (i) != TOUPPER (i))
4054 return 2;
4055 return 0;
4057 _ACEOF
4058 rm -f conftest$ac_exeext
4059 if { (ac_try="$ac_link"
4060 case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063 esac
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_link") 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4069 { (case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072 esac
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_try") 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4079 else
4080 echo "$as_me: program exited with status $ac_status" >&5
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 ( exit $ac_status )
4085 ac_cv_header_stdc=no
4087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4093 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4094 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4095 if test $ac_cv_header_stdc = yes; then
4097 cat >>confdefs.h <<\_ACEOF
4098 #define STDC_HEADERS 1
4099 _ACEOF
4103 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4113 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4114 inttypes.h stdint.h unistd.h
4116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122 cat >conftest.$ac_ext <<_ACEOF
4123 /* confdefs.h. */
4124 _ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h. */
4128 $ac_includes_default
4130 #include <$ac_header>
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4134 case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137 esac
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4147 { (case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150 esac
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_try") 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160 esac
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_try") 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 eval "$as_ac_Header=yes"
4167 else
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4171 eval "$as_ac_Header=no"
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 ac_res=`eval echo '${'$as_ac_Header'}'`
4177 { echo "$as_me:$LINENO: result: $ac_res" >&5
4178 echo "${ECHO_T}$ac_res" >&6; }
4179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4180 cat >>confdefs.h <<_ACEOF
4181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4182 _ACEOF
4186 done
4189 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4190 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4191 if test "${ac_cv_c_bigendian+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194 # See if sys/param.h defines the BYTE_ORDER macro.
4195 cat >conftest.$ac_ext <<_ACEOF
4196 /* confdefs.h. */
4197 _ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4201 #include <sys/types.h>
4202 #include <sys/param.h>
4205 main ()
4207 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4208 bogus endian macros
4209 #endif
4212 return 0;
4214 _ACEOF
4215 rm -f conftest.$ac_objext
4216 if { (ac_try="$ac_compile"
4217 case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220 esac
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_compile") 2>conftest.er1
4223 ac_status=$?
4224 grep -v '^ *+' conftest.er1 >conftest.err
4225 rm -f conftest.er1
4226 cat conftest.err >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } &&
4229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4230 { (case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233 esac
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_try") 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; } &&
4239 { ac_try='test -s conftest.$ac_objext'
4240 { (case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243 esac
4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_try") 2>&5
4246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4249 # It does; now see whether it defined to BIG_ENDIAN or not.
4250 cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h. */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256 #include <sys/types.h>
4257 #include <sys/param.h>
4260 main ()
4262 #if BYTE_ORDER != BIG_ENDIAN
4263 not big endian
4264 #endif
4267 return 0;
4269 _ACEOF
4270 rm -f conftest.$ac_objext
4271 if { (ac_try="$ac_compile"
4272 case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275 esac
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_compile") 2>conftest.er1
4278 ac_status=$?
4279 grep -v '^ *+' conftest.er1 >conftest.err
4280 rm -f conftest.er1
4281 cat conftest.err >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } &&
4284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4285 { (case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288 esac
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_try") 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest.$ac_objext'
4295 { (case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_try") 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 ac_cv_c_bigendian=yes
4305 else
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4309 ac_cv_c_bigendian=no
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 else
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 # It does not; compile a test program.
4318 if test "$cross_compiling" = yes; then
4319 # try to guess the endianness by grepping values into an object file
4320 ac_cv_c_bigendian=unknown
4321 cat >conftest.$ac_ext <<_ACEOF
4322 /* confdefs.h. */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4328 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4329 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4330 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4331 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4332 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4334 main ()
4336 _ascii (); _ebcdic ();
4338 return 0;
4340 _ACEOF
4341 rm -f conftest.$ac_objext
4342 if { (ac_try="$ac_compile"
4343 case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346 esac
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_compile") 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4356 { (case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_try") 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369 esac
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_try") 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4376 ac_cv_c_bigendian=yes
4378 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4379 if test "$ac_cv_c_bigendian" = unknown; then
4380 ac_cv_c_bigendian=no
4381 else
4382 # finding both strings is unlikely to happen, but who knows?
4383 ac_cv_c_bigendian=unknown
4386 else
4387 echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 else
4395 cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h. */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4401 $ac_includes_default
4403 main ()
4406 /* Are we little or big endian? From Harbison&Steele. */
4407 union
4409 long int l;
4410 char c[sizeof (long int)];
4411 } u;
4412 u.l = 1;
4413 return u.c[sizeof (long int) - 1] == 1;
4416 return 0;
4418 _ACEOF
4419 rm -f conftest$ac_exeext
4420 if { (ac_try="$ac_link"
4421 case "(($ac_try" in
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4424 esac
4425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426 (eval "$ac_link") 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4430 { (case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_try") 2>&5
4436 ac_status=$?
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4439 ac_cv_c_bigendian=no
4440 else
4441 echo "$as_me: program exited with status $ac_status" >&5
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4445 ( exit $ac_status )
4446 ac_cv_c_bigendian=yes
4448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4457 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4458 case $ac_cv_c_bigendian in
4459 yes)
4460 ENDIAN=big
4463 ENDIAN=little
4466 { { echo "$as_me:$LINENO: error: unknown endianness
4467 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4468 echo "$as_me: error: unknown endianness
4469 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4470 { (exit 1); exit 1; }; } ;;
4471 esac
4474 if test "$cross_compiling" = yes; then
4475 LLVM_CROSS_COMPILING=1
4478 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4479 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4480 if test "${ac_cv_build_exeext+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4484 ac_cv_build_exeext=.exe
4485 else
4486 ac_build_prefix=${build_alias}-
4488 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4489 set dummy ${ac_build_prefix}gcc; ac_word=$2
4490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495 if test -n "$BUILD_CC"; then
4496 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4497 else
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4505 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4509 done
4510 done
4511 IFS=$as_save_IFS
4515 BUILD_CC=$ac_cv_prog_BUILD_CC
4516 if test -n "$BUILD_CC"; then
4517 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4518 echo "${ECHO_T}$BUILD_CC" >&6; }
4519 else
4520 { echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6; }
4525 if test -z "$BUILD_CC"; then
4526 # Extract the first word of "gcc", so it can be a program name with args.
4527 set dummy gcc; ac_word=$2
4528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 if test -n "$BUILD_CC"; then
4534 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_prog_BUILD_CC="gcc"
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4547 done
4548 done
4549 IFS=$as_save_IFS
4553 BUILD_CC=$ac_cv_prog_BUILD_CC
4554 if test -n "$BUILD_CC"; then
4555 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4556 echo "${ECHO_T}$BUILD_CC" >&6; }
4557 else
4558 { echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6; }
4563 if test -z "$BUILD_CC"; then
4564 # Extract the first word of "cc", so it can be a program name with args.
4565 set dummy cc; ac_word=$2
4566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4568 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 if test -n "$BUILD_CC"; then
4572 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4573 else
4574 ac_prog_rejected=no
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4582 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4583 ac_prog_rejected=yes
4584 continue
4586 ac_cv_prog_BUILD_CC="cc"
4587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4590 done
4591 done
4592 IFS=$as_save_IFS
4594 if test $ac_prog_rejected = yes; then
4595 # We found a bogon in the path, so make sure we never use it.
4596 set dummy $ac_cv_prog_BUILD_CC
4597 shift
4598 if test $# != 0; then
4599 # We chose a different compiler from the bogus one.
4600 # However, it has the same basename, so the bogon will be chosen
4601 # first if we set BUILD_CC to just the basename; use the full file name.
4602 shift
4603 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4608 BUILD_CC=$ac_cv_prog_BUILD_CC
4609 if test -n "$BUILD_CC"; then
4610 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4611 echo "${ECHO_T}$BUILD_CC" >&6; }
4612 else
4613 { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4620 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4621 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4622 { (exit 1); exit 1; }; }
4623 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4624 rm -f conftest*
4625 echo 'int main () { return 0; }' > conftest.$ac_ext
4626 ac_cv_build_exeext=
4627 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4628 (eval $ac_build_link) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; then
4632 for file in conftest.*; do
4633 case $file in
4634 *.c | *.o | *.obj | *.dSYM) ;;
4635 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4636 esac
4637 done
4638 else
4639 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4640 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4641 { (exit 1); exit 1; }; }
4643 rm -f conftest*
4644 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4648 BUILD_EXEEXT=""
4649 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4650 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4651 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4652 ac_build_exeext=$BUILD_EXEEXT
4654 ac_build_prefix=${build_alias}-
4655 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4656 set dummy ${ac_build_prefix}g++; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662 if test -n "$BUILD_CXX"; then
4663 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4676 done
4677 done
4678 IFS=$as_save_IFS
4682 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4683 if test -n "$BUILD_CXX"; then
4684 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4685 echo "${ECHO_T}$BUILD_CXX" >&6; }
4686 else
4687 { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4692 if test -z "$BUILD_CXX"; then
4693 # Extract the first word of "g++", so it can be a program name with args.
4694 set dummy g++; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700 if test -n "$BUILD_CXX"; then
4701 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_prog_BUILD_CXX="g++"
4711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 break 2
4714 done
4715 done
4716 IFS=$as_save_IFS
4720 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4721 if test -n "$BUILD_CXX"; then
4722 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4723 echo "${ECHO_T}$BUILD_CXX" >&6; }
4724 else
4725 { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4730 if test -z "$BUILD_CXX"; then
4731 # Extract the first word of "c++", so it can be a program name with args.
4732 set dummy c++; ac_word=$2
4733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738 if test -n "$BUILD_CXX"; then
4739 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4740 else
4741 ac_prog_rejected=no
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4750 ac_prog_rejected=yes
4751 continue
4753 ac_cv_prog_BUILD_CXX="c++"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4757 done
4758 done
4759 IFS=$as_save_IFS
4761 if test $ac_prog_rejected = yes; then
4762 # We found a bogon in the path, so make sure we never use it.
4763 set dummy $ac_cv_prog_BUILD_CXX
4764 shift
4765 if test $# != 0; then
4766 # We chose a different compiler from the bogus one.
4767 # However, it has the same basename, so the bogon will be chosen
4768 # first if we set BUILD_CXX to just the basename; use the full file name.
4769 shift
4770 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4775 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4776 if test -n "$BUILD_CXX"; then
4777 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4778 echo "${ECHO_T}$BUILD_CXX" >&6; }
4779 else
4780 { echo "$as_me:$LINENO: result: no" >&5
4781 echo "${ECHO_T}no" >&6; }
4787 else
4788 LLVM_CROSS_COMPILING=0
4792 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4793 cvsbuild="yes"
4794 optimize="no"
4795 CVSBUILD=CVSBUILD=1
4797 else
4798 cvsbuild="no"
4799 optimize="yes"
4803 # Check whether --enable-optimized was given.
4804 if test "${enable_optimized+set}" = set; then
4805 enableval=$enable_optimized;
4806 else
4807 enableval=$optimize
4810 if test ${enableval} = "no" ; then
4811 ENABLE_OPTIMIZED=
4813 else
4814 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4818 # Check whether --enable-profiling was given.
4819 if test "${enable_profiling+set}" = set; then
4820 enableval=$enable_profiling;
4821 else
4822 enableval="no"
4825 if test ${enableval} = "no" ; then
4826 ENABLE_PROFILING=
4828 else
4829 ENABLE_PROFILING=ENABLE_PROFILING=1
4833 # Check whether --enable-assertions was given.
4834 if test "${enable_assertions+set}" = set; then
4835 enableval=$enable_assertions;
4836 else
4837 enableval="yes"
4840 if test ${enableval} = "yes" ; then
4841 DISABLE_ASSERTIONS=
4843 else
4844 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4848 # Check whether --enable-expensive-checks was given.
4849 if test "${enable_expensive_checks+set}" = set; then
4850 enableval=$enable_expensive_checks;
4851 else
4852 enableval="no"
4855 if test ${enableval} = "yes" ; then
4856 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4858 EXPENSIVE_CHECKS=yes
4860 else
4861 ENABLE_EXPENSIVE_CHECKS=
4863 EXPENSIVE_CHECKS=no
4867 # Check whether --enable-debug-runtime was given.
4868 if test "${enable_debug_runtime+set}" = set; then
4869 enableval=$enable_debug_runtime;
4870 else
4871 enableval=no
4874 if test ${enableval} = "no" ; then
4875 DEBUG_RUNTIME=
4877 else
4878 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4882 # Check whether --enable-jit was given.
4883 if test "${enable_jit+set}" = set; then
4884 enableval=$enable_jit;
4885 else
4886 enableval=default
4889 if test ${enableval} = "no"
4890 then
4891 JIT=
4893 else
4894 case "$llvm_cv_target_arch" in
4895 x86) TARGET_HAS_JIT=1
4897 Sparc) TARGET_HAS_JIT=0
4899 PowerPC) TARGET_HAS_JIT=1
4901 x86_64) TARGET_HAS_JIT=1
4903 Alpha) TARGET_HAS_JIT=1
4905 ARM) TARGET_HAS_JIT=1
4907 Mips) TARGET_HAS_JIT=0
4909 PIC16) TARGET_HAS_JIT=0
4911 XCore) TARGET_HAS_JIT=0
4913 MSP430) TARGET_HAS_JIT=0
4915 SystemZ) TARGET_HAS_JIT=0
4917 Blackfin) TARGET_HAS_JIT=0
4919 *) TARGET_HAS_JIT=0
4921 esac
4924 # Check whether --enable-doxygen was given.
4925 if test "${enable_doxygen+set}" = set; then
4926 enableval=$enable_doxygen;
4927 else
4928 enableval=default
4931 case "$enableval" in
4932 yes) ENABLE_DOXYGEN=1
4934 no) ENABLE_DOXYGEN=0
4936 default) ENABLE_DOXYGEN=0
4938 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4939 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4940 { (exit 1); exit 1; }; } ;;
4941 esac
4943 # Check whether --enable-threads was given.
4944 if test "${enable_threads+set}" = set; then
4945 enableval=$enable_threads;
4946 else
4947 enableval=default
4950 case "$enableval" in
4951 yes) ENABLE_THREADS=1
4953 no) ENABLE_THREADS=0
4955 default) ENABLE_THREADS=1
4957 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4958 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4959 { (exit 1); exit 1; }; } ;;
4960 esac
4962 cat >>confdefs.h <<_ACEOF
4963 #define ENABLE_THREADS $ENABLE_THREADS
4964 _ACEOF
4967 # Check whether --enable-pic was given.
4968 if test "${enable_pic+set}" = set; then
4969 enableval=$enable_pic;
4970 else
4971 enableval=default
4974 case "$enableval" in
4975 yes) ENABLE_PIC=1
4977 no) ENABLE_PIC=0
4979 default) ENABLE_PIC=1
4981 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4982 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4983 { (exit 1); exit 1; }; } ;;
4984 esac
4986 cat >>confdefs.h <<_ACEOF
4987 #define ENABLE_PIC $ENABLE_PIC
4988 _ACEOF
4991 TARGETS_TO_BUILD=""
4992 # Check whether --enable-targets was given.
4993 if test "${enable_targets+set}" = set; then
4994 enableval=$enable_targets;
4995 else
4996 enableval=all
4999 case "$enableval" in
5000 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5001 host-only)
5002 case "$llvm_cv_target_arch" in
5003 x86) TARGETS_TO_BUILD="X86" ;;
5004 x86_64) TARGETS_TO_BUILD="X86" ;;
5005 Sparc) TARGETS_TO_BUILD="Sparc" ;;
5006 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
5007 Alpha) TARGETS_TO_BUILD="Alpha" ;;
5008 ARM) TARGETS_TO_BUILD="ARM" ;;
5009 Mips) TARGETS_TO_BUILD="Mips" ;;
5010 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
5011 PIC16) TARGETS_TO_BUILD="PIC16" ;;
5012 XCore) TARGETS_TO_BUILD="XCore" ;;
5013 MSP430) TARGETS_TO_BUILD="MSP430" ;;
5014 SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
5015 Blackfin) TARGETS_TO_BUILD="Blackfin" ;;
5016 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5017 echo "$as_me: error: Can not set target to build" >&2;}
5018 { (exit 1); exit 1; }; } ;;
5019 esac
5021 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5022 case "$a_target" in
5023 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5024 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5025 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5026 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5027 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5028 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5029 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5030 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5031 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5032 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5033 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5034 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5035 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5036 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5037 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5038 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5039 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5040 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5041 { (exit 1); exit 1; }; } ;;
5042 esac
5043 done
5045 esac
5046 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5049 # Determine whether we are building LLVM support for the native architecture.
5050 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5051 for a_target in $TARGETS_TO_BUILD; do
5052 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5053 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5055 cat >>confdefs.h <<_ACEOF
5056 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5057 _ACEOF
5060 done
5062 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5063 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5064 LLVM_ENUM_TARGETS=""
5065 LLVM_ENUM_ASM_PRINTERS=""
5066 LLVM_ENUM_ASM_PARSERS=""
5067 for target_to_build in $TARGETS_TO_BUILD; do
5068 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5069 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5070 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5072 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5073 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5075 done
5080 # Check whether --enable-cbe-printf-a was given.
5081 if test "${enable_cbe_printf_a+set}" = set; then
5082 enableval=$enable_cbe_printf_a;
5083 else
5084 enableval=default
5087 case "$enableval" in
5088 yes) ENABLE_CBE_PRINTF_A=1
5090 no) ENABLE_CBE_PRINTF_A=0
5092 default) ENABLE_CBE_PRINTF_A=1
5094 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5095 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5097 esac
5099 cat >>confdefs.h <<_ACEOF
5100 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5101 _ACEOF
5105 # Check whether --with-llvmgccdir was given.
5106 if test "${with_llvmgccdir+set}" = set; then
5107 withval=$with_llvmgccdir;
5108 else
5109 withval=default
5112 case "$withval" in
5113 default) WITH_LLVMGCCDIR=default ;;
5114 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5115 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5116 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5117 { (exit 1); exit 1; }; } ;;
5118 esac
5121 # Check whether --with-llvmgcc was given.
5122 if test "${with_llvmgcc+set}" = set; then
5123 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5124 WITH_LLVMGCCDIR=""
5129 # Check whether --with-llvmgxx was given.
5130 if test "${with_llvmgxx+set}" = set; then
5131 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5132 WITH_LLVMGCCDIR=""
5136 if test -n "$LLVMGCC"; then
5137 LLVMGCCCOMMAND="$LLVMGCC"
5140 if test -n "$LLVMGXX"; then
5141 LLVMGXXCOMMAND="$LLVMGXX"
5144 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5145 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5146 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5147 { (exit 1); exit 1; }; };
5150 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5151 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5152 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5153 { (exit 1); exit 1; }; };
5157 # Check whether --with-extra-options was given.
5158 if test "${with_extra_options+set}" = set; then
5159 withval=$with_extra_options;
5160 else
5161 withval=default
5164 case "$withval" in
5165 default) EXTRA_OPTIONS= ;;
5166 *) EXTRA_OPTIONS=$withval ;;
5167 esac
5168 EXTRA_OPTIONS=$EXTRA_OPTIONS
5171 # Check whether --enable-bindings was given.
5172 if test "${enable_bindings+set}" = set; then
5173 enableval=$enable_bindings;
5174 else
5175 enableval=default
5178 BINDINGS_TO_BUILD=""
5179 case "$enableval" in
5180 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5181 all ) BINDINGS_TO_BUILD="ocaml" ;;
5182 none | no) BINDINGS_TO_BUILD="" ;;
5183 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5184 case "$a_binding" in
5185 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5186 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5187 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5188 { (exit 1); exit 1; }; } ;;
5189 esac
5190 done
5192 esac
5195 # Check whether --with-ocaml-libdir was given.
5196 if test "${with_ocaml_libdir+set}" = set; then
5197 withval=$with_ocaml_libdir;
5198 else
5199 withval=auto
5202 case "$withval" in
5203 auto) with_ocaml_libdir="$withval" ;;
5204 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5205 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5206 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5207 { (exit 1); exit 1; }; } ;;
5208 esac
5211 # Check whether --with-binutils-include was given.
5212 if test "${with_binutils_include+set}" = set; then
5213 withval=$with_binutils_include;
5214 else
5215 withval=default
5218 case "$withval" in
5219 default) WITH_BINUTILS_INCDIR=default ;;
5220 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5221 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5222 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5223 { (exit 1); exit 1; }; } ;;
5224 esac
5225 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5226 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5228 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5229 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5230 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5231 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5232 { (exit 1); exit 1; }; };
5236 # Check whether --enable-libffi was given.
5237 if test "${enable_libffi+set}" = set; then
5238 enableval=$enable_libffi;
5239 else
5240 enableval=yes
5243 case "$enableval" in
5244 yes) llvm_cv_enable_libffi="yes" ;;
5245 no) llvm_cv_enable_libffi="no" ;;
5246 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5247 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5248 { (exit 1); exit 1; }; } ;;
5249 esac
5251 if test "$llvm_cv_os_type" = "Win32" ; then
5252 llvmc_dynamic="yes"
5253 else
5254 llvmc_dynamic="no"
5257 # Check whether --enable-llvmc-dynamic was given.
5258 if test "${enable_llvmc_dynamic+set}" = set; then
5259 enableval=$enable_llvmc_dynamic;
5260 else
5261 enableval=$llvmc_dynamic
5264 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5265 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5267 else
5268 ENABLE_LLVMC_DYNAMIC=
5272 # Check whether --enable-llvmc-dynamic-plugins was given.
5273 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5274 enableval=$enable_llvmc_dynamic_plugins;
5275 else
5276 enableval=yes
5279 if test ${enableval} = "yes" ; then
5280 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5282 else
5283 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5288 ac_ext=c
5289 ac_cpp='$CPP $CPPFLAGS'
5290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5293 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5294 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5295 # On Suns, sometimes $CPP names a directory.
5296 if test -n "$CPP" && test -d "$CPP"; then
5297 CPP=
5299 if test -z "$CPP"; then
5300 if test "${ac_cv_prog_CPP+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303 # Double quotes because CPP needs to be expanded
5304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5306 ac_preproc_ok=false
5307 for ac_c_preproc_warn_flag in '' yes
5309 # Use a header file that comes with gcc, so configuring glibc
5310 # with a fresh cross-compiler works.
5311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5312 # <limits.h> exists even on freestanding compilers.
5313 # On the NeXT, cc -E runs the code through the compiler's parser,
5314 # not just through cpp. "Syntax error" is here to catch this case.
5315 cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h. */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 #ifdef __STDC__
5322 # include <limits.h>
5323 #else
5324 # include <assert.h>
5325 #endif
5326 Syntax error
5327 _ACEOF
5328 if { (ac_try="$ac_cpp conftest.$ac_ext"
5329 case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332 esac
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5335 ac_status=$?
5336 grep -v '^ *+' conftest.er1 >conftest.err
5337 rm -f conftest.er1
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } >/dev/null; then
5341 if test -s conftest.err; then
5342 ac_cpp_err=$ac_c_preproc_warn_flag
5343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5344 else
5345 ac_cpp_err=
5347 else
5348 ac_cpp_err=yes
5350 if test -z "$ac_cpp_err"; then
5352 else
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5356 # Broken: fails on valid input.
5357 continue
5360 rm -f conftest.err conftest.$ac_ext
5362 # OK, works on sane cases. Now check whether nonexistent headers
5363 # can be detected and how.
5364 cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h. */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <ac_nonexistent.h>
5371 _ACEOF
5372 if { (ac_try="$ac_cpp conftest.$ac_ext"
5373 case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev/null; then
5385 if test -s conftest.err; then
5386 ac_cpp_err=$ac_c_preproc_warn_flag
5387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5388 else
5389 ac_cpp_err=
5391 else
5392 ac_cpp_err=yes
5394 if test -z "$ac_cpp_err"; then
5395 # Broken: success on invalid input.
5396 continue
5397 else
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 # Passes both tests.
5402 ac_preproc_ok=:
5403 break
5406 rm -f conftest.err conftest.$ac_ext
5408 done
5409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5410 rm -f conftest.err conftest.$ac_ext
5411 if $ac_preproc_ok; then
5412 break
5415 done
5416 ac_cv_prog_CPP=$CPP
5419 CPP=$ac_cv_prog_CPP
5420 else
5421 ac_cv_prog_CPP=$CPP
5423 { echo "$as_me:$LINENO: result: $CPP" >&5
5424 echo "${ECHO_T}$CPP" >&6; }
5425 ac_preproc_ok=false
5426 for ac_c_preproc_warn_flag in '' yes
5428 # Use a header file that comes with gcc, so configuring glibc
5429 # with a fresh cross-compiler works.
5430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5431 # <limits.h> exists even on freestanding compilers.
5432 # On the NeXT, cc -E runs the code through the compiler's parser,
5433 # not just through cpp. "Syntax error" is here to catch this case.
5434 cat >conftest.$ac_ext <<_ACEOF
5435 /* confdefs.h. */
5436 _ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5440 #ifdef __STDC__
5441 # include <limits.h>
5442 #else
5443 # include <assert.h>
5444 #endif
5445 Syntax error
5446 _ACEOF
5447 if { (ac_try="$ac_cpp conftest.$ac_ext"
5448 case "(($ac_try" in
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5451 esac
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5454 ac_status=$?
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } >/dev/null; then
5460 if test -s conftest.err; then
5461 ac_cpp_err=$ac_c_preproc_warn_flag
5462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5463 else
5464 ac_cpp_err=
5466 else
5467 ac_cpp_err=yes
5469 if test -z "$ac_cpp_err"; then
5471 else
5472 echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5475 # Broken: fails on valid input.
5476 continue
5479 rm -f conftest.err conftest.$ac_ext
5481 # OK, works on sane cases. Now check whether nonexistent headers
5482 # can be detected and how.
5483 cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h. */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 #include <ac_nonexistent.h>
5490 _ACEOF
5491 if { (ac_try="$ac_cpp conftest.$ac_ext"
5492 case "(($ac_try" in
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5495 esac
5496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5498 ac_status=$?
5499 grep -v '^ *+' conftest.er1 >conftest.err
5500 rm -f conftest.er1
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } >/dev/null; then
5504 if test -s conftest.err; then
5505 ac_cpp_err=$ac_c_preproc_warn_flag
5506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5507 else
5508 ac_cpp_err=
5510 else
5511 ac_cpp_err=yes
5513 if test -z "$ac_cpp_err"; then
5514 # Broken: success on invalid input.
5515 continue
5516 else
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5520 # Passes both tests.
5521 ac_preproc_ok=:
5522 break
5525 rm -f conftest.err conftest.$ac_ext
5527 done
5528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5529 rm -f conftest.err conftest.$ac_ext
5530 if $ac_preproc_ok; then
5532 else
5533 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5534 See \`config.log' for more details." >&5
5535 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5536 See \`config.log' for more details." >&2;}
5537 { (exit 1); exit 1; }; }
5540 ac_ext=c
5541 ac_cpp='$CPP $CPPFLAGS'
5542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5546 ac_ext=c
5547 ac_cpp='$CPP $CPPFLAGS'
5548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5551 if test -n "$ac_tool_prefix"; then
5552 for ac_prog in gcc
5554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5558 if test "${ac_cv_prog_CC+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561 if test -n "$CC"; then
5562 ac_cv_prog_CC="$CC" # Let the user override the test.
5563 else
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 break 2
5575 done
5576 done
5577 IFS=$as_save_IFS
5581 CC=$ac_cv_prog_CC
5582 if test -n "$CC"; then
5583 { echo "$as_me:$LINENO: result: $CC" >&5
5584 echo "${ECHO_T}$CC" >&6; }
5585 else
5586 { echo "$as_me:$LINENO: result: no" >&5
5587 echo "${ECHO_T}no" >&6; }
5591 test -n "$CC" && break
5592 done
5594 if test -z "$CC"; then
5595 ac_ct_CC=$CC
5596 for ac_prog in gcc
5598 # Extract the first word of "$ac_prog", so it can be a program name with args.
5599 set dummy $ac_prog; ac_word=$2
5600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605 if test -n "$ac_ct_CC"; then
5606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_prog_ac_ct_CC="$ac_prog"
5616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5619 done
5620 done
5621 IFS=$as_save_IFS
5625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5626 if test -n "$ac_ct_CC"; then
5627 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5628 echo "${ECHO_T}$ac_ct_CC" >&6; }
5629 else
5630 { echo "$as_me:$LINENO: result: no" >&5
5631 echo "${ECHO_T}no" >&6; }
5635 test -n "$ac_ct_CC" && break
5636 done
5638 if test "x$ac_ct_CC" = x; then
5639 CC=""
5640 else
5641 case $cross_compiling:$ac_tool_warned in
5642 yes:)
5643 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5644 whose name does not start with the host triplet. If you think this
5645 configuration is useful to you, please write to autoconf@gnu.org." >&5
5646 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5647 whose name does not start with the host triplet. If you think this
5648 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5649 ac_tool_warned=yes ;;
5650 esac
5651 CC=$ac_ct_CC
5656 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5657 See \`config.log' for more details." >&5
5658 echo "$as_me: error: no acceptable C compiler found in \$PATH
5659 See \`config.log' for more details." >&2;}
5660 { (exit 1); exit 1; }; }
5662 # Provide some information about the compiler.
5663 echo "$as_me:$LINENO: checking for C compiler version" >&5
5664 ac_compiler=`set X $ac_compile; echo $2`
5665 { (ac_try="$ac_compiler --version >&5"
5666 case "(($ac_try" in
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5669 esac
5670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671 (eval "$ac_compiler --version >&5") 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }
5675 { (ac_try="$ac_compiler -v >&5"
5676 case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679 esac
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_compiler -v >&5") 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }
5685 { (ac_try="$ac_compiler -V >&5"
5686 case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5689 esac
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_compiler -V >&5") 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }
5696 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5697 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5698 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701 cat >conftest.$ac_ext <<_ACEOF
5702 /* confdefs.h. */
5703 _ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5709 main ()
5711 #ifndef __GNUC__
5712 choke me
5713 #endif
5716 return 0;
5718 _ACEOF
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5721 case "(($ac_try" in
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5724 esac
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_compile") 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } &&
5733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5734 { (case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5737 esac
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_try") 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest.$ac_objext'
5744 { (case "(($ac_try" in
5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5747 esac
5748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749 (eval "$ac_try") 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; }; then
5753 ac_compiler_gnu=yes
5754 else
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5758 ac_compiler_gnu=no
5761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5765 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5766 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5767 GCC=`test $ac_compiler_gnu = yes && echo yes`
5768 ac_test_CFLAGS=${CFLAGS+set}
5769 ac_save_CFLAGS=$CFLAGS
5770 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5771 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5772 if test "${ac_cv_prog_cc_g+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775 ac_save_c_werror_flag=$ac_c_werror_flag
5776 ac_c_werror_flag=yes
5777 ac_cv_prog_cc_g=no
5778 CFLAGS="-g"
5779 cat >conftest.$ac_ext <<_ACEOF
5780 /* confdefs.h. */
5781 _ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5787 main ()
5791 return 0;
5793 _ACEOF
5794 rm -f conftest.$ac_objext
5795 if { (ac_try="$ac_compile"
5796 case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799 esac
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compile") 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5809 { (case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5812 esac
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_try") 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try='test -s conftest.$ac_objext'
5819 { (case "(($ac_try" in
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5822 esac
5823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824 (eval "$ac_try") 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 ac_cv_prog_cc_g=yes
5829 else
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5833 CFLAGS=""
5834 cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h. */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5842 main ()
5846 return 0;
5848 _ACEOF
5849 rm -f conftest.$ac_objext
5850 if { (ac_try="$ac_compile"
5851 case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854 esac
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compile") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5864 { (case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867 esac
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_try") 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5877 esac
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_try") 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5884 else
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5888 ac_c_werror_flag=$ac_save_c_werror_flag
5889 CFLAGS="-g"
5890 cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h. */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5898 main ()
5902 return 0;
5904 _ACEOF
5905 rm -f conftest.$ac_objext
5906 if { (ac_try="$ac_compile"
5907 case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910 esac
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_compile") 2>conftest.er1
5913 ac_status=$?
5914 grep -v '^ *+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } &&
5919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5920 { (case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923 esac
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_try") 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; } &&
5929 { ac_try='test -s conftest.$ac_objext'
5930 { (case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933 esac
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_try") 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5939 ac_cv_prog_cc_g=yes
5940 else
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 ac_c_werror_flag=$ac_save_c_werror_flag
5956 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5957 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5958 if test "$ac_test_CFLAGS" = set; then
5959 CFLAGS=$ac_save_CFLAGS
5960 elif test $ac_cv_prog_cc_g = yes; then
5961 if test "$GCC" = yes; then
5962 CFLAGS="-g -O2"
5963 else
5964 CFLAGS="-g"
5966 else
5967 if test "$GCC" = yes; then
5968 CFLAGS="-O2"
5969 else
5970 CFLAGS=
5973 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5974 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5975 if test "${ac_cv_prog_cc_c89+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978 ac_cv_prog_cc_c89=no
5979 ac_save_CC=$CC
5980 cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h. */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 #include <stdarg.h>
5987 #include <stdio.h>
5988 #include <sys/types.h>
5989 #include <sys/stat.h>
5990 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5991 struct buf { int x; };
5992 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5993 static char *e (p, i)
5994 char **p;
5995 int i;
5997 return p[i];
5999 static char *f (char * (*g) (char **, int), char **p, ...)
6001 char *s;
6002 va_list v;
6003 va_start (v,p);
6004 s = g (p, va_arg (v,int));
6005 va_end (v);
6006 return s;
6009 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6010 function prototypes and stuff, but not '\xHH' hex character constants.
6011 These don't provoke an error unfortunately, instead are silently treated
6012 as 'x'. The following induces an error, until -std is added to get
6013 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6014 array size at least. It's necessary to write '\x00'==0 to get something
6015 that's true only with -std. */
6016 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6018 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6019 inside strings and character constants. */
6020 #define FOO(x) 'x'
6021 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6023 int test (int i, double x);
6024 struct s1 {int (*f) (int a);};
6025 struct s2 {int (*f) (double a);};
6026 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6027 int argc;
6028 char **argv;
6030 main ()
6032 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6034 return 0;
6036 _ACEOF
6037 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6038 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6040 CC="$ac_save_CC $ac_arg"
6041 rm -f conftest.$ac_objext
6042 if { (ac_try="$ac_compile"
6043 case "(($ac_try" in
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6046 esac
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 (eval "$ac_compile") 2>conftest.er1
6049 ac_status=$?
6050 grep -v '^ *+' conftest.er1 >conftest.err
6051 rm -f conftest.er1
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6056 { (case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059 esac
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_try") 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; } &&
6065 { ac_try='test -s conftest.$ac_objext'
6066 { (case "(($ac_try" in
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6069 esac
6070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_try") 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 ac_cv_prog_cc_c89=$ac_arg
6076 else
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6083 rm -f core conftest.err conftest.$ac_objext
6084 test "x$ac_cv_prog_cc_c89" != "xno" && break
6085 done
6086 rm -f conftest.$ac_ext
6087 CC=$ac_save_CC
6090 # AC_CACHE_VAL
6091 case "x$ac_cv_prog_cc_c89" in
6093 { echo "$as_me:$LINENO: result: none needed" >&5
6094 echo "${ECHO_T}none needed" >&6; } ;;
6095 xno)
6096 { echo "$as_me:$LINENO: result: unsupported" >&5
6097 echo "${ECHO_T}unsupported" >&6; } ;;
6099 CC="$CC $ac_cv_prog_cc_c89"
6100 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6101 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6102 esac
6105 ac_ext=c
6106 ac_cpp='$CPP $CPPFLAGS'
6107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6111 ac_ext=cpp
6112 ac_cpp='$CXXCPP $CPPFLAGS'
6113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6116 if test -z "$CXX"; then
6117 if test -n "$CCC"; then
6118 CXX=$CCC
6119 else
6120 if test -n "$ac_tool_prefix"; then
6121 for ac_prog in g++
6123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6127 if test "${ac_cv_prog_CXX+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130 if test -n "$CXX"; then
6131 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6132 else
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6140 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 break 2
6144 done
6145 done
6146 IFS=$as_save_IFS
6150 CXX=$ac_cv_prog_CXX
6151 if test -n "$CXX"; then
6152 { echo "$as_me:$LINENO: result: $CXX" >&5
6153 echo "${ECHO_T}$CXX" >&6; }
6154 else
6155 { echo "$as_me:$LINENO: result: no" >&5
6156 echo "${ECHO_T}no" >&6; }
6160 test -n "$CXX" && break
6161 done
6163 if test -z "$CXX"; then
6164 ac_ct_CXX=$CXX
6165 for ac_prog in g++
6167 # Extract the first word of "$ac_prog", so it can be a program name with args.
6168 set dummy $ac_prog; ac_word=$2
6169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 else
6174 if test -n "$ac_ct_CXX"; then
6175 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_ac_ct_CXX="$ac_prog"
6185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 break 2
6188 done
6189 done
6190 IFS=$as_save_IFS
6194 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6195 if test -n "$ac_ct_CXX"; then
6196 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6197 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6198 else
6199 { echo "$as_me:$LINENO: result: no" >&5
6200 echo "${ECHO_T}no" >&6; }
6204 test -n "$ac_ct_CXX" && break
6205 done
6207 if test "x$ac_ct_CXX" = x; then
6208 CXX="g++"
6209 else
6210 case $cross_compiling:$ac_tool_warned in
6211 yes:)
6212 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6213 whose name does not start with the host triplet. If you think this
6214 configuration is useful to you, please write to autoconf@gnu.org." >&5
6215 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6216 whose name does not start with the host triplet. If you think this
6217 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6218 ac_tool_warned=yes ;;
6219 esac
6220 CXX=$ac_ct_CXX
6226 # Provide some information about the compiler.
6227 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6228 ac_compiler=`set X $ac_compile; echo $2`
6229 { (ac_try="$ac_compiler --version >&5"
6230 case "(($ac_try" in
6231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6233 esac
6234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235 (eval "$ac_compiler --version >&5") 2>&5
6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }
6239 { (ac_try="$ac_compiler -v >&5"
6240 case "(($ac_try" in
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6243 esac
6244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245 (eval "$ac_compiler -v >&5") 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }
6249 { (ac_try="$ac_compiler -V >&5"
6250 case "(($ac_try" in
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6253 esac
6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_compiler -V >&5") 2>&5
6256 ac_status=$?
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }
6260 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6261 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6262 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265 cat >conftest.$ac_ext <<_ACEOF
6266 /* confdefs.h. */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6273 main ()
6275 #ifndef __GNUC__
6276 choke me
6277 #endif
6280 return 0;
6282 _ACEOF
6283 rm -f conftest.$ac_objext
6284 if { (ac_try="$ac_compile"
6285 case "(($ac_try" in
6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 *) ac_try_echo=$ac_try;;
6288 esac
6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_compile") 2>conftest.er1
6291 ac_status=$?
6292 grep -v '^ *+' conftest.er1 >conftest.err
6293 rm -f conftest.er1
6294 cat conftest.err >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6298 { (case "(($ac_try" in
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6301 esac
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_try") 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; } &&
6307 { ac_try='test -s conftest.$ac_objext'
6308 { (case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6311 esac
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_try") 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6317 ac_compiler_gnu=yes
6318 else
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6322 ac_compiler_gnu=no
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6329 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6330 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6331 GXX=`test $ac_compiler_gnu = yes && echo yes`
6332 ac_test_CXXFLAGS=${CXXFLAGS+set}
6333 ac_save_CXXFLAGS=$CXXFLAGS
6334 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6335 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6336 if test "${ac_cv_prog_cxx_g+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6339 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6340 ac_cxx_werror_flag=yes
6341 ac_cv_prog_cxx_g=no
6342 CXXFLAGS="-g"
6343 cat >conftest.$ac_ext <<_ACEOF
6344 /* confdefs.h. */
6345 _ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6351 main ()
6355 return 0;
6357 _ACEOF
6358 rm -f conftest.$ac_objext
6359 if { (ac_try="$ac_compile"
6360 case "(($ac_try" in
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6363 esac
6364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365 (eval "$ac_compile") 2>conftest.er1
6366 ac_status=$?
6367 grep -v '^ *+' conftest.er1 >conftest.err
6368 rm -f conftest.er1
6369 cat conftest.err >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } &&
6372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6373 { (case "(($ac_try" in
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6376 esac
6377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378 (eval "$ac_try") 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; } &&
6382 { ac_try='test -s conftest.$ac_objext'
6383 { (case "(($ac_try" in
6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385 *) ac_try_echo=$ac_try;;
6386 esac
6387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388 (eval "$ac_try") 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
6392 ac_cv_prog_cxx_g=yes
6393 else
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6397 CXXFLAGS=""
6398 cat >conftest.$ac_ext <<_ACEOF
6399 /* confdefs.h. */
6400 _ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6406 main ()
6410 return 0;
6412 _ACEOF
6413 rm -f conftest.$ac_objext
6414 if { (ac_try="$ac_compile"
6415 case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6418 esac
6419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_compile") 2>conftest.er1
6421 ac_status=$?
6422 grep -v '^ *+' conftest.er1 >conftest.err
6423 rm -f conftest.er1
6424 cat conftest.err >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6428 { (case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6431 esac
6432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433 (eval "$ac_try") 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; } &&
6437 { ac_try='test -s conftest.$ac_objext'
6438 { (case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441 esac
6442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_try") 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6448 else
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6452 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6453 CXXFLAGS="-g"
6454 cat >conftest.$ac_ext <<_ACEOF
6455 /* confdefs.h. */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6462 main ()
6466 return 0;
6468 _ACEOF
6469 rm -f conftest.$ac_objext
6470 if { (ac_try="$ac_compile"
6471 case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6474 esac
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_compile") 2>conftest.er1
6477 ac_status=$?
6478 grep -v '^ *+' conftest.er1 >conftest.err
6479 rm -f conftest.er1
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6484 { (case "(($ac_try" in
6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486 *) ac_try_echo=$ac_try;;
6487 esac
6488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489 (eval "$ac_try") 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; } &&
6493 { ac_try='test -s conftest.$ac_objext'
6494 { (case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497 esac
6498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_try") 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
6503 ac_cv_prog_cxx_g=yes
6504 else
6505 echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6520 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6521 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6522 if test "$ac_test_CXXFLAGS" = set; then
6523 CXXFLAGS=$ac_save_CXXFLAGS
6524 elif test $ac_cv_prog_cxx_g = yes; then
6525 if test "$GXX" = yes; then
6526 CXXFLAGS="-g -O2"
6527 else
6528 CXXFLAGS="-g"
6530 else
6531 if test "$GXX" = yes; then
6532 CXXFLAGS="-O2"
6533 else
6534 CXXFLAGS=
6537 ac_ext=c
6538 ac_cpp='$CPP $CPPFLAGS'
6539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6544 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6545 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6546 if test "${lt_cv_path_NM+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549 if test -n "$NM"; then
6550 # Let the user override the test.
6551 lt_cv_path_NM="$NM"
6552 else
6553 lt_nm_to_check="${ac_tool_prefix}nm"
6554 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6555 lt_nm_to_check="$lt_nm_to_check nm"
6557 for lt_tmp_nm in $lt_nm_to_check; do
6558 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6559 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6560 IFS="$lt_save_ifs"
6561 test -z "$ac_dir" && ac_dir=.
6562 tmp_nm="$ac_dir/$lt_tmp_nm"
6563 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6564 # Check to see if the nm accepts a BSD-compat flag.
6565 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6566 # nm: unknown option "B" ignored
6567 # Tru64's nm complains that /dev/null is an invalid object file
6568 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6569 */dev/null* | *'Invalid file or object type'*)
6570 lt_cv_path_NM="$tmp_nm -B"
6571 break
6574 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6575 */dev/null*)
6576 lt_cv_path_NM="$tmp_nm -p"
6577 break
6580 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6581 continue # so that we can try to find one that supports BSD flags
6583 esac
6585 esac
6587 done
6588 IFS="$lt_save_ifs"
6589 done
6590 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6593 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6594 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6595 NM="$lt_cv_path_NM"
6599 { echo "$as_me:$LINENO: checking for GNU make" >&5
6600 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6601 if test "${llvm_cv_gnu_make_command+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 llvm_cv_gnu_make_command=''
6605 for a in "$MAKE" make gmake gnumake ; do
6606 if test -z "$a" ; then continue ; fi ;
6607 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6608 then
6609 llvm_cv_gnu_make_command=$a ;
6610 break;
6612 done
6614 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6615 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6616 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6617 ifGNUmake='' ;
6618 else
6619 ifGNUmake='#' ;
6620 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6621 echo "${ECHO_T}\"Not found\"" >&6; };
6625 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6626 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6627 LN_S=$as_ln_s
6628 if test "$LN_S" = "ln -s"; then
6629 { echo "$as_me:$LINENO: result: yes" >&5
6630 echo "${ECHO_T}yes" >&6; }
6631 else
6632 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6633 echo "${ECHO_T}no, using $LN_S" >&6; }
6636 # Extract the first word of "cmp", so it can be a program name with args.
6637 set dummy cmp; ac_word=$2
6638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640 if test "${ac_cv_path_CMP+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643 case $CMP in
6644 [\\/]* | ?:[\\/]*)
6645 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6655 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 break 2
6659 done
6660 done
6661 IFS=$as_save_IFS
6663 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6665 esac
6667 CMP=$ac_cv_path_CMP
6668 if test -n "$CMP"; then
6669 { echo "$as_me:$LINENO: result: $CMP" >&5
6670 echo "${ECHO_T}$CMP" >&6; }
6671 else
6672 { echo "$as_me:$LINENO: result: no" >&5
6673 echo "${ECHO_T}no" >&6; }
6677 # Extract the first word of "cp", so it can be a program name with args.
6678 set dummy cp; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_path_CP+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684 case $CP in
6685 [\\/]* | ?:[\\/]*)
6686 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6700 done
6701 done
6702 IFS=$as_save_IFS
6704 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6706 esac
6708 CP=$ac_cv_path_CP
6709 if test -n "$CP"; then
6710 { echo "$as_me:$LINENO: result: $CP" >&5
6711 echo "${ECHO_T}$CP" >&6; }
6712 else
6713 { echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6; }
6718 # Extract the first word of "date", so it can be a program name with args.
6719 set dummy date; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_path_DATE+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725 case $DATE in
6726 [\\/]* | ?:[\\/]*)
6727 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6733 IFS=$as_save_IFS
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 break 2
6741 done
6742 done
6743 IFS=$as_save_IFS
6745 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6747 esac
6749 DATE=$ac_cv_path_DATE
6750 if test -n "$DATE"; then
6751 { echo "$as_me:$LINENO: result: $DATE" >&5
6752 echo "${ECHO_T}$DATE" >&6; }
6753 else
6754 { echo "$as_me:$LINENO: result: no" >&5
6755 echo "${ECHO_T}no" >&6; }
6759 # Extract the first word of "find", so it can be a program name with args.
6760 set dummy find; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_path_FIND+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766 case $FIND in
6767 [\\/]* | ?:[\\/]*)
6768 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6782 done
6783 done
6784 IFS=$as_save_IFS
6786 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6788 esac
6790 FIND=$ac_cv_path_FIND
6791 if test -n "$FIND"; then
6792 { echo "$as_me:$LINENO: result: $FIND" >&5
6793 echo "${ECHO_T}$FIND" >&6; }
6794 else
6795 { echo "$as_me:$LINENO: result: no" >&5
6796 echo "${ECHO_T}no" >&6; }
6800 # Extract the first word of "grep", so it can be a program name with args.
6801 set dummy grep; ac_word=$2
6802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6804 if test "${ac_cv_path_GREP+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807 case $GREP in
6808 [\\/]* | ?:[\\/]*)
6809 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6819 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6823 done
6824 done
6825 IFS=$as_save_IFS
6827 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6829 esac
6831 GREP=$ac_cv_path_GREP
6832 if test -n "$GREP"; then
6833 { echo "$as_me:$LINENO: result: $GREP" >&5
6834 echo "${ECHO_T}$GREP" >&6; }
6835 else
6836 { echo "$as_me:$LINENO: result: no" >&5
6837 echo "${ECHO_T}no" >&6; }
6841 # Extract the first word of "mkdir", so it can be a program name with args.
6842 set dummy mkdir; ac_word=$2
6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845 if test "${ac_cv_path_MKDIR+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848 case $MKDIR in
6849 [\\/]* | ?:[\\/]*)
6850 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6864 done
6865 done
6866 IFS=$as_save_IFS
6868 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6870 esac
6872 MKDIR=$ac_cv_path_MKDIR
6873 if test -n "$MKDIR"; then
6874 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6875 echo "${ECHO_T}$MKDIR" >&6; }
6876 else
6877 { echo "$as_me:$LINENO: result: no" >&5
6878 echo "${ECHO_T}no" >&6; }
6882 # Extract the first word of "mv", so it can be a program name with args.
6883 set dummy mv; ac_word=$2
6884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886 if test "${ac_cv_path_MV+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889 case $MV in
6890 [\\/]* | ?:[\\/]*)
6891 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6901 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6905 done
6906 done
6907 IFS=$as_save_IFS
6909 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6911 esac
6913 MV=$ac_cv_path_MV
6914 if test -n "$MV"; then
6915 { echo "$as_me:$LINENO: result: $MV" >&5
6916 echo "${ECHO_T}$MV" >&6; }
6917 else
6918 { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6923 if test -n "$ac_tool_prefix"; then
6924 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6925 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928 if test "${ac_cv_prog_RANLIB+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931 if test -n "$RANLIB"; then
6932 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6945 done
6946 done
6947 IFS=$as_save_IFS
6951 RANLIB=$ac_cv_prog_RANLIB
6952 if test -n "$RANLIB"; then
6953 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6954 echo "${ECHO_T}$RANLIB" >&6; }
6955 else
6956 { echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6; }
6962 if test -z "$ac_cv_prog_RANLIB"; then
6963 ac_ct_RANLIB=$RANLIB
6964 # Extract the first word of "ranlib", so it can be a program name with args.
6965 set dummy ranlib; ac_word=$2
6966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971 if test -n "$ac_ct_RANLIB"; then
6972 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6973 else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_prog_ac_ct_RANLIB="ranlib"
6982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6985 done
6986 done
6987 IFS=$as_save_IFS
6991 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6992 if test -n "$ac_ct_RANLIB"; then
6993 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6994 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6995 else
6996 { echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6; }
7000 if test "x$ac_ct_RANLIB" = x; then
7001 RANLIB=":"
7002 else
7003 case $cross_compiling:$ac_tool_warned in
7004 yes:)
7005 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7006 whose name does not start with the host triplet. If you think this
7007 configuration is useful to you, please write to autoconf@gnu.org." >&5
7008 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7009 whose name does not start with the host triplet. If you think this
7010 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7011 ac_tool_warned=yes ;;
7012 esac
7013 RANLIB=$ac_ct_RANLIB
7015 else
7016 RANLIB="$ac_cv_prog_RANLIB"
7019 # Extract the first word of "rm", so it can be a program name with args.
7020 set dummy rm; ac_word=$2
7021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023 if test "${ac_cv_path_RM+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026 case $RM in
7027 [\\/]* | ?:[\\/]*)
7028 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 break 2
7042 done
7043 done
7044 IFS=$as_save_IFS
7046 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7048 esac
7050 RM=$ac_cv_path_RM
7051 if test -n "$RM"; then
7052 { echo "$as_me:$LINENO: result: $RM" >&5
7053 echo "${ECHO_T}$RM" >&6; }
7054 else
7055 { echo "$as_me:$LINENO: result: no" >&5
7056 echo "${ECHO_T}no" >&6; }
7060 # Extract the first word of "sed", so it can be a program name with args.
7061 set dummy sed; ac_word=$2
7062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064 if test "${ac_cv_path_SED+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067 case $SED in
7068 [\\/]* | ?:[\\/]*)
7069 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7079 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7083 done
7084 done
7085 IFS=$as_save_IFS
7087 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7089 esac
7091 SED=$ac_cv_path_SED
7092 if test -n "$SED"; then
7093 { echo "$as_me:$LINENO: result: $SED" >&5
7094 echo "${ECHO_T}$SED" >&6; }
7095 else
7096 { echo "$as_me:$LINENO: result: no" >&5
7097 echo "${ECHO_T}no" >&6; }
7101 # Extract the first word of "tar", so it can be a program name with args.
7102 set dummy tar; ac_word=$2
7103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105 if test "${ac_cv_path_TAR+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108 case $TAR in
7109 [\\/]* | ?:[\\/]*)
7110 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7124 done
7125 done
7126 IFS=$as_save_IFS
7128 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7130 esac
7132 TAR=$ac_cv_path_TAR
7133 if test -n "$TAR"; then
7134 { echo "$as_me:$LINENO: result: $TAR" >&5
7135 echo "${ECHO_T}$TAR" >&6; }
7136 else
7137 { echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6; }
7142 # Extract the first word of "pwd", so it can be a program name with args.
7143 set dummy pwd; ac_word=$2
7144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7146 if test "${ac_cv_path_BINPWD+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149 case $BINPWD in
7150 [\\/]* | ?:[\\/]*)
7151 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7157 IFS=$as_save_IFS
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7161 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 break 2
7165 done
7166 done
7167 IFS=$as_save_IFS
7169 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7171 esac
7173 BINPWD=$ac_cv_path_BINPWD
7174 if test -n "$BINPWD"; then
7175 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7176 echo "${ECHO_T}$BINPWD" >&6; }
7177 else
7178 { echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6; }
7184 # Extract the first word of "Graphviz", so it can be a program name with args.
7185 set dummy Graphviz; ac_word=$2
7186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7188 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191 case $GRAPHVIZ in
7192 [\\/]* | ?:[\\/]*)
7193 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7207 done
7208 done
7209 IFS=$as_save_IFS
7211 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7213 esac
7215 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7216 if test -n "$GRAPHVIZ"; then
7217 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7218 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7219 else
7220 { echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6; }
7225 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7227 cat >>confdefs.h <<\_ACEOF
7228 #define HAVE_GRAPHVIZ 1
7229 _ACEOF
7231 if test "$llvm_cv_os_type" = "MingW" ; then
7232 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7235 cat >>confdefs.h <<_ACEOF
7236 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7237 _ACEOF
7240 # Extract the first word of "dot", so it can be a program name with args.
7241 set dummy dot; ac_word=$2
7242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244 if test "${ac_cv_path_DOT+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 else
7247 case $DOT in
7248 [\\/]* | ?:[\\/]*)
7249 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7263 done
7264 done
7265 IFS=$as_save_IFS
7267 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7269 esac
7271 DOT=$ac_cv_path_DOT
7272 if test -n "$DOT"; then
7273 { echo "$as_me:$LINENO: result: $DOT" >&5
7274 echo "${ECHO_T}$DOT" >&6; }
7275 else
7276 { echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6; }
7281 if test "$DOT" != "echo dot" ; then
7283 cat >>confdefs.h <<\_ACEOF
7284 #define HAVE_DOT 1
7285 _ACEOF
7287 if test "$llvm_cv_os_type" = "MingW" ; then
7288 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7291 cat >>confdefs.h <<_ACEOF
7292 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7293 _ACEOF
7296 # Extract the first word of "fdp", so it can be a program name with args.
7297 set dummy fdp; ac_word=$2
7298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300 if test "${ac_cv_path_FDP+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303 case $FDP in
7304 [\\/]* | ?:[\\/]*)
7305 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7319 done
7320 done
7321 IFS=$as_save_IFS
7323 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7325 esac
7327 FDP=$ac_cv_path_FDP
7328 if test -n "$FDP"; then
7329 { echo "$as_me:$LINENO: result: $FDP" >&5
7330 echo "${ECHO_T}$FDP" >&6; }
7331 else
7332 { echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6; }
7337 if test "$FDP" != "echo fdp" ; then
7339 cat >>confdefs.h <<\_ACEOF
7340 #define HAVE_FDP 1
7341 _ACEOF
7343 if test "$llvm_cv_os_type" = "MingW" ; then
7344 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7347 cat >>confdefs.h <<_ACEOF
7348 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7349 _ACEOF
7352 # Extract the first word of "neato", so it can be a program name with args.
7353 set dummy neato; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_path_NEATO+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359 case $NEATO in
7360 [\\/]* | ?:[\\/]*)
7361 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7375 done
7376 done
7377 IFS=$as_save_IFS
7379 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7381 esac
7383 NEATO=$ac_cv_path_NEATO
7384 if test -n "$NEATO"; then
7385 { echo "$as_me:$LINENO: result: $NEATO" >&5
7386 echo "${ECHO_T}$NEATO" >&6; }
7387 else
7388 { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7393 if test "$NEATO" != "echo neato" ; then
7395 cat >>confdefs.h <<\_ACEOF
7396 #define HAVE_NEATO 1
7397 _ACEOF
7399 if test "$llvm_cv_os_type" = "MingW" ; then
7400 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7403 cat >>confdefs.h <<_ACEOF
7404 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7405 _ACEOF
7408 # Extract the first word of "twopi", so it can be a program name with args.
7409 set dummy twopi; ac_word=$2
7410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7412 if test "${ac_cv_path_TWOPI+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415 case $TWOPI in
7416 [\\/]* | ?:[\\/]*)
7417 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7423 IFS=$as_save_IFS
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7427 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 break 2
7431 done
7432 done
7433 IFS=$as_save_IFS
7435 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7437 esac
7439 TWOPI=$ac_cv_path_TWOPI
7440 if test -n "$TWOPI"; then
7441 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7442 echo "${ECHO_T}$TWOPI" >&6; }
7443 else
7444 { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7449 if test "$TWOPI" != "echo twopi" ; then
7451 cat >>confdefs.h <<\_ACEOF
7452 #define HAVE_TWOPI 1
7453 _ACEOF
7455 if test "$llvm_cv_os_type" = "MingW" ; then
7456 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7459 cat >>confdefs.h <<_ACEOF
7460 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7461 _ACEOF
7464 # Extract the first word of "circo", so it can be a program name with args.
7465 set dummy circo; ac_word=$2
7466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7468 if test "${ac_cv_path_CIRCO+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471 case $CIRCO in
7472 [\\/]* | ?:[\\/]*)
7473 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7487 done
7488 done
7489 IFS=$as_save_IFS
7491 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7493 esac
7495 CIRCO=$ac_cv_path_CIRCO
7496 if test -n "$CIRCO"; then
7497 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7498 echo "${ECHO_T}$CIRCO" >&6; }
7499 else
7500 { echo "$as_me:$LINENO: result: no" >&5
7501 echo "${ECHO_T}no" >&6; }
7505 if test "$CIRCO" != "echo circo" ; then
7507 cat >>confdefs.h <<\_ACEOF
7508 #define HAVE_CIRCO 1
7509 _ACEOF
7511 if test "$llvm_cv_os_type" = "MingW" ; then
7512 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7515 cat >>confdefs.h <<_ACEOF
7516 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7517 _ACEOF
7520 for ac_prog in gv gsview32
7522 # Extract the first word of "$ac_prog", so it can be a program name with args.
7523 set dummy $ac_prog; ac_word=$2
7524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526 if test "${ac_cv_path_GV+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529 case $GV in
7530 [\\/]* | ?:[\\/]*)
7531 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7541 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7545 done
7546 done
7547 IFS=$as_save_IFS
7550 esac
7552 GV=$ac_cv_path_GV
7553 if test -n "$GV"; then
7554 { echo "$as_me:$LINENO: result: $GV" >&5
7555 echo "${ECHO_T}$GV" >&6; }
7556 else
7557 { echo "$as_me:$LINENO: result: no" >&5
7558 echo "${ECHO_T}no" >&6; }
7562 test -n "$GV" && break
7563 done
7564 test -n "$GV" || GV="echo gv"
7566 if test "$GV" != "echo gv" ; then
7568 cat >>confdefs.h <<\_ACEOF
7569 #define HAVE_GV 1
7570 _ACEOF
7572 if test "$llvm_cv_os_type" = "MingW" ; then
7573 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7576 cat >>confdefs.h <<_ACEOF
7577 #define LLVM_PATH_GV "$GV${EXEEXT}"
7578 _ACEOF
7581 # Extract the first word of "dotty", so it can be a program name with args.
7582 set dummy dotty; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_DOTTY+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588 case $DOTTY in
7589 [\\/]* | ?:[\\/]*)
7590 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7596 IFS=$as_save_IFS
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 break 2
7604 done
7605 done
7606 IFS=$as_save_IFS
7608 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7610 esac
7612 DOTTY=$ac_cv_path_DOTTY
7613 if test -n "$DOTTY"; then
7614 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7615 echo "${ECHO_T}$DOTTY" >&6; }
7616 else
7617 { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7622 if test "$DOTTY" != "echo dotty" ; then
7624 cat >>confdefs.h <<\_ACEOF
7625 #define HAVE_DOTTY 1
7626 _ACEOF
7628 if test "$llvm_cv_os_type" = "MingW" ; then
7629 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7632 cat >>confdefs.h <<_ACEOF
7633 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7634 _ACEOF
7639 # Extract the first word of "perl", so it can be a program name with args.
7640 set dummy perl; ac_word=$2
7641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7643 if test "${ac_cv_path_PERL+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646 case $PERL in
7647 [\\/]* | ?:[\\/]*)
7648 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7658 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 break 2
7662 done
7663 done
7664 IFS=$as_save_IFS
7666 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7668 esac
7670 PERL=$ac_cv_path_PERL
7671 if test -n "$PERL"; then
7672 { echo "$as_me:$LINENO: result: $PERL" >&5
7673 echo "${ECHO_T}$PERL" >&6; }
7674 else
7675 { echo "$as_me:$LINENO: result: no" >&5
7676 echo "${ECHO_T}no" >&6; }
7680 if test "$PERL" != "none"; then
7681 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7682 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7683 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7684 { echo "$as_me:$LINENO: result: yes" >&5
7685 echo "${ECHO_T}yes" >&6; }
7686 else
7687 PERL=none
7688 { echo "$as_me:$LINENO: result: not found" >&5
7689 echo "${ECHO_T}not found" >&6; }
7694 if test x"$PERL" = xnone; then
7695 HAVE_PERL=0
7697 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7698 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7699 { (exit 1); exit 1; }; }
7700 else
7701 HAVE_PERL=1
7705 # Find a good install program. We prefer a C program (faster),
7706 # so one script is as good as another. But avoid the broken or
7707 # incompatible versions:
7708 # SysV /etc/install, /usr/sbin/install
7709 # SunOS /usr/etc/install
7710 # IRIX /sbin/install
7711 # AIX /bin/install
7712 # AmigaOS /C/install, which installs bootblocks on floppy discs
7713 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7716 # OS/2's system install, which has a completely different semantic
7717 # ./install, which can be erroneously created by make from ./install.sh.
7718 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7719 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7720 if test -z "$INSTALL"; then
7721 if test "${ac_cv_path_install+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 else
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
7729 # Account for people who put trailing slashes in PATH elements.
7730 case $as_dir/ in
7731 ./ | .// | /cC/* | \
7732 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7733 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7734 /usr/ucb/* ) ;;
7736 # OSF1 and SCO ODT 3.0 have their own names for install.
7737 # Don't use installbsd from OSF since it installs stuff as root
7738 # by default.
7739 for ac_prog in ginstall scoinst install; do
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7742 if test $ac_prog = install &&
7743 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7744 # AIX install. It has an incompatible calling convention.
7746 elif test $ac_prog = install &&
7747 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7748 # program-specific install script used by HP pwplus--don't use.
7750 else
7751 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7752 break 3
7755 done
7756 done
7758 esac
7759 done
7760 IFS=$as_save_IFS
7764 if test "${ac_cv_path_install+set}" = set; then
7765 INSTALL=$ac_cv_path_install
7766 else
7767 # As a last resort, use the slow shell script. Don't cache a
7768 # value for INSTALL within a source directory, because that will
7769 # break other packages using the cache if that directory is
7770 # removed, or if the value is a relative name.
7771 INSTALL=$ac_install_sh
7774 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7775 echo "${ECHO_T}$INSTALL" >&6; }
7777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7778 # It thinks the first close brace ends the variable substitution.
7779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7786 # Extract the first word of "bzip2", so it can be a program name with args.
7787 set dummy bzip2; ac_word=$2
7788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7790 if test "${ac_cv_path_BZIP2+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793 case $BZIP2 in
7794 [\\/]* | ?:[\\/]*)
7795 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7805 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7809 done
7810 done
7811 IFS=$as_save_IFS
7814 esac
7816 BZIP2=$ac_cv_path_BZIP2
7817 if test -n "$BZIP2"; then
7818 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7819 echo "${ECHO_T}$BZIP2" >&6; }
7820 else
7821 { echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6; }
7826 # Extract the first word of "doxygen", so it can be a program name with args.
7827 set dummy doxygen; ac_word=$2
7828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7830 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833 case $DOXYGEN in
7834 [\\/]* | ?:[\\/]*)
7835 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7841 IFS=$as_save_IFS
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7845 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 break 2
7849 done
7850 done
7851 IFS=$as_save_IFS
7854 esac
7856 DOXYGEN=$ac_cv_path_DOXYGEN
7857 if test -n "$DOXYGEN"; then
7858 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7859 echo "${ECHO_T}$DOXYGEN" >&6; }
7860 else
7861 { echo "$as_me:$LINENO: result: no" >&5
7862 echo "${ECHO_T}no" >&6; }
7866 # Extract the first word of "groff", so it can be a program name with args.
7867 set dummy groff; ac_word=$2
7868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7870 if test "${ac_cv_path_GROFF+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873 case $GROFF in
7874 [\\/]* | ?:[\\/]*)
7875 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 for as_dir in $PATH
7881 IFS=$as_save_IFS
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7885 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 break 2
7889 done
7890 done
7891 IFS=$as_save_IFS
7894 esac
7896 GROFF=$ac_cv_path_GROFF
7897 if test -n "$GROFF"; then
7898 { echo "$as_me:$LINENO: result: $GROFF" >&5
7899 echo "${ECHO_T}$GROFF" >&6; }
7900 else
7901 { echo "$as_me:$LINENO: result: no" >&5
7902 echo "${ECHO_T}no" >&6; }
7906 # Extract the first word of "gzip", so it can be a program name with args.
7907 set dummy gzip; ac_word=$2
7908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7910 if test "${ac_cv_path_GZIP+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913 case $GZIP in
7914 [\\/]* | ?:[\\/]*)
7915 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 for as_dir in $PATH
7921 IFS=$as_save_IFS
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7925 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 break 2
7929 done
7930 done
7931 IFS=$as_save_IFS
7934 esac
7936 GZIP=$ac_cv_path_GZIP
7937 if test -n "$GZIP"; then
7938 { echo "$as_me:$LINENO: result: $GZIP" >&5
7939 echo "${ECHO_T}$GZIP" >&6; }
7940 else
7941 { echo "$as_me:$LINENO: result: no" >&5
7942 echo "${ECHO_T}no" >&6; }
7946 # Extract the first word of "pod2html", so it can be a program name with args.
7947 set dummy pod2html; ac_word=$2
7948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7950 if test "${ac_cv_path_POD2HTML+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953 case $POD2HTML in
7954 [\\/]* | ?:[\\/]*)
7955 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7965 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7969 done
7970 done
7971 IFS=$as_save_IFS
7974 esac
7976 POD2HTML=$ac_cv_path_POD2HTML
7977 if test -n "$POD2HTML"; then
7978 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7979 echo "${ECHO_T}$POD2HTML" >&6; }
7980 else
7981 { echo "$as_me:$LINENO: result: no" >&5
7982 echo "${ECHO_T}no" >&6; }
7986 # Extract the first word of "pod2man", so it can be a program name with args.
7987 set dummy pod2man; ac_word=$2
7988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7990 if test "${ac_cv_path_POD2MAN+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993 case $POD2MAN in
7994 [\\/]* | ?:[\\/]*)
7995 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8001 IFS=$as_save_IFS
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8005 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 break 2
8009 done
8010 done
8011 IFS=$as_save_IFS
8014 esac
8016 POD2MAN=$ac_cv_path_POD2MAN
8017 if test -n "$POD2MAN"; then
8018 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8019 echo "${ECHO_T}$POD2MAN" >&6; }
8020 else
8021 { echo "$as_me:$LINENO: result: no" >&5
8022 echo "${ECHO_T}no" >&6; }
8026 # Extract the first word of "runtest", so it can be a program name with args.
8027 set dummy runtest; ac_word=$2
8028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8030 if test "${ac_cv_path_RUNTEST+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033 case $RUNTEST in
8034 [\\/]* | ?:[\\/]*)
8035 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8049 done
8050 done
8051 IFS=$as_save_IFS
8054 esac
8056 RUNTEST=$ac_cv_path_RUNTEST
8057 if test -n "$RUNTEST"; then
8058 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8059 echo "${ECHO_T}$RUNTEST" >&6; }
8060 else
8061 { echo "$as_me:$LINENO: result: no" >&5
8062 echo "${ECHO_T}no" >&6; }
8067 no_itcl=true
8068 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8069 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8071 # Check whether --with-tclinclude was given.
8072 if test "${with_tclinclude+set}" = set; then
8073 withval=$with_tclinclude; with_tclinclude=${withval}
8074 else
8075 with_tclinclude=''
8078 if test "${ac_cv_path_tclsh+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 else
8082 if test x"${with_tclinclude}" != x ; then
8083 if test -f ${with_tclinclude}/tclsh ; then
8084 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8085 elif test -f ${with_tclinclude}/src/tclsh ; then
8086 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8087 else
8088 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8089 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8090 { (exit 1); exit 1; }; }
8094 if test x"${ac_cv_path_tclsh}" = x ; then
8095 { echo "$as_me:$LINENO: result: none" >&5
8096 echo "${ECHO_T}none" >&6; }
8097 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
8099 # Extract the first word of "$ac_prog", so it can be a program name with args.
8100 set dummy $ac_prog; ac_word=$2
8101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8103 if test "${ac_cv_path_TCLSH+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106 case $TCLSH in
8107 [\\/]* | ?:[\\/]*)
8108 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8118 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 break 2
8122 done
8123 done
8124 IFS=$as_save_IFS
8127 esac
8129 TCLSH=$ac_cv_path_TCLSH
8130 if test -n "$TCLSH"; then
8131 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8132 echo "${ECHO_T}$TCLSH" >&6; }
8133 else
8134 { echo "$as_me:$LINENO: result: no" >&5
8135 echo "${ECHO_T}no" >&6; }
8139 test -n "$TCLSH" && break
8140 done
8142 if test x"${TCLSH}" = x ; then
8143 ac_cv_path_tclsh='';
8144 else
8145 ac_cv_path_tclsh="${TCLSH}";
8147 else
8148 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8149 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8150 TCLSH="${ac_cv_path_tclsh}"
8156 # Extract the first word of "zip", so it can be a program name with args.
8157 set dummy zip; ac_word=$2
8158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8160 if test "${ac_cv_path_ZIP+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8162 else
8163 case $ZIP in
8164 [\\/]* | ?:[\\/]*)
8165 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 for as_dir in $PATH
8171 IFS=$as_save_IFS
8172 test -z "$as_dir" && as_dir=.
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8175 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8177 break 2
8179 done
8180 done
8181 IFS=$as_save_IFS
8184 esac
8186 ZIP=$ac_cv_path_ZIP
8187 if test -n "$ZIP"; then
8188 { echo "$as_me:$LINENO: result: $ZIP" >&5
8189 echo "${ECHO_T}$ZIP" >&6; }
8190 else
8191 { echo "$as_me:$LINENO: result: no" >&5
8192 echo "${ECHO_T}no" >&6; }
8196 for ac_prog in ocamlc
8198 # Extract the first word of "$ac_prog", so it can be a program name with args.
8199 set dummy $ac_prog; ac_word=$2
8200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8202 if test "${ac_cv_path_OCAMLC+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205 case $OCAMLC in
8206 [\\/]* | ?:[\\/]*)
8207 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 for as_dir in $PATH
8213 IFS=$as_save_IFS
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8217 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8219 break 2
8221 done
8222 done
8223 IFS=$as_save_IFS
8226 esac
8228 OCAMLC=$ac_cv_path_OCAMLC
8229 if test -n "$OCAMLC"; then
8230 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8231 echo "${ECHO_T}$OCAMLC" >&6; }
8232 else
8233 { echo "$as_me:$LINENO: result: no" >&5
8234 echo "${ECHO_T}no" >&6; }
8238 test -n "$OCAMLC" && break
8239 done
8241 for ac_prog in ocamlopt
8243 # Extract the first word of "$ac_prog", so it can be a program name with args.
8244 set dummy $ac_prog; ac_word=$2
8245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8247 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250 case $OCAMLOPT in
8251 [\\/]* | ?:[\\/]*)
8252 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8262 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 break 2
8266 done
8267 done
8268 IFS=$as_save_IFS
8271 esac
8273 OCAMLOPT=$ac_cv_path_OCAMLOPT
8274 if test -n "$OCAMLOPT"; then
8275 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8276 echo "${ECHO_T}$OCAMLOPT" >&6; }
8277 else
8278 { echo "$as_me:$LINENO: result: no" >&5
8279 echo "${ECHO_T}no" >&6; }
8283 test -n "$OCAMLOPT" && break
8284 done
8286 for ac_prog in ocamldep
8288 # Extract the first word of "$ac_prog", so it can be a program name with args.
8289 set dummy $ac_prog; ac_word=$2
8290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8292 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295 case $OCAMLDEP in
8296 [\\/]* | ?:[\\/]*)
8297 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8307 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8311 done
8312 done
8313 IFS=$as_save_IFS
8316 esac
8318 OCAMLDEP=$ac_cv_path_OCAMLDEP
8319 if test -n "$OCAMLDEP"; then
8320 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8321 echo "${ECHO_T}$OCAMLDEP" >&6; }
8322 else
8323 { echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6; }
8328 test -n "$OCAMLDEP" && break
8329 done
8331 for ac_prog in ocamldoc
8333 # Extract the first word of "$ac_prog", so it can be a program name with args.
8334 set dummy $ac_prog; ac_word=$2
8335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8337 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340 case $OCAMLDOC in
8341 [\\/]* | ?:[\\/]*)
8342 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 for as_dir in $PATH
8348 IFS=$as_save_IFS
8349 test -z "$as_dir" && as_dir=.
8350 for ac_exec_ext in '' $ac_executable_extensions; do
8351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8352 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8354 break 2
8356 done
8357 done
8358 IFS=$as_save_IFS
8361 esac
8363 OCAMLDOC=$ac_cv_path_OCAMLDOC
8364 if test -n "$OCAMLDOC"; then
8365 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8366 echo "${ECHO_T}$OCAMLDOC" >&6; }
8367 else
8368 { echo "$as_me:$LINENO: result: no" >&5
8369 echo "${ECHO_T}no" >&6; }
8373 test -n "$OCAMLDOC" && break
8374 done
8376 for ac_prog in gas as
8378 # Extract the first word of "$ac_prog", so it can be a program name with args.
8379 set dummy $ac_prog; ac_word=$2
8380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8382 if test "${ac_cv_path_GAS+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 else
8385 case $GAS in
8386 [\\/]* | ?:[\\/]*)
8387 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 for as_dir in $PATH
8393 IFS=$as_save_IFS
8394 test -z "$as_dir" && as_dir=.
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8397 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 break 2
8401 done
8402 done
8403 IFS=$as_save_IFS
8406 esac
8408 GAS=$ac_cv_path_GAS
8409 if test -n "$GAS"; then
8410 { echo "$as_me:$LINENO: result: $GAS" >&5
8411 echo "${ECHO_T}$GAS" >&6; }
8412 else
8413 { echo "$as_me:$LINENO: result: no" >&5
8414 echo "${ECHO_T}no" >&6; }
8418 test -n "$GAS" && break
8419 done
8422 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8423 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8424 if test "${llvm_cv_link_use_r+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427 ac_ext=c
8428 ac_cpp='$CPP $CPPFLAGS'
8429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8433 oldcflags="$CFLAGS"
8434 CFLAGS="$CFLAGS -Wl,-R."
8435 cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h. */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8443 main ()
8445 int main() { return 0; }
8447 return 0;
8449 _ACEOF
8450 rm -f conftest.$ac_objext conftest$ac_exeext
8451 if { (ac_try="$ac_link"
8452 case "(($ac_try" in
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8455 esac
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457 (eval "$ac_link") 2>conftest.er1
8458 ac_status=$?
8459 grep -v '^ *+' conftest.er1 >conftest.err
8460 rm -f conftest.er1
8461 cat conftest.err >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } &&
8464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8465 { (case "(($ac_try" in
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8468 esac
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_try") 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; } &&
8474 { ac_try='test -s conftest$ac_exeext'
8475 { (case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8478 esac
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_try") 2>&5
8481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8484 llvm_cv_link_use_r=yes
8485 else
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 llvm_cv_link_use_r=no
8492 rm -f core conftest.err conftest.$ac_objext \
8493 conftest$ac_exeext conftest.$ac_ext
8494 CFLAGS="$oldcflags"
8495 ac_ext=c
8496 ac_cpp='$CPP $CPPFLAGS'
8497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8503 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8504 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8505 if test "$llvm_cv_link_use_r" = yes ; then
8507 cat >>confdefs.h <<\_ACEOF
8508 #define HAVE_LINK_R 1
8509 _ACEOF
8514 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8515 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8516 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519 ac_ext=c
8520 ac_cpp='$CPP $CPPFLAGS'
8521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8525 oldcflags="$CFLAGS"
8526 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8527 cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h. */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8535 main ()
8537 int main() { return 0; }
8539 return 0;
8541 _ACEOF
8542 rm -f conftest.$ac_objext conftest$ac_exeext
8543 if { (ac_try="$ac_link"
8544 case "(($ac_try" in
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8547 esac
8548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549 (eval "$ac_link") 2>conftest.er1
8550 ac_status=$?
8551 grep -v '^ *+' conftest.er1 >conftest.err
8552 rm -f conftest.er1
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8557 { (case "(($ac_try" in
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8560 esac
8561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562 (eval "$ac_try") 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try='test -s conftest$ac_exeext'
8567 { (case "(($ac_try" in
8568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8570 esac
8571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572 (eval "$ac_try") 2>&5
8573 ac_status=$?
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; }; then
8576 llvm_cv_link_use_export_dynamic=yes
8577 else
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8581 llvm_cv_link_use_export_dynamic=no
8584 rm -f core conftest.err conftest.$ac_objext \
8585 conftest$ac_exeext conftest.$ac_ext
8586 CFLAGS="$oldcflags"
8587 ac_ext=c
8588 ac_cpp='$CPP $CPPFLAGS'
8589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8595 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8596 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8597 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8599 cat >>confdefs.h <<\_ACEOF
8600 #define HAVE_LINK_EXPORT_DYNAMIC 1
8601 _ACEOF
8608 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8609 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8610 if test "${ac_cv_c_const+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 else
8613 cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h. */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8621 main ()
8623 /* FIXME: Include the comments suggested by Paul. */
8624 #ifndef __cplusplus
8625 /* Ultrix mips cc rejects this. */
8626 typedef int charset[2];
8627 const charset x;
8628 /* SunOS 4.1.1 cc rejects this. */
8629 char const *const *ccp;
8630 char **p;
8631 /* NEC SVR4.0.2 mips cc rejects this. */
8632 struct point {int x, y;};
8633 static struct point const zero = {0,0};
8634 /* AIX XL C 1.02.0.0 rejects this.
8635 It does not let you subtract one const X* pointer from another in
8636 an arm of an if-expression whose if-part is not a constant
8637 expression */
8638 const char *g = "string";
8639 ccp = &g + (g ? g-g : 0);
8640 /* HPUX 7.0 cc rejects these. */
8641 ++ccp;
8642 p = (char**) ccp;
8643 ccp = (char const *const *) p;
8644 { /* SCO 3.2v4 cc rejects this. */
8645 char *t;
8646 char const *s = 0 ? (char *) 0 : (char const *) 0;
8648 *t++ = 0;
8649 if (s) return 0;
8651 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8652 int x[] = {25, 17};
8653 const int *foo = &x[0];
8654 ++foo;
8656 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8657 typedef const int *iptr;
8658 iptr p = 0;
8659 ++p;
8661 { /* AIX XL C 1.02.0.0 rejects this saying
8662 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8663 struct s { int j; const int *ap[3]; };
8664 struct s *b; b->j = 5;
8666 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8667 const int foo = 10;
8668 if (!foo) return 0;
8670 return !x[0] && !zero.x;
8671 #endif
8674 return 0;
8676 _ACEOF
8677 rm -f conftest.$ac_objext
8678 if { (ac_try="$ac_compile"
8679 case "(($ac_try" in
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8682 esac
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_compile") 2>conftest.er1
8685 ac_status=$?
8686 grep -v '^ *+' conftest.er1 >conftest.err
8687 rm -f conftest.er1
8688 cat conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } &&
8691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8692 { (case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8695 esac
8696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_try") 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; } &&
8701 { ac_try='test -s conftest.$ac_objext'
8702 { (case "(($ac_try" in
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8705 esac
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_try") 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_c_const=yes
8712 else
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8716 ac_cv_c_const=no
8719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8721 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8722 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8723 if test $ac_cv_c_const = no; then
8725 cat >>confdefs.h <<\_ACEOF
8726 #define const
8727 _ACEOF
8736 ac_header_dirent=no
8737 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8738 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8739 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8740 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h. */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 #include <sys/types.h>
8751 #include <$ac_hdr>
8754 main ()
8756 if ((DIR *) 0)
8757 return 0;
8759 return 0;
8761 _ACEOF
8762 rm -f conftest.$ac_objext
8763 if { (ac_try="$ac_compile"
8764 case "(($ac_try" in
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8767 esac
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 (eval "$ac_compile") 2>conftest.er1
8770 ac_status=$?
8771 grep -v '^ *+' conftest.er1 >conftest.err
8772 rm -f conftest.er1
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8777 { (case "(($ac_try" in
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8780 esac
8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782 (eval "$ac_try") 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; } &&
8786 { ac_try='test -s conftest.$ac_objext'
8787 { (case "(($ac_try" in
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8790 esac
8791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792 (eval "$ac_try") 2>&5
8793 ac_status=$?
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; }; then
8796 eval "$as_ac_Header=yes"
8797 else
8798 echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8801 eval "$as_ac_Header=no"
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806 ac_res=`eval echo '${'$as_ac_Header'}'`
8807 { echo "$as_me:$LINENO: result: $ac_res" >&5
8808 echo "${ECHO_T}$ac_res" >&6; }
8809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8810 cat >>confdefs.h <<_ACEOF
8811 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8812 _ACEOF
8814 ac_header_dirent=$ac_hdr; break
8817 done
8818 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8819 if test $ac_header_dirent = dirent.h; then
8820 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8821 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8822 if test "${ac_cv_search_opendir+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 else
8825 ac_func_search_save_LIBS=$LIBS
8826 cat >conftest.$ac_ext <<_ACEOF
8827 /* confdefs.h. */
8828 _ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8833 /* Override any GCC internal prototype to avoid an error.
8834 Use char because int might match the return type of a GCC
8835 builtin and then its argument prototype would still apply. */
8836 #ifdef __cplusplus
8837 extern "C"
8838 #endif
8839 char opendir ();
8841 main ()
8843 return opendir ();
8845 return 0;
8847 _ACEOF
8848 for ac_lib in '' dir; do
8849 if test -z "$ac_lib"; then
8850 ac_res="none required"
8851 else
8852 ac_res=-l$ac_lib
8853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8855 rm -f conftest.$ac_objext conftest$ac_exeext
8856 if { (ac_try="$ac_link"
8857 case "(($ac_try" in
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8860 esac
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_link") 2>conftest.er1
8863 ac_status=$?
8864 grep -v '^ *+' conftest.er1 >conftest.err
8865 rm -f conftest.er1
8866 cat conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } &&
8869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8870 { (case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8873 esac
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_try") 2>&5
8876 ac_status=$?
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; } &&
8879 { ac_try='test -s conftest$ac_exeext'
8880 { (case "(($ac_try" in
8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8883 esac
8884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_try") 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 ac_cv_search_opendir=$ac_res
8890 else
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8897 rm -f core conftest.err conftest.$ac_objext \
8898 conftest$ac_exeext
8899 if test "${ac_cv_search_opendir+set}" = set; then
8900 break
8902 done
8903 if test "${ac_cv_search_opendir+set}" = set; then
8905 else
8906 ac_cv_search_opendir=no
8908 rm conftest.$ac_ext
8909 LIBS=$ac_func_search_save_LIBS
8911 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8912 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8913 ac_res=$ac_cv_search_opendir
8914 if test "$ac_res" != no; then
8915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8919 else
8920 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8921 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8922 if test "${ac_cv_search_opendir+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 else
8925 ac_func_search_save_LIBS=$LIBS
8926 cat >conftest.$ac_ext <<_ACEOF
8927 /* confdefs.h. */
8928 _ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8933 /* Override any GCC internal prototype to avoid an error.
8934 Use char because int might match the return type of a GCC
8935 builtin and then its argument prototype would still apply. */
8936 #ifdef __cplusplus
8937 extern "C"
8938 #endif
8939 char opendir ();
8941 main ()
8943 return opendir ();
8945 return 0;
8947 _ACEOF
8948 for ac_lib in '' x; do
8949 if test -z "$ac_lib"; then
8950 ac_res="none required"
8951 else
8952 ac_res=-l$ac_lib
8953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8955 rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (ac_try="$ac_link"
8957 case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960 esac
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_link") 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8970 { (case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8973 esac
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_try") 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest$ac_exeext'
8980 { (case "(($ac_try" in
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8983 esac
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_try") 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 ac_cv_search_opendir=$ac_res
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8997 rm -f core conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext
8999 if test "${ac_cv_search_opendir+set}" = set; then
9000 break
9002 done
9003 if test "${ac_cv_search_opendir+set}" = set; then
9005 else
9006 ac_cv_search_opendir=no
9008 rm conftest.$ac_ext
9009 LIBS=$ac_func_search_save_LIBS
9011 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9012 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9013 ac_res=$ac_cv_search_opendir
9014 if test "$ac_res" != no; then
9015 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9022 for ac_header in dlfcn.h
9024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9031 ac_res=`eval echo '${'$as_ac_Header'}'`
9032 { echo "$as_me:$LINENO: result: $ac_res" >&5
9033 echo "${ECHO_T}$ac_res" >&6; }
9034 else
9035 # Is the header compilable?
9036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9038 cat >conftest.$ac_ext <<_ACEOF
9039 /* confdefs.h. */
9040 _ACEOF
9041 cat confdefs.h >>conftest.$ac_ext
9042 cat >>conftest.$ac_ext <<_ACEOF
9043 /* end confdefs.h. */
9044 $ac_includes_default
9045 #include <$ac_header>
9046 _ACEOF
9047 rm -f conftest.$ac_objext
9048 if { (ac_try="$ac_compile"
9049 case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9052 esac
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_compile") 2>conftest.er1
9055 ac_status=$?
9056 grep -v '^ *+' conftest.er1 >conftest.err
9057 rm -f conftest.er1
9058 cat conftest.err >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } &&
9061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9062 { (case "(($ac_try" in
9063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064 *) ac_try_echo=$ac_try;;
9065 esac
9066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9067 (eval "$ac_try") 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try='test -s conftest.$ac_objext'
9072 { (case "(($ac_try" in
9073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074 *) ac_try_echo=$ac_try;;
9075 esac
9076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077 (eval "$ac_try") 2>&5
9078 ac_status=$?
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 ac_header_compiler=yes
9082 else
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9086 ac_header_compiler=no
9089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9091 echo "${ECHO_T}$ac_header_compiler" >&6; }
9093 # Is the header present?
9094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9096 cat >conftest.$ac_ext <<_ACEOF
9097 /* confdefs.h. */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 #include <$ac_header>
9103 _ACEOF
9104 if { (ac_try="$ac_cpp conftest.$ac_ext"
9105 case "(($ac_try" in
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9108 esac
9109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9111 ac_status=$?
9112 grep -v '^ *+' conftest.er1 >conftest.err
9113 rm -f conftest.er1
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } >/dev/null; then
9117 if test -s conftest.err; then
9118 ac_cpp_err=$ac_c_preproc_warn_flag
9119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9120 else
9121 ac_cpp_err=
9123 else
9124 ac_cpp_err=yes
9126 if test -z "$ac_cpp_err"; then
9127 ac_header_preproc=yes
9128 else
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 ac_header_preproc=no
9135 rm -f conftest.err conftest.$ac_ext
9136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9137 echo "${ECHO_T}$ac_header_preproc" >&6; }
9139 # So? What about this header?
9140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9141 yes:no: )
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9146 ac_header_preproc=yes
9148 no:yes:* )
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9161 ( cat <<\_ASBOX
9162 ## ----------------------------------- ##
9163 ## Report this to llvmbugs@cs.uiuc.edu ##
9164 ## ----------------------------------- ##
9165 _ASBOX
9166 ) | sed "s/^/$as_me: WARNING: /" >&2
9168 esac
9169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 else
9174 eval "$as_ac_Header=\$ac_header_preproc"
9176 ac_res=`eval echo '${'$as_ac_Header'}'`
9177 { echo "$as_me:$LINENO: result: $ac_res" >&5
9178 echo "${ECHO_T}$ac_res" >&6; }
9181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9182 cat >>confdefs.h <<_ACEOF
9183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9184 _ACEOF
9188 done
9190 # Check whether --enable-ltdl-install was given.
9191 if test "${enable_ltdl_install+set}" = set; then
9192 enableval=$enable_ltdl_install;
9198 if test x"${enable_ltdl_install-no}" != xno; then
9199 INSTALL_LTDL_TRUE=
9200 INSTALL_LTDL_FALSE='#'
9201 else
9202 INSTALL_LTDL_TRUE='#'
9203 INSTALL_LTDL_FALSE=
9208 if test x"${enable_ltdl_convenience-no}" != xno; then
9209 CONVENIENCE_LTDL_TRUE=
9210 CONVENIENCE_LTDL_FALSE='#'
9211 else
9212 CONVENIENCE_LTDL_TRUE='#'
9213 CONVENIENCE_LTDL_FALSE=
9217 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9218 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9219 library_names_spec=
9220 libname_spec='lib$name'
9221 soname_spec=
9222 shrext_cmds=".so"
9223 postinstall_cmds=
9224 postuninstall_cmds=
9225 finish_cmds=
9226 finish_eval=
9227 shlibpath_var=
9228 shlibpath_overrides_runpath=unknown
9229 version_type=none
9230 dynamic_linker="$host_os ld.so"
9231 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9232 if test "$GCC" = yes; then
9233 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9234 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9235 # if the path contains ";" then we assume it to be the separator
9236 # otherwise default to the standard path separator (i.e. ":") - it is
9237 # assumed that no part of a normal pathname contains ";" but that should
9238 # okay in the real world where ";" in dirpaths is itself problematic.
9239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9240 else
9241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9243 else
9244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9246 need_lib_prefix=unknown
9247 hardcode_into_libs=no
9249 # when you set need_version to no, make sure it does not cause -set_version
9250 # flags to be left without arguments
9251 need_version=unknown
9253 case $host_os in
9254 aix3*)
9255 version_type=linux
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9257 shlibpath_var=LIBPATH
9259 # AIX 3 has no versioning support, so we append a major version to the name.
9260 soname_spec='${libname}${release}${shared_ext}$major'
9263 aix4* | aix5*)
9264 version_type=linux
9265 need_lib_prefix=no
9266 need_version=no
9267 hardcode_into_libs=yes
9268 if test "$host_cpu" = ia64; then
9269 # AIX 5 supports IA64
9270 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 else
9273 # With GCC up to 2.95.x, collect2 would create an import file
9274 # for dependence libraries. The import file would start with
9275 # the line `#! .'. This would cause the generated library to
9276 # depend on `.', always an invalid library. This was fixed in
9277 # development snapshots of GCC prior to 3.0.
9278 case $host_os in
9279 aix4 | aix4.[01] | aix4.[01].*)
9280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9281 echo ' yes '
9282 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9284 else
9285 can_build_shared=no
9288 esac
9289 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9290 # soname into executable. Probably we can add versioning support to
9291 # collect2, so additional links can be useful in future.
9292 if test "$aix_use_runtimelinking" = yes; then
9293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9294 # instead of lib<name>.a to let people know that these are not
9295 # typical AIX shared libraries.
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9297 else
9298 # We preserve .a as extension for shared libraries through AIX4.2
9299 # and later when we are not doing run time linking.
9300 library_names_spec='${libname}${release}.a $libname.a'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9303 shlibpath_var=LIBPATH
9307 amigaos*)
9308 library_names_spec='$libname.ixlibrary $libname.a'
9309 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9310 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'
9313 beos*)
9314 library_names_spec='${libname}${shared_ext}'
9315 dynamic_linker="$host_os ld.so"
9316 shlibpath_var=LIBRARY_PATH
9319 bsdi[45]*)
9320 version_type=linux
9321 need_version=no
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9325 shlibpath_var=LD_LIBRARY_PATH
9326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9328 # the default ld.so.conf also contains /usr/contrib/lib and
9329 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9330 # libtool to hard-code these into programs
9333 cygwin* | mingw* | pw32*)
9334 version_type=windows
9335 shrext_cmds=".dll"
9336 need_version=no
9337 need_lib_prefix=no
9339 case $GCC,$host_os in
9340 yes,cygwin* | yes,mingw* | yes,pw32*)
9341 library_names_spec='$libname.dll.a'
9342 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9343 postinstall_cmds='base_file=`basename \${file}`~
9344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9345 dldir=$destdir/`dirname \$dlpath`~
9346 test -d \$dldir || mkdir -p \$dldir~
9347 $install_prog $dir/$dlname \$dldir/$dlname~
9348 chmod a+x \$dldir/$dlname'
9349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9350 dlpath=$dir/\$dldll~
9351 $rm \$dlpath'
9352 shlibpath_overrides_runpath=yes
9354 case $host_os in
9355 cygwin*)
9356 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9357 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9358 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9360 mingw*)
9361 # MinGW DLLs use traditional 'lib' prefix
9362 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9363 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9364 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9365 # It is most probably a Windows format PATH printed by
9366 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9367 # path with ; separators, and with drive letters. We can handle the
9368 # drive letters (cygwin fileutils understands them), so leave them,
9369 # especially as we might pass files found there to a mingw objdump,
9370 # which wouldn't understand a cygwinified path. Ahh.
9371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9372 else
9373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9376 pw32*)
9377 # pw32 DLLs use 'pw' prefix rather than 'lib'
9378 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9380 esac
9384 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9386 esac
9387 dynamic_linker='Win32 ld.exe'
9388 # FIXME: first we should search . and the directory the executable is in
9389 shlibpath_var=PATH
9392 darwin* | rhapsody*)
9393 dynamic_linker="$host_os dyld"
9394 version_type=darwin
9395 need_lib_prefix=no
9396 need_version=no
9397 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9398 soname_spec='${libname}${release}${major}$shared_ext'
9399 shlibpath_overrides_runpath=yes
9400 shlibpath_var=DYLD_LIBRARY_PATH
9401 shrext_cmds='.dylib'
9402 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9403 if test "$GCC" = yes; then
9404 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"`
9405 else
9406 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9408 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9411 dgux*)
9412 version_type=linux
9413 need_lib_prefix=no
9414 need_version=no
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9416 soname_spec='${libname}${release}${shared_ext}$major'
9417 shlibpath_var=LD_LIBRARY_PATH
9420 freebsd1*)
9421 dynamic_linker=no
9424 kfreebsd*-gnu)
9425 version_type=linux
9426 need_lib_prefix=no
9427 need_version=no
9428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9429 soname_spec='${libname}${release}${shared_ext}$major'
9430 shlibpath_var=LD_LIBRARY_PATH
9431 shlibpath_overrides_runpath=no
9432 hardcode_into_libs=yes
9433 dynamic_linker='GNU ld.so'
9436 freebsd* | dragonfly*)
9437 # DragonFly does not have aout. When/if they implement a new
9438 # versioning mechanism, adjust this.
9439 if test -x /usr/bin/objformat; then
9440 objformat=`/usr/bin/objformat`
9441 else
9442 case $host_os in
9443 freebsd[123]*) objformat=aout ;;
9444 *) objformat=elf ;;
9445 esac
9447 version_type=freebsd-$objformat
9448 case $version_type in
9449 freebsd-elf*)
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9451 need_version=no
9452 need_lib_prefix=no
9454 freebsd-*)
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9456 need_version=yes
9458 esac
9459 shlibpath_var=LD_LIBRARY_PATH
9460 case $host_os in
9461 freebsd2*)
9462 shlibpath_overrides_runpath=yes
9464 freebsd3.[01]* | freebsdelf3.[01]*)
9465 shlibpath_overrides_runpath=yes
9466 hardcode_into_libs=yes
9468 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9469 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9470 shlibpath_overrides_runpath=no
9471 hardcode_into_libs=yes
9473 freebsd*) # from 4.6 on
9474 shlibpath_overrides_runpath=yes
9475 hardcode_into_libs=yes
9477 esac
9480 gnu*)
9481 version_type=linux
9482 need_lib_prefix=no
9483 need_version=no
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 shlibpath_var=LD_LIBRARY_PATH
9487 hardcode_into_libs=yes
9490 hpux9* | hpux10* | hpux11*)
9491 # Give a soname corresponding to the major version so that dld.sl refuses to
9492 # link against other versions.
9493 version_type=sunos
9494 need_lib_prefix=no
9495 need_version=no
9496 case $host_cpu in
9497 ia64*)
9498 shrext_cmds='.so'
9499 hardcode_into_libs=yes
9500 dynamic_linker="$host_os dld.so"
9501 shlibpath_var=LD_LIBRARY_PATH
9502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504 soname_spec='${libname}${release}${shared_ext}$major'
9505 if test "X$HPUX_IA64_MODE" = X32; then
9506 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9507 else
9508 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9512 hppa*64*)
9513 shrext_cmds='.sl'
9514 hardcode_into_libs=yes
9515 dynamic_linker="$host_os dld.sl"
9516 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519 soname_spec='${libname}${release}${shared_ext}$major'
9520 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9524 shrext_cmds='.sl'
9525 dynamic_linker="$host_os dld.sl"
9526 shlibpath_var=SHLIB_PATH
9527 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529 soname_spec='${libname}${release}${shared_ext}$major'
9531 esac
9532 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9533 postinstall_cmds='chmod 555 $lib'
9536 interix3*)
9537 version_type=linux
9538 need_lib_prefix=no
9539 need_version=no
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9543 shlibpath_var=LD_LIBRARY_PATH
9544 shlibpath_overrides_runpath=no
9545 hardcode_into_libs=yes
9548 irix5* | irix6* | nonstopux*)
9549 case $host_os in
9550 nonstopux*) version_type=nonstopux ;;
9552 if test "$lt_cv_prog_gnu_ld" = yes; then
9553 version_type=linux
9554 else
9555 version_type=irix
9556 fi ;;
9557 esac
9558 need_lib_prefix=no
9559 need_version=no
9560 soname_spec='${libname}${release}${shared_ext}$major'
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9562 case $host_os in
9563 irix5* | nonstopux*)
9564 libsuff= shlibsuff=
9567 case $LD in # libtool.m4 will add one of these switches to LD
9568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9569 libsuff= shlibsuff= libmagic=32-bit;;
9570 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9571 libsuff=32 shlibsuff=N32 libmagic=N32;;
9572 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9573 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9574 *) libsuff= shlibsuff= libmagic=never-match;;
9575 esac
9577 esac
9578 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9579 shlibpath_overrides_runpath=no
9580 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9581 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9582 hardcode_into_libs=yes
9585 # No shared lib support for Linux oldld, aout, or coff.
9586 linux*oldld* | linux*aout* | linux*coff*)
9587 dynamic_linker=no
9590 # This must be Linux ELF.
9591 linux*)
9592 version_type=linux
9593 need_lib_prefix=no
9594 need_version=no
9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596 soname_spec='${libname}${release}${shared_ext}$major'
9597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9598 shlibpath_var=LD_LIBRARY_PATH
9599 shlibpath_overrides_runpath=no
9600 # This implies no fast_install, which is unacceptable.
9601 # Some rework will be needed to allow for fast_install
9602 # before this can be enabled.
9603 hardcode_into_libs=yes
9605 # Append ld.so.conf contents to the search path
9606 if test -f /etc/ld.so.conf; then
9607 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' ' '`
9608 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9611 # We used to test for /lib/ld.so.1 and disable shared libraries on
9612 # powerpc, because MkLinux only supported shared libraries with the
9613 # GNU dynamic linker. Since this was broken with cross compilers,
9614 # most powerpc-linux boxes support dynamic linking these days and
9615 # people can always --disable-shared, the test was removed, and we
9616 # assume the GNU/Linux dynamic linker is in use.
9617 dynamic_linker='GNU/Linux ld.so'
9620 knetbsd*-gnu)
9621 version_type=linux
9622 need_lib_prefix=no
9623 need_version=no
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9625 soname_spec='${libname}${release}${shared_ext}$major'
9626 shlibpath_var=LD_LIBRARY_PATH
9627 shlibpath_overrides_runpath=no
9628 hardcode_into_libs=yes
9629 dynamic_linker='GNU ld.so'
9632 netbsd*)
9633 version_type=sunos
9634 need_lib_prefix=no
9635 need_version=no
9636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9639 dynamic_linker='NetBSD (a.out) ld.so'
9640 else
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9642 soname_spec='${libname}${release}${shared_ext}$major'
9643 dynamic_linker='NetBSD ld.elf_so'
9645 shlibpath_var=LD_LIBRARY_PATH
9646 shlibpath_overrides_runpath=yes
9647 hardcode_into_libs=yes
9650 newsos6)
9651 version_type=linux
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653 shlibpath_var=LD_LIBRARY_PATH
9654 shlibpath_overrides_runpath=yes
9657 nto-qnx*)
9658 version_type=linux
9659 need_lib_prefix=no
9660 need_version=no
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662 soname_spec='${libname}${release}${shared_ext}$major'
9663 shlibpath_var=LD_LIBRARY_PATH
9664 shlibpath_overrides_runpath=yes
9667 openbsd*)
9668 version_type=sunos
9669 sys_lib_dlsearch_path_spec="/usr/lib"
9670 need_lib_prefix=no
9671 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9672 case $host_os in
9673 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9674 *) need_version=no ;;
9675 esac
9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9678 shlibpath_var=LD_LIBRARY_PATH
9679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9680 case $host_os in
9681 openbsd2.[89] | openbsd2.[89].*)
9682 shlibpath_overrides_runpath=no
9685 shlibpath_overrides_runpath=yes
9687 esac
9688 else
9689 shlibpath_overrides_runpath=yes
9693 os2*)
9694 libname_spec='$name'
9695 shrext_cmds=".dll"
9696 need_lib_prefix=no
9697 library_names_spec='$libname${shared_ext} $libname.a'
9698 dynamic_linker='OS/2 ld.exe'
9699 shlibpath_var=LIBPATH
9702 osf3* | osf4* | osf5*)
9703 version_type=osf
9704 need_lib_prefix=no
9705 need_version=no
9706 soname_spec='${libname}${release}${shared_ext}$major'
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708 shlibpath_var=LD_LIBRARY_PATH
9709 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9710 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9713 solaris*)
9714 version_type=linux
9715 need_lib_prefix=no
9716 need_version=no
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9718 soname_spec='${libname}${release}${shared_ext}$major'
9719 shlibpath_var=LD_LIBRARY_PATH
9720 shlibpath_overrides_runpath=yes
9721 hardcode_into_libs=yes
9722 # ldd complains unless libraries are executable
9723 postinstall_cmds='chmod +x $lib'
9726 sunos4*)
9727 version_type=sunos
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9729 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9730 shlibpath_var=LD_LIBRARY_PATH
9731 shlibpath_overrides_runpath=yes
9732 if test "$with_gnu_ld" = yes; then
9733 need_lib_prefix=no
9735 need_version=yes
9738 sysv4 | sysv4.3*)
9739 version_type=linux
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741 soname_spec='${libname}${release}${shared_ext}$major'
9742 shlibpath_var=LD_LIBRARY_PATH
9743 case $host_vendor in
9744 sni)
9745 shlibpath_overrides_runpath=no
9746 need_lib_prefix=no
9747 export_dynamic_flag_spec='${wl}-Blargedynsym'
9748 runpath_var=LD_RUN_PATH
9750 siemens)
9751 need_lib_prefix=no
9753 motorola)
9754 need_lib_prefix=no
9755 need_version=no
9756 shlibpath_overrides_runpath=no
9757 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9759 esac
9762 sysv4*MP*)
9763 if test -d /usr/nec ;then
9764 version_type=linux
9765 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9766 soname_spec='$libname${shared_ext}.$major'
9767 shlibpath_var=LD_LIBRARY_PATH
9771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9772 version_type=freebsd-elf
9773 need_lib_prefix=no
9774 need_version=no
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9776 soname_spec='${libname}${release}${shared_ext}$major'
9777 shlibpath_var=LD_LIBRARY_PATH
9778 hardcode_into_libs=yes
9779 if test "$with_gnu_ld" = yes; then
9780 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9781 shlibpath_overrides_runpath=no
9782 else
9783 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9784 shlibpath_overrides_runpath=yes
9785 case $host_os in
9786 sco3.2v5*)
9787 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9789 esac
9791 sys_lib_dlsearch_path_spec='/usr/lib'
9794 uts4*)
9795 version_type=linux
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797 soname_spec='${libname}${release}${shared_ext}$major'
9798 shlibpath_var=LD_LIBRARY_PATH
9802 dynamic_linker=no
9804 esac
9805 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9806 echo "${ECHO_T}$dynamic_linker" >&6; }
9807 test "$dynamic_linker" = no && can_build_shared=no
9809 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9810 if test "$GCC" = yes; then
9811 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9815 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9816 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9817 if test "${libltdl_cv_shlibext+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9821 module=yes
9822 eval libltdl_cv_shlibext=$shrext_cmds
9825 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9826 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9827 if test -n "$libltdl_cv_shlibext"; then
9829 cat >>confdefs.h <<_ACEOF
9830 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9831 _ACEOF
9836 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9837 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9838 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 else
9841 libltdl_cv_shlibpath_var="$shlibpath_var"
9843 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9844 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9845 if test -n "$libltdl_cv_shlibpath_var"; then
9847 cat >>confdefs.h <<_ACEOF
9848 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9849 _ACEOF
9854 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9855 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9856 if test "${libltdl_cv_sys_search_path+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9858 else
9859 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9861 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9862 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9863 if test -n "$libltdl_cv_sys_search_path"; then
9864 sys_search_path=
9865 for dir in $libltdl_cv_sys_search_path; do
9866 if test -z "$sys_search_path"; then
9867 sys_search_path="$dir"
9868 else
9869 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9871 done
9873 cat >>confdefs.h <<_ACEOF
9874 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9875 _ACEOF
9879 { echo "$as_me:$LINENO: checking for objdir" >&5
9880 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9881 if test "${libltdl_cv_objdir+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884 libltdl_cv_objdir="$objdir"
9885 if test -n "$objdir"; then
9887 else
9888 rm -f .libs 2>/dev/null
9889 mkdir .libs 2>/dev/null
9890 if test -d .libs; then
9891 libltdl_cv_objdir=.libs
9892 else
9893 # MS-DOS does not allow filenames that begin with a dot.
9894 libltdl_cv_objdir=_libs
9896 rmdir .libs 2>/dev/null
9900 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9901 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9903 cat >>confdefs.h <<_ACEOF
9904 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9905 _ACEOF
9912 # Check for command to grab the raw symbol name followed by C symbol from nm.
9913 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9914 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9915 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9917 else
9919 # These are sane defaults that work on at least a few old systems.
9920 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9922 # Character class describing NM global symbol codes.
9923 symcode='[BCDEGRST]'
9925 # Regexp to match symbols that can be accessed directly from C.
9926 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9928 # Transform an extracted symbol line into a proper C declaration
9929 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9931 # Transform an extracted symbol line into symbol name and symbol address
9932 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'"
9934 # Define system-specific variables.
9935 case $host_os in
9936 aix*)
9937 symcode='[BCDT]'
9939 cygwin* | mingw* | pw32*)
9940 symcode='[ABCDGISTW]'
9942 hpux*) # Its linker distinguishes data from code symbols
9943 if test "$host_cpu" = ia64; then
9944 symcode='[ABCDEGRST]'
9946 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9947 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'"
9949 linux*)
9950 if test "$host_cpu" = ia64; then
9951 symcode='[ABCDGIRSTW]'
9952 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9953 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'"
9956 irix* | nonstopux*)
9957 symcode='[BCDEGRST]'
9959 osf*)
9960 symcode='[BCDEGQRST]'
9962 solaris*)
9963 symcode='[BDRT]'
9965 sco3.2v5*)
9966 symcode='[DT]'
9968 sysv4.2uw2*)
9969 symcode='[DT]'
9971 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9972 symcode='[ABDT]'
9974 sysv4)
9975 symcode='[DFNSTU]'
9977 esac
9979 # Handle CRLF in mingw tool chain
9980 opt_cr=
9981 case $build_os in
9982 mingw*)
9983 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9985 esac
9987 # If we're using GNU nm, then use its standard symbol codes.
9988 case `$NM -V 2>&1` in
9989 *GNU* | *'with BFD'*)
9990 symcode='[ABCDGIRSTW]' ;;
9991 esac
9993 # Try without a prefix undercore, then with it.
9994 for ac_symprfx in "" "_"; do
9996 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9997 symxfrm="\\1 $ac_symprfx\\2 \\2"
9999 # Write the raw and C identifiers.
10000 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10002 # Check to see that the pipe works correctly.
10003 pipe_works=no
10005 rm -f conftest*
10006 cat > conftest.$ac_ext <<EOF
10007 #ifdef __cplusplus
10008 extern "C" {
10009 #endif
10010 char nm_test_var;
10011 void nm_test_func(){}
10012 #ifdef __cplusplus
10014 #endif
10015 int main(){nm_test_var='a';nm_test_func();return(0);}
10018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10019 (eval $ac_compile) 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; then
10023 # Now try to grab the symbols.
10024 nlist=conftest.nm
10025 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10026 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } && test -s "$nlist"; then
10030 # Try sorting and uniquifying the output.
10031 if sort "$nlist" | uniq > "$nlist"T; then
10032 mv -f "$nlist"T "$nlist"
10033 else
10034 rm -f "$nlist"T
10037 # Make sure that we snagged all the symbols we need.
10038 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10039 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10040 cat <<EOF > conftest.$ac_ext
10041 #ifdef __cplusplus
10042 extern "C" {
10043 #endif
10046 # Now generate the symbol file.
10047 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10049 cat <<EOF >> conftest.$ac_ext
10050 #if defined (__STDC__) && __STDC__
10051 # define lt_ptr_t void *
10052 #else
10053 # define lt_ptr_t char *
10054 # define const
10055 #endif
10057 /* The mapping between symbol names and symbols. */
10058 const struct {
10059 const char *name;
10060 lt_ptr_t address;
10062 lt_preloaded_symbols[] =
10065 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10066 cat <<\EOF >> conftest.$ac_ext
10067 {0, (lt_ptr_t) 0}
10070 #ifdef __cplusplus
10072 #endif
10074 # Now try linking the two files.
10075 mv conftest.$ac_objext conftstm.$ac_objext
10076 lt_save_LIBS="$LIBS"
10077 lt_save_CFLAGS="$CFLAGS"
10078 LIBS="conftstm.$ac_objext"
10079 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081 (eval $ac_link) 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10085 pipe_works=yes
10087 LIBS="$lt_save_LIBS"
10088 CFLAGS="$lt_save_CFLAGS"
10089 else
10090 echo "cannot find nm_test_func in $nlist" >&5
10092 else
10093 echo "cannot find nm_test_var in $nlist" >&5
10095 else
10096 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10098 else
10099 echo "$progname: failed program was:" >&5
10100 cat conftest.$ac_ext >&5
10102 rm -f conftest* conftst*
10104 # Do not use the global_symbol_pipe unless it works.
10105 if test "$pipe_works" = yes; then
10106 break
10107 else
10108 lt_cv_sys_global_symbol_pipe=
10110 done
10114 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10115 lt_cv_sys_global_symbol_to_cdecl=
10117 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10118 { echo "$as_me:$LINENO: result: failed" >&5
10119 echo "${ECHO_T}failed" >&6; }
10120 else
10121 { echo "$as_me:$LINENO: result: ok" >&5
10122 echo "${ECHO_T}ok" >&6; }
10126 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10127 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10128 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10129 echo $ECHO_N "(cached) $ECHO_C" >&6
10130 else
10131 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10132 libltdl_cv_preloaded_symbols=yes
10133 else
10134 libltdl_cv_preloaded_symbols=no
10138 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10139 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10140 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10142 cat >>confdefs.h <<\_ACEOF
10143 #define HAVE_PRELOADED_SYMBOLS 1
10144 _ACEOF
10148 LIBADD_DL=
10150 ac_ext=c
10151 ac_cpp='$CPP $CPPFLAGS'
10152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10157 { echo "$as_me:$LINENO: checking for shl_load" >&5
10158 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10159 if test "${ac_cv_func_shl_load+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162 cat >conftest.$ac_ext <<_ACEOF
10163 /* confdefs.h. */
10164 _ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10170 #define shl_load innocuous_shl_load
10172 /* System header to define __stub macros and hopefully few prototypes,
10173 which can conflict with char shl_load (); below.
10174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10175 <limits.h> exists even on freestanding compilers. */
10177 #ifdef __STDC__
10178 # include <limits.h>
10179 #else
10180 # include <assert.h>
10181 #endif
10183 #undef shl_load
10185 /* Override any GCC internal prototype to avoid an error.
10186 Use char because int might match the return type of a GCC
10187 builtin and then its argument prototype would still apply. */
10188 #ifdef __cplusplus
10189 extern "C"
10190 #endif
10191 char shl_load ();
10192 /* The GNU C library defines this for functions which it implements
10193 to always fail with ENOSYS. Some functions are actually named
10194 something starting with __ and the normal name is an alias. */
10195 #if defined __stub_shl_load || defined __stub___shl_load
10196 choke me
10197 #endif
10200 main ()
10202 return shl_load ();
10204 return 0;
10206 _ACEOF
10207 rm -f conftest.$ac_objext conftest$ac_exeext
10208 if { (ac_try="$ac_link"
10209 case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10212 esac
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_link") 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } &&
10221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10222 { (case "(($ac_try" in
10223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224 *) ac_try_echo=$ac_try;;
10225 esac
10226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227 (eval "$ac_try") 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; } &&
10231 { ac_try='test -s conftest$ac_exeext'
10232 { (case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10235 esac
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_try") 2>&5
10238 ac_status=$?
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10241 ac_cv_func_shl_load=yes
10242 else
10243 echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10246 ac_cv_func_shl_load=no
10249 rm -f core conftest.err conftest.$ac_objext \
10250 conftest$ac_exeext conftest.$ac_ext
10252 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10253 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10254 if test $ac_cv_func_shl_load = yes; then
10256 cat >>confdefs.h <<\_ACEOF
10257 #define HAVE_SHL_LOAD 1
10258 _ACEOF
10260 else
10261 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10262 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10263 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 else
10266 ac_check_lib_save_LIBS=$LIBS
10267 LIBS="-ldld $LIBS"
10268 cat >conftest.$ac_ext <<_ACEOF
10269 /* confdefs.h. */
10270 _ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10275 /* Override any GCC internal prototype to avoid an error.
10276 Use char because int might match the return type of a GCC
10277 builtin and then its argument prototype would still apply. */
10278 #ifdef __cplusplus
10279 extern "C"
10280 #endif
10281 char shl_load ();
10283 main ()
10285 return shl_load ();
10287 return 0;
10289 _ACEOF
10290 rm -f conftest.$ac_objext conftest$ac_exeext
10291 if { (ac_try="$ac_link"
10292 case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10295 esac
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_link") 2>conftest.er1
10298 ac_status=$?
10299 grep -v '^ *+' conftest.er1 >conftest.err
10300 rm -f conftest.er1
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
10304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10305 { (case "(($ac_try" in
10306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307 *) ac_try_echo=$ac_try;;
10308 esac
10309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10310 (eval "$ac_try") 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; } &&
10314 { ac_try='test -s conftest$ac_exeext'
10315 { (case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10318 esac
10319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320 (eval "$ac_try") 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10324 ac_cv_lib_dld_shl_load=yes
10325 else
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 ac_cv_lib_dld_shl_load=no
10332 rm -f core conftest.err conftest.$ac_objext \
10333 conftest$ac_exeext conftest.$ac_ext
10334 LIBS=$ac_check_lib_save_LIBS
10336 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10337 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10338 if test $ac_cv_lib_dld_shl_load = yes; then
10340 cat >>confdefs.h <<\_ACEOF
10341 #define HAVE_SHL_LOAD 1
10342 _ACEOF
10344 LIBADD_DL="$LIBADD_DL -ldld"
10345 else
10346 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10347 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10348 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351 ac_check_lib_save_LIBS=$LIBS
10352 LIBS="-ldl $LIBS"
10353 cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h. */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10360 /* Override any GCC internal prototype to avoid an error.
10361 Use char because int might match the return type of a GCC
10362 builtin and then its argument prototype would still apply. */
10363 #ifdef __cplusplus
10364 extern "C"
10365 #endif
10366 char dlopen ();
10368 main ()
10370 return dlopen ();
10372 return 0;
10374 _ACEOF
10375 rm -f conftest.$ac_objext conftest$ac_exeext
10376 if { (ac_try="$ac_link"
10377 case "(($ac_try" in
10378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379 *) ac_try_echo=$ac_try;;
10380 esac
10381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382 (eval "$ac_link") 2>conftest.er1
10383 ac_status=$?
10384 grep -v '^ *+' conftest.er1 >conftest.err
10385 rm -f conftest.er1
10386 cat conftest.err >&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10390 { (case "(($ac_try" in
10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10393 esac
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_try") 2>&5
10396 ac_status=$?
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; } &&
10399 { ac_try='test -s conftest$ac_exeext'
10400 { (case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10403 esac
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_try") 2>&5
10406 ac_status=$?
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_lib_dl_dlopen=yes
10410 else
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10414 ac_cv_lib_dl_dlopen=no
10417 rm -f core conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext conftest.$ac_ext
10419 LIBS=$ac_check_lib_save_LIBS
10421 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10422 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10423 if test $ac_cv_lib_dl_dlopen = yes; then
10425 cat >>confdefs.h <<\_ACEOF
10426 #define HAVE_LIBDL 1
10427 _ACEOF
10429 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10430 else
10431 cat >conftest.$ac_ext <<_ACEOF
10432 /* confdefs.h. */
10433 _ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437 #if HAVE_DLFCN_H
10438 # include <dlfcn.h>
10439 #endif
10442 main ()
10444 dlopen(0, 0);
10446 return 0;
10448 _ACEOF
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (ac_try="$ac_link"
10451 case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10454 esac
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_link") 2>conftest.er1
10457 ac_status=$?
10458 grep -v '^ *+' conftest.er1 >conftest.err
10459 rm -f conftest.er1
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } &&
10463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10464 { (case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10467 esac
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_try") 2>&5
10470 ac_status=$?
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; } &&
10473 { ac_try='test -s conftest$ac_exeext'
10474 { (case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10477 esac
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479 (eval "$ac_try") 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10484 cat >>confdefs.h <<\_ACEOF
10485 #define HAVE_LIBDL 1
10486 _ACEOF
10487 libltdl_cv_func_dlopen="yes"
10488 else
10489 echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10492 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10493 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10494 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10496 else
10497 ac_check_lib_save_LIBS=$LIBS
10498 LIBS="-lsvld $LIBS"
10499 cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h. */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10506 /* Override any GCC internal prototype to avoid an error.
10507 Use char because int might match the return type of a GCC
10508 builtin and then its argument prototype would still apply. */
10509 #ifdef __cplusplus
10510 extern "C"
10511 #endif
10512 char dlopen ();
10514 main ()
10516 return dlopen ();
10518 return 0;
10520 _ACEOF
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10526 esac
10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_link") 2>conftest.er1
10529 ac_status=$?
10530 grep -v '^ *+' conftest.er1 >conftest.err
10531 rm -f conftest.er1
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } &&
10535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10536 { (case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10539 esac
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_try") 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; } &&
10545 { ac_try='test -s conftest$ac_exeext'
10546 { (case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10549 esac
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_try") 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; }; then
10555 ac_cv_lib_svld_dlopen=yes
10556 else
10557 echo "$as_me: failed program was:" >&5
10558 sed 's/^/| /' conftest.$ac_ext >&5
10560 ac_cv_lib_svld_dlopen=no
10563 rm -f core conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext conftest.$ac_ext
10565 LIBS=$ac_check_lib_save_LIBS
10567 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10568 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10569 if test $ac_cv_lib_svld_dlopen = yes; then
10571 cat >>confdefs.h <<\_ACEOF
10572 #define HAVE_LIBDL 1
10573 _ACEOF
10575 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10576 else
10577 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10578 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10579 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 else
10582 ac_check_lib_save_LIBS=$LIBS
10583 LIBS="-ldld $LIBS"
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h. */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10591 /* Override any GCC internal prototype to avoid an error.
10592 Use char because int might match the return type of a GCC
10593 builtin and then its argument prototype would still apply. */
10594 #ifdef __cplusplus
10595 extern "C"
10596 #endif
10597 char dld_link ();
10599 main ()
10601 return dld_link ();
10603 return 0;
10605 _ACEOF
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (ac_try="$ac_link"
10608 case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611 esac
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_link") 2>conftest.er1
10614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } &&
10620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10621 { (case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10624 esac
10625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626 (eval "$ac_try") 2>&5
10627 ac_status=$?
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; } &&
10630 { ac_try='test -s conftest$ac_exeext'
10631 { (case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10634 esac
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_try") 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 ac_cv_lib_dld_dld_link=yes
10641 else
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 ac_cv_lib_dld_dld_link=no
10648 rm -f core conftest.err conftest.$ac_objext \
10649 conftest$ac_exeext conftest.$ac_ext
10650 LIBS=$ac_check_lib_save_LIBS
10652 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10653 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10654 if test $ac_cv_lib_dld_dld_link = yes; then
10656 cat >>confdefs.h <<\_ACEOF
10657 #define HAVE_DLD 1
10658 _ACEOF
10660 LIBADD_DL="$LIBADD_DL -ldld"
10661 else
10662 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10663 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10664 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666 else
10667 cat >conftest.$ac_ext <<_ACEOF
10668 /* confdefs.h. */
10669 _ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10673 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10675 #define _dyld_func_lookup innocuous__dyld_func_lookup
10677 /* System header to define __stub macros and hopefully few prototypes,
10678 which can conflict with char _dyld_func_lookup (); below.
10679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10680 <limits.h> exists even on freestanding compilers. */
10682 #ifdef __STDC__
10683 # include <limits.h>
10684 #else
10685 # include <assert.h>
10686 #endif
10688 #undef _dyld_func_lookup
10690 /* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
10693 #ifdef __cplusplus
10694 extern "C"
10695 #endif
10696 char _dyld_func_lookup ();
10697 /* The GNU C library defines this for functions which it implements
10698 to always fail with ENOSYS. Some functions are actually named
10699 something starting with __ and the normal name is an alias. */
10700 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10701 choke me
10702 #endif
10705 main ()
10707 return _dyld_func_lookup ();
10709 return 0;
10711 _ACEOF
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10717 esac
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10720 ac_status=$?
10721 grep -v '^ *+' conftest.er1 >conftest.err
10722 rm -f conftest.er1
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10727 { (case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730 esac
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10740 esac
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_try") 2>&5
10743 ac_status=$?
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 ac_cv_func__dyld_func_lookup=yes
10747 else
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_cv_func__dyld_func_lookup=no
10754 rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10757 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10758 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10759 if test $ac_cv_func__dyld_func_lookup = yes; then
10761 cat >>confdefs.h <<\_ACEOF
10762 #define HAVE_DYLD 1
10763 _ACEOF
10776 rm -f core conftest.err conftest.$ac_objext \
10777 conftest$ac_exeext conftest.$ac_ext
10788 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10789 then
10790 lt_save_LIBS="$LIBS"
10791 LIBS="$LIBS $LIBADD_DL"
10793 for ac_func in dlerror
10795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 else
10801 cat >conftest.$ac_ext <<_ACEOF
10802 /* confdefs.h. */
10803 _ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h. */
10807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10809 #define $ac_func innocuous_$ac_func
10811 /* System header to define __stub macros and hopefully few prototypes,
10812 which can conflict with char $ac_func (); below.
10813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10814 <limits.h> exists even on freestanding compilers. */
10816 #ifdef __STDC__
10817 # include <limits.h>
10818 #else
10819 # include <assert.h>
10820 #endif
10822 #undef $ac_func
10824 /* Override any GCC internal prototype to avoid an error.
10825 Use char because int might match the return type of a GCC
10826 builtin and then its argument prototype would still apply. */
10827 #ifdef __cplusplus
10828 extern "C"
10829 #endif
10830 char $ac_func ();
10831 /* The GNU C library defines this for functions which it implements
10832 to always fail with ENOSYS. Some functions are actually named
10833 something starting with __ and the normal name is an alias. */
10834 #if defined __stub_$ac_func || defined __stub___$ac_func
10835 choke me
10836 #endif
10839 main ()
10841 return $ac_func ();
10843 return 0;
10845 _ACEOF
10846 rm -f conftest.$ac_objext conftest$ac_exeext
10847 if { (ac_try="$ac_link"
10848 case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10851 esac
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_link") 2>conftest.er1
10854 ac_status=$?
10855 grep -v '^ *+' conftest.er1 >conftest.err
10856 rm -f conftest.er1
10857 cat conftest.err >&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } &&
10860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10861 { (case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10864 esac
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_try") 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; } &&
10870 { ac_try='test -s conftest$ac_exeext'
10871 { (case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10874 esac
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_try") 2>&5
10877 ac_status=$?
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; }; then
10880 eval "$as_ac_var=yes"
10881 else
10882 echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10885 eval "$as_ac_var=no"
10888 rm -f core conftest.err conftest.$ac_objext \
10889 conftest$ac_exeext conftest.$ac_ext
10891 ac_res=`eval echo '${'$as_ac_var'}'`
10892 { echo "$as_me:$LINENO: result: $ac_res" >&5
10893 echo "${ECHO_T}$ac_res" >&6; }
10894 if test `eval echo '${'$as_ac_var'}'` = yes; then
10895 cat >>confdefs.h <<_ACEOF
10896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10897 _ACEOF
10900 done
10902 LIBS="$lt_save_LIBS"
10904 ac_ext=c
10905 ac_cpp='$CPP $CPPFLAGS'
10906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10912 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10913 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10914 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 else
10917 ac_cv_sys_symbol_underscore=no
10918 cat > conftest.$ac_ext <<EOF
10919 void nm_test_func(){}
10920 int main(){nm_test_func;return 0;}
10922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10923 (eval $ac_compile) 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; then
10927 # Now try to grab the symbols.
10928 ac_nlist=conftest.nm
10929 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10930 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && test -s "$ac_nlist"; then
10934 # See whether the symbols have a leading underscore.
10935 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10936 ac_cv_sys_symbol_underscore=yes
10937 else
10938 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10940 else
10941 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10944 else
10945 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10947 else
10948 echo "configure: failed program was:" >&5
10949 cat conftest.c >&5
10951 rm -rf conftest*
10954 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10955 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10958 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10959 if test x"$libltdl_cv_func_dlopen" = xyes ||
10960 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10961 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10962 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10963 if test "${libltdl_cv_need_uscore+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 else
10966 libltdl_cv_need_uscore=unknown
10967 save_LIBS="$LIBS"
10968 LIBS="$LIBS $LIBADD_DL"
10969 if test "$cross_compiling" = yes; then :
10970 libltdl_cv_need_uscore=cross
10971 else
10972 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10973 lt_status=$lt_dlunknown
10974 cat > conftest.$ac_ext <<EOF
10975 #line 10975 "configure"
10976 #include "confdefs.h"
10978 #if HAVE_DLFCN_H
10979 #include <dlfcn.h>
10980 #endif
10982 #include <stdio.h>
10984 #ifdef RTLD_GLOBAL
10985 # define LT_DLGLOBAL RTLD_GLOBAL
10986 #else
10987 # ifdef DL_GLOBAL
10988 # define LT_DLGLOBAL DL_GLOBAL
10989 # else
10990 # define LT_DLGLOBAL 0
10991 # endif
10992 #endif
10994 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10995 find out it does not work in some platform. */
10996 #ifndef LT_DLLAZY_OR_NOW
10997 # ifdef RTLD_LAZY
10998 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10999 # else
11000 # ifdef DL_LAZY
11001 # define LT_DLLAZY_OR_NOW DL_LAZY
11002 # else
11003 # ifdef RTLD_NOW
11004 # define LT_DLLAZY_OR_NOW RTLD_NOW
11005 # else
11006 # ifdef DL_NOW
11007 # define LT_DLLAZY_OR_NOW DL_NOW
11008 # else
11009 # define LT_DLLAZY_OR_NOW 0
11010 # endif
11011 # endif
11012 # endif
11013 # endif
11014 #endif
11016 #ifdef __cplusplus
11017 extern "C" void exit (int);
11018 #endif
11020 void fnord() { int i=42;}
11021 int main ()
11023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11024 int status = $lt_dlunknown;
11026 if (self)
11028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11029 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11030 /* dlclose (self); */
11032 else
11033 puts (dlerror ());
11035 exit (status);
11038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11039 (eval $ac_link) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11043 (./conftest; exit; ) >&5 2>/dev/null
11044 lt_status=$?
11045 case x$lt_status in
11046 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11047 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11048 x$lt_dlunknown|x*) ;;
11049 esac
11050 else :
11051 # compilation failed
11055 rm -fr conftest*
11057 LIBS="$save_LIBS"
11060 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11061 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11065 if test x"$libltdl_cv_need_uscore" = xyes; then
11067 cat >>confdefs.h <<\_ACEOF
11068 #define NEED_USCORE 1
11069 _ACEOF
11074 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11075 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11076 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079 # PORTME does your system automatically load deplibs for dlopen?
11080 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11081 # For now, we just catch OSes we know something about -- in the
11082 # future, we'll try test this programmatically.
11083 libltdl_cv_sys_dlopen_deplibs=unknown
11084 case "$host_os" in
11085 aix3*|aix4.1.*|aix4.2.*)
11086 # Unknown whether this is true for these versions of AIX, but
11087 # we want this `case' here to explicitly catch those versions.
11088 libltdl_cv_sys_dlopen_deplibs=unknown
11090 aix[45]*)
11091 libltdl_cv_sys_dlopen_deplibs=yes
11093 darwin*)
11094 # Assuming the user has installed a libdl from somewhere, this is true
11095 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11096 libltdl_cv_sys_dlopen_deplibs=yes
11098 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11099 # GNU and its variants, using gnu ld.so (Glibc)
11100 libltdl_cv_sys_dlopen_deplibs=yes
11102 hpux10*|hpux11*)
11103 libltdl_cv_sys_dlopen_deplibs=yes
11105 interix*)
11106 libltdl_cv_sys_dlopen_deplibs=yes
11108 irix[12345]*|irix6.[01]*)
11109 # Catch all versions of IRIX before 6.2, and indicate that we don't
11110 # know how it worked for any of those versions.
11111 libltdl_cv_sys_dlopen_deplibs=unknown
11113 irix*)
11114 # The case above catches anything before 6.2, and it's known that
11115 # at 6.2 and later dlopen does load deplibs.
11116 libltdl_cv_sys_dlopen_deplibs=yes
11118 netbsd*)
11119 libltdl_cv_sys_dlopen_deplibs=yes
11121 openbsd*)
11122 libltdl_cv_sys_dlopen_deplibs=yes
11124 osf[1234]*)
11125 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11126 # it did *not* use an RPATH in a shared library to find objects the
11127 # library depends on, so we explictly say `no'.
11128 libltdl_cv_sys_dlopen_deplibs=no
11130 osf5.0|osf5.0a|osf5.1)
11131 # dlopen *does* load deplibs and with the right loader patch applied
11132 # it even uses RPATH in a shared library to search for shared objects
11133 # that the library depends on, but there's no easy way to know if that
11134 # patch is installed. Since this is the case, all we can really
11135 # say is unknown -- it depends on the patch being installed. If
11136 # it is, this changes to `yes'. Without it, it would be `no'.
11137 libltdl_cv_sys_dlopen_deplibs=unknown
11139 osf*)
11140 # the two cases above should catch all versions of osf <= 5.1. Read
11141 # the comments above for what we know about them.
11142 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11143 # is used to find them so we can finally say `yes'.
11144 libltdl_cv_sys_dlopen_deplibs=yes
11146 solaris*)
11147 libltdl_cv_sys_dlopen_deplibs=yes
11149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11150 libltdl_cv_sys_dlopen_deplibs=yes
11152 esac
11155 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11156 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11157 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11159 cat >>confdefs.h <<\_ACEOF
11160 #define LTDL_DLOPEN_DEPLIBS 1
11161 _ACEOF
11166 for ac_header in argz.h
11168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 ac_res=`eval echo '${'$as_ac_Header'}'`
11176 { echo "$as_me:$LINENO: result: $ac_res" >&5
11177 echo "${ECHO_T}$ac_res" >&6; }
11178 else
11179 # Is the header compilable?
11180 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11182 cat >conftest.$ac_ext <<_ACEOF
11183 /* confdefs.h. */
11184 _ACEOF
11185 cat confdefs.h >>conftest.$ac_ext
11186 cat >>conftest.$ac_ext <<_ACEOF
11187 /* end confdefs.h. */
11188 $ac_includes_default
11189 #include <$ac_header>
11190 _ACEOF
11191 rm -f conftest.$ac_objext
11192 if { (ac_try="$ac_compile"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11196 esac
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_compile") 2>conftest.er1
11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } &&
11205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11206 { (case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11209 esac
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_try") 2>&5
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; } &&
11215 { ac_try='test -s conftest.$ac_objext'
11216 { (case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11219 esac
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_try") 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; }; then
11225 ac_header_compiler=yes
11226 else
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 ac_header_compiler=no
11233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11235 echo "${ECHO_T}$ac_header_compiler" >&6; }
11237 # Is the header present?
11238 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11240 cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h. */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 #include <$ac_header>
11247 _ACEOF
11248 if { (ac_try="$ac_cpp conftest.$ac_ext"
11249 case "(($ac_try" in
11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11252 esac
11253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11255 ac_status=$?
11256 grep -v '^ *+' conftest.er1 >conftest.err
11257 rm -f conftest.er1
11258 cat conftest.err >&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } >/dev/null; then
11261 if test -s conftest.err; then
11262 ac_cpp_err=$ac_c_preproc_warn_flag
11263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11264 else
11265 ac_cpp_err=
11267 else
11268 ac_cpp_err=yes
11270 if test -z "$ac_cpp_err"; then
11271 ac_header_preproc=yes
11272 else
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 ac_header_preproc=no
11279 rm -f conftest.err conftest.$ac_ext
11280 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11281 echo "${ECHO_T}$ac_header_preproc" >&6; }
11283 # So? What about this header?
11284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11285 yes:no: )
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11290 ac_header_preproc=yes
11292 no:yes:* )
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11305 ( cat <<\_ASBOX
11306 ## ----------------------------------- ##
11307 ## Report this to llvmbugs@cs.uiuc.edu ##
11308 ## ----------------------------------- ##
11309 _ASBOX
11310 ) | sed "s/^/$as_me: WARNING: /" >&2
11312 esac
11313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318 eval "$as_ac_Header=\$ac_header_preproc"
11320 ac_res=`eval echo '${'$as_ac_Header'}'`
11321 { echo "$as_me:$LINENO: result: $ac_res" >&5
11322 echo "${ECHO_T}$ac_res" >&6; }
11325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11326 cat >>confdefs.h <<_ACEOF
11327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11328 _ACEOF
11332 done
11335 { echo "$as_me:$LINENO: checking for error_t" >&5
11336 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11337 if test "${ac_cv_type_error_t+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340 cat >conftest.$ac_ext <<_ACEOF
11341 /* confdefs.h. */
11342 _ACEOF
11343 cat confdefs.h >>conftest.$ac_ext
11344 cat >>conftest.$ac_ext <<_ACEOF
11345 /* end confdefs.h. */
11346 #if HAVE_ARGZ_H
11347 # include <argz.h>
11348 #endif
11350 typedef error_t ac__type_new_;
11352 main ()
11354 if ((ac__type_new_ *) 0)
11355 return 0;
11356 if (sizeof (ac__type_new_))
11357 return 0;
11359 return 0;
11361 _ACEOF
11362 rm -f conftest.$ac_objext
11363 if { (ac_try="$ac_compile"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367 esac
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_compile") 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11377 { (case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380 esac
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_try") 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; } &&
11386 { ac_try='test -s conftest.$ac_objext'
11387 { (case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11390 esac
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_try") 2>&5
11393 ac_status=$?
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
11396 ac_cv_type_error_t=yes
11397 else
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11401 ac_cv_type_error_t=no
11404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11406 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11407 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11408 if test $ac_cv_type_error_t = yes; then
11410 cat >>confdefs.h <<_ACEOF
11411 #define HAVE_ERROR_T 1
11412 _ACEOF
11415 else
11417 cat >>confdefs.h <<\_ACEOF
11418 #define error_t int
11419 _ACEOF
11429 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437 cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h. */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11445 #define $ac_func innocuous_$ac_func
11447 /* System header to define __stub macros and hopefully few prototypes,
11448 which can conflict with char $ac_func (); below.
11449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11450 <limits.h> exists even on freestanding compilers. */
11452 #ifdef __STDC__
11453 # include <limits.h>
11454 #else
11455 # include <assert.h>
11456 #endif
11458 #undef $ac_func
11460 /* Override any GCC internal prototype to avoid an error.
11461 Use char because int might match the return type of a GCC
11462 builtin and then its argument prototype would still apply. */
11463 #ifdef __cplusplus
11464 extern "C"
11465 #endif
11466 char $ac_func ();
11467 /* The GNU C library defines this for functions which it implements
11468 to always fail with ENOSYS. Some functions are actually named
11469 something starting with __ and the normal name is an alias. */
11470 #if defined __stub_$ac_func || defined __stub___$ac_func
11471 choke me
11472 #endif
11475 main ()
11477 return $ac_func ();
11479 return 0;
11481 _ACEOF
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (ac_try="$ac_link"
11484 case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11487 esac
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_link") 2>conftest.er1
11490 ac_status=$?
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
11496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11497 { (case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11500 esac
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_try") 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; } &&
11506 { ac_try='test -s conftest$ac_exeext'
11507 { (case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11510 esac
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_try") 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 eval "$as_ac_var=yes"
11517 else
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 eval "$as_ac_var=no"
11524 rm -f core conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11527 ac_res=`eval echo '${'$as_ac_var'}'`
11528 { echo "$as_me:$LINENO: result: $ac_res" >&5
11529 echo "${ECHO_T}$ac_res" >&6; }
11530 if test `eval echo '${'$as_ac_var'}'` = yes; then
11531 cat >>confdefs.h <<_ACEOF
11532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11533 _ACEOF
11536 done
11565 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11566 stdio.h unistd.h
11568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 ac_res=`eval echo '${'$as_ac_Header'}'`
11576 { echo "$as_me:$LINENO: result: $ac_res" >&5
11577 echo "${ECHO_T}$ac_res" >&6; }
11578 else
11579 # Is the header compilable?
11580 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11582 cat >conftest.$ac_ext <<_ACEOF
11583 /* confdefs.h. */
11584 _ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11588 $ac_includes_default
11589 #include <$ac_header>
11590 _ACEOF
11591 rm -f conftest.$ac_objext
11592 if { (ac_try="$ac_compile"
11593 case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596 esac
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_compile") 2>conftest.er1
11599 ac_status=$?
11600 grep -v '^ *+' conftest.er1 >conftest.err
11601 rm -f conftest.er1
11602 cat conftest.err >&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } &&
11605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11606 { (case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11609 esac
11610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611 (eval "$ac_try") 2>&5
11612 ac_status=$?
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; } &&
11615 { ac_try='test -s conftest.$ac_objext'
11616 { (case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11619 esac
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621 (eval "$ac_try") 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 ac_header_compiler=yes
11626 else
11627 echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11630 ac_header_compiler=no
11633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11635 echo "${ECHO_T}$ac_header_compiler" >&6; }
11637 # Is the header present?
11638 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11640 cat >conftest.$ac_ext <<_ACEOF
11641 /* confdefs.h. */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11646 #include <$ac_header>
11647 _ACEOF
11648 if { (ac_try="$ac_cpp conftest.$ac_ext"
11649 case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652 esac
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } >/dev/null; then
11661 if test -s conftest.err; then
11662 ac_cpp_err=$ac_c_preproc_warn_flag
11663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11664 else
11665 ac_cpp_err=
11667 else
11668 ac_cpp_err=yes
11670 if test -z "$ac_cpp_err"; then
11671 ac_header_preproc=yes
11672 else
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 ac_header_preproc=no
11679 rm -f conftest.err conftest.$ac_ext
11680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11681 echo "${ECHO_T}$ac_header_preproc" >&6; }
11683 # So? What about this header?
11684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11685 yes:no: )
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11690 ac_header_preproc=yes
11692 no:yes:* )
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11705 ( cat <<\_ASBOX
11706 ## ----------------------------------- ##
11707 ## Report this to llvmbugs@cs.uiuc.edu ##
11708 ## ----------------------------------- ##
11709 _ASBOX
11710 ) | sed "s/^/$as_me: WARNING: /" >&2
11712 esac
11713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718 eval "$as_ac_Header=\$ac_header_preproc"
11720 ac_res=`eval echo '${'$as_ac_Header'}'`
11721 { echo "$as_me:$LINENO: result: $ac_res" >&5
11722 echo "${ECHO_T}$ac_res" >&6; }
11725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11726 cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11728 _ACEOF
11732 done
11738 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 ac_res=`eval echo '${'$as_ac_Header'}'`
11748 { echo "$as_me:$LINENO: result: $ac_res" >&5
11749 echo "${ECHO_T}$ac_res" >&6; }
11750 else
11751 # Is the header compilable?
11752 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11754 cat >conftest.$ac_ext <<_ACEOF
11755 /* confdefs.h. */
11756 _ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11760 $ac_includes_default
11761 #include <$ac_header>
11762 _ACEOF
11763 rm -f conftest.$ac_objext
11764 if { (ac_try="$ac_compile"
11765 case "(($ac_try" in
11766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11767 *) ac_try_echo=$ac_try;;
11768 esac
11769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11770 (eval "$ac_compile") 2>conftest.er1
11771 ac_status=$?
11772 grep -v '^ *+' conftest.er1 >conftest.err
11773 rm -f conftest.er1
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } &&
11777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11778 { (case "(($ac_try" in
11779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780 *) ac_try_echo=$ac_try;;
11781 esac
11782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783 (eval "$ac_try") 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; } &&
11787 { ac_try='test -s conftest.$ac_objext'
11788 { (case "(($ac_try" in
11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11791 esac
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793 (eval "$ac_try") 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11797 ac_header_compiler=yes
11798 else
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 ac_header_compiler=no
11805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11807 echo "${ECHO_T}$ac_header_compiler" >&6; }
11809 # Is the header present?
11810 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11812 cat >conftest.$ac_ext <<_ACEOF
11813 /* confdefs.h. */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11818 #include <$ac_header>
11819 _ACEOF
11820 if { (ac_try="$ac_cpp conftest.$ac_ext"
11821 case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11824 esac
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11827 ac_status=$?
11828 grep -v '^ *+' conftest.er1 >conftest.err
11829 rm -f conftest.er1
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } >/dev/null; then
11833 if test -s conftest.err; then
11834 ac_cpp_err=$ac_c_preproc_warn_flag
11835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11836 else
11837 ac_cpp_err=
11839 else
11840 ac_cpp_err=yes
11842 if test -z "$ac_cpp_err"; then
11843 ac_header_preproc=yes
11844 else
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11848 ac_header_preproc=no
11851 rm -f conftest.err conftest.$ac_ext
11852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11853 echo "${ECHO_T}$ac_header_preproc" >&6; }
11855 # So? What about this header?
11856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11857 yes:no: )
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11862 ac_header_preproc=yes
11864 no:yes:* )
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11877 ( cat <<\_ASBOX
11878 ## ----------------------------------- ##
11879 ## Report this to llvmbugs@cs.uiuc.edu ##
11880 ## ----------------------------------- ##
11881 _ASBOX
11882 ) | sed "s/^/$as_me: WARNING: /" >&2
11884 esac
11885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 else
11890 eval "$as_ac_Header=\$ac_header_preproc"
11892 ac_res=`eval echo '${'$as_ac_Header'}'`
11893 { echo "$as_me:$LINENO: result: $ac_res" >&5
11894 echo "${ECHO_T}$ac_res" >&6; }
11897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11898 cat >>confdefs.h <<_ACEOF
11899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11900 _ACEOF
11904 done
11908 for ac_header in string.h strings.h
11910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 ac_res=`eval echo '${'$as_ac_Header'}'`
11918 { echo "$as_me:$LINENO: result: $ac_res" >&5
11919 echo "${ECHO_T}$ac_res" >&6; }
11920 else
11921 # Is the header compilable?
11922 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11924 cat >conftest.$ac_ext <<_ACEOF
11925 /* confdefs.h. */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 $ac_includes_default
11931 #include <$ac_header>
11932 _ACEOF
11933 rm -f conftest.$ac_objext
11934 if { (ac_try="$ac_compile"
11935 case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11938 esac
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940 (eval "$ac_compile") 2>conftest.er1
11941 ac_status=$?
11942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11948 { (case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11951 esac
11952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953 (eval "$ac_try") 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; } &&
11957 { ac_try='test -s conftest.$ac_objext'
11958 { (case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11961 esac
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_try") 2>&5
11964 ac_status=$?
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; }; then
11967 ac_header_compiler=yes
11968 else
11969 echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 ac_header_compiler=no
11975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11977 echo "${ECHO_T}$ac_header_compiler" >&6; }
11979 # Is the header present?
11980 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11982 cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h. */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988 #include <$ac_header>
11989 _ACEOF
11990 if { (ac_try="$ac_cpp conftest.$ac_ext"
11991 case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11994 esac
11995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11997 ac_status=$?
11998 grep -v '^ *+' conftest.er1 >conftest.err
11999 rm -f conftest.er1
12000 cat conftest.err >&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } >/dev/null; then
12003 if test -s conftest.err; then
12004 ac_cpp_err=$ac_c_preproc_warn_flag
12005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12006 else
12007 ac_cpp_err=
12009 else
12010 ac_cpp_err=yes
12012 if test -z "$ac_cpp_err"; then
12013 ac_header_preproc=yes
12014 else
12015 echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12018 ac_header_preproc=no
12021 rm -f conftest.err conftest.$ac_ext
12022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12023 echo "${ECHO_T}$ac_header_preproc" >&6; }
12025 # So? What about this header?
12026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12027 yes:no: )
12028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12032 ac_header_preproc=yes
12034 no:yes:* )
12035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12042 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12047 ( cat <<\_ASBOX
12048 ## ----------------------------------- ##
12049 ## Report this to llvmbugs@cs.uiuc.edu ##
12050 ## ----------------------------------- ##
12051 _ASBOX
12052 ) | sed "s/^/$as_me: WARNING: /" >&2
12054 esac
12055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12059 else
12060 eval "$as_ac_Header=\$ac_header_preproc"
12062 ac_res=`eval echo '${'$as_ac_Header'}'`
12063 { echo "$as_me:$LINENO: result: $ac_res" >&5
12064 echo "${ECHO_T}$ac_res" >&6; }
12067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12068 cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12070 _ACEOF
12071 break
12074 done
12079 for ac_func in strchr index
12081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 else
12087 cat >conftest.$ac_ext <<_ACEOF
12088 /* confdefs.h. */
12089 _ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12095 #define $ac_func innocuous_$ac_func
12097 /* System header to define __stub macros and hopefully few prototypes,
12098 which can conflict with char $ac_func (); below.
12099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12100 <limits.h> exists even on freestanding compilers. */
12102 #ifdef __STDC__
12103 # include <limits.h>
12104 #else
12105 # include <assert.h>
12106 #endif
12108 #undef $ac_func
12110 /* Override any GCC internal prototype to avoid an error.
12111 Use char because int might match the return type of a GCC
12112 builtin and then its argument prototype would still apply. */
12113 #ifdef __cplusplus
12114 extern "C"
12115 #endif
12116 char $ac_func ();
12117 /* The GNU C library defines this for functions which it implements
12118 to always fail with ENOSYS. Some functions are actually named
12119 something starting with __ and the normal name is an alias. */
12120 #if defined __stub_$ac_func || defined __stub___$ac_func
12121 choke me
12122 #endif
12125 main ()
12127 return $ac_func ();
12129 return 0;
12131 _ACEOF
12132 rm -f conftest.$ac_objext conftest$ac_exeext
12133 if { (ac_try="$ac_link"
12134 case "(($ac_try" in
12135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136 *) ac_try_echo=$ac_try;;
12137 esac
12138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_link") 2>conftest.er1
12140 ac_status=$?
12141 grep -v '^ *+' conftest.er1 >conftest.err
12142 rm -f conftest.er1
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } &&
12146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12147 { (case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12150 esac
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_try") 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try='test -s conftest$ac_exeext'
12157 { (case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12160 esac
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_try") 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 eval "$as_ac_var=yes"
12167 else
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 eval "$as_ac_var=no"
12174 rm -f core conftest.err conftest.$ac_objext \
12175 conftest$ac_exeext conftest.$ac_ext
12177 ac_res=`eval echo '${'$as_ac_var'}'`
12178 { echo "$as_me:$LINENO: result: $ac_res" >&5
12179 echo "${ECHO_T}$ac_res" >&6; }
12180 if test `eval echo '${'$as_ac_var'}'` = yes; then
12181 cat >>confdefs.h <<_ACEOF
12182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12183 _ACEOF
12184 break
12186 done
12190 for ac_func in strrchr rindex
12192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12193 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12195 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 else
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h. */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12206 #define $ac_func innocuous_$ac_func
12208 /* System header to define __stub macros and hopefully few prototypes,
12209 which can conflict with char $ac_func (); below.
12210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12211 <limits.h> exists even on freestanding compilers. */
12213 #ifdef __STDC__
12214 # include <limits.h>
12215 #else
12216 # include <assert.h>
12217 #endif
12219 #undef $ac_func
12221 /* Override any GCC internal prototype to avoid an error.
12222 Use char because int might match the return type of a GCC
12223 builtin and then its argument prototype would still apply. */
12224 #ifdef __cplusplus
12225 extern "C"
12226 #endif
12227 char $ac_func ();
12228 /* The GNU C library defines this for functions which it implements
12229 to always fail with ENOSYS. Some functions are actually named
12230 something starting with __ and the normal name is an alias. */
12231 #if defined __stub_$ac_func || defined __stub___$ac_func
12232 choke me
12233 #endif
12236 main ()
12238 return $ac_func ();
12240 return 0;
12242 _ACEOF
12243 rm -f conftest.$ac_objext conftest$ac_exeext
12244 if { (ac_try="$ac_link"
12245 case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12248 esac
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_link") 2>conftest.er1
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12258 { (case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_try") 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest$ac_exeext'
12268 { (case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12271 esac
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_try") 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
12277 eval "$as_ac_var=yes"
12278 else
12279 echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12282 eval "$as_ac_var=no"
12285 rm -f core conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12288 ac_res=`eval echo '${'$as_ac_var'}'`
12289 { echo "$as_me:$LINENO: result: $ac_res" >&5
12290 echo "${ECHO_T}$ac_res" >&6; }
12291 if test `eval echo '${'$as_ac_var'}'` = yes; then
12292 cat >>confdefs.h <<_ACEOF
12293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12294 _ACEOF
12295 break
12297 done
12301 for ac_func in memcpy bcopy
12303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309 cat >conftest.$ac_ext <<_ACEOF
12310 /* confdefs.h. */
12311 _ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h. */
12315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12317 #define $ac_func innocuous_$ac_func
12319 /* System header to define __stub macros and hopefully few prototypes,
12320 which can conflict with char $ac_func (); below.
12321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12322 <limits.h> exists even on freestanding compilers. */
12324 #ifdef __STDC__
12325 # include <limits.h>
12326 #else
12327 # include <assert.h>
12328 #endif
12330 #undef $ac_func
12332 /* Override any GCC internal prototype to avoid an error.
12333 Use char because int might match the return type of a GCC
12334 builtin and then its argument prototype would still apply. */
12335 #ifdef __cplusplus
12336 extern "C"
12337 #endif
12338 char $ac_func ();
12339 /* The GNU C library defines this for functions which it implements
12340 to always fail with ENOSYS. Some functions are actually named
12341 something starting with __ and the normal name is an alias. */
12342 #if defined __stub_$ac_func || defined __stub___$ac_func
12343 choke me
12344 #endif
12347 main ()
12349 return $ac_func ();
12351 return 0;
12353 _ACEOF
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (ac_try="$ac_link"
12356 case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12359 esac
12360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_link") 2>conftest.er1
12362 ac_status=$?
12363 grep -v '^ *+' conftest.er1 >conftest.err
12364 rm -f conftest.er1
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12369 { (case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372 esac
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_try") 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest$ac_exeext'
12379 { (case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12382 esac
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_try") 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
12388 eval "$as_ac_var=yes"
12389 else
12390 echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12393 eval "$as_ac_var=no"
12396 rm -f core conftest.err conftest.$ac_objext \
12397 conftest$ac_exeext conftest.$ac_ext
12399 ac_res=`eval echo '${'$as_ac_var'}'`
12400 { echo "$as_me:$LINENO: result: $ac_res" >&5
12401 echo "${ECHO_T}$ac_res" >&6; }
12402 if test `eval echo '${'$as_ac_var'}'` = yes; then
12403 cat >>confdefs.h <<_ACEOF
12404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12405 _ACEOF
12406 break
12408 done
12412 for ac_func in memmove strcmp
12414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12419 else
12420 cat >conftest.$ac_ext <<_ACEOF
12421 /* confdefs.h. */
12422 _ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h. */
12426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12428 #define $ac_func innocuous_$ac_func
12430 /* System header to define __stub macros and hopefully few prototypes,
12431 which can conflict with char $ac_func (); below.
12432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12433 <limits.h> exists even on freestanding compilers. */
12435 #ifdef __STDC__
12436 # include <limits.h>
12437 #else
12438 # include <assert.h>
12439 #endif
12441 #undef $ac_func
12443 /* Override any GCC internal prototype to avoid an error.
12444 Use char because int might match the return type of a GCC
12445 builtin and then its argument prototype would still apply. */
12446 #ifdef __cplusplus
12447 extern "C"
12448 #endif
12449 char $ac_func ();
12450 /* The GNU C library defines this for functions which it implements
12451 to always fail with ENOSYS. Some functions are actually named
12452 something starting with __ and the normal name is an alias. */
12453 #if defined __stub_$ac_func || defined __stub___$ac_func
12454 choke me
12455 #endif
12458 main ()
12460 return $ac_func ();
12462 return 0;
12464 _ACEOF
12465 rm -f conftest.$ac_objext conftest$ac_exeext
12466 if { (ac_try="$ac_link"
12467 case "(($ac_try" in
12468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469 *) ac_try_echo=$ac_try;;
12470 esac
12471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472 (eval "$ac_link") 2>conftest.er1
12473 ac_status=$?
12474 grep -v '^ *+' conftest.er1 >conftest.err
12475 rm -f conftest.er1
12476 cat conftest.err >&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } &&
12479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12480 { (case "(($ac_try" in
12481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482 *) ac_try_echo=$ac_try;;
12483 esac
12484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485 (eval "$ac_try") 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; } &&
12489 { ac_try='test -s conftest$ac_exeext'
12490 { (case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12493 esac
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_try") 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12499 eval "$as_ac_var=yes"
12500 else
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12504 eval "$as_ac_var=no"
12507 rm -f core conftest.err conftest.$ac_objext \
12508 conftest$ac_exeext conftest.$ac_ext
12510 ac_res=`eval echo '${'$as_ac_var'}'`
12511 { echo "$as_me:$LINENO: result: $ac_res" >&5
12512 echo "${ECHO_T}$ac_res" >&6; }
12513 if test `eval echo '${'$as_ac_var'}'` = yes; then
12514 cat >>confdefs.h <<_ACEOF
12515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12516 _ACEOF
12519 done
12524 for ac_func in closedir opendir readdir
12526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 else
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h. */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12540 #define $ac_func innocuous_$ac_func
12542 /* System header to define __stub macros and hopefully few prototypes,
12543 which can conflict with char $ac_func (); below.
12544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12545 <limits.h> exists even on freestanding compilers. */
12547 #ifdef __STDC__
12548 # include <limits.h>
12549 #else
12550 # include <assert.h>
12551 #endif
12553 #undef $ac_func
12555 /* Override any GCC internal prototype to avoid an error.
12556 Use char because int might match the return type of a GCC
12557 builtin and then its argument prototype would still apply. */
12558 #ifdef __cplusplus
12559 extern "C"
12560 #endif
12561 char $ac_func ();
12562 /* The GNU C library defines this for functions which it implements
12563 to always fail with ENOSYS. Some functions are actually named
12564 something starting with __ and the normal name is an alias. */
12565 #if defined __stub_$ac_func || defined __stub___$ac_func
12566 choke me
12567 #endif
12570 main ()
12572 return $ac_func ();
12574 return 0;
12576 _ACEOF
12577 rm -f conftest.$ac_objext conftest$ac_exeext
12578 if { (ac_try="$ac_link"
12579 case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582 esac
12583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_link") 2>conftest.er1
12585 ac_status=$?
12586 grep -v '^ *+' conftest.er1 >conftest.err
12587 rm -f conftest.er1
12588 cat conftest.err >&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } &&
12591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12592 { (case "(($ac_try" in
12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12595 esac
12596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12597 (eval "$ac_try") 2>&5
12598 ac_status=$?
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; } &&
12601 { ac_try='test -s conftest$ac_exeext'
12602 { (case "(($ac_try" in
12603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12604 *) ac_try_echo=$ac_try;;
12605 esac
12606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12607 (eval "$ac_try") 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; }; then
12611 eval "$as_ac_var=yes"
12612 else
12613 echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12616 eval "$as_ac_var=no"
12619 rm -f core conftest.err conftest.$ac_objext \
12620 conftest$ac_exeext conftest.$ac_ext
12622 ac_res=`eval echo '${'$as_ac_var'}'`
12623 { echo "$as_me:$LINENO: result: $ac_res" >&5
12624 echo "${ECHO_T}$ac_res" >&6; }
12625 if test `eval echo '${'$as_ac_var'}'` = yes; then
12626 cat >>confdefs.h <<_ACEOF
12627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12628 _ACEOF
12631 done
12634 # Check whether --enable-shared was given.
12635 if test "${enable_shared+set}" = set; then
12636 enableval=$enable_shared; p=${PACKAGE-default}
12637 case $enableval in
12638 yes) enable_shared=yes ;;
12639 no) enable_shared=no ;;
12641 enable_shared=no
12642 # Look at the argument we got. We use all the common list separators.
12643 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12644 for pkg in $enableval; do
12645 IFS="$lt_save_ifs"
12646 if test "X$pkg" = "X$p"; then
12647 enable_shared=yes
12649 done
12650 IFS="$lt_save_ifs"
12652 esac
12653 else
12654 enable_shared=yes
12658 # Check whether --enable-static was given.
12659 if test "${enable_static+set}" = set; then
12660 enableval=$enable_static; p=${PACKAGE-default}
12661 case $enableval in
12662 yes) enable_static=yes ;;
12663 no) enable_static=no ;;
12665 enable_static=no
12666 # Look at the argument we got. We use all the common list separators.
12667 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12668 for pkg in $enableval; do
12669 IFS="$lt_save_ifs"
12670 if test "X$pkg" = "X$p"; then
12671 enable_static=yes
12673 done
12674 IFS="$lt_save_ifs"
12676 esac
12677 else
12678 enable_static=yes
12682 # Check whether --enable-fast-install was given.
12683 if test "${enable_fast_install+set}" = set; then
12684 enableval=$enable_fast_install; p=${PACKAGE-default}
12685 case $enableval in
12686 yes) enable_fast_install=yes ;;
12687 no) enable_fast_install=no ;;
12689 enable_fast_install=no
12690 # Look at the argument we got. We use all the common list separators.
12691 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12692 for pkg in $enableval; do
12693 IFS="$lt_save_ifs"
12694 if test "X$pkg" = "X$p"; then
12695 enable_fast_install=yes
12697 done
12698 IFS="$lt_save_ifs"
12700 esac
12701 else
12702 enable_fast_install=yes
12706 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12707 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12708 if test "${lt_cv_path_SED+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 else
12711 # Loop through the user's path and test for sed and gsed.
12712 # Then use that list of sed's as ones to test for truncation.
12713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714 for as_dir in $PATH
12716 IFS=$as_save_IFS
12717 test -z "$as_dir" && as_dir=.
12718 for lt_ac_prog in sed gsed; do
12719 for ac_exec_ext in '' $ac_executable_extensions; do
12720 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12721 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12723 done
12724 done
12725 done
12726 lt_ac_max=0
12727 lt_ac_count=0
12728 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12729 # along with /bin/sed that truncates output.
12730 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12731 test ! -f $lt_ac_sed && continue
12732 cat /dev/null > conftest.in
12733 lt_ac_count=0
12734 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12735 # Check for GNU sed and select it if it is found.
12736 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12737 lt_cv_path_SED=$lt_ac_sed
12738 break
12740 while true; do
12741 cat conftest.in conftest.in >conftest.tmp
12742 mv conftest.tmp conftest.in
12743 cp conftest.in conftest.nl
12744 echo >>conftest.nl
12745 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12746 cmp -s conftest.out conftest.nl || break
12747 # 10000 chars as input seems more than enough
12748 test $lt_ac_count -gt 10 && break
12749 lt_ac_count=`expr $lt_ac_count + 1`
12750 if test $lt_ac_count -gt $lt_ac_max; then
12751 lt_ac_max=$lt_ac_count
12752 lt_cv_path_SED=$lt_ac_sed
12754 done
12755 done
12759 SED=$lt_cv_path_SED
12760 { echo "$as_me:$LINENO: result: $SED" >&5
12761 echo "${ECHO_T}$SED" >&6; }
12764 # Check whether --with-gnu-ld was given.
12765 if test "${with_gnu_ld+set}" = set; then
12766 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12767 else
12768 with_gnu_ld=no
12771 ac_prog=ld
12772 if test "$GCC" = yes; then
12773 # Check if gcc -print-prog-name=ld gives a path.
12774 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12775 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12776 case $host in
12777 *-*-mingw*)
12778 # gcc leaves a trailing carriage return which upsets mingw
12779 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12781 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12782 esac
12783 case $ac_prog in
12784 # Accept absolute paths.
12785 [\\/]* | ?:[\\/]*)
12786 re_direlt='/[^/][^/]*/\.\./'
12787 # Canonicalize the pathname of ld
12788 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12789 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12790 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12791 done
12792 test -z "$LD" && LD="$ac_prog"
12795 # If it fails, then pretend we aren't using GCC.
12796 ac_prog=ld
12799 # If it is relative, then search for the first ld in PATH.
12800 with_gnu_ld=unknown
12802 esac
12803 elif test "$with_gnu_ld" = yes; then
12804 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12805 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12806 else
12807 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12808 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12810 if test "${lt_cv_path_LD+set}" = set; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12812 else
12813 if test -z "$LD"; then
12814 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12815 for ac_dir in $PATH; do
12816 IFS="$lt_save_ifs"
12817 test -z "$ac_dir" && ac_dir=.
12818 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12819 lt_cv_path_LD="$ac_dir/$ac_prog"
12820 # Check to see if the program is GNU ld. I'd rather use --version,
12821 # but apparently some variants of GNU ld only accept -v.
12822 # Break only if it was the GNU/non-GNU ld that we prefer.
12823 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12824 *GNU* | *'with BFD'*)
12825 test "$with_gnu_ld" != no && break
12828 test "$with_gnu_ld" != yes && break
12830 esac
12832 done
12833 IFS="$lt_save_ifs"
12834 else
12835 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12839 LD="$lt_cv_path_LD"
12840 if test -n "$LD"; then
12841 { echo "$as_me:$LINENO: result: $LD" >&5
12842 echo "${ECHO_T}$LD" >&6; }
12843 else
12844 { echo "$as_me:$LINENO: result: no" >&5
12845 echo "${ECHO_T}no" >&6; }
12847 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12848 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12849 { (exit 1); exit 1; }; }
12850 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12851 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12852 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12856 case `$LD -v 2>&1 </dev/null` in
12857 *GNU* | *'with BFD'*)
12858 lt_cv_prog_gnu_ld=yes
12861 lt_cv_prog_gnu_ld=no
12863 esac
12865 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12866 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12867 with_gnu_ld=$lt_cv_prog_gnu_ld
12870 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12871 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12872 if test "${lt_cv_ld_reload_flag+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12874 else
12875 lt_cv_ld_reload_flag='-r'
12877 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12878 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12879 reload_flag=$lt_cv_ld_reload_flag
12880 case $reload_flag in
12881 "" | " "*) ;;
12882 *) reload_flag=" $reload_flag" ;;
12883 esac
12884 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12885 case $host_os in
12886 darwin*)
12887 if test "$GCC" = yes; then
12888 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12889 else
12890 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12893 esac
12895 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12896 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12897 if test "${lt_cv_deplibs_check_method+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 else
12900 lt_cv_file_magic_cmd='$MAGIC_CMD'
12901 lt_cv_file_magic_test_file=
12902 lt_cv_deplibs_check_method='unknown'
12903 # Need to set the preceding variable on all platforms that support
12904 # interlibrary dependencies.
12905 # 'none' -- dependencies not supported.
12906 # `unknown' -- same as none, but documents that we really don't know.
12907 # 'pass_all' -- all dependencies passed with no checks.
12908 # 'test_compile' -- check by making test program.
12909 # 'file_magic [[regex]]' -- check by looking for files in library path
12910 # which responds to the $file_magic_cmd with a given extended regex.
12911 # If you have `file' or equivalent on your system and you're not sure
12912 # whether `pass_all' will *always* work, you probably want this one.
12914 case $host_os in
12915 aix4* | aix5*)
12916 lt_cv_deplibs_check_method=pass_all
12919 beos*)
12920 lt_cv_deplibs_check_method=pass_all
12923 bsdi[45]*)
12924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12925 lt_cv_file_magic_cmd='/usr/bin/file -L'
12926 lt_cv_file_magic_test_file=/shlib/libc.so
12929 cygwin*)
12930 # func_win32_libid is a shell function defined in ltmain.sh
12931 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12932 lt_cv_file_magic_cmd='func_win32_libid'
12935 mingw* | pw32*)
12936 # Base MSYS/MinGW do not provide the 'file' command needed by
12937 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12938 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12939 lt_cv_file_magic_cmd='$OBJDUMP -f'
12942 darwin* | rhapsody*)
12943 lt_cv_deplibs_check_method=pass_all
12946 freebsd* | kfreebsd*-gnu | dragonfly*)
12947 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12948 case $host_cpu in
12949 i*86 )
12950 # Not sure whether the presence of OpenBSD here was a mistake.
12951 # Let's accept both of them until this is cleared up.
12952 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12953 lt_cv_file_magic_cmd=/usr/bin/file
12954 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12956 esac
12957 else
12958 lt_cv_deplibs_check_method=pass_all
12962 gnu*)
12963 lt_cv_deplibs_check_method=pass_all
12966 hpux10.20* | hpux11*)
12967 lt_cv_file_magic_cmd=/usr/bin/file
12968 case $host_cpu in
12969 ia64*)
12970 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12971 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12973 hppa*64*)
12974 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]'
12975 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12978 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12979 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12981 esac
12984 interix3*)
12985 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12986 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12989 irix5* | irix6* | nonstopux*)
12990 case $LD in
12991 *-32|*"-32 ") libmagic=32-bit;;
12992 *-n32|*"-n32 ") libmagic=N32;;
12993 *-64|*"-64 ") libmagic=64-bit;;
12994 *) libmagic=never-match;;
12995 esac
12996 lt_cv_deplibs_check_method=pass_all
12999 # This must be Linux ELF.
13000 linux*)
13001 lt_cv_deplibs_check_method=pass_all
13004 netbsd*)
13005 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13007 else
13008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13012 newos6*)
13013 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13014 lt_cv_file_magic_cmd=/usr/bin/file
13015 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13018 nto-qnx*)
13019 lt_cv_deplibs_check_method=unknown
13022 openbsd*)
13023 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13025 else
13026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13030 osf3* | osf4* | osf5*)
13031 lt_cv_deplibs_check_method=pass_all
13034 solaris*)
13035 lt_cv_deplibs_check_method=pass_all
13038 sysv4 | sysv4.3*)
13039 case $host_vendor in
13040 motorola)
13041 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]'
13042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13044 ncr)
13045 lt_cv_deplibs_check_method=pass_all
13047 sequent)
13048 lt_cv_file_magic_cmd='/bin/file'
13049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13051 sni)
13052 lt_cv_file_magic_cmd='/bin/file'
13053 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13054 lt_cv_file_magic_test_file=/lib/libc.so
13056 siemens)
13057 lt_cv_deplibs_check_method=pass_all
13060 lt_cv_deplibs_check_method=pass_all
13062 esac
13065 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13066 lt_cv_deplibs_check_method=pass_all
13068 esac
13071 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13072 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13073 file_magic_cmd=$lt_cv_file_magic_cmd
13074 deplibs_check_method=$lt_cv_deplibs_check_method
13075 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13079 # If no C compiler was specified, use CC.
13080 LTCC=${LTCC-"$CC"}
13082 # If no C compiler flags were specified, use CFLAGS.
13083 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13085 # Allow CC to be a program name with arguments.
13086 compiler=$CC
13088 # Check whether --enable-libtool-lock was given.
13089 if test "${enable_libtool_lock+set}" = set; then
13090 enableval=$enable_libtool_lock;
13093 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13095 # Some flags need to be propagated to the compiler or linker for good
13096 # libtool support.
13097 case $host in
13098 ia64-*-hpux*)
13099 # Find out which ABI we are using.
13100 echo 'int i;' > conftest.$ac_ext
13101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13102 (eval $ac_compile) 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; then
13106 case `/usr/bin/file conftest.$ac_objext` in
13107 *ELF-32*)
13108 HPUX_IA64_MODE="32"
13110 *ELF-64*)
13111 HPUX_IA64_MODE="64"
13113 esac
13115 rm -rf conftest*
13117 *-*-irix6*)
13118 # Find out which ABI we are using.
13119 echo '#line 13119 "configure"' > conftest.$ac_ext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13121 (eval $ac_compile) 2>&5
13122 ac_status=$?
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; then
13125 if test "$lt_cv_prog_gnu_ld" = yes; then
13126 case `/usr/bin/file conftest.$ac_objext` in
13127 *32-bit*)
13128 LD="${LD-ld} -melf32bsmip"
13130 *N32*)
13131 LD="${LD-ld} -melf32bmipn32"
13133 *64-bit*)
13134 LD="${LD-ld} -melf64bmip"
13136 esac
13137 else
13138 case `/usr/bin/file conftest.$ac_objext` in
13139 *32-bit*)
13140 LD="${LD-ld} -32"
13142 *N32*)
13143 LD="${LD-ld} -n32"
13145 *64-bit*)
13146 LD="${LD-ld} -64"
13148 esac
13151 rm -rf conftest*
13154 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13155 # Find out which ABI we are using.
13156 echo 'int i;' > conftest.$ac_ext
13157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13158 (eval $ac_compile) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; then
13162 case `/usr/bin/file conftest.o` in
13163 *32-bit*)
13164 case $host in
13165 x86_64-*linux*)
13166 LD="${LD-ld} -m elf_i386"
13168 ppc64-*linux*|powerpc64-*linux*)
13169 LD="${LD-ld} -m elf32ppclinux"
13171 s390x-*linux*)
13172 LD="${LD-ld} -m elf_s390"
13174 sparc64-*linux*)
13175 LD="${LD-ld} -m elf32_sparc"
13177 esac
13179 *64-bit*)
13180 case $host in
13181 x86_64-*linux*)
13182 LD="${LD-ld} -m elf_x86_64"
13184 ppc*-*linux*|powerpc*-*linux*)
13185 LD="${LD-ld} -m elf64ppc"
13187 s390*-*linux*)
13188 LD="${LD-ld} -m elf64_s390"
13190 sparc*-*linux*)
13191 LD="${LD-ld} -m elf64_sparc"
13193 esac
13195 esac
13197 rm -rf conftest*
13200 *-*-sco3.2v5*)
13201 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13202 SAVE_CFLAGS="$CFLAGS"
13203 CFLAGS="$CFLAGS -belf"
13204 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13205 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13206 if test "${lt_cv_cc_needs_belf+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13208 else
13209 ac_ext=c
13210 ac_cpp='$CPP $CPPFLAGS'
13211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13215 cat >conftest.$ac_ext <<_ACEOF
13216 /* confdefs.h. */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13223 main ()
13227 return 0;
13229 _ACEOF
13230 rm -f conftest.$ac_objext conftest$ac_exeext
13231 if { (ac_try="$ac_link"
13232 case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13235 esac
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_link") 2>conftest.er1
13238 ac_status=$?
13239 grep -v '^ *+' conftest.er1 >conftest.err
13240 rm -f conftest.er1
13241 cat conftest.err >&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } &&
13244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13245 { (case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13248 esac
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_try") 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest$ac_exeext'
13255 { (case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13258 esac
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_try") 2>&5
13261 ac_status=$?
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; }; then
13264 lt_cv_cc_needs_belf=yes
13265 else
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13269 lt_cv_cc_needs_belf=no
13272 rm -f core conftest.err conftest.$ac_objext \
13273 conftest$ac_exeext conftest.$ac_ext
13274 ac_ext=c
13275 ac_cpp='$CPP $CPPFLAGS'
13276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13281 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13282 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13283 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13284 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13285 CFLAGS="$SAVE_CFLAGS"
13288 sparc*-*solaris*)
13289 # Find out which ABI we are using.
13290 echo 'int i;' > conftest.$ac_ext
13291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13292 (eval $ac_compile) 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; then
13296 case `/usr/bin/file conftest.o` in
13297 *64-bit*)
13298 case $lt_cv_prog_gnu_ld in
13299 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13300 *) LD="${LD-ld} -64" ;;
13301 esac
13303 esac
13305 rm -rf conftest*
13309 esac
13311 need_locks="$enable_libtool_lock"
13316 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13317 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13318 (test "X$CXX" != "Xg++"))) ; then
13319 ac_ext=cpp
13320 ac_cpp='$CXXCPP $CPPFLAGS'
13321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13324 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13325 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13326 if test -z "$CXXCPP"; then
13327 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13328 echo $ECHO_N "(cached) $ECHO_C" >&6
13329 else
13330 # Double quotes because CXXCPP needs to be expanded
13331 for CXXCPP in "$CXX -E" "/lib/cpp"
13333 ac_preproc_ok=false
13334 for ac_cxx_preproc_warn_flag in '' yes
13336 # Use a header file that comes with gcc, so configuring glibc
13337 # with a fresh cross-compiler works.
13338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13339 # <limits.h> exists even on freestanding compilers.
13340 # On the NeXT, cc -E runs the code through the compiler's parser,
13341 # not just through cpp. "Syntax error" is here to catch this case.
13342 cat >conftest.$ac_ext <<_ACEOF
13343 /* confdefs.h. */
13344 _ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h. */
13348 #ifdef __STDC__
13349 # include <limits.h>
13350 #else
13351 # include <assert.h>
13352 #endif
13353 Syntax error
13354 _ACEOF
13355 if { (ac_try="$ac_cpp conftest.$ac_ext"
13356 case "(($ac_try" in
13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358 *) ac_try_echo=$ac_try;;
13359 esac
13360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13362 ac_status=$?
13363 grep -v '^ *+' conftest.er1 >conftest.err
13364 rm -f conftest.er1
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } >/dev/null; then
13368 if test -s conftest.err; then
13369 ac_cpp_err=$ac_cxx_preproc_warn_flag
13370 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13371 else
13372 ac_cpp_err=
13374 else
13375 ac_cpp_err=yes
13377 if test -z "$ac_cpp_err"; then
13379 else
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13383 # Broken: fails on valid input.
13384 continue
13387 rm -f conftest.err conftest.$ac_ext
13389 # OK, works on sane cases. Now check whether nonexistent headers
13390 # can be detected and how.
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 #include <ac_nonexistent.h>
13398 _ACEOF
13399 if { (ac_try="$ac_cpp conftest.$ac_ext"
13400 case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13403 esac
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } >/dev/null; then
13412 if test -s conftest.err; then
13413 ac_cpp_err=$ac_cxx_preproc_warn_flag
13414 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13415 else
13416 ac_cpp_err=
13418 else
13419 ac_cpp_err=yes
13421 if test -z "$ac_cpp_err"; then
13422 # Broken: success on invalid input.
13423 continue
13424 else
13425 echo "$as_me: failed program was:" >&5
13426 sed 's/^/| /' conftest.$ac_ext >&5
13428 # Passes both tests.
13429 ac_preproc_ok=:
13430 break
13433 rm -f conftest.err conftest.$ac_ext
13435 done
13436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13437 rm -f conftest.err conftest.$ac_ext
13438 if $ac_preproc_ok; then
13439 break
13442 done
13443 ac_cv_prog_CXXCPP=$CXXCPP
13446 CXXCPP=$ac_cv_prog_CXXCPP
13447 else
13448 ac_cv_prog_CXXCPP=$CXXCPP
13450 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13451 echo "${ECHO_T}$CXXCPP" >&6; }
13452 ac_preproc_ok=false
13453 for ac_cxx_preproc_warn_flag in '' yes
13455 # Use a header file that comes with gcc, so configuring glibc
13456 # with a fresh cross-compiler works.
13457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13458 # <limits.h> exists even on freestanding compilers.
13459 # On the NeXT, cc -E runs the code through the compiler's parser,
13460 # not just through cpp. "Syntax error" is here to catch this case.
13461 cat >conftest.$ac_ext <<_ACEOF
13462 /* confdefs.h. */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13467 #ifdef __STDC__
13468 # include <limits.h>
13469 #else
13470 # include <assert.h>
13471 #endif
13472 Syntax error
13473 _ACEOF
13474 if { (ac_try="$ac_cpp conftest.$ac_ext"
13475 case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13478 esac
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13481 ac_status=$?
13482 grep -v '^ *+' conftest.er1 >conftest.err
13483 rm -f conftest.er1
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } >/dev/null; then
13487 if test -s conftest.err; then
13488 ac_cpp_err=$ac_cxx_preproc_warn_flag
13489 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13490 else
13491 ac_cpp_err=
13493 else
13494 ac_cpp_err=yes
13496 if test -z "$ac_cpp_err"; then
13498 else
13499 echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13502 # Broken: fails on valid input.
13503 continue
13506 rm -f conftest.err conftest.$ac_ext
13508 # OK, works on sane cases. Now check whether nonexistent headers
13509 # can be detected and how.
13510 cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h. */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 #include <ac_nonexistent.h>
13517 _ACEOF
13518 if { (ac_try="$ac_cpp conftest.$ac_ext"
13519 case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13522 esac
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13525 ac_status=$?
13526 grep -v '^ *+' conftest.er1 >conftest.err
13527 rm -f conftest.er1
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } >/dev/null; then
13531 if test -s conftest.err; then
13532 ac_cpp_err=$ac_cxx_preproc_warn_flag
13533 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13534 else
13535 ac_cpp_err=
13537 else
13538 ac_cpp_err=yes
13540 if test -z "$ac_cpp_err"; then
13541 # Broken: success on invalid input.
13542 continue
13543 else
13544 echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13547 # Passes both tests.
13548 ac_preproc_ok=:
13549 break
13552 rm -f conftest.err conftest.$ac_ext
13554 done
13555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13556 rm -f conftest.err conftest.$ac_ext
13557 if $ac_preproc_ok; then
13559 else
13560 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13561 See \`config.log' for more details." >&5
13562 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13563 See \`config.log' for more details." >&2;}
13564 { (exit 1); exit 1; }; }
13567 ac_ext=cpp
13568 ac_cpp='$CXXCPP $CPPFLAGS'
13569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13576 ac_ext=f
13577 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13578 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13579 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13580 if test -n "$ac_tool_prefix"; then
13581 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
13583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13587 if test "${ac_cv_prog_F77+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590 if test -n "$F77"; then
13591 ac_cv_prog_F77="$F77" # Let the user override the test.
13592 else
13593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13594 for as_dir in $PATH
13596 IFS=$as_save_IFS
13597 test -z "$as_dir" && as_dir=.
13598 for ac_exec_ext in '' $ac_executable_extensions; do
13599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13600 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13602 break 2
13604 done
13605 done
13606 IFS=$as_save_IFS
13610 F77=$ac_cv_prog_F77
13611 if test -n "$F77"; then
13612 { echo "$as_me:$LINENO: result: $F77" >&5
13613 echo "${ECHO_T}$F77" >&6; }
13614 else
13615 { echo "$as_me:$LINENO: result: no" >&5
13616 echo "${ECHO_T}no" >&6; }
13620 test -n "$F77" && break
13621 done
13623 if test -z "$F77"; then
13624 ac_ct_F77=$F77
13625 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
13627 # Extract the first word of "$ac_prog", so it can be a program name with args.
13628 set dummy $ac_prog; ac_word=$2
13629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13631 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634 if test -n "$ac_ct_F77"; then
13635 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13636 else
13637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638 for as_dir in $PATH
13640 IFS=$as_save_IFS
13641 test -z "$as_dir" && as_dir=.
13642 for ac_exec_ext in '' $ac_executable_extensions; do
13643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13644 ac_cv_prog_ac_ct_F77="$ac_prog"
13645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13646 break 2
13648 done
13649 done
13650 IFS=$as_save_IFS
13654 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13655 if test -n "$ac_ct_F77"; then
13656 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13657 echo "${ECHO_T}$ac_ct_F77" >&6; }
13658 else
13659 { echo "$as_me:$LINENO: result: no" >&5
13660 echo "${ECHO_T}no" >&6; }
13664 test -n "$ac_ct_F77" && break
13665 done
13667 if test "x$ac_ct_F77" = x; then
13668 F77=""
13669 else
13670 case $cross_compiling:$ac_tool_warned in
13671 yes:)
13672 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13673 whose name does not start with the host triplet. If you think this
13674 configuration is useful to you, please write to autoconf@gnu.org." >&5
13675 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13676 whose name does not start with the host triplet. If you think this
13677 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13678 ac_tool_warned=yes ;;
13679 esac
13680 F77=$ac_ct_F77
13685 # Provide some information about the compiler.
13686 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13687 ac_compiler=`set X $ac_compile; echo $2`
13688 { (ac_try="$ac_compiler --version >&5"
13689 case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_compiler --version >&5") 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }
13698 { (ac_try="$ac_compiler -v >&5"
13699 case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13702 esac
13703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_compiler -v >&5") 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }
13708 { (ac_try="$ac_compiler -V >&5"
13709 case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13712 esac
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_compiler -V >&5") 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }
13718 rm -f a.out
13720 # If we don't use `.F' as extension, the preprocessor is not run on the
13721 # input file. (Note that this only needs to work for GNU compilers.)
13722 ac_save_ext=$ac_ext
13723 ac_ext=F
13724 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13725 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13726 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13728 else
13729 cat >conftest.$ac_ext <<_ACEOF
13730 program main
13731 #ifndef __GNUC__
13732 choke me
13733 #endif
13736 _ACEOF
13737 rm -f conftest.$ac_objext
13738 if { (ac_try="$ac_compile"
13739 case "(($ac_try" in
13740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741 *) ac_try_echo=$ac_try;;
13742 esac
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744 (eval "$ac_compile") 2>conftest.er1
13745 ac_status=$?
13746 grep -v '^ *+' conftest.er1 >conftest.err
13747 rm -f conftest.er1
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13752 { (case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13755 esac
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_try") 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest.$ac_objext'
13762 { (case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13765 esac
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_try") 2>&5
13768 ac_status=$?
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; }; then
13771 ac_compiler_gnu=yes
13772 else
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13776 ac_compiler_gnu=no
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13783 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13784 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13785 ac_ext=$ac_save_ext
13786 ac_test_FFLAGS=${FFLAGS+set}
13787 ac_save_FFLAGS=$FFLAGS
13788 FFLAGS=
13789 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13790 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13791 if test "${ac_cv_prog_f77_g+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 else
13794 FFLAGS=-g
13795 cat >conftest.$ac_ext <<_ACEOF
13796 program main
13799 _ACEOF
13800 rm -f conftest.$ac_objext
13801 if { (ac_try="$ac_compile"
13802 case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13805 esac
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_compile") 2>conftest.er1
13808 ac_status=$?
13809 grep -v '^ *+' conftest.er1 >conftest.err
13810 rm -f conftest.er1
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } &&
13814 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13815 { (case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13818 esac
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_try") 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; } &&
13824 { ac_try='test -s conftest.$ac_objext'
13825 { (case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13828 esac
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_try") 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; }; then
13834 ac_cv_prog_f77_g=yes
13835 else
13836 echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13839 ac_cv_prog_f77_g=no
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13846 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13847 if test "$ac_test_FFLAGS" = set; then
13848 FFLAGS=$ac_save_FFLAGS
13849 elif test $ac_cv_prog_f77_g = yes; then
13850 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13851 FFLAGS="-g -O2"
13852 else
13853 FFLAGS="-g"
13855 else
13856 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13857 FFLAGS="-O2"
13858 else
13859 FFLAGS=
13863 G77=`test $ac_compiler_gnu = yes && echo yes`
13864 ac_ext=c
13865 ac_cpp='$CPP $CPPFLAGS'
13866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13872 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13874 # find the maximum length of command line arguments
13875 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13876 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13877 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 else
13881 teststring="ABCD"
13883 case $build_os in
13884 msdosdjgpp*)
13885 # On DJGPP, this test can blow up pretty badly due to problems in libc
13886 # (any single argument exceeding 2000 bytes causes a buffer overrun
13887 # during glob expansion). Even if it were fixed, the result of this
13888 # check would be larger than it should be.
13889 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13892 gnu*)
13893 # Under GNU Hurd, this test is not required because there is
13894 # no limit to the length of command line arguments.
13895 # Libtool will interpret -1 as no limit whatsoever
13896 lt_cv_sys_max_cmd_len=-1;
13899 cygwin* | mingw*)
13900 # On Win9x/ME, this test blows up -- it succeeds, but takes
13901 # about 5 minutes as the teststring grows exponentially.
13902 # Worse, since 9x/ME are not pre-emptively multitasking,
13903 # you end up with a "frozen" computer, even though with patience
13904 # the test eventually succeeds (with a max line length of 256k).
13905 # Instead, let's just punt: use the minimum linelength reported by
13906 # all of the supported platforms: 8192 (on NT/2K/XP).
13907 lt_cv_sys_max_cmd_len=8192;
13910 amigaos*)
13911 # On AmigaOS with pdksh, this test takes hours, literally.
13912 # So we just punt and use a minimum line length of 8192.
13913 lt_cv_sys_max_cmd_len=8192;
13916 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13917 # This has been around since 386BSD, at least. Likely further.
13918 if test -x /sbin/sysctl; then
13919 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13920 elif test -x /usr/sbin/sysctl; then
13921 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13922 else
13923 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13925 # And add a safety zone
13926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13930 interix*)
13931 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13932 lt_cv_sys_max_cmd_len=196608
13935 osf*)
13936 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13937 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13938 # nice to cause kernel panics so lets avoid the loop below.
13939 # First set a reasonable default.
13940 lt_cv_sys_max_cmd_len=16384
13942 if test -x /sbin/sysconfig; then
13943 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13944 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13945 esac
13948 sco3.2v5*)
13949 lt_cv_sys_max_cmd_len=102400
13951 sysv5* | sco5v6* | sysv4.2uw2*)
13952 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13953 if test -n "$kargmax"; then
13954 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13955 else
13956 lt_cv_sys_max_cmd_len=32768
13960 # If test is not a shell built-in, we'll probably end up computing a
13961 # maximum length that is only half of the actual maximum length, but
13962 # we can't tell.
13963 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13964 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13965 = "XX$teststring") >/dev/null 2>&1 &&
13966 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13967 lt_cv_sys_max_cmd_len=$new_result &&
13968 test $i != 17 # 1/2 MB should be enough
13970 i=`expr $i + 1`
13971 teststring=$teststring$teststring
13972 done
13973 teststring=
13974 # Add a significant safety factor because C++ compilers can tack on massive
13975 # amounts of additional arguments before passing them to the linker.
13976 # It appears as though 1/2 is a usable value.
13977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13979 esac
13983 if test -n $lt_cv_sys_max_cmd_len ; then
13984 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13985 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13986 else
13987 { echo "$as_me:$LINENO: result: none" >&5
13988 echo "${ECHO_T}none" >&6; }
13994 # Check for command to grab the raw symbol name followed by C symbol from nm.
13995 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13996 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13997 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
13999 else
14001 # These are sane defaults that work on at least a few old systems.
14002 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14004 # Character class describing NM global symbol codes.
14005 symcode='[BCDEGRST]'
14007 # Regexp to match symbols that can be accessed directly from C.
14008 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14010 # Transform an extracted symbol line into a proper C declaration
14011 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14013 # Transform an extracted symbol line into symbol name and symbol address
14014 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'"
14016 # Define system-specific variables.
14017 case $host_os in
14018 aix*)
14019 symcode='[BCDT]'
14021 cygwin* | mingw* | pw32*)
14022 symcode='[ABCDGISTW]'
14024 hpux*) # Its linker distinguishes data from code symbols
14025 if test "$host_cpu" = ia64; then
14026 symcode='[ABCDEGRST]'
14028 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14029 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'"
14031 linux*)
14032 if test "$host_cpu" = ia64; then
14033 symcode='[ABCDGIRSTW]'
14034 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14035 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'"
14038 irix* | nonstopux*)
14039 symcode='[BCDEGRST]'
14041 osf*)
14042 symcode='[BCDEGQRST]'
14044 solaris*)
14045 symcode='[BDRT]'
14047 sco3.2v5*)
14048 symcode='[DT]'
14050 sysv4.2uw2*)
14051 symcode='[DT]'
14053 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14054 symcode='[ABDT]'
14056 sysv4)
14057 symcode='[DFNSTU]'
14059 esac
14061 # Handle CRLF in mingw tool chain
14062 opt_cr=
14063 case $build_os in
14064 mingw*)
14065 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14067 esac
14069 # If we're using GNU nm, then use its standard symbol codes.
14070 case `$NM -V 2>&1` in
14071 *GNU* | *'with BFD'*)
14072 symcode='[ABCDGIRSTW]' ;;
14073 esac
14075 # Try without a prefix undercore, then with it.
14076 for ac_symprfx in "" "_"; do
14078 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14079 symxfrm="\\1 $ac_symprfx\\2 \\2"
14081 # Write the raw and C identifiers.
14082 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14084 # Check to see that the pipe works correctly.
14085 pipe_works=no
14087 rm -f conftest*
14088 cat > conftest.$ac_ext <<EOF
14089 #ifdef __cplusplus
14090 extern "C" {
14091 #endif
14092 char nm_test_var;
14093 void nm_test_func(){}
14094 #ifdef __cplusplus
14096 #endif
14097 int main(){nm_test_var='a';nm_test_func();return(0);}
14100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14101 (eval $ac_compile) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; then
14105 # Now try to grab the symbols.
14106 nlist=conftest.nm
14107 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14108 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14109 ac_status=$?
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } && test -s "$nlist"; then
14112 # Try sorting and uniquifying the output.
14113 if sort "$nlist" | uniq > "$nlist"T; then
14114 mv -f "$nlist"T "$nlist"
14115 else
14116 rm -f "$nlist"T
14119 # Make sure that we snagged all the symbols we need.
14120 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14121 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14122 cat <<EOF > conftest.$ac_ext
14123 #ifdef __cplusplus
14124 extern "C" {
14125 #endif
14128 # Now generate the symbol file.
14129 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14131 cat <<EOF >> conftest.$ac_ext
14132 #if defined (__STDC__) && __STDC__
14133 # define lt_ptr_t void *
14134 #else
14135 # define lt_ptr_t char *
14136 # define const
14137 #endif
14139 /* The mapping between symbol names and symbols. */
14140 const struct {
14141 const char *name;
14142 lt_ptr_t address;
14144 lt_preloaded_symbols[] =
14147 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14148 cat <<\EOF >> conftest.$ac_ext
14149 {0, (lt_ptr_t) 0}
14152 #ifdef __cplusplus
14154 #endif
14156 # Now try linking the two files.
14157 mv conftest.$ac_objext conftstm.$ac_objext
14158 lt_save_LIBS="$LIBS"
14159 lt_save_CFLAGS="$CFLAGS"
14160 LIBS="conftstm.$ac_objext"
14161 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14163 (eval $ac_link) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14167 pipe_works=yes
14169 LIBS="$lt_save_LIBS"
14170 CFLAGS="$lt_save_CFLAGS"
14171 else
14172 echo "cannot find nm_test_func in $nlist" >&5
14174 else
14175 echo "cannot find nm_test_var in $nlist" >&5
14177 else
14178 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14180 else
14181 echo "$progname: failed program was:" >&5
14182 cat conftest.$ac_ext >&5
14184 rm -f conftest* conftst*
14186 # Do not use the global_symbol_pipe unless it works.
14187 if test "$pipe_works" = yes; then
14188 break
14189 else
14190 lt_cv_sys_global_symbol_pipe=
14192 done
14196 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14197 lt_cv_sys_global_symbol_to_cdecl=
14199 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14200 { echo "$as_me:$LINENO: result: failed" >&5
14201 echo "${ECHO_T}failed" >&6; }
14202 else
14203 { echo "$as_me:$LINENO: result: ok" >&5
14204 echo "${ECHO_T}ok" >&6; }
14207 { echo "$as_me:$LINENO: checking for objdir" >&5
14208 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14209 if test "${lt_cv_objdir+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14211 else
14212 rm -f .libs 2>/dev/null
14213 mkdir .libs 2>/dev/null
14214 if test -d .libs; then
14215 lt_cv_objdir=.libs
14216 else
14217 # MS-DOS does not allow filenames that begin with a dot.
14218 lt_cv_objdir=_libs
14220 rmdir .libs 2>/dev/null
14222 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14223 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14224 objdir=$lt_cv_objdir
14230 case $host_os in
14231 aix3*)
14232 # AIX sometimes has problems with the GCC collect2 program. For some
14233 # reason, if we set the COLLECT_NAMES environment variable, the problems
14234 # vanish in a puff of smoke.
14235 if test "X${COLLECT_NAMES+set}" != Xset; then
14236 COLLECT_NAMES=
14237 export COLLECT_NAMES
14240 esac
14242 # Sed substitution that helps us do robust quoting. It backslashifies
14243 # metacharacters that are still active within double-quoted strings.
14244 Xsed='sed -e 1s/^X//'
14245 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14247 # Same as above, but do not quote variable references.
14248 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14250 # Sed substitution to delay expansion of an escaped shell variable in a
14251 # double_quote_subst'ed string.
14252 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14254 # Sed substitution to avoid accidental globbing in evaled expressions
14255 no_glob_subst='s/\*/\\\*/g'
14257 # Constants:
14258 rm="rm -f"
14260 # Global variables:
14261 default_ofile=mklib
14262 can_build_shared=yes
14264 # All known linkers require a `.a' archive for static linking (except MSVC,
14265 # which needs '.lib').
14266 libext=a
14267 ltmain="$ac_aux_dir/ltmain.sh"
14268 ofile="$default_ofile"
14269 with_gnu_ld="$lt_cv_prog_gnu_ld"
14271 if test -n "$ac_tool_prefix"; then
14272 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14273 set dummy ${ac_tool_prefix}ar; ac_word=$2
14274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14276 if test "${ac_cv_prog_AR+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14278 else
14279 if test -n "$AR"; then
14280 ac_cv_prog_AR="$AR" # Let the user override the test.
14281 else
14282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14283 for as_dir in $PATH
14285 IFS=$as_save_IFS
14286 test -z "$as_dir" && as_dir=.
14287 for ac_exec_ext in '' $ac_executable_extensions; do
14288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14289 ac_cv_prog_AR="${ac_tool_prefix}ar"
14290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14291 break 2
14293 done
14294 done
14295 IFS=$as_save_IFS
14299 AR=$ac_cv_prog_AR
14300 if test -n "$AR"; then
14301 { echo "$as_me:$LINENO: result: $AR" >&5
14302 echo "${ECHO_T}$AR" >&6; }
14303 else
14304 { echo "$as_me:$LINENO: result: no" >&5
14305 echo "${ECHO_T}no" >&6; }
14310 if test -z "$ac_cv_prog_AR"; then
14311 ac_ct_AR=$AR
14312 # Extract the first word of "ar", so it can be a program name with args.
14313 set dummy ar; ac_word=$2
14314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14316 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14318 else
14319 if test -n "$ac_ct_AR"; then
14320 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14321 else
14322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14323 for as_dir in $PATH
14325 IFS=$as_save_IFS
14326 test -z "$as_dir" && as_dir=.
14327 for ac_exec_ext in '' $ac_executable_extensions; do
14328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14329 ac_cv_prog_ac_ct_AR="ar"
14330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14331 break 2
14333 done
14334 done
14335 IFS=$as_save_IFS
14339 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14340 if test -n "$ac_ct_AR"; then
14341 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14342 echo "${ECHO_T}$ac_ct_AR" >&6; }
14343 else
14344 { echo "$as_me:$LINENO: result: no" >&5
14345 echo "${ECHO_T}no" >&6; }
14348 if test "x$ac_ct_AR" = x; then
14349 AR="false"
14350 else
14351 case $cross_compiling:$ac_tool_warned in
14352 yes:)
14353 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14354 whose name does not start with the host triplet. If you think this
14355 configuration is useful to you, please write to autoconf@gnu.org." >&5
14356 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14357 whose name does not start with the host triplet. If you think this
14358 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14359 ac_tool_warned=yes ;;
14360 esac
14361 AR=$ac_ct_AR
14363 else
14364 AR="$ac_cv_prog_AR"
14367 if test -n "$ac_tool_prefix"; then
14368 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14369 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14372 if test "${ac_cv_prog_RANLIB+set}" = set; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 else
14375 if test -n "$RANLIB"; then
14376 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14377 else
14378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14379 for as_dir in $PATH
14381 IFS=$as_save_IFS
14382 test -z "$as_dir" && as_dir=.
14383 for ac_exec_ext in '' $ac_executable_extensions; do
14384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14385 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14387 break 2
14389 done
14390 done
14391 IFS=$as_save_IFS
14395 RANLIB=$ac_cv_prog_RANLIB
14396 if test -n "$RANLIB"; then
14397 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14398 echo "${ECHO_T}$RANLIB" >&6; }
14399 else
14400 { echo "$as_me:$LINENO: result: no" >&5
14401 echo "${ECHO_T}no" >&6; }
14406 if test -z "$ac_cv_prog_RANLIB"; then
14407 ac_ct_RANLIB=$RANLIB
14408 # Extract the first word of "ranlib", so it can be a program name with args.
14409 set dummy ranlib; ac_word=$2
14410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14412 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 else
14415 if test -n "$ac_ct_RANLIB"; then
14416 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14417 else
14418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14419 for as_dir in $PATH
14421 IFS=$as_save_IFS
14422 test -z "$as_dir" && as_dir=.
14423 for ac_exec_ext in '' $ac_executable_extensions; do
14424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14425 ac_cv_prog_ac_ct_RANLIB="ranlib"
14426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14427 break 2
14429 done
14430 done
14431 IFS=$as_save_IFS
14435 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14436 if test -n "$ac_ct_RANLIB"; then
14437 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14438 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14439 else
14440 { echo "$as_me:$LINENO: result: no" >&5
14441 echo "${ECHO_T}no" >&6; }
14444 if test "x$ac_ct_RANLIB" = x; then
14445 RANLIB=":"
14446 else
14447 case $cross_compiling:$ac_tool_warned in
14448 yes:)
14449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14450 whose name does not start with the host triplet. If you think this
14451 configuration is useful to you, please write to autoconf@gnu.org." >&5
14452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14453 whose name does not start with the host triplet. If you think this
14454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14455 ac_tool_warned=yes ;;
14456 esac
14457 RANLIB=$ac_ct_RANLIB
14459 else
14460 RANLIB="$ac_cv_prog_RANLIB"
14463 if test -n "$ac_tool_prefix"; then
14464 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14465 set dummy ${ac_tool_prefix}strip; ac_word=$2
14466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14468 if test "${ac_cv_prog_STRIP+set}" = set; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 else
14471 if test -n "$STRIP"; then
14472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14473 else
14474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14475 for as_dir in $PATH
14477 IFS=$as_save_IFS
14478 test -z "$as_dir" && as_dir=.
14479 for ac_exec_ext in '' $ac_executable_extensions; do
14480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14481 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14483 break 2
14485 done
14486 done
14487 IFS=$as_save_IFS
14491 STRIP=$ac_cv_prog_STRIP
14492 if test -n "$STRIP"; then
14493 { echo "$as_me:$LINENO: result: $STRIP" >&5
14494 echo "${ECHO_T}$STRIP" >&6; }
14495 else
14496 { echo "$as_me:$LINENO: result: no" >&5
14497 echo "${ECHO_T}no" >&6; }
14502 if test -z "$ac_cv_prog_STRIP"; then
14503 ac_ct_STRIP=$STRIP
14504 # Extract the first word of "strip", so it can be a program name with args.
14505 set dummy strip; ac_word=$2
14506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14508 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14510 else
14511 if test -n "$ac_ct_STRIP"; then
14512 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14513 else
14514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14515 for as_dir in $PATH
14517 IFS=$as_save_IFS
14518 test -z "$as_dir" && as_dir=.
14519 for ac_exec_ext in '' $ac_executable_extensions; do
14520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14521 ac_cv_prog_ac_ct_STRIP="strip"
14522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14523 break 2
14525 done
14526 done
14527 IFS=$as_save_IFS
14531 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14532 if test -n "$ac_ct_STRIP"; then
14533 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14534 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14535 else
14536 { echo "$as_me:$LINENO: result: no" >&5
14537 echo "${ECHO_T}no" >&6; }
14540 if test "x$ac_ct_STRIP" = x; then
14541 STRIP=":"
14542 else
14543 case $cross_compiling:$ac_tool_warned in
14544 yes:)
14545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14546 whose name does not start with the host triplet. If you think this
14547 configuration is useful to you, please write to autoconf@gnu.org." >&5
14548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14549 whose name does not start with the host triplet. If you think this
14550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14551 ac_tool_warned=yes ;;
14552 esac
14553 STRIP=$ac_ct_STRIP
14555 else
14556 STRIP="$ac_cv_prog_STRIP"
14560 old_CC="$CC"
14561 old_CFLAGS="$CFLAGS"
14563 # Set sane defaults for various variables
14564 test -z "$AR" && AR=ar
14565 test -z "$AR_FLAGS" && AR_FLAGS=cru
14566 test -z "$AS" && AS=as
14567 test -z "$CC" && CC=cc
14568 test -z "$LTCC" && LTCC=$CC
14569 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14570 test -z "$DLLTOOL" && DLLTOOL=dlltool
14571 test -z "$LD" && LD=ld
14572 test -z "$LN_S" && LN_S="ln -s"
14573 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14574 test -z "$NM" && NM=nm
14575 test -z "$SED" && SED=sed
14576 test -z "$OBJDUMP" && OBJDUMP=objdump
14577 test -z "$RANLIB" && RANLIB=:
14578 test -z "$STRIP" && STRIP=:
14579 test -z "$ac_objext" && ac_objext=o
14581 # Determine commands to create old-style static archives.
14582 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14583 old_postinstall_cmds='chmod 644 $oldlib'
14584 old_postuninstall_cmds=
14586 if test -n "$RANLIB"; then
14587 case $host_os in
14588 openbsd*)
14589 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14592 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14594 esac
14595 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14598 for cc_temp in $compiler""; do
14599 case $cc_temp in
14600 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14601 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14602 \-*) ;;
14603 *) break;;
14604 esac
14605 done
14606 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14609 # Only perform the check for file, if the check method requires it
14610 case $deplibs_check_method in
14611 file_magic*)
14612 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14613 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14614 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14615 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618 case $MAGIC_CMD in
14619 [\\/*] | ?:[\\/]*)
14620 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14623 lt_save_MAGIC_CMD="$MAGIC_CMD"
14624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14625 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14626 for ac_dir in $ac_dummy; do
14627 IFS="$lt_save_ifs"
14628 test -z "$ac_dir" && ac_dir=.
14629 if test -f $ac_dir/${ac_tool_prefix}file; then
14630 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14631 if test -n "$file_magic_test_file"; then
14632 case $deplibs_check_method in
14633 "file_magic "*)
14634 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14635 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14636 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14637 $EGREP "$file_magic_regex" > /dev/null; then
14639 else
14640 cat <<EOF 1>&2
14642 *** Warning: the command libtool uses to detect shared libraries,
14643 *** $file_magic_cmd, produces output that libtool cannot recognize.
14644 *** The result is that libtool may fail to recognize shared libraries
14645 *** as such. This will affect the creation of libtool libraries that
14646 *** depend on shared libraries, but programs linked with such libtool
14647 *** libraries will work regardless of this problem. Nevertheless, you
14648 *** may want to report the problem to your system manager and/or to
14649 *** bug-libtool@gnu.org
14652 fi ;;
14653 esac
14655 break
14657 done
14658 IFS="$lt_save_ifs"
14659 MAGIC_CMD="$lt_save_MAGIC_CMD"
14661 esac
14664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14665 if test -n "$MAGIC_CMD"; then
14666 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14667 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14668 else
14669 { echo "$as_me:$LINENO: result: no" >&5
14670 echo "${ECHO_T}no" >&6; }
14673 if test -z "$lt_cv_path_MAGIC_CMD"; then
14674 if test -n "$ac_tool_prefix"; then
14675 { echo "$as_me:$LINENO: checking for file" >&5
14676 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14677 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680 case $MAGIC_CMD in
14681 [\\/*] | ?:[\\/]*)
14682 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14685 lt_save_MAGIC_CMD="$MAGIC_CMD"
14686 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14687 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14688 for ac_dir in $ac_dummy; do
14689 IFS="$lt_save_ifs"
14690 test -z "$ac_dir" && ac_dir=.
14691 if test -f $ac_dir/file; then
14692 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14693 if test -n "$file_magic_test_file"; then
14694 case $deplibs_check_method in
14695 "file_magic "*)
14696 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14698 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14699 $EGREP "$file_magic_regex" > /dev/null; then
14701 else
14702 cat <<EOF 1>&2
14704 *** Warning: the command libtool uses to detect shared libraries,
14705 *** $file_magic_cmd, produces output that libtool cannot recognize.
14706 *** The result is that libtool may fail to recognize shared libraries
14707 *** as such. This will affect the creation of libtool libraries that
14708 *** depend on shared libraries, but programs linked with such libtool
14709 *** libraries will work regardless of this problem. Nevertheless, you
14710 *** may want to report the problem to your system manager and/or to
14711 *** bug-libtool@gnu.org
14714 fi ;;
14715 esac
14717 break
14719 done
14720 IFS="$lt_save_ifs"
14721 MAGIC_CMD="$lt_save_MAGIC_CMD"
14723 esac
14726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14727 if test -n "$MAGIC_CMD"; then
14728 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14729 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14730 else
14731 { echo "$as_me:$LINENO: result: no" >&5
14732 echo "${ECHO_T}no" >&6; }
14735 else
14736 MAGIC_CMD=:
14742 esac
14744 enable_dlopen=yes
14745 enable_win32_dll=no
14747 # Check whether --enable-libtool-lock was given.
14748 if test "${enable_libtool_lock+set}" = set; then
14749 enableval=$enable_libtool_lock;
14752 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14755 # Check whether --with-pic was given.
14756 if test "${with_pic+set}" = set; then
14757 withval=$with_pic; pic_mode="$withval"
14758 else
14759 pic_mode=default
14762 test -z "$pic_mode" && pic_mode=default
14764 # Use C for the default configuration in the libtool script
14765 tagname=
14766 lt_save_CC="$CC"
14767 ac_ext=c
14768 ac_cpp='$CPP $CPPFLAGS'
14769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14774 # Source file extension for C test sources.
14775 ac_ext=c
14777 # Object file extension for compiled C test sources.
14778 objext=o
14779 objext=$objext
14781 # Code to be used in simple compile tests
14782 lt_simple_compile_test_code="int some_variable = 0;\n"
14784 # Code to be used in simple link tests
14785 lt_simple_link_test_code='int main(){return(0);}\n'
14788 # If no C compiler was specified, use CC.
14789 LTCC=${LTCC-"$CC"}
14791 # If no C compiler flags were specified, use CFLAGS.
14792 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14794 # Allow CC to be a program name with arguments.
14795 compiler=$CC
14798 # save warnings/boilerplate of simple test code
14799 ac_outfile=conftest.$ac_objext
14800 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14801 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14802 _lt_compiler_boilerplate=`cat conftest.err`
14803 $rm conftest*
14805 ac_outfile=conftest.$ac_objext
14806 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14807 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14808 _lt_linker_boilerplate=`cat conftest.err`
14809 $rm conftest*
14813 lt_prog_compiler_no_builtin_flag=
14815 if test "$GCC" = yes; then
14816 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14819 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14820 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14821 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14823 else
14824 lt_cv_prog_compiler_rtti_exceptions=no
14825 ac_outfile=conftest.$ac_objext
14826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14827 lt_compiler_flag="-fno-rtti -fno-exceptions"
14828 # Insert the option either (1) after the last *FLAGS variable, or
14829 # (2) before a word containing "conftest.", or (3) at the end.
14830 # Note that $ac_compile itself does not contain backslashes and begins
14831 # with a dollar sign (not a hyphen), so the echo should work correctly.
14832 # The option is referenced via a variable to avoid confusing sed.
14833 lt_compile=`echo "$ac_compile" | $SED \
14834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14836 -e 's:$: $lt_compiler_flag:'`
14837 (eval echo "\"\$as_me:14837: $lt_compile\"" >&5)
14838 (eval "$lt_compile" 2>conftest.err)
14839 ac_status=$?
14840 cat conftest.err >&5
14841 echo "$as_me:14841: \$? = $ac_status" >&5
14842 if (exit $ac_status) && test -s "$ac_outfile"; then
14843 # The compiler can only warn and ignore the option if not recognized
14844 # So say no if there are warnings other than the usual output.
14845 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14848 lt_cv_prog_compiler_rtti_exceptions=yes
14851 $rm conftest*
14854 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14855 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14857 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14858 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14859 else
14865 lt_prog_compiler_wl=
14866 lt_prog_compiler_pic=
14867 lt_prog_compiler_static=
14869 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14870 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14872 if test "$GCC" = yes; then
14873 lt_prog_compiler_wl='-Wl,'
14874 lt_prog_compiler_static='-static'
14876 case $host_os in
14877 aix*)
14878 # All AIX code is PIC.
14879 if test "$host_cpu" = ia64; then
14880 # AIX 5 now supports IA64 processor
14881 lt_prog_compiler_static='-Bstatic'
14885 amigaos*)
14886 # FIXME: we need at least 68020 code to build shared libraries, but
14887 # adding the `-m68020' flag to GCC prevents building anything better,
14888 # like `-m68040'.
14889 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14892 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14893 # PIC is the default for these OSes.
14896 mingw* | pw32* | os2*)
14897 # This hack is so that the source file can tell whether it is being
14898 # built for inclusion in a dll (and should export symbols for example).
14899 lt_prog_compiler_pic='-DDLL_EXPORT'
14902 darwin* | rhapsody*)
14903 # PIC is the default on this platform
14904 # Common symbols not allowed in MH_DYLIB files
14905 lt_prog_compiler_pic='-fno-common'
14908 interix3*)
14909 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14910 # Instead, we relocate shared libraries at runtime.
14913 msdosdjgpp*)
14914 # Just because we use GCC doesn't mean we suddenly get shared libraries
14915 # on systems that don't support them.
14916 lt_prog_compiler_can_build_shared=no
14917 enable_shared=no
14920 sysv4*MP*)
14921 if test -d /usr/nec; then
14922 lt_prog_compiler_pic=-Kconform_pic
14926 hpux*)
14927 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14928 # not for PA HP-UX.
14929 case $host_cpu in
14930 hppa*64*|ia64*)
14931 # +Z the default
14934 lt_prog_compiler_pic='-fPIC'
14936 esac
14940 lt_prog_compiler_pic='-fPIC'
14942 esac
14943 else
14944 # PORTME Check for flag to pass linker flags through the system compiler.
14945 case $host_os in
14946 aix*)
14947 lt_prog_compiler_wl='-Wl,'
14948 if test "$host_cpu" = ia64; then
14949 # AIX 5 now supports IA64 processor
14950 lt_prog_compiler_static='-Bstatic'
14951 else
14952 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14955 darwin*)
14956 # PIC is the default on this platform
14957 # Common symbols not allowed in MH_DYLIB files
14958 case $cc_basename in
14959 xlc*)
14960 lt_prog_compiler_pic='-qnocommon'
14961 lt_prog_compiler_wl='-Wl,'
14963 esac
14966 mingw* | pw32* | os2*)
14967 # This hack is so that the source file can tell whether it is being
14968 # built for inclusion in a dll (and should export symbols for example).
14969 lt_prog_compiler_pic='-DDLL_EXPORT'
14972 hpux9* | hpux10* | hpux11*)
14973 lt_prog_compiler_wl='-Wl,'
14974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14975 # not for PA HP-UX.
14976 case $host_cpu in
14977 hppa*64*|ia64*)
14978 # +Z the default
14981 lt_prog_compiler_pic='+Z'
14983 esac
14984 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14985 lt_prog_compiler_static='${wl}-a ${wl}archive'
14988 irix5* | irix6* | nonstopux*)
14989 lt_prog_compiler_wl='-Wl,'
14990 # PIC (with -KPIC) is the default.
14991 lt_prog_compiler_static='-non_shared'
14994 newsos6)
14995 lt_prog_compiler_pic='-KPIC'
14996 lt_prog_compiler_static='-Bstatic'
14999 linux*)
15000 case $cc_basename in
15001 icc* | ecc*)
15002 lt_prog_compiler_wl='-Wl,'
15003 lt_prog_compiler_pic='-KPIC'
15004 lt_prog_compiler_static='-static'
15006 pgcc* | pgf77* | pgf90* | pgf95*)
15007 # Portland Group compilers (*not* the Pentium gcc compiler,
15008 # which looks to be a dead project)
15009 lt_prog_compiler_wl='-Wl,'
15010 lt_prog_compiler_pic='-fpic'
15011 lt_prog_compiler_static='-Bstatic'
15013 ccc*)
15014 lt_prog_compiler_wl='-Wl,'
15015 # All Alpha code is PIC.
15016 lt_prog_compiler_static='-non_shared'
15018 esac
15021 osf3* | osf4* | osf5*)
15022 lt_prog_compiler_wl='-Wl,'
15023 # All OSF/1 code is PIC.
15024 lt_prog_compiler_static='-non_shared'
15027 solaris*)
15028 lt_prog_compiler_pic='-KPIC'
15029 lt_prog_compiler_static='-Bstatic'
15030 case $cc_basename in
15031 f77* | f90* | f95*)
15032 lt_prog_compiler_wl='-Qoption ld ';;
15034 lt_prog_compiler_wl='-Wl,';;
15035 esac
15038 sunos4*)
15039 lt_prog_compiler_wl='-Qoption ld '
15040 lt_prog_compiler_pic='-PIC'
15041 lt_prog_compiler_static='-Bstatic'
15044 sysv4 | sysv4.2uw2* | sysv4.3*)
15045 lt_prog_compiler_wl='-Wl,'
15046 lt_prog_compiler_pic='-KPIC'
15047 lt_prog_compiler_static='-Bstatic'
15050 sysv4*MP*)
15051 if test -d /usr/nec ;then
15052 lt_prog_compiler_pic='-Kconform_pic'
15053 lt_prog_compiler_static='-Bstatic'
15057 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15058 lt_prog_compiler_wl='-Wl,'
15059 lt_prog_compiler_pic='-KPIC'
15060 lt_prog_compiler_static='-Bstatic'
15063 unicos*)
15064 lt_prog_compiler_wl='-Wl,'
15065 lt_prog_compiler_can_build_shared=no
15068 uts4*)
15069 lt_prog_compiler_pic='-pic'
15070 lt_prog_compiler_static='-Bstatic'
15074 lt_prog_compiler_can_build_shared=no
15076 esac
15079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15080 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15083 # Check to make sure the PIC flag actually works.
15085 if test -n "$lt_prog_compiler_pic"; then
15087 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15088 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15089 if test "${lt_prog_compiler_pic_works+set}" = set; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 else
15092 lt_prog_compiler_pic_works=no
15093 ac_outfile=conftest.$ac_objext
15094 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15095 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15096 # Insert the option either (1) after the last *FLAGS variable, or
15097 # (2) before a word containing "conftest.", or (3) at the end.
15098 # Note that $ac_compile itself does not contain backslashes and begins
15099 # with a dollar sign (not a hyphen), so the echo should work correctly.
15100 # The option is referenced via a variable to avoid confusing sed.
15101 lt_compile=`echo "$ac_compile" | $SED \
15102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15104 -e 's:$: $lt_compiler_flag:'`
15105 (eval echo "\"\$as_me:15105: $lt_compile\"" >&5)
15106 (eval "$lt_compile" 2>conftest.err)
15107 ac_status=$?
15108 cat conftest.err >&5
15109 echo "$as_me:15109: \$? = $ac_status" >&5
15110 if (exit $ac_status) && test -s "$ac_outfile"; then
15111 # The compiler can only warn and ignore the option if not recognized
15112 # So say no if there are warnings other than the usual output.
15113 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15116 lt_prog_compiler_pic_works=yes
15119 $rm conftest*
15122 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15123 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15125 if test x"$lt_prog_compiler_pic_works" = xyes; then
15126 case $lt_prog_compiler_pic in
15127 "" | " "*) ;;
15128 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15129 esac
15130 else
15131 lt_prog_compiler_pic=
15132 lt_prog_compiler_can_build_shared=no
15136 case $host_os in
15137 # For platforms which do not support PIC, -DPIC is meaningless:
15138 *djgpp*)
15139 lt_prog_compiler_pic=
15142 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15144 esac
15147 # Check to make sure the static flag actually works.
15149 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15150 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15151 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15152 if test "${lt_prog_compiler_static_works+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 else
15155 lt_prog_compiler_static_works=no
15156 save_LDFLAGS="$LDFLAGS"
15157 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15158 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15159 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15160 # The linker can only warn and ignore the option if not recognized
15161 # So say no if there are warnings
15162 if test -s conftest.err; then
15163 # Append any errors to the config.log.
15164 cat conftest.err 1>&5
15165 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15167 if diff conftest.exp conftest.er2 >/dev/null; then
15168 lt_prog_compiler_static_works=yes
15170 else
15171 lt_prog_compiler_static_works=yes
15174 $rm conftest*
15175 LDFLAGS="$save_LDFLAGS"
15178 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15179 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15181 if test x"$lt_prog_compiler_static_works" = xyes; then
15183 else
15184 lt_prog_compiler_static=
15188 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15189 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15190 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193 lt_cv_prog_compiler_c_o=no
15194 $rm -r conftest 2>/dev/null
15195 mkdir conftest
15196 cd conftest
15197 mkdir out
15198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15200 lt_compiler_flag="-o out/conftest2.$ac_objext"
15201 # Insert the option either (1) after the last *FLAGS variable, or
15202 # (2) before a word containing "conftest.", or (3) at the end.
15203 # Note that $ac_compile itself does not contain backslashes and begins
15204 # with a dollar sign (not a hyphen), so the echo should work correctly.
15205 lt_compile=`echo "$ac_compile" | $SED \
15206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15208 -e 's:$: $lt_compiler_flag:'`
15209 (eval echo "\"\$as_me:15209: $lt_compile\"" >&5)
15210 (eval "$lt_compile" 2>out/conftest.err)
15211 ac_status=$?
15212 cat out/conftest.err >&5
15213 echo "$as_me:15213: \$? = $ac_status" >&5
15214 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15215 then
15216 # The compiler can only warn and ignore the option if not recognized
15217 # So say no if there are warnings
15218 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15219 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15220 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15221 lt_cv_prog_compiler_c_o=yes
15224 chmod u+w . 2>&5
15225 $rm conftest*
15226 # SGI C++ compiler will create directory out/ii_files/ for
15227 # template instantiation
15228 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15229 $rm out/* && rmdir out
15230 cd ..
15231 rmdir conftest
15232 $rm conftest*
15235 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15236 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15239 hard_links="nottested"
15240 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15241 # do not overwrite the value of need_locks provided by the user
15242 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15243 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15244 hard_links=yes
15245 $rm conftest*
15246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15247 touch conftest.a
15248 ln conftest.a conftest.b 2>&5 || hard_links=no
15249 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15250 { echo "$as_me:$LINENO: result: $hard_links" >&5
15251 echo "${ECHO_T}$hard_links" >&6; }
15252 if test "$hard_links" = no; then
15253 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15254 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15255 need_locks=warn
15257 else
15258 need_locks=no
15261 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15262 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15264 runpath_var=
15265 allow_undefined_flag=
15266 enable_shared_with_static_runtimes=no
15267 archive_cmds=
15268 archive_expsym_cmds=
15269 old_archive_From_new_cmds=
15270 old_archive_from_expsyms_cmds=
15271 export_dynamic_flag_spec=
15272 whole_archive_flag_spec=
15273 thread_safe_flag_spec=
15274 hardcode_libdir_flag_spec=
15275 hardcode_libdir_flag_spec_ld=
15276 hardcode_libdir_separator=
15277 hardcode_direct=no
15278 hardcode_minus_L=no
15279 hardcode_shlibpath_var=unsupported
15280 link_all_deplibs=unknown
15281 hardcode_automatic=no
15282 module_cmds=
15283 module_expsym_cmds=
15284 always_export_symbols=no
15285 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15286 # include_expsyms should be a list of space-separated symbols to be *always*
15287 # included in the symbol list
15288 include_expsyms=
15289 # exclude_expsyms can be an extended regexp of symbols to exclude
15290 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15291 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15292 # as well as any symbol that contains `d'.
15293 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15294 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15295 # platforms (ab)use it in PIC code, but their linkers get confused if
15296 # the symbol is explicitly referenced. Since portable code cannot
15297 # rely on this symbol name, it's probably fine to never include it in
15298 # preloaded symbol tables.
15299 extract_expsyms_cmds=
15300 # Just being paranoid about ensuring that cc_basename is set.
15301 for cc_temp in $compiler""; do
15302 case $cc_temp in
15303 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15304 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15305 \-*) ;;
15306 *) break;;
15307 esac
15308 done
15309 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15311 case $host_os in
15312 cygwin* | mingw* | pw32*)
15313 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15314 # When not using gcc, we currently assume that we are using
15315 # Microsoft Visual C++.
15316 if test "$GCC" != yes; then
15317 with_gnu_ld=no
15320 interix*)
15321 # we just hope/assume this is gcc and not c89 (= MSVC++)
15322 with_gnu_ld=yes
15324 openbsd*)
15325 with_gnu_ld=no
15327 esac
15329 ld_shlibs=yes
15330 if test "$with_gnu_ld" = yes; then
15331 # If archive_cmds runs LD, not CC, wlarc should be empty
15332 wlarc='${wl}'
15334 # Set some defaults for GNU ld with shared library support. These
15335 # are reset later if shared libraries are not supported. Putting them
15336 # here allows them to be overridden if necessary.
15337 runpath_var=LD_RUN_PATH
15338 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15339 export_dynamic_flag_spec='${wl}--export-dynamic'
15340 # ancient GNU ld didn't support --whole-archive et. al.
15341 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15342 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15343 else
15344 whole_archive_flag_spec=
15346 supports_anon_versioning=no
15347 case `$LD -v 2>/dev/null` in
15348 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15349 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15350 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15351 *\ 2.11.*) ;; # other 2.11 versions
15352 *) supports_anon_versioning=yes ;;
15353 esac
15355 # See if GNU ld supports shared libraries.
15356 case $host_os in
15357 aix3* | aix4* | aix5*)
15358 # On AIX/PPC, the GNU linker is very broken
15359 if test "$host_cpu" != ia64; then
15360 ld_shlibs=no
15361 cat <<EOF 1>&2
15363 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15364 *** to be unable to reliably create shared libraries on AIX.
15365 *** Therefore, libtool is disabling shared libraries support. If you
15366 *** really care for shared libraries, you may want to modify your PATH
15367 *** so that a non-GNU linker is found, and then restart.
15373 amigaos*)
15374 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)'
15375 hardcode_libdir_flag_spec='-L$libdir'
15376 hardcode_minus_L=yes
15378 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15379 # that the semantics of dynamic libraries on AmigaOS, at least up
15380 # to version 4, is to share data among multiple programs linked
15381 # with the same dynamic library. Since this doesn't match the
15382 # behavior of shared libraries on other platforms, we can't use
15383 # them.
15384 ld_shlibs=no
15387 beos*)
15388 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15389 allow_undefined_flag=unsupported
15390 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15391 # support --undefined. This deserves some investigation. FIXME
15392 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15393 else
15394 ld_shlibs=no
15398 cygwin* | mingw* | pw32*)
15399 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15400 # as there is no search path for DLLs.
15401 hardcode_libdir_flag_spec='-L$libdir'
15402 allow_undefined_flag=unsupported
15403 always_export_symbols=no
15404 enable_shared_with_static_runtimes=yes
15405 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15407 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15409 # If the export-symbols file already is a .def file (1st line
15410 # is EXPORTS), use it as is; otherwise, prepend...
15411 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15412 cp $export_symbols $output_objdir/$soname.def;
15413 else
15414 echo EXPORTS > $output_objdir/$soname.def;
15415 cat $export_symbols >> $output_objdir/$soname.def;
15417 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15418 else
15419 ld_shlibs=no
15423 interix3*)
15424 hardcode_direct=no
15425 hardcode_shlibpath_var=no
15426 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15427 export_dynamic_flag_spec='${wl}-E'
15428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15429 # Instead, shared libraries are loaded at an image base (0x10000000 by
15430 # default) and relocated if they conflict, which is a slow very memory
15431 # consuming and fragmenting process. To avoid this, we pick a random,
15432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15433 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15434 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15435 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'
15438 linux*)
15439 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15440 tmp_addflag=
15441 case $cc_basename,$host_cpu in
15442 pgcc*) # Portland Group C compiler
15443 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'
15444 tmp_addflag=' $pic_flag'
15446 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15447 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'
15448 tmp_addflag=' $pic_flag -Mnomain' ;;
15449 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15450 tmp_addflag=' -i_dynamic' ;;
15451 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15452 tmp_addflag=' -i_dynamic -nofor_main' ;;
15453 ifc* | ifort*) # Intel Fortran compiler
15454 tmp_addflag=' -nofor_main' ;;
15455 esac
15456 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15458 if test $supports_anon_versioning = yes; then
15459 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15460 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15461 $echo "local: *; };" >> $output_objdir/$libname.ver~
15462 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15464 else
15465 ld_shlibs=no
15469 netbsd*)
15470 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15471 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15472 wlarc=
15473 else
15474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15475 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15479 solaris*)
15480 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15481 ld_shlibs=no
15482 cat <<EOF 1>&2
15484 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15485 *** create shared libraries on Solaris systems. Therefore, libtool
15486 *** is disabling shared libraries support. We urge you to upgrade GNU
15487 *** binutils to release 2.9.1 or newer. Another option is to modify
15488 *** your PATH or compiler configuration so that the native linker is
15489 *** used, and then restart.
15492 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15494 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15495 else
15496 ld_shlibs=no
15500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15501 case `$LD -v 2>&1` in
15502 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15503 ld_shlibs=no
15504 cat <<_LT_EOF 1>&2
15506 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15507 *** reliably create shared libraries on SCO systems. Therefore, libtool
15508 *** is disabling shared libraries support. We urge you to upgrade GNU
15509 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15510 *** your PATH or compiler configuration so that the native linker is
15511 *** used, and then restart.
15513 _LT_EOF
15516 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15517 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15519 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15520 else
15521 ld_shlibs=no
15524 esac
15527 sunos4*)
15528 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15529 wlarc=
15530 hardcode_direct=yes
15531 hardcode_shlibpath_var=no
15535 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15537 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15538 else
15539 ld_shlibs=no
15542 esac
15544 if test "$ld_shlibs" = no; then
15545 runpath_var=
15546 hardcode_libdir_flag_spec=
15547 export_dynamic_flag_spec=
15548 whole_archive_flag_spec=
15550 else
15551 # PORTME fill in a description of your system's linker (not GNU ld)
15552 case $host_os in
15553 aix3*)
15554 allow_undefined_flag=unsupported
15555 always_export_symbols=yes
15556 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'
15557 # Note: this linker hardcodes the directories in LIBPATH if there
15558 # are no directories specified by -L.
15559 hardcode_minus_L=yes
15560 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15561 # Neither direct hardcoding nor static linking is supported with a
15562 # broken collect2.
15563 hardcode_direct=unsupported
15567 aix4* | aix5*)
15568 if test "$host_cpu" = ia64; then
15569 # On IA64, the linker does run time linking by default, so we don't
15570 # have to do anything special.
15571 aix_use_runtimelinking=no
15572 exp_sym_flag='-Bexport'
15573 no_entry_flag=""
15574 else
15575 # If we're using GNU nm, then we don't want the "-C" option.
15576 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15577 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15578 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'
15579 else
15580 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'
15582 aix_use_runtimelinking=no
15584 # Test if we are trying to use run time linking or normal
15585 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15586 # need to do runtime linking.
15587 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15588 for ld_flag in $LDFLAGS; do
15589 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15590 aix_use_runtimelinking=yes
15591 break
15593 done
15595 esac
15597 exp_sym_flag='-bexport'
15598 no_entry_flag='-bnoentry'
15601 # When large executables or shared objects are built, AIX ld can
15602 # have problems creating the table of contents. If linking a library
15603 # or program results in "error TOC overflow" add -mminimal-toc to
15604 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15605 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15607 archive_cmds=''
15608 hardcode_direct=yes
15609 hardcode_libdir_separator=':'
15610 link_all_deplibs=yes
15612 if test "$GCC" = yes; then
15613 case $host_os in aix4.[012]|aix4.[012].*)
15614 # We only want to do this on AIX 4.2 and lower, the check
15615 # below for broken collect2 doesn't work under 4.3+
15616 collect2name=`${CC} -print-prog-name=collect2`
15617 if test -f "$collect2name" && \
15618 strings "$collect2name" | grep resolve_lib_name >/dev/null
15619 then
15620 # We have reworked collect2
15621 hardcode_direct=yes
15622 else
15623 # We have old collect2
15624 hardcode_direct=unsupported
15625 # It fails to find uninstalled libraries when the uninstalled
15626 # path is not listed in the libpath. Setting hardcode_minus_L
15627 # to unsupported forces relinking
15628 hardcode_minus_L=yes
15629 hardcode_libdir_flag_spec='-L$libdir'
15630 hardcode_libdir_separator=
15633 esac
15634 shared_flag='-shared'
15635 if test "$aix_use_runtimelinking" = yes; then
15636 shared_flag="$shared_flag "'${wl}-G'
15638 else
15639 # not using gcc
15640 if test "$host_cpu" = ia64; then
15641 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15642 # chokes on -Wl,-G. The following line is correct:
15643 shared_flag='-G'
15644 else
15645 if test "$aix_use_runtimelinking" = yes; then
15646 shared_flag='${wl}-G'
15647 else
15648 shared_flag='${wl}-bM:SRE'
15653 # It seems that -bexpall does not export symbols beginning with
15654 # underscore (_), so it is better to generate a list of symbols to export.
15655 always_export_symbols=yes
15656 if test "$aix_use_runtimelinking" = yes; then
15657 # Warning - without using the other runtime loading flags (-brtl),
15658 # -berok will link without error, but may produce a broken library.
15659 allow_undefined_flag='-berok'
15660 # Determine the default libpath from the value encoded in an empty executable.
15661 cat >conftest.$ac_ext <<_ACEOF
15662 /* confdefs.h. */
15663 _ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15669 main ()
15673 return 0;
15675 _ACEOF
15676 rm -f conftest.$ac_objext conftest$ac_exeext
15677 if { (ac_try="$ac_link"
15678 case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15681 esac
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_link") 2>conftest.er1
15684 ac_status=$?
15685 grep -v '^ *+' conftest.er1 >conftest.err
15686 rm -f conftest.er1
15687 cat conftest.err >&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } &&
15690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15691 { (case "(($ac_try" in
15692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693 *) ac_try_echo=$ac_try;;
15694 esac
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696 (eval "$ac_try") 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; } &&
15700 { ac_try='test -s conftest$ac_exeext'
15701 { (case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704 esac
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_try") 2>&5
15707 ac_status=$?
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; }; then
15711 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15713 # Check for a 64-bit object if we didn't find anything.
15714 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; }
15715 }'`; fi
15716 else
15717 echo "$as_me: failed program was:" >&5
15718 sed 's/^/| /' conftest.$ac_ext >&5
15723 rm -f core conftest.err conftest.$ac_objext \
15724 conftest$ac_exeext conftest.$ac_ext
15725 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15727 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15728 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"
15729 else
15730 if test "$host_cpu" = ia64; then
15731 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15732 allow_undefined_flag="-z nodefs"
15733 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"
15734 else
15735 # Determine the default libpath from the value encoded in an empty executable.
15736 cat >conftest.$ac_ext <<_ACEOF
15737 /* confdefs.h. */
15738 _ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15744 main ()
15748 return 0;
15750 _ACEOF
15751 rm -f conftest.$ac_objext conftest$ac_exeext
15752 if { (ac_try="$ac_link"
15753 case "(($ac_try" in
15754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755 *) ac_try_echo=$ac_try;;
15756 esac
15757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758 (eval "$ac_link") 2>conftest.er1
15759 ac_status=$?
15760 grep -v '^ *+' conftest.er1 >conftest.err
15761 rm -f conftest.er1
15762 cat conftest.err >&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } &&
15765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15766 { (case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15769 esac
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_try") 2>&5
15772 ac_status=$?
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; } &&
15775 { ac_try='test -s conftest$ac_exeext'
15776 { (case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15779 esac
15780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781 (eval "$ac_try") 2>&5
15782 ac_status=$?
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; }; then
15786 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15788 # Check for a 64-bit object if we didn't find anything.
15789 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; }
15790 }'`; fi
15791 else
15792 echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15798 rm -f core conftest.err conftest.$ac_objext \
15799 conftest$ac_exeext conftest.$ac_ext
15800 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15802 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15803 # Warning - without using the other run time loading flags,
15804 # -berok will link without error, but may produce a broken library.
15805 no_undefined_flag=' ${wl}-bernotok'
15806 allow_undefined_flag=' ${wl}-berok'
15807 # Exported symbols can be pulled into shared objects from archives
15808 whole_archive_flag_spec='$convenience'
15809 archive_cmds_need_lc=yes
15810 # This is similar to how AIX traditionally builds its shared libraries.
15811 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'
15816 amigaos*)
15817 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)'
15818 hardcode_libdir_flag_spec='-L$libdir'
15819 hardcode_minus_L=yes
15820 # see comment about different semantics on the GNU ld section
15821 ld_shlibs=no
15824 bsdi[45]*)
15825 export_dynamic_flag_spec=-rdynamic
15828 cygwin* | mingw* | pw32*)
15829 # When not using gcc, we currently assume that we are using
15830 # Microsoft Visual C++.
15831 # hardcode_libdir_flag_spec is actually meaningless, as there is
15832 # no search path for DLLs.
15833 hardcode_libdir_flag_spec=' '
15834 allow_undefined_flag=unsupported
15835 # Tell ltmain to make .lib files, not .a files.
15836 libext=lib
15837 # Tell ltmain to make .dll files, not .so files.
15838 shrext_cmds=".dll"
15839 # FIXME: Setting linknames here is a bad hack.
15840 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15841 # The linker will automatically build a .lib file if we build a DLL.
15842 old_archive_From_new_cmds='true'
15843 # FIXME: Should let the user specify the lib program.
15844 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15845 fix_srcfile_path='`cygpath -w "$srcfile"`'
15846 enable_shared_with_static_runtimes=yes
15849 darwin* | rhapsody*)
15850 case $host_os in
15851 rhapsody* | darwin1.[012])
15852 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15854 *) # Darwin 1.3 on
15855 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15856 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15857 else
15858 case ${MACOSX_DEPLOYMENT_TARGET} in
15859 10.[012])
15860 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15862 10.*)
15863 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15865 esac
15868 esac
15869 archive_cmds_need_lc=no
15870 hardcode_direct=no
15871 hardcode_automatic=yes
15872 hardcode_shlibpath_var=unsupported
15873 whole_archive_flag_spec=''
15874 link_all_deplibs=yes
15875 if test "$GCC" = yes ; then
15876 output_verbose_link_cmd='echo'
15877 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15878 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15879 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15880 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}'
15881 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}'
15882 else
15883 case $cc_basename in
15884 xlc*)
15885 output_verbose_link_cmd='echo'
15886 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15887 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15888 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15889 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}'
15890 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}'
15893 ld_shlibs=no
15895 esac
15899 dgux*)
15900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15901 hardcode_libdir_flag_spec='-L$libdir'
15902 hardcode_shlibpath_var=no
15905 freebsd1*)
15906 ld_shlibs=no
15909 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15910 # support. Future versions do this automatically, but an explicit c++rt0.o
15911 # does not break anything, and helps significantly (at the cost of a little
15912 # extra space).
15913 freebsd2.2*)
15914 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15915 hardcode_libdir_flag_spec='-R$libdir'
15916 hardcode_direct=yes
15917 hardcode_shlibpath_var=no
15920 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15921 freebsd2*)
15922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15923 hardcode_direct=yes
15924 hardcode_minus_L=yes
15925 hardcode_shlibpath_var=no
15928 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15929 freebsd* | kfreebsd*-gnu | dragonfly*)
15930 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15931 hardcode_libdir_flag_spec='-R$libdir'
15932 hardcode_direct=yes
15933 hardcode_shlibpath_var=no
15936 hpux9*)
15937 if test "$GCC" = yes; then
15938 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'
15939 else
15940 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'
15942 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15943 hardcode_libdir_separator=:
15944 hardcode_direct=yes
15946 # hardcode_minus_L: Not really in the search PATH,
15947 # but as the default location of the library.
15948 hardcode_minus_L=yes
15949 export_dynamic_flag_spec='${wl}-E'
15952 hpux10*)
15953 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15954 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15955 else
15956 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15958 if test "$with_gnu_ld" = no; then
15959 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15960 hardcode_libdir_separator=:
15962 hardcode_direct=yes
15963 export_dynamic_flag_spec='${wl}-E'
15965 # hardcode_minus_L: Not really in the search PATH,
15966 # but as the default location of the library.
15967 hardcode_minus_L=yes
15971 hpux11*)
15972 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15973 case $host_cpu in
15974 hppa*64*)
15975 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15977 ia64*)
15978 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15981 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15983 esac
15984 else
15985 case $host_cpu in
15986 hppa*64*)
15987 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15989 ia64*)
15990 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15993 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15995 esac
15997 if test "$with_gnu_ld" = no; then
15998 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15999 hardcode_libdir_separator=:
16001 case $host_cpu in
16002 hppa*64*|ia64*)
16003 hardcode_libdir_flag_spec_ld='+b $libdir'
16004 hardcode_direct=no
16005 hardcode_shlibpath_var=no
16008 hardcode_direct=yes
16009 export_dynamic_flag_spec='${wl}-E'
16011 # hardcode_minus_L: Not really in the search PATH,
16012 # but as the default location of the library.
16013 hardcode_minus_L=yes
16015 esac
16019 irix5* | irix6* | nonstopux*)
16020 if test "$GCC" = yes; then
16021 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'
16022 else
16023 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'
16024 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16027 hardcode_libdir_separator=:
16028 link_all_deplibs=yes
16031 netbsd*)
16032 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16033 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16034 else
16035 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16037 hardcode_libdir_flag_spec='-R$libdir'
16038 hardcode_direct=yes
16039 hardcode_shlibpath_var=no
16042 newsos6)
16043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16044 hardcode_direct=yes
16045 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16046 hardcode_libdir_separator=:
16047 hardcode_shlibpath_var=no
16050 openbsd*)
16051 hardcode_direct=yes
16052 hardcode_shlibpath_var=no
16053 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16054 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16055 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16056 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16057 export_dynamic_flag_spec='${wl}-E'
16058 else
16059 case $host_os in
16060 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16062 hardcode_libdir_flag_spec='-R$libdir'
16065 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16066 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16068 esac
16072 os2*)
16073 hardcode_libdir_flag_spec='-L$libdir'
16074 hardcode_minus_L=yes
16075 allow_undefined_flag=unsupported
16076 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'
16077 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16080 osf3*)
16081 if test "$GCC" = yes; then
16082 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16083 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'
16084 else
16085 allow_undefined_flag=' -expect_unresolved \*'
16086 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'
16088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16089 hardcode_libdir_separator=:
16092 osf4* | osf5*) # as osf3* with the addition of -msym flag
16093 if test "$GCC" = yes; then
16094 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16095 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'
16096 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16097 else
16098 allow_undefined_flag=' -expect_unresolved \*'
16099 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'
16100 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16101 $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'
16103 # Both c and cxx compiler support -rpath directly
16104 hardcode_libdir_flag_spec='-rpath $libdir'
16106 hardcode_libdir_separator=:
16109 solaris*)
16110 no_undefined_flag=' -z text'
16111 if test "$GCC" = yes; then
16112 wlarc='${wl}'
16113 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16114 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16115 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16116 else
16117 wlarc=''
16118 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16119 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16120 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16122 hardcode_libdir_flag_spec='-R$libdir'
16123 hardcode_shlibpath_var=no
16124 case $host_os in
16125 solaris2.[0-5] | solaris2.[0-5].*) ;;
16127 # The compiler driver will combine linker options so we
16128 # cannot just pass the convience library names through
16129 # without $wl, iff we do not link with $LD.
16130 # Luckily, gcc supports the same syntax we need for Sun Studio.
16131 # Supported since Solaris 2.6 (maybe 2.5.1?)
16132 case $wlarc in
16134 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16136 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' ;;
16137 esac ;;
16138 esac
16139 link_all_deplibs=yes
16142 sunos4*)
16143 if test "x$host_vendor" = xsequent; then
16144 # Use $CC to link under sequent, because it throws in some extra .o
16145 # files that make .init and .fini sections work.
16146 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16147 else
16148 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16150 hardcode_libdir_flag_spec='-L$libdir'
16151 hardcode_direct=yes
16152 hardcode_minus_L=yes
16153 hardcode_shlibpath_var=no
16156 sysv4)
16157 case $host_vendor in
16158 sni)
16159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16160 hardcode_direct=yes # is this really true???
16162 siemens)
16163 ## LD is ld it makes a PLAMLIB
16164 ## CC just makes a GrossModule.
16165 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16166 reload_cmds='$CC -r -o $output$reload_objs'
16167 hardcode_direct=no
16169 motorola)
16170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16173 esac
16174 runpath_var='LD_RUN_PATH'
16175 hardcode_shlibpath_var=no
16178 sysv4.3*)
16179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180 hardcode_shlibpath_var=no
16181 export_dynamic_flag_spec='-Bexport'
16184 sysv4*MP*)
16185 if test -d /usr/nec; then
16186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187 hardcode_shlibpath_var=no
16188 runpath_var=LD_RUN_PATH
16189 hardcode_runpath_var=yes
16190 ld_shlibs=yes
16194 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16195 no_undefined_flag='${wl}-z,text'
16196 archive_cmds_need_lc=no
16197 hardcode_shlibpath_var=no
16198 runpath_var='LD_RUN_PATH'
16200 if test "$GCC" = yes; then
16201 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16202 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16203 else
16204 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16205 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16209 sysv5* | sco3.2v5* | sco5v6*)
16210 # Note: We can NOT use -z defs as we might desire, because we do not
16211 # link with -lc, and that would cause any symbols used from libc to
16212 # always be unresolved, which means just about no library would
16213 # ever link correctly. If we're not using GNU ld we use -z text
16214 # though, which does catch some bad symbols but isn't as heavy-handed
16215 # as -z defs.
16216 no_undefined_flag='${wl}-z,text'
16217 allow_undefined_flag='${wl}-z,nodefs'
16218 archive_cmds_need_lc=no
16219 hardcode_shlibpath_var=no
16220 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16221 hardcode_libdir_separator=':'
16222 link_all_deplibs=yes
16223 export_dynamic_flag_spec='${wl}-Bexport'
16224 runpath_var='LD_RUN_PATH'
16226 if test "$GCC" = yes; then
16227 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16228 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16229 else
16230 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16231 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16235 uts4*)
16236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16237 hardcode_libdir_flag_spec='-L$libdir'
16238 hardcode_shlibpath_var=no
16242 ld_shlibs=no
16244 esac
16247 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16248 echo "${ECHO_T}$ld_shlibs" >&6; }
16249 test "$ld_shlibs" = no && can_build_shared=no
16252 # Do we need to explicitly link libc?
16254 case "x$archive_cmds_need_lc" in
16255 x|xyes)
16256 # Assume -lc should be added
16257 archive_cmds_need_lc=yes
16259 if test "$enable_shared" = yes && test "$GCC" = yes; then
16260 case $archive_cmds in
16261 *'~'*)
16262 # FIXME: we may have to deal with multi-command sequences.
16264 '$CC '*)
16265 # Test whether the compiler implicitly links with -lc since on some
16266 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16267 # to ld, don't add -lc before -lgcc.
16268 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16269 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16270 $rm conftest*
16271 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16274 (eval $ac_compile) 2>&5
16275 ac_status=$?
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } 2>conftest.err; then
16278 soname=conftest
16279 lib=conftest
16280 libobjs=conftest.$ac_objext
16281 deplibs=
16282 wl=$lt_prog_compiler_wl
16283 pic_flag=$lt_prog_compiler_pic
16284 compiler_flags=-v
16285 linker_flags=-v
16286 verstring=
16287 output_objdir=.
16288 libname=conftest
16289 lt_save_allow_undefined_flag=$allow_undefined_flag
16290 allow_undefined_flag=
16291 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16292 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }
16296 then
16297 archive_cmds_need_lc=no
16298 else
16299 archive_cmds_need_lc=yes
16301 allow_undefined_flag=$lt_save_allow_undefined_flag
16302 else
16303 cat conftest.err 1>&5
16305 $rm conftest*
16306 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16307 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16309 esac
16312 esac
16314 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16315 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16316 library_names_spec=
16317 libname_spec='lib$name'
16318 soname_spec=
16319 shrext_cmds=".so"
16320 postinstall_cmds=
16321 postuninstall_cmds=
16322 finish_cmds=
16323 finish_eval=
16324 shlibpath_var=
16325 shlibpath_overrides_runpath=unknown
16326 version_type=none
16327 dynamic_linker="$host_os ld.so"
16328 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16329 if test "$GCC" = yes; then
16330 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16331 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16332 # if the path contains ";" then we assume it to be the separator
16333 # otherwise default to the standard path separator (i.e. ":") - it is
16334 # assumed that no part of a normal pathname contains ";" but that should
16335 # okay in the real world where ";" in dirpaths is itself problematic.
16336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16337 else
16338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16340 else
16341 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16343 need_lib_prefix=unknown
16344 hardcode_into_libs=no
16346 # when you set need_version to no, make sure it does not cause -set_version
16347 # flags to be left without arguments
16348 need_version=unknown
16350 case $host_os in
16351 aix3*)
16352 version_type=linux
16353 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16354 shlibpath_var=LIBPATH
16356 # AIX 3 has no versioning support, so we append a major version to the name.
16357 soname_spec='${libname}${release}${shared_ext}$major'
16360 aix4* | aix5*)
16361 version_type=linux
16362 need_lib_prefix=no
16363 need_version=no
16364 hardcode_into_libs=yes
16365 if test "$host_cpu" = ia64; then
16366 # AIX 5 supports IA64
16367 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16368 shlibpath_var=LD_LIBRARY_PATH
16369 else
16370 # With GCC up to 2.95.x, collect2 would create an import file
16371 # for dependence libraries. The import file would start with
16372 # the line `#! .'. This would cause the generated library to
16373 # depend on `.', always an invalid library. This was fixed in
16374 # development snapshots of GCC prior to 3.0.
16375 case $host_os in
16376 aix4 | aix4.[01] | aix4.[01].*)
16377 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16378 echo ' yes '
16379 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16381 else
16382 can_build_shared=no
16385 esac
16386 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16387 # soname into executable. Probably we can add versioning support to
16388 # collect2, so additional links can be useful in future.
16389 if test "$aix_use_runtimelinking" = yes; then
16390 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16391 # instead of lib<name>.a to let people know that these are not
16392 # typical AIX shared libraries.
16393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16394 else
16395 # We preserve .a as extension for shared libraries through AIX4.2
16396 # and later when we are not doing run time linking.
16397 library_names_spec='${libname}${release}.a $libname.a'
16398 soname_spec='${libname}${release}${shared_ext}$major'
16400 shlibpath_var=LIBPATH
16404 amigaos*)
16405 library_names_spec='$libname.ixlibrary $libname.a'
16406 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16407 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'
16410 beos*)
16411 library_names_spec='${libname}${shared_ext}'
16412 dynamic_linker="$host_os ld.so"
16413 shlibpath_var=LIBRARY_PATH
16416 bsdi[45]*)
16417 version_type=linux
16418 need_version=no
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420 soname_spec='${libname}${release}${shared_ext}$major'
16421 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16424 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16425 # the default ld.so.conf also contains /usr/contrib/lib and
16426 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16427 # libtool to hard-code these into programs
16430 cygwin* | mingw* | pw32*)
16431 version_type=windows
16432 shrext_cmds=".dll"
16433 need_version=no
16434 need_lib_prefix=no
16436 case $GCC,$host_os in
16437 yes,cygwin* | yes,mingw* | yes,pw32*)
16438 library_names_spec='$libname.dll.a'
16439 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16440 postinstall_cmds='base_file=`basename \${file}`~
16441 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16442 dldir=$destdir/`dirname \$dlpath`~
16443 test -d \$dldir || mkdir -p \$dldir~
16444 $install_prog $dir/$dlname \$dldir/$dlname~
16445 chmod a+x \$dldir/$dlname'
16446 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16447 dlpath=$dir/\$dldll~
16448 $rm \$dlpath'
16449 shlibpath_overrides_runpath=yes
16451 case $host_os in
16452 cygwin*)
16453 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16454 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16455 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16457 mingw*)
16458 # MinGW DLLs use traditional 'lib' prefix
16459 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16460 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16461 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16462 # It is most probably a Windows format PATH printed by
16463 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16464 # path with ; separators, and with drive letters. We can handle the
16465 # drive letters (cygwin fileutils understands them), so leave them,
16466 # especially as we might pass files found there to a mingw objdump,
16467 # which wouldn't understand a cygwinified path. Ahh.
16468 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16469 else
16470 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16473 pw32*)
16474 # pw32 DLLs use 'pw' prefix rather than 'lib'
16475 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16477 esac
16481 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16483 esac
16484 dynamic_linker='Win32 ld.exe'
16485 # FIXME: first we should search . and the directory the executable is in
16486 shlibpath_var=PATH
16489 darwin* | rhapsody*)
16490 dynamic_linker="$host_os dyld"
16491 version_type=darwin
16492 need_lib_prefix=no
16493 need_version=no
16494 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16495 soname_spec='${libname}${release}${major}$shared_ext'
16496 shlibpath_overrides_runpath=yes
16497 shlibpath_var=DYLD_LIBRARY_PATH
16498 shrext_cmds='.dylib'
16499 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16500 if test "$GCC" = yes; then
16501 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"`
16502 else
16503 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16505 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16508 dgux*)
16509 version_type=linux
16510 need_lib_prefix=no
16511 need_version=no
16512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16513 soname_spec='${libname}${release}${shared_ext}$major'
16514 shlibpath_var=LD_LIBRARY_PATH
16517 freebsd1*)
16518 dynamic_linker=no
16521 kfreebsd*-gnu)
16522 version_type=linux
16523 need_lib_prefix=no
16524 need_version=no
16525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16526 soname_spec='${libname}${release}${shared_ext}$major'
16527 shlibpath_var=LD_LIBRARY_PATH
16528 shlibpath_overrides_runpath=no
16529 hardcode_into_libs=yes
16530 dynamic_linker='GNU ld.so'
16533 freebsd* | dragonfly*)
16534 # DragonFly does not have aout. When/if they implement a new
16535 # versioning mechanism, adjust this.
16536 if test -x /usr/bin/objformat; then
16537 objformat=`/usr/bin/objformat`
16538 else
16539 case $host_os in
16540 freebsd[123]*) objformat=aout ;;
16541 *) objformat=elf ;;
16542 esac
16544 version_type=freebsd-$objformat
16545 case $version_type in
16546 freebsd-elf*)
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16548 need_version=no
16549 need_lib_prefix=no
16551 freebsd-*)
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16553 need_version=yes
16555 esac
16556 shlibpath_var=LD_LIBRARY_PATH
16557 case $host_os in
16558 freebsd2*)
16559 shlibpath_overrides_runpath=yes
16561 freebsd3.[01]* | freebsdelf3.[01]*)
16562 shlibpath_overrides_runpath=yes
16563 hardcode_into_libs=yes
16565 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16566 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16567 shlibpath_overrides_runpath=no
16568 hardcode_into_libs=yes
16570 freebsd*) # from 4.6 on
16571 shlibpath_overrides_runpath=yes
16572 hardcode_into_libs=yes
16574 esac
16577 gnu*)
16578 version_type=linux
16579 need_lib_prefix=no
16580 need_version=no
16581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16582 soname_spec='${libname}${release}${shared_ext}$major'
16583 shlibpath_var=LD_LIBRARY_PATH
16584 hardcode_into_libs=yes
16587 hpux9* | hpux10* | hpux11*)
16588 # Give a soname corresponding to the major version so that dld.sl refuses to
16589 # link against other versions.
16590 version_type=sunos
16591 need_lib_prefix=no
16592 need_version=no
16593 case $host_cpu in
16594 ia64*)
16595 shrext_cmds='.so'
16596 hardcode_into_libs=yes
16597 dynamic_linker="$host_os dld.so"
16598 shlibpath_var=LD_LIBRARY_PATH
16599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16601 soname_spec='${libname}${release}${shared_ext}$major'
16602 if test "X$HPUX_IA64_MODE" = X32; then
16603 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16604 else
16605 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16607 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16609 hppa*64*)
16610 shrext_cmds='.sl'
16611 hardcode_into_libs=yes
16612 dynamic_linker="$host_os dld.sl"
16613 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16616 soname_spec='${libname}${release}${shared_ext}$major'
16617 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16618 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16621 shrext_cmds='.sl'
16622 dynamic_linker="$host_os dld.sl"
16623 shlibpath_var=SHLIB_PATH
16624 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16626 soname_spec='${libname}${release}${shared_ext}$major'
16628 esac
16629 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16630 postinstall_cmds='chmod 555 $lib'
16633 interix3*)
16634 version_type=linux
16635 need_lib_prefix=no
16636 need_version=no
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16638 soname_spec='${libname}${release}${shared_ext}$major'
16639 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16640 shlibpath_var=LD_LIBRARY_PATH
16641 shlibpath_overrides_runpath=no
16642 hardcode_into_libs=yes
16645 irix5* | irix6* | nonstopux*)
16646 case $host_os in
16647 nonstopux*) version_type=nonstopux ;;
16649 if test "$lt_cv_prog_gnu_ld" = yes; then
16650 version_type=linux
16651 else
16652 version_type=irix
16653 fi ;;
16654 esac
16655 need_lib_prefix=no
16656 need_version=no
16657 soname_spec='${libname}${release}${shared_ext}$major'
16658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16659 case $host_os in
16660 irix5* | nonstopux*)
16661 libsuff= shlibsuff=
16664 case $LD in # libtool.m4 will add one of these switches to LD
16665 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16666 libsuff= shlibsuff= libmagic=32-bit;;
16667 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16668 libsuff=32 shlibsuff=N32 libmagic=N32;;
16669 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16670 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16671 *) libsuff= shlibsuff= libmagic=never-match;;
16672 esac
16674 esac
16675 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16676 shlibpath_overrides_runpath=no
16677 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16678 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16679 hardcode_into_libs=yes
16682 # No shared lib support for Linux oldld, aout, or coff.
16683 linux*oldld* | linux*aout* | linux*coff*)
16684 dynamic_linker=no
16687 # This must be Linux ELF.
16688 linux*)
16689 version_type=linux
16690 need_lib_prefix=no
16691 need_version=no
16692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693 soname_spec='${libname}${release}${shared_ext}$major'
16694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16695 shlibpath_var=LD_LIBRARY_PATH
16696 shlibpath_overrides_runpath=no
16697 # This implies no fast_install, which is unacceptable.
16698 # Some rework will be needed to allow for fast_install
16699 # before this can be enabled.
16700 hardcode_into_libs=yes
16702 # Append ld.so.conf contents to the search path
16703 if test -f /etc/ld.so.conf; then
16704 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' ' '`
16705 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16708 # We used to test for /lib/ld.so.1 and disable shared libraries on
16709 # powerpc, because MkLinux only supported shared libraries with the
16710 # GNU dynamic linker. Since this was broken with cross compilers,
16711 # most powerpc-linux boxes support dynamic linking these days and
16712 # people can always --disable-shared, the test was removed, and we
16713 # assume the GNU/Linux dynamic linker is in use.
16714 dynamic_linker='GNU/Linux ld.so'
16717 knetbsd*-gnu)
16718 version_type=linux
16719 need_lib_prefix=no
16720 need_version=no
16721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16722 soname_spec='${libname}${release}${shared_ext}$major'
16723 shlibpath_var=LD_LIBRARY_PATH
16724 shlibpath_overrides_runpath=no
16725 hardcode_into_libs=yes
16726 dynamic_linker='GNU ld.so'
16729 netbsd*)
16730 version_type=sunos
16731 need_lib_prefix=no
16732 need_version=no
16733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16736 dynamic_linker='NetBSD (a.out) ld.so'
16737 else
16738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16739 soname_spec='${libname}${release}${shared_ext}$major'
16740 dynamic_linker='NetBSD ld.elf_so'
16742 shlibpath_var=LD_LIBRARY_PATH
16743 shlibpath_overrides_runpath=yes
16744 hardcode_into_libs=yes
16747 newsos6)
16748 version_type=linux
16749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16750 shlibpath_var=LD_LIBRARY_PATH
16751 shlibpath_overrides_runpath=yes
16754 nto-qnx*)
16755 version_type=linux
16756 need_lib_prefix=no
16757 need_version=no
16758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759 soname_spec='${libname}${release}${shared_ext}$major'
16760 shlibpath_var=LD_LIBRARY_PATH
16761 shlibpath_overrides_runpath=yes
16764 openbsd*)
16765 version_type=sunos
16766 sys_lib_dlsearch_path_spec="/usr/lib"
16767 need_lib_prefix=no
16768 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16769 case $host_os in
16770 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16771 *) need_version=no ;;
16772 esac
16773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16775 shlibpath_var=LD_LIBRARY_PATH
16776 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16777 case $host_os in
16778 openbsd2.[89] | openbsd2.[89].*)
16779 shlibpath_overrides_runpath=no
16782 shlibpath_overrides_runpath=yes
16784 esac
16785 else
16786 shlibpath_overrides_runpath=yes
16790 os2*)
16791 libname_spec='$name'
16792 shrext_cmds=".dll"
16793 need_lib_prefix=no
16794 library_names_spec='$libname${shared_ext} $libname.a'
16795 dynamic_linker='OS/2 ld.exe'
16796 shlibpath_var=LIBPATH
16799 osf3* | osf4* | osf5*)
16800 version_type=osf
16801 need_lib_prefix=no
16802 need_version=no
16803 soname_spec='${libname}${release}${shared_ext}$major'
16804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16805 shlibpath_var=LD_LIBRARY_PATH
16806 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16807 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16810 solaris*)
16811 version_type=linux
16812 need_lib_prefix=no
16813 need_version=no
16814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16815 soname_spec='${libname}${release}${shared_ext}$major'
16816 shlibpath_var=LD_LIBRARY_PATH
16817 shlibpath_overrides_runpath=yes
16818 hardcode_into_libs=yes
16819 # ldd complains unless libraries are executable
16820 postinstall_cmds='chmod +x $lib'
16823 sunos4*)
16824 version_type=sunos
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16826 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16827 shlibpath_var=LD_LIBRARY_PATH
16828 shlibpath_overrides_runpath=yes
16829 if test "$with_gnu_ld" = yes; then
16830 need_lib_prefix=no
16832 need_version=yes
16835 sysv4 | sysv4.3*)
16836 version_type=linux
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838 soname_spec='${libname}${release}${shared_ext}$major'
16839 shlibpath_var=LD_LIBRARY_PATH
16840 case $host_vendor in
16841 sni)
16842 shlibpath_overrides_runpath=no
16843 need_lib_prefix=no
16844 export_dynamic_flag_spec='${wl}-Blargedynsym'
16845 runpath_var=LD_RUN_PATH
16847 siemens)
16848 need_lib_prefix=no
16850 motorola)
16851 need_lib_prefix=no
16852 need_version=no
16853 shlibpath_overrides_runpath=no
16854 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16856 esac
16859 sysv4*MP*)
16860 if test -d /usr/nec ;then
16861 version_type=linux
16862 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16863 soname_spec='$libname${shared_ext}.$major'
16864 shlibpath_var=LD_LIBRARY_PATH
16868 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16869 version_type=freebsd-elf
16870 need_lib_prefix=no
16871 need_version=no
16872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16873 soname_spec='${libname}${release}${shared_ext}$major'
16874 shlibpath_var=LD_LIBRARY_PATH
16875 hardcode_into_libs=yes
16876 if test "$with_gnu_ld" = yes; then
16877 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16878 shlibpath_overrides_runpath=no
16879 else
16880 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16881 shlibpath_overrides_runpath=yes
16882 case $host_os in
16883 sco3.2v5*)
16884 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16886 esac
16888 sys_lib_dlsearch_path_spec='/usr/lib'
16891 uts4*)
16892 version_type=linux
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894 soname_spec='${libname}${release}${shared_ext}$major'
16895 shlibpath_var=LD_LIBRARY_PATH
16899 dynamic_linker=no
16901 esac
16902 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16903 echo "${ECHO_T}$dynamic_linker" >&6; }
16904 test "$dynamic_linker" = no && can_build_shared=no
16906 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16907 if test "$GCC" = yes; then
16908 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16911 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16912 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16913 hardcode_action=
16914 if test -n "$hardcode_libdir_flag_spec" || \
16915 test -n "$runpath_var" || \
16916 test "X$hardcode_automatic" = "Xyes" ; then
16918 # We can hardcode non-existant directories.
16919 if test "$hardcode_direct" != no &&
16920 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16921 # have to relink, otherwise we might link with an installed library
16922 # when we should be linking with a yet-to-be-installed one
16923 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16924 test "$hardcode_minus_L" != no; then
16925 # Linking always hardcodes the temporary library directory.
16926 hardcode_action=relink
16927 else
16928 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16929 hardcode_action=immediate
16931 else
16932 # We cannot hardcode anything, or else we can only hardcode existing
16933 # directories.
16934 hardcode_action=unsupported
16936 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16937 echo "${ECHO_T}$hardcode_action" >&6; }
16939 if test "$hardcode_action" = relink; then
16940 # Fast installation is not supported
16941 enable_fast_install=no
16942 elif test "$shlibpath_overrides_runpath" = yes ||
16943 test "$enable_shared" = no; then
16944 # Fast installation is not necessary
16945 enable_fast_install=needless
16948 striplib=
16949 old_striplib=
16950 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16951 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16952 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16953 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16954 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16955 { echo "$as_me:$LINENO: result: yes" >&5
16956 echo "${ECHO_T}yes" >&6; }
16957 else
16958 # FIXME - insert some real tests, host_os isn't really good enough
16959 case $host_os in
16960 darwin*)
16961 if test -n "$STRIP" ; then
16962 striplib="$STRIP -x"
16963 { echo "$as_me:$LINENO: result: yes" >&5
16964 echo "${ECHO_T}yes" >&6; }
16965 else
16966 { echo "$as_me:$LINENO: result: no" >&5
16967 echo "${ECHO_T}no" >&6; }
16971 { echo "$as_me:$LINENO: result: no" >&5
16972 echo "${ECHO_T}no" >&6; }
16974 esac
16977 if test "x$enable_dlopen" != xyes; then
16978 enable_dlopen=unknown
16979 enable_dlopen_self=unknown
16980 enable_dlopen_self_static=unknown
16981 else
16982 lt_cv_dlopen=no
16983 lt_cv_dlopen_libs=
16985 case $host_os in
16986 beos*)
16987 lt_cv_dlopen="load_add_on"
16988 lt_cv_dlopen_libs=
16989 lt_cv_dlopen_self=yes
16992 mingw* | pw32*)
16993 lt_cv_dlopen="LoadLibrary"
16994 lt_cv_dlopen_libs=
16997 cygwin*)
16998 lt_cv_dlopen="dlopen"
16999 lt_cv_dlopen_libs=
17002 darwin*)
17003 # if libdl is installed we need to link against it
17004 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17005 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17006 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17008 else
17009 ac_check_lib_save_LIBS=$LIBS
17010 LIBS="-ldl $LIBS"
17011 cat >conftest.$ac_ext <<_ACEOF
17012 /* confdefs.h. */
17013 _ACEOF
17014 cat confdefs.h >>conftest.$ac_ext
17015 cat >>conftest.$ac_ext <<_ACEOF
17016 /* end confdefs.h. */
17018 /* Override any GCC internal prototype to avoid an error.
17019 Use char because int might match the return type of a GCC
17020 builtin and then its argument prototype would still apply. */
17021 #ifdef __cplusplus
17022 extern "C"
17023 #endif
17024 char dlopen ();
17026 main ()
17028 return dlopen ();
17030 return 0;
17032 _ACEOF
17033 rm -f conftest.$ac_objext conftest$ac_exeext
17034 if { (ac_try="$ac_link"
17035 case "(($ac_try" in
17036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037 *) ac_try_echo=$ac_try;;
17038 esac
17039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 (eval "$ac_link") 2>conftest.er1
17041 ac_status=$?
17042 grep -v '^ *+' conftest.er1 >conftest.err
17043 rm -f conftest.er1
17044 cat conftest.err >&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
17047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17048 { (case "(($ac_try" in
17049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050 *) ac_try_echo=$ac_try;;
17051 esac
17052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053 (eval "$ac_try") 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try='test -s conftest$ac_exeext'
17058 { (case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17061 esac
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_try") 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17067 ac_cv_lib_dl_dlopen=yes
17068 else
17069 echo "$as_me: failed program was:" >&5
17070 sed 's/^/| /' conftest.$ac_ext >&5
17072 ac_cv_lib_dl_dlopen=no
17075 rm -f core conftest.err conftest.$ac_objext \
17076 conftest$ac_exeext conftest.$ac_ext
17077 LIBS=$ac_check_lib_save_LIBS
17079 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17080 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17081 if test $ac_cv_lib_dl_dlopen = yes; then
17082 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17083 else
17085 lt_cv_dlopen="dyld"
17086 lt_cv_dlopen_libs=
17087 lt_cv_dlopen_self=yes
17094 { echo "$as_me:$LINENO: checking for shl_load" >&5
17095 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17096 if test "${ac_cv_func_shl_load+set}" = set; then
17097 echo $ECHO_N "(cached) $ECHO_C" >&6
17098 else
17099 cat >conftest.$ac_ext <<_ACEOF
17100 /* confdefs.h. */
17101 _ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17105 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17107 #define shl_load innocuous_shl_load
17109 /* System header to define __stub macros and hopefully few prototypes,
17110 which can conflict with char shl_load (); below.
17111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17112 <limits.h> exists even on freestanding compilers. */
17114 #ifdef __STDC__
17115 # include <limits.h>
17116 #else
17117 # include <assert.h>
17118 #endif
17120 #undef shl_load
17122 /* Override any GCC internal prototype to avoid an error.
17123 Use char because int might match the return type of a GCC
17124 builtin and then its argument prototype would still apply. */
17125 #ifdef __cplusplus
17126 extern "C"
17127 #endif
17128 char shl_load ();
17129 /* The GNU C library defines this for functions which it implements
17130 to always fail with ENOSYS. Some functions are actually named
17131 something starting with __ and the normal name is an alias. */
17132 #if defined __stub_shl_load || defined __stub___shl_load
17133 choke me
17134 #endif
17137 main ()
17139 return shl_load ();
17141 return 0;
17143 _ACEOF
17144 rm -f conftest.$ac_objext conftest$ac_exeext
17145 if { (ac_try="$ac_link"
17146 case "(($ac_try" in
17147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148 *) ac_try_echo=$ac_try;;
17149 esac
17150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151 (eval "$ac_link") 2>conftest.er1
17152 ac_status=$?
17153 grep -v '^ *+' conftest.er1 >conftest.err
17154 rm -f conftest.er1
17155 cat conftest.err >&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
17158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17159 { (case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17162 esac
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_try") 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; } &&
17168 { ac_try='test -s conftest$ac_exeext'
17169 { (case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17172 esac
17173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174 (eval "$ac_try") 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17178 ac_cv_func_shl_load=yes
17179 else
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 ac_cv_func_shl_load=no
17186 rm -f core conftest.err conftest.$ac_objext \
17187 conftest$ac_exeext conftest.$ac_ext
17189 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17190 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17191 if test $ac_cv_func_shl_load = yes; then
17192 lt_cv_dlopen="shl_load"
17193 else
17194 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17195 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17196 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17198 else
17199 ac_check_lib_save_LIBS=$LIBS
17200 LIBS="-ldld $LIBS"
17201 cat >conftest.$ac_ext <<_ACEOF
17202 /* confdefs.h. */
17203 _ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h. */
17208 /* Override any GCC internal prototype to avoid an error.
17209 Use char because int might match the return type of a GCC
17210 builtin and then its argument prototype would still apply. */
17211 #ifdef __cplusplus
17212 extern "C"
17213 #endif
17214 char shl_load ();
17216 main ()
17218 return shl_load ();
17220 return 0;
17222 _ACEOF
17223 rm -f conftest.$ac_objext conftest$ac_exeext
17224 if { (ac_try="$ac_link"
17225 case "(($ac_try" in
17226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227 *) ac_try_echo=$ac_try;;
17228 esac
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230 (eval "$ac_link") 2>conftest.er1
17231 ac_status=$?
17232 grep -v '^ *+' conftest.er1 >conftest.err
17233 rm -f conftest.er1
17234 cat conftest.err >&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } &&
17237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17238 { (case "(($ac_try" in
17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17241 esac
17242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_try") 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; } &&
17247 { ac_try='test -s conftest$ac_exeext'
17248 { (case "(($ac_try" in
17249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250 *) ac_try_echo=$ac_try;;
17251 esac
17252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17253 (eval "$ac_try") 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17257 ac_cv_lib_dld_shl_load=yes
17258 else
17259 echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.$ac_ext >&5
17262 ac_cv_lib_dld_shl_load=no
17265 rm -f core conftest.err conftest.$ac_objext \
17266 conftest$ac_exeext conftest.$ac_ext
17267 LIBS=$ac_check_lib_save_LIBS
17269 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17270 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17271 if test $ac_cv_lib_dld_shl_load = yes; then
17272 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17273 else
17274 { echo "$as_me:$LINENO: checking for dlopen" >&5
17275 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17276 if test "${ac_cv_func_dlopen+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 else
17279 cat >conftest.$ac_ext <<_ACEOF
17280 /* confdefs.h. */
17281 _ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h. */
17285 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17287 #define dlopen innocuous_dlopen
17289 /* System header to define __stub macros and hopefully few prototypes,
17290 which can conflict with char dlopen (); below.
17291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17292 <limits.h> exists even on freestanding compilers. */
17294 #ifdef __STDC__
17295 # include <limits.h>
17296 #else
17297 # include <assert.h>
17298 #endif
17300 #undef dlopen
17302 /* Override any GCC internal prototype to avoid an error.
17303 Use char because int might match the return type of a GCC
17304 builtin and then its argument prototype would still apply. */
17305 #ifdef __cplusplus
17306 extern "C"
17307 #endif
17308 char dlopen ();
17309 /* The GNU C library defines this for functions which it implements
17310 to always fail with ENOSYS. Some functions are actually named
17311 something starting with __ and the normal name is an alias. */
17312 #if defined __stub_dlopen || defined __stub___dlopen
17313 choke me
17314 #endif
17317 main ()
17319 return dlopen ();
17321 return 0;
17323 _ACEOF
17324 rm -f conftest.$ac_objext conftest$ac_exeext
17325 if { (ac_try="$ac_link"
17326 case "(($ac_try" in
17327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328 *) ac_try_echo=$ac_try;;
17329 esac
17330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331 (eval "$ac_link") 2>conftest.er1
17332 ac_status=$?
17333 grep -v '^ *+' conftest.er1 >conftest.err
17334 rm -f conftest.er1
17335 cat conftest.err >&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); } &&
17338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17339 { (case "(($ac_try" in
17340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341 *) ac_try_echo=$ac_try;;
17342 esac
17343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344 (eval "$ac_try") 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; } &&
17348 { ac_try='test -s conftest$ac_exeext'
17349 { (case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17352 esac
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_try") 2>&5
17355 ac_status=$?
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; }; then
17358 ac_cv_func_dlopen=yes
17359 else
17360 echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17363 ac_cv_func_dlopen=no
17366 rm -f core conftest.err conftest.$ac_objext \
17367 conftest$ac_exeext conftest.$ac_ext
17369 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17370 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17371 if test $ac_cv_func_dlopen = yes; then
17372 lt_cv_dlopen="dlopen"
17373 else
17374 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17375 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17376 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17378 else
17379 ac_check_lib_save_LIBS=$LIBS
17380 LIBS="-ldl $LIBS"
17381 cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h. */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17388 /* Override any GCC internal prototype to avoid an error.
17389 Use char because int might match the return type of a GCC
17390 builtin and then its argument prototype would still apply. */
17391 #ifdef __cplusplus
17392 extern "C"
17393 #endif
17394 char dlopen ();
17396 main ()
17398 return dlopen ();
17400 return 0;
17402 _ACEOF
17403 rm -f conftest.$ac_objext conftest$ac_exeext
17404 if { (ac_try="$ac_link"
17405 case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17408 esac
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_link") 2>conftest.er1
17411 ac_status=$?
17412 grep -v '^ *+' conftest.er1 >conftest.err
17413 rm -f conftest.er1
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } &&
17417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418 { (case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_try") 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; } &&
17427 { ac_try='test -s conftest$ac_exeext'
17428 { (case "(($ac_try" in
17429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17431 esac
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_try") 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 ac_cv_lib_dl_dlopen=yes
17438 else
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17442 ac_cv_lib_dl_dlopen=no
17445 rm -f core conftest.err conftest.$ac_objext \
17446 conftest$ac_exeext conftest.$ac_ext
17447 LIBS=$ac_check_lib_save_LIBS
17449 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17450 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17451 if test $ac_cv_lib_dl_dlopen = yes; then
17452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17453 else
17454 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17455 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17456 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 else
17459 ac_check_lib_save_LIBS=$LIBS
17460 LIBS="-lsvld $LIBS"
17461 cat >conftest.$ac_ext <<_ACEOF
17462 /* confdefs.h. */
17463 _ACEOF
17464 cat confdefs.h >>conftest.$ac_ext
17465 cat >>conftest.$ac_ext <<_ACEOF
17466 /* end confdefs.h. */
17468 /* Override any GCC internal prototype to avoid an error.
17469 Use char because int might match the return type of a GCC
17470 builtin and then its argument prototype would still apply. */
17471 #ifdef __cplusplus
17472 extern "C"
17473 #endif
17474 char dlopen ();
17476 main ()
17478 return dlopen ();
17480 return 0;
17482 _ACEOF
17483 rm -f conftest.$ac_objext conftest$ac_exeext
17484 if { (ac_try="$ac_link"
17485 case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17488 esac
17489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_link") 2>conftest.er1
17491 ac_status=$?
17492 grep -v '^ *+' conftest.er1 >conftest.err
17493 rm -f conftest.er1
17494 cat conftest.err >&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } &&
17497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17498 { (case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17501 esac
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_try") 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest$ac_exeext'
17508 { (case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17511 esac
17512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_try") 2>&5
17514 ac_status=$?
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
17517 ac_cv_lib_svld_dlopen=yes
17518 else
17519 echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17522 ac_cv_lib_svld_dlopen=no
17525 rm -f core conftest.err conftest.$ac_objext \
17526 conftest$ac_exeext conftest.$ac_ext
17527 LIBS=$ac_check_lib_save_LIBS
17529 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17530 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17531 if test $ac_cv_lib_svld_dlopen = yes; then
17532 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17533 else
17534 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17535 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17536 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17538 else
17539 ac_check_lib_save_LIBS=$LIBS
17540 LIBS="-ldld $LIBS"
17541 cat >conftest.$ac_ext <<_ACEOF
17542 /* confdefs.h. */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17548 /* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
17551 #ifdef __cplusplus
17552 extern "C"
17553 #endif
17554 char dld_link ();
17556 main ()
17558 return dld_link ();
17560 return 0;
17562 _ACEOF
17563 rm -f conftest.$ac_objext conftest$ac_exeext
17564 if { (ac_try="$ac_link"
17565 case "(($ac_try" in
17566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567 *) ac_try_echo=$ac_try;;
17568 esac
17569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570 (eval "$ac_link") 2>conftest.er1
17571 ac_status=$?
17572 grep -v '^ *+' conftest.er1 >conftest.err
17573 rm -f conftest.er1
17574 cat conftest.err >&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } &&
17577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17578 { (case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17581 esac
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_try") 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; } &&
17587 { ac_try='test -s conftest$ac_exeext'
17588 { (case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17591 esac
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_try") 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
17597 ac_cv_lib_dld_dld_link=yes
17598 else
17599 echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.$ac_ext >&5
17602 ac_cv_lib_dld_dld_link=no
17605 rm -f core conftest.err conftest.$ac_objext \
17606 conftest$ac_exeext conftest.$ac_ext
17607 LIBS=$ac_check_lib_save_LIBS
17609 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17610 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17611 if test $ac_cv_lib_dld_dld_link = yes; then
17612 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17631 esac
17633 if test "x$lt_cv_dlopen" != xno; then
17634 enable_dlopen=yes
17635 else
17636 enable_dlopen=no
17639 case $lt_cv_dlopen in
17640 dlopen)
17641 save_CPPFLAGS="$CPPFLAGS"
17642 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17644 save_LDFLAGS="$LDFLAGS"
17645 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17647 save_LIBS="$LIBS"
17648 LIBS="$lt_cv_dlopen_libs $LIBS"
17650 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17651 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17652 if test "${lt_cv_dlopen_self+set}" = set; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17654 else
17655 if test "$cross_compiling" = yes; then :
17656 lt_cv_dlopen_self=cross
17657 else
17658 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17659 lt_status=$lt_dlunknown
17660 cat > conftest.$ac_ext <<EOF
17661 #line 17661 "configure"
17662 #include "confdefs.h"
17664 #if HAVE_DLFCN_H
17665 #include <dlfcn.h>
17666 #endif
17668 #include <stdio.h>
17670 #ifdef RTLD_GLOBAL
17671 # define LT_DLGLOBAL RTLD_GLOBAL
17672 #else
17673 # ifdef DL_GLOBAL
17674 # define LT_DLGLOBAL DL_GLOBAL
17675 # else
17676 # define LT_DLGLOBAL 0
17677 # endif
17678 #endif
17680 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17681 find out it does not work in some platform. */
17682 #ifndef LT_DLLAZY_OR_NOW
17683 # ifdef RTLD_LAZY
17684 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17685 # else
17686 # ifdef DL_LAZY
17687 # define LT_DLLAZY_OR_NOW DL_LAZY
17688 # else
17689 # ifdef RTLD_NOW
17690 # define LT_DLLAZY_OR_NOW RTLD_NOW
17691 # else
17692 # ifdef DL_NOW
17693 # define LT_DLLAZY_OR_NOW DL_NOW
17694 # else
17695 # define LT_DLLAZY_OR_NOW 0
17696 # endif
17697 # endif
17698 # endif
17699 # endif
17700 #endif
17702 #ifdef __cplusplus
17703 extern "C" void exit (int);
17704 #endif
17706 void fnord() { int i=42;}
17707 int main ()
17709 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17710 int status = $lt_dlunknown;
17712 if (self)
17714 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17715 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17716 /* dlclose (self); */
17718 else
17719 puts (dlerror ());
17721 exit (status);
17724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17725 (eval $ac_link) 2>&5
17726 ac_status=$?
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17729 (./conftest; exit; ) >&5 2>/dev/null
17730 lt_status=$?
17731 case x$lt_status in
17732 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17733 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17734 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17735 esac
17736 else :
17737 # compilation failed
17738 lt_cv_dlopen_self=no
17741 rm -fr conftest*
17745 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17746 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17748 if test "x$lt_cv_dlopen_self" = xyes; then
17749 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17750 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17751 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17752 if test "${lt_cv_dlopen_self_static+set}" = set; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 else
17755 if test "$cross_compiling" = yes; then :
17756 lt_cv_dlopen_self_static=cross
17757 else
17758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17759 lt_status=$lt_dlunknown
17760 cat > conftest.$ac_ext <<EOF
17761 #line 17761 "configure"
17762 #include "confdefs.h"
17764 #if HAVE_DLFCN_H
17765 #include <dlfcn.h>
17766 #endif
17768 #include <stdio.h>
17770 #ifdef RTLD_GLOBAL
17771 # define LT_DLGLOBAL RTLD_GLOBAL
17772 #else
17773 # ifdef DL_GLOBAL
17774 # define LT_DLGLOBAL DL_GLOBAL
17775 # else
17776 # define LT_DLGLOBAL 0
17777 # endif
17778 #endif
17780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17781 find out it does not work in some platform. */
17782 #ifndef LT_DLLAZY_OR_NOW
17783 # ifdef RTLD_LAZY
17784 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17785 # else
17786 # ifdef DL_LAZY
17787 # define LT_DLLAZY_OR_NOW DL_LAZY
17788 # else
17789 # ifdef RTLD_NOW
17790 # define LT_DLLAZY_OR_NOW RTLD_NOW
17791 # else
17792 # ifdef DL_NOW
17793 # define LT_DLLAZY_OR_NOW DL_NOW
17794 # else
17795 # define LT_DLLAZY_OR_NOW 0
17796 # endif
17797 # endif
17798 # endif
17799 # endif
17800 #endif
17802 #ifdef __cplusplus
17803 extern "C" void exit (int);
17804 #endif
17806 void fnord() { int i=42;}
17807 int main ()
17809 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17810 int status = $lt_dlunknown;
17812 if (self)
17814 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17815 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17816 /* dlclose (self); */
17818 else
17819 puts (dlerror ());
17821 exit (status);
17824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17825 (eval $ac_link) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17829 (./conftest; exit; ) >&5 2>/dev/null
17830 lt_status=$?
17831 case x$lt_status in
17832 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17833 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17834 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17835 esac
17836 else :
17837 # compilation failed
17838 lt_cv_dlopen_self_static=no
17841 rm -fr conftest*
17845 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17846 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17849 CPPFLAGS="$save_CPPFLAGS"
17850 LDFLAGS="$save_LDFLAGS"
17851 LIBS="$save_LIBS"
17853 esac
17855 case $lt_cv_dlopen_self in
17856 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17857 *) enable_dlopen_self=unknown ;;
17858 esac
17860 case $lt_cv_dlopen_self_static in
17861 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17862 *) enable_dlopen_self_static=unknown ;;
17863 esac
17867 # Report which library types will actually be built
17868 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17869 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17870 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17871 echo "${ECHO_T}$can_build_shared" >&6; }
17873 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17874 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17875 test "$can_build_shared" = "no" && enable_shared=no
17877 # On AIX, shared libraries and static libraries use the same namespace, and
17878 # are all built from PIC.
17879 case $host_os in
17880 aix3*)
17881 test "$enable_shared" = yes && enable_static=no
17882 if test -n "$RANLIB"; then
17883 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17884 postinstall_cmds='$RANLIB $lib'
17888 aix4* | aix5*)
17889 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17890 test "$enable_shared" = yes && enable_static=no
17893 esac
17894 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17895 echo "${ECHO_T}$enable_shared" >&6; }
17897 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17898 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17899 # Make sure either enable_shared or enable_static is yes.
17900 test "$enable_shared" = yes || enable_static=yes
17901 { echo "$as_me:$LINENO: result: $enable_static" >&5
17902 echo "${ECHO_T}$enable_static" >&6; }
17904 # The else clause should only fire when bootstrapping the
17905 # libtool distribution, otherwise you forgot to ship ltmain.sh
17906 # with your package, and you will get complaints that there are
17907 # no rules to generate ltmain.sh.
17908 if test -f "$ltmain"; then
17909 # See if we are running on zsh, and set the options which allow our commands through
17910 # without removal of \ escapes.
17911 if test -n "${ZSH_VERSION+set}" ; then
17912 setopt NO_GLOB_SUBST
17914 # Now quote all the things that may contain metacharacters while being
17915 # careful not to overquote the AC_SUBSTed values. We take copies of the
17916 # variables and quote the copies for generation of the libtool script.
17917 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17918 SED SHELL STRIP \
17919 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17920 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17921 deplibs_check_method reload_flag reload_cmds need_locks \
17922 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17923 lt_cv_sys_global_symbol_to_c_name_address \
17924 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17925 old_postinstall_cmds old_postuninstall_cmds \
17926 compiler \
17927 CC \
17928 LD \
17929 lt_prog_compiler_wl \
17930 lt_prog_compiler_pic \
17931 lt_prog_compiler_static \
17932 lt_prog_compiler_no_builtin_flag \
17933 export_dynamic_flag_spec \
17934 thread_safe_flag_spec \
17935 whole_archive_flag_spec \
17936 enable_shared_with_static_runtimes \
17937 old_archive_cmds \
17938 old_archive_from_new_cmds \
17939 predep_objects \
17940 postdep_objects \
17941 predeps \
17942 postdeps \
17943 compiler_lib_search_path \
17944 archive_cmds \
17945 archive_expsym_cmds \
17946 postinstall_cmds \
17947 postuninstall_cmds \
17948 old_archive_from_expsyms_cmds \
17949 allow_undefined_flag \
17950 no_undefined_flag \
17951 export_symbols_cmds \
17952 hardcode_libdir_flag_spec \
17953 hardcode_libdir_flag_spec_ld \
17954 hardcode_libdir_separator \
17955 hardcode_automatic \
17956 module_cmds \
17957 module_expsym_cmds \
17958 lt_cv_prog_compiler_c_o \
17959 exclude_expsyms \
17960 include_expsyms; do
17962 case $var in
17963 old_archive_cmds | \
17964 old_archive_from_new_cmds | \
17965 archive_cmds | \
17966 archive_expsym_cmds | \
17967 module_cmds | \
17968 module_expsym_cmds | \
17969 old_archive_from_expsyms_cmds | \
17970 export_symbols_cmds | \
17971 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17972 postinstall_cmds | postuninstall_cmds | \
17973 old_postinstall_cmds | old_postuninstall_cmds | \
17974 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17975 # Double-quote double-evaled strings.
17976 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17979 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17981 esac
17982 done
17984 case $lt_echo in
17985 *'\$0 --fallback-echo"')
17986 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17988 esac
17990 cfgfile="${ofile}T"
17991 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17992 $rm -f "$cfgfile"
17993 { echo "$as_me:$LINENO: creating $ofile" >&5
17994 echo "$as_me: creating $ofile" >&6;}
17996 cat <<__EOF__ >> "$cfgfile"
17997 #! $SHELL
17999 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18000 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18001 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18003 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18004 # Free Software Foundation, Inc.
18006 # This file is part of GNU Libtool:
18007 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18009 # This program is free software; you can redistribute it and/or modify
18010 # it under the terms of the GNU General Public License as published by
18011 # the Free Software Foundation; either version 2 of the License, or
18012 # (at your option) any later version.
18014 # This program is distributed in the hope that it will be useful, but
18015 # WITHOUT ANY WARRANTY; without even the implied warranty of
18016 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18017 # General Public License for more details.
18019 # You should have received a copy of the GNU General Public License
18020 # along with this program; if not, write to the Free Software
18021 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18023 # As a special exception to the GNU General Public License, if you
18024 # distribute this file as part of a program that contains a
18025 # configuration script generated by Autoconf, you may include it under
18026 # the same distribution terms that you use for the rest of that program.
18028 # A sed program that does not truncate output.
18029 SED=$lt_SED
18031 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18032 Xsed="$SED -e 1s/^X//"
18034 # The HP-UX ksh and POSIX shell print the target directory to stdout
18035 # if CDPATH is set.
18036 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18038 # The names of the tagged configurations supported by this script.
18039 available_tags=
18041 # ### BEGIN LIBTOOL CONFIG
18043 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18045 # Shell to use when invoking shell scripts.
18046 SHELL=$lt_SHELL
18048 # Whether or not to build shared libraries.
18049 build_libtool_libs=$enable_shared
18051 # Whether or not to build static libraries.
18052 build_old_libs=$enable_static
18054 # Whether or not to add -lc for building shared libraries.
18055 build_libtool_need_lc=$archive_cmds_need_lc
18057 # Whether or not to disallow shared libs when runtime libs are static
18058 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18060 # Whether or not to optimize for fast installation.
18061 fast_install=$enable_fast_install
18063 # The host system.
18064 host_alias=$host_alias
18065 host=$host
18066 host_os=$host_os
18068 # The build system.
18069 build_alias=$build_alias
18070 build=$build
18071 build_os=$build_os
18073 # An echo program that does not interpret backslashes.
18074 echo=$lt_echo
18076 # The archiver.
18077 AR=$lt_AR
18078 AR_FLAGS=$lt_AR_FLAGS
18080 # A C compiler.
18081 LTCC=$lt_LTCC
18083 # LTCC compiler flags.
18084 LTCFLAGS=$lt_LTCFLAGS
18086 # A language-specific compiler.
18087 CC=$lt_compiler
18089 # Is the compiler the GNU C compiler?
18090 with_gcc=$GCC
18092 # An ERE matcher.
18093 EGREP=$lt_EGREP
18095 # The linker used to build libraries.
18096 LD=$lt_LD
18098 # Whether we need hard or soft links.
18099 LN_S=$lt_LN_S
18101 # A BSD-compatible nm program.
18102 NM=$lt_NM
18104 # A symbol stripping program
18105 STRIP=$lt_STRIP
18107 # Used to examine libraries when file_magic_cmd begins "file"
18108 MAGIC_CMD=$MAGIC_CMD
18110 # Used on cygwin: DLL creation program.
18111 DLLTOOL="$DLLTOOL"
18113 # Used on cygwin: object dumper.
18114 OBJDUMP="$OBJDUMP"
18116 # Used on cygwin: assembler.
18117 AS="$AS"
18119 # The name of the directory that contains temporary libtool files.
18120 objdir=$objdir
18122 # How to create reloadable object files.
18123 reload_flag=$lt_reload_flag
18124 reload_cmds=$lt_reload_cmds
18126 # How to pass a linker flag through the compiler.
18127 wl=$lt_lt_prog_compiler_wl
18129 # Object file suffix (normally "o").
18130 objext="$ac_objext"
18132 # Old archive suffix (normally "a").
18133 libext="$libext"
18135 # Shared library suffix (normally ".so").
18136 shrext_cmds='$shrext_cmds'
18138 # Executable file suffix (normally "").
18139 exeext="$exeext"
18141 # Additional compiler flags for building library objects.
18142 pic_flag=$lt_lt_prog_compiler_pic
18143 pic_mode=$pic_mode
18145 # What is the maximum length of a command?
18146 max_cmd_len=$lt_cv_sys_max_cmd_len
18148 # Does compiler simultaneously support -c and -o options?
18149 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18151 # Must we lock files when doing compilation?
18152 need_locks=$lt_need_locks
18154 # Do we need the lib prefix for modules?
18155 need_lib_prefix=$need_lib_prefix
18157 # Do we need a version for libraries?
18158 need_version=$need_version
18160 # Whether dlopen is supported.
18161 dlopen_support=$enable_dlopen
18163 # Whether dlopen of programs is supported.
18164 dlopen_self=$enable_dlopen_self
18166 # Whether dlopen of statically linked programs is supported.
18167 dlopen_self_static=$enable_dlopen_self_static
18169 # Compiler flag to prevent dynamic linking.
18170 link_static_flag=$lt_lt_prog_compiler_static
18172 # Compiler flag to turn off builtin functions.
18173 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18175 # Compiler flag to allow reflexive dlopens.
18176 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18178 # Compiler flag to generate shared objects directly from archives.
18179 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18181 # Compiler flag to generate thread-safe objects.
18182 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18184 # Library versioning type.
18185 version_type=$version_type
18187 # Format of library name prefix.
18188 libname_spec=$lt_libname_spec
18190 # List of archive names. First name is the real one, the rest are links.
18191 # The last name is the one that the linker finds with -lNAME.
18192 library_names_spec=$lt_library_names_spec
18194 # The coded name of the library, if different from the real name.
18195 soname_spec=$lt_soname_spec
18197 # Commands used to build and install an old-style archive.
18198 RANLIB=$lt_RANLIB
18199 old_archive_cmds=$lt_old_archive_cmds
18200 old_postinstall_cmds=$lt_old_postinstall_cmds
18201 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18203 # Create an old-style archive from a shared archive.
18204 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18206 # Create a temporary old-style archive to link instead of a shared archive.
18207 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18209 # Commands used to build and install a shared archive.
18210 archive_cmds=$lt_archive_cmds
18211 archive_expsym_cmds=$lt_archive_expsym_cmds
18212 postinstall_cmds=$lt_postinstall_cmds
18213 postuninstall_cmds=$lt_postuninstall_cmds
18215 # Commands used to build a loadable module (assumed same as above if empty)
18216 module_cmds=$lt_module_cmds
18217 module_expsym_cmds=$lt_module_expsym_cmds
18219 # Commands to strip libraries.
18220 old_striplib=$lt_old_striplib
18221 striplib=$lt_striplib
18223 # Dependencies to place before the objects being linked to create a
18224 # shared library.
18225 predep_objects=$lt_predep_objects
18227 # Dependencies to place after the objects being linked to create a
18228 # shared library.
18229 postdep_objects=$lt_postdep_objects
18231 # Dependencies to place before the objects being linked to create a
18232 # shared library.
18233 predeps=$lt_predeps
18235 # Dependencies to place after the objects being linked to create a
18236 # shared library.
18237 postdeps=$lt_postdeps
18239 # The library search path used internally by the compiler when linking
18240 # a shared library.
18241 compiler_lib_search_path=$lt_compiler_lib_search_path
18243 # Method to check whether dependent libraries are shared objects.
18244 deplibs_check_method=$lt_deplibs_check_method
18246 # Command to use when deplibs_check_method == file_magic.
18247 file_magic_cmd=$lt_file_magic_cmd
18249 # Flag that allows shared libraries with undefined symbols to be built.
18250 allow_undefined_flag=$lt_allow_undefined_flag
18252 # Flag that forces no undefined symbols.
18253 no_undefined_flag=$lt_no_undefined_flag
18255 # Commands used to finish a libtool library installation in a directory.
18256 finish_cmds=$lt_finish_cmds
18258 # Same as above, but a single script fragment to be evaled but not shown.
18259 finish_eval=$lt_finish_eval
18261 # Take the output of nm and produce a listing of raw symbols and C names.
18262 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18264 # Transform the output of nm in a proper C declaration
18265 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18267 # Transform the output of nm in a C name address pair
18268 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18270 # This is the shared library runtime path variable.
18271 runpath_var=$runpath_var
18273 # This is the shared library path variable.
18274 shlibpath_var=$shlibpath_var
18276 # Is shlibpath searched before the hard-coded library search path?
18277 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18279 # How to hardcode a shared library path into an executable.
18280 hardcode_action=$hardcode_action
18282 # Whether we should hardcode library paths into libraries.
18283 hardcode_into_libs=$hardcode_into_libs
18285 # Flag to hardcode \$libdir into a binary during linking.
18286 # This must work even if \$libdir does not exist.
18287 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18289 # If ld is used when linking, flag to hardcode \$libdir into
18290 # a binary during linking. This must work even if \$libdir does
18291 # not exist.
18292 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18294 # Whether we need a single -rpath flag with a separated argument.
18295 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18297 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18298 # resulting binary.
18299 hardcode_direct=$hardcode_direct
18301 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18302 # resulting binary.
18303 hardcode_minus_L=$hardcode_minus_L
18305 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18306 # the resulting binary.
18307 hardcode_shlibpath_var=$hardcode_shlibpath_var
18309 # Set to yes if building a shared library automatically hardcodes DIR into the library
18310 # and all subsequent libraries and executables linked against it.
18311 hardcode_automatic=$hardcode_automatic
18313 # Variables whose values should be saved in libtool wrapper scripts and
18314 # restored at relink time.
18315 variables_saved_for_relink="$variables_saved_for_relink"
18317 # Whether libtool must link a program against all its dependency libraries.
18318 link_all_deplibs=$link_all_deplibs
18320 # Compile-time system search path for libraries
18321 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18323 # Run-time system search path for libraries
18324 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18326 # Fix the shell variable \$srcfile for the compiler.
18327 fix_srcfile_path="$fix_srcfile_path"
18329 # Set to yes if exported symbols are required.
18330 always_export_symbols=$always_export_symbols
18332 # The commands to list exported symbols.
18333 export_symbols_cmds=$lt_export_symbols_cmds
18335 # The commands to extract the exported symbol list from a shared archive.
18336 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18338 # Symbols that should not be listed in the preloaded symbols.
18339 exclude_expsyms=$lt_exclude_expsyms
18341 # Symbols that must always be exported.
18342 include_expsyms=$lt_include_expsyms
18344 # ### END LIBTOOL CONFIG
18346 __EOF__
18349 case $host_os in
18350 aix3*)
18351 cat <<\EOF >> "$cfgfile"
18353 # AIX sometimes has problems with the GCC collect2 program. For some
18354 # reason, if we set the COLLECT_NAMES environment variable, the problems
18355 # vanish in a puff of smoke.
18356 if test "X${COLLECT_NAMES+set}" != Xset; then
18357 COLLECT_NAMES=
18358 export COLLECT_NAMES
18362 esac
18364 # We use sed instead of cat because bash on DJGPP gets confused if
18365 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18366 # text mode, it properly converts lines to CR/LF. This bash problem
18367 # is reportedly fixed, but why not run on old versions too?
18368 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18370 mv -f "$cfgfile" "$ofile" || \
18371 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18372 chmod +x "$ofile"
18374 else
18375 # If there is no Makefile yet, we rely on a make rule to execute
18376 # `config.status --recheck' to rerun these tests and create the
18377 # libtool script then.
18378 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18379 if test -f "$ltmain_in"; then
18380 test -f Makefile && make "$ltmain"
18385 ac_ext=c
18386 ac_cpp='$CPP $CPPFLAGS'
18387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18391 CC="$lt_save_CC"
18394 # Check whether --with-tags was given.
18395 if test "${with_tags+set}" = set; then
18396 withval=$with_tags; tagnames="$withval"
18400 if test -f "$ltmain" && test -n "$tagnames"; then
18401 if test ! -f "${ofile}"; then
18402 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18403 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18406 if test -z "$LTCC"; then
18407 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18408 if test -z "$LTCC"; then
18409 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18410 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18411 else
18412 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18413 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18416 if test -z "$LTCFLAGS"; then
18417 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18420 # Extract list of available tagged configurations in $ofile.
18421 # Note that this assumes the entire list is on one line.
18422 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18425 for tagname in $tagnames; do
18426 IFS="$lt_save_ifs"
18427 # Check whether tagname contains only valid characters
18428 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18429 "") ;;
18430 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18431 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18432 { (exit 1); exit 1; }; }
18434 esac
18436 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18437 then
18438 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18439 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18440 { (exit 1); exit 1; }; }
18443 # Update the list of available tags.
18444 if test -n "$tagname"; then
18445 echo appending configuration tag \"$tagname\" to $ofile
18447 case $tagname in
18448 CXX)
18449 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18450 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18451 (test "X$CXX" != "Xg++"))) ; then
18452 ac_ext=cpp
18453 ac_cpp='$CXXCPP $CPPFLAGS'
18454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18461 archive_cmds_need_lc_CXX=no
18462 allow_undefined_flag_CXX=
18463 always_export_symbols_CXX=no
18464 archive_expsym_cmds_CXX=
18465 export_dynamic_flag_spec_CXX=
18466 hardcode_direct_CXX=no
18467 hardcode_libdir_flag_spec_CXX=
18468 hardcode_libdir_flag_spec_ld_CXX=
18469 hardcode_libdir_separator_CXX=
18470 hardcode_minus_L_CXX=no
18471 hardcode_shlibpath_var_CXX=unsupported
18472 hardcode_automatic_CXX=no
18473 module_cmds_CXX=
18474 module_expsym_cmds_CXX=
18475 link_all_deplibs_CXX=unknown
18476 old_archive_cmds_CXX=$old_archive_cmds
18477 no_undefined_flag_CXX=
18478 whole_archive_flag_spec_CXX=
18479 enable_shared_with_static_runtimes_CXX=no
18481 # Dependencies to place before and after the object being linked:
18482 predep_objects_CXX=
18483 postdep_objects_CXX=
18484 predeps_CXX=
18485 postdeps_CXX=
18486 compiler_lib_search_path_CXX=
18488 # Source file extension for C++ test sources.
18489 ac_ext=cpp
18491 # Object file extension for compiled C++ test sources.
18492 objext=o
18493 objext_CXX=$objext
18495 # Code to be used in simple compile tests
18496 lt_simple_compile_test_code="int some_variable = 0;\n"
18498 # Code to be used in simple link tests
18499 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18501 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18503 # If no C compiler was specified, use CC.
18504 LTCC=${LTCC-"$CC"}
18506 # If no C compiler flags were specified, use CFLAGS.
18507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18509 # Allow CC to be a program name with arguments.
18510 compiler=$CC
18513 # save warnings/boilerplate of simple test code
18514 ac_outfile=conftest.$ac_objext
18515 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18516 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18517 _lt_compiler_boilerplate=`cat conftest.err`
18518 $rm conftest*
18520 ac_outfile=conftest.$ac_objext
18521 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18522 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18523 _lt_linker_boilerplate=`cat conftest.err`
18524 $rm conftest*
18527 # Allow CC to be a program name with arguments.
18528 lt_save_CC=$CC
18529 lt_save_LD=$LD
18530 lt_save_GCC=$GCC
18531 GCC=$GXX
18532 lt_save_with_gnu_ld=$with_gnu_ld
18533 lt_save_path_LD=$lt_cv_path_LD
18534 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18535 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18536 else
18537 $as_unset lt_cv_prog_gnu_ld
18539 if test -n "${lt_cv_path_LDCXX+set}"; then
18540 lt_cv_path_LD=$lt_cv_path_LDCXX
18541 else
18542 $as_unset lt_cv_path_LD
18544 test -z "${LDCXX+set}" || LD=$LDCXX
18545 CC=${CXX-"c++"}
18546 compiler=$CC
18547 compiler_CXX=$CC
18548 for cc_temp in $compiler""; do
18549 case $cc_temp in
18550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18552 \-*) ;;
18553 *) break;;
18554 esac
18555 done
18556 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18559 # We don't want -fno-exception wen compiling C++ code, so set the
18560 # no_builtin_flag separately
18561 if test "$GXX" = yes; then
18562 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18563 else
18564 lt_prog_compiler_no_builtin_flag_CXX=
18567 if test "$GXX" = yes; then
18568 # Set up default GNU C++ configuration
18571 # Check whether --with-gnu-ld was given.
18572 if test "${with_gnu_ld+set}" = set; then
18573 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18574 else
18575 with_gnu_ld=no
18578 ac_prog=ld
18579 if test "$GCC" = yes; then
18580 # Check if gcc -print-prog-name=ld gives a path.
18581 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18582 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18583 case $host in
18584 *-*-mingw*)
18585 # gcc leaves a trailing carriage return which upsets mingw
18586 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18588 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18589 esac
18590 case $ac_prog in
18591 # Accept absolute paths.
18592 [\\/]* | ?:[\\/]*)
18593 re_direlt='/[^/][^/]*/\.\./'
18594 # Canonicalize the pathname of ld
18595 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18596 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18597 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18598 done
18599 test -z "$LD" && LD="$ac_prog"
18602 # If it fails, then pretend we aren't using GCC.
18603 ac_prog=ld
18606 # If it is relative, then search for the first ld in PATH.
18607 with_gnu_ld=unknown
18609 esac
18610 elif test "$with_gnu_ld" = yes; then
18611 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18612 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18613 else
18614 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18615 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18617 if test "${lt_cv_path_LD+set}" = set; then
18618 echo $ECHO_N "(cached) $ECHO_C" >&6
18619 else
18620 if test -z "$LD"; then
18621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18622 for ac_dir in $PATH; do
18623 IFS="$lt_save_ifs"
18624 test -z "$ac_dir" && ac_dir=.
18625 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18626 lt_cv_path_LD="$ac_dir/$ac_prog"
18627 # Check to see if the program is GNU ld. I'd rather use --version,
18628 # but apparently some variants of GNU ld only accept -v.
18629 # Break only if it was the GNU/non-GNU ld that we prefer.
18630 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18631 *GNU* | *'with BFD'*)
18632 test "$with_gnu_ld" != no && break
18635 test "$with_gnu_ld" != yes && break
18637 esac
18639 done
18640 IFS="$lt_save_ifs"
18641 else
18642 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18646 LD="$lt_cv_path_LD"
18647 if test -n "$LD"; then
18648 { echo "$as_me:$LINENO: result: $LD" >&5
18649 echo "${ECHO_T}$LD" >&6; }
18650 else
18651 { echo "$as_me:$LINENO: result: no" >&5
18652 echo "${ECHO_T}no" >&6; }
18654 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18655 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18656 { (exit 1); exit 1; }; }
18657 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18658 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18659 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18661 else
18662 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18663 case `$LD -v 2>&1 </dev/null` in
18664 *GNU* | *'with BFD'*)
18665 lt_cv_prog_gnu_ld=yes
18668 lt_cv_prog_gnu_ld=no
18670 esac
18672 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18673 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18674 with_gnu_ld=$lt_cv_prog_gnu_ld
18678 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18679 # archiving commands below assume that GNU ld is being used.
18680 if test "$with_gnu_ld" = yes; then
18681 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18682 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'
18684 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18685 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18687 # If archive_cmds runs LD, not CC, wlarc should be empty
18688 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18689 # investigate it a little bit more. (MM)
18690 wlarc='${wl}'
18692 # ancient GNU ld didn't support --whole-archive et. al.
18693 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18694 grep 'no-whole-archive' > /dev/null; then
18695 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18696 else
18697 whole_archive_flag_spec_CXX=
18699 else
18700 with_gnu_ld=no
18701 wlarc=
18703 # A generic and very simple default shared library creation
18704 # command for GNU C++ for the case where it uses the native
18705 # linker, instead of GNU ld. If possible, this setting should
18706 # overridden to take advantage of the native linker features on
18707 # the platform it is being used on.
18708 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18711 # Commands to make compiler produce verbose output that lists
18712 # what "hidden" libraries, object files and flags are used when
18713 # linking a shared library.
18714 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18716 else
18717 GXX=no
18718 with_gnu_ld=no
18719 wlarc=
18722 # PORTME: fill in a description of your system's C++ link characteristics
18723 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18724 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18725 ld_shlibs_CXX=yes
18726 case $host_os in
18727 aix3*)
18728 # FIXME: insert proper C++ library support
18729 ld_shlibs_CXX=no
18731 aix4* | aix5*)
18732 if test "$host_cpu" = ia64; then
18733 # On IA64, the linker does run time linking by default, so we don't
18734 # have to do anything special.
18735 aix_use_runtimelinking=no
18736 exp_sym_flag='-Bexport'
18737 no_entry_flag=""
18738 else
18739 aix_use_runtimelinking=no
18741 # Test if we are trying to use run time linking or normal
18742 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18743 # need to do runtime linking.
18744 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18745 for ld_flag in $LDFLAGS; do
18746 case $ld_flag in
18747 *-brtl*)
18748 aix_use_runtimelinking=yes
18749 break
18751 esac
18752 done
18754 esac
18756 exp_sym_flag='-bexport'
18757 no_entry_flag='-bnoentry'
18760 # When large executables or shared objects are built, AIX ld can
18761 # have problems creating the table of contents. If linking a library
18762 # or program results in "error TOC overflow" add -mminimal-toc to
18763 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18764 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18766 archive_cmds_CXX=''
18767 hardcode_direct_CXX=yes
18768 hardcode_libdir_separator_CXX=':'
18769 link_all_deplibs_CXX=yes
18771 if test "$GXX" = yes; then
18772 case $host_os in aix4.[012]|aix4.[012].*)
18773 # We only want to do this on AIX 4.2 and lower, the check
18774 # below for broken collect2 doesn't work under 4.3+
18775 collect2name=`${CC} -print-prog-name=collect2`
18776 if test -f "$collect2name" && \
18777 strings "$collect2name" | grep resolve_lib_name >/dev/null
18778 then
18779 # We have reworked collect2
18780 hardcode_direct_CXX=yes
18781 else
18782 # We have old collect2
18783 hardcode_direct_CXX=unsupported
18784 # It fails to find uninstalled libraries when the uninstalled
18785 # path is not listed in the libpath. Setting hardcode_minus_L
18786 # to unsupported forces relinking
18787 hardcode_minus_L_CXX=yes
18788 hardcode_libdir_flag_spec_CXX='-L$libdir'
18789 hardcode_libdir_separator_CXX=
18792 esac
18793 shared_flag='-shared'
18794 if test "$aix_use_runtimelinking" = yes; then
18795 shared_flag="$shared_flag "'${wl}-G'
18797 else
18798 # not using gcc
18799 if test "$host_cpu" = ia64; then
18800 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18801 # chokes on -Wl,-G. The following line is correct:
18802 shared_flag='-G'
18803 else
18804 if test "$aix_use_runtimelinking" = yes; then
18805 shared_flag='${wl}-G'
18806 else
18807 shared_flag='${wl}-bM:SRE'
18812 # It seems that -bexpall does not export symbols beginning with
18813 # underscore (_), so it is better to generate a list of symbols to export.
18814 always_export_symbols_CXX=yes
18815 if test "$aix_use_runtimelinking" = yes; then
18816 # Warning - without using the other runtime loading flags (-brtl),
18817 # -berok will link without error, but may produce a broken library.
18818 allow_undefined_flag_CXX='-berok'
18819 # Determine the default libpath from the value encoded in an empty executable.
18820 cat >conftest.$ac_ext <<_ACEOF
18821 /* confdefs.h. */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18828 main ()
18832 return 0;
18834 _ACEOF
18835 rm -f conftest.$ac_objext conftest$ac_exeext
18836 if { (ac_try="$ac_link"
18837 case "(($ac_try" in
18838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18839 *) ac_try_echo=$ac_try;;
18840 esac
18841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18842 (eval "$ac_link") 2>conftest.er1
18843 ac_status=$?
18844 grep -v '^ *+' conftest.er1 >conftest.err
18845 rm -f conftest.er1
18846 cat conftest.err >&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18850 { (case "(($ac_try" in
18851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852 *) ac_try_echo=$ac_try;;
18853 esac
18854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18855 (eval "$ac_try") 2>&5
18856 ac_status=$?
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); }; } &&
18859 { ac_try='test -s conftest$ac_exeext'
18860 { (case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18863 esac
18864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865 (eval "$ac_try") 2>&5
18866 ac_status=$?
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; }; then
18870 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18872 # Check for a 64-bit object if we didn't find anything.
18873 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; }
18874 }'`; fi
18875 else
18876 echo "$as_me: failed program was:" >&5
18877 sed 's/^/| /' conftest.$ac_ext >&5
18882 rm -f core conftest.err conftest.$ac_objext \
18883 conftest$ac_exeext conftest.$ac_ext
18884 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18886 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18888 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"
18889 else
18890 if test "$host_cpu" = ia64; then
18891 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18892 allow_undefined_flag_CXX="-z nodefs"
18893 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"
18894 else
18895 # Determine the default libpath from the value encoded in an empty executable.
18896 cat >conftest.$ac_ext <<_ACEOF
18897 /* confdefs.h. */
18898 _ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18904 main ()
18908 return 0;
18910 _ACEOF
18911 rm -f conftest.$ac_objext conftest$ac_exeext
18912 if { (ac_try="$ac_link"
18913 case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18916 esac
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_link") 2>conftest.er1
18919 ac_status=$?
18920 grep -v '^ *+' conftest.er1 >conftest.err
18921 rm -f conftest.er1
18922 cat conftest.err >&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } &&
18925 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18926 { (case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18929 esac
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_try") 2>&5
18932 ac_status=$?
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; } &&
18935 { ac_try='test -s conftest$ac_exeext'
18936 { (case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18939 esac
18940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941 (eval "$ac_try") 2>&5
18942 ac_status=$?
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
18946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18948 # Check for a 64-bit object if we didn't find anything.
18949 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; }
18950 }'`; fi
18951 else
18952 echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18958 rm -f core conftest.err conftest.$ac_objext \
18959 conftest$ac_exeext conftest.$ac_ext
18960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18962 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18963 # Warning - without using the other run time loading flags,
18964 # -berok will link without error, but may produce a broken library.
18965 no_undefined_flag_CXX=' ${wl}-bernotok'
18966 allow_undefined_flag_CXX=' ${wl}-berok'
18967 # Exported symbols can be pulled into shared objects from archives
18968 whole_archive_flag_spec_CXX='$convenience'
18969 archive_cmds_need_lc_CXX=yes
18970 # This is similar to how AIX traditionally builds its shared libraries.
18971 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'
18976 beos*)
18977 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18978 allow_undefined_flag_CXX=unsupported
18979 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18980 # support --undefined. This deserves some investigation. FIXME
18981 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18982 else
18983 ld_shlibs_CXX=no
18987 chorus*)
18988 case $cc_basename in
18990 # FIXME: insert proper C++ library support
18991 ld_shlibs_CXX=no
18993 esac
18996 cygwin* | mingw* | pw32*)
18997 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18998 # as there is no search path for DLLs.
18999 hardcode_libdir_flag_spec_CXX='-L$libdir'
19000 allow_undefined_flag_CXX=unsupported
19001 always_export_symbols_CXX=no
19002 enable_shared_with_static_runtimes_CXX=yes
19004 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19005 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'
19006 # If the export-symbols file already is a .def file (1st line
19007 # is EXPORTS), use it as is; otherwise, prepend...
19008 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19009 cp $export_symbols $output_objdir/$soname.def;
19010 else
19011 echo EXPORTS > $output_objdir/$soname.def;
19012 cat $export_symbols >> $output_objdir/$soname.def;
19014 $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'
19015 else
19016 ld_shlibs_CXX=no
19019 darwin* | rhapsody*)
19020 case $host_os in
19021 rhapsody* | darwin1.[012])
19022 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19024 *) # Darwin 1.3 on
19025 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19026 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19027 else
19028 case ${MACOSX_DEPLOYMENT_TARGET} in
19029 10.[012])
19030 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19032 10.*)
19033 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19035 esac
19038 esac
19039 archive_cmds_need_lc_CXX=no
19040 hardcode_direct_CXX=no
19041 hardcode_automatic_CXX=yes
19042 hardcode_shlibpath_var_CXX=unsupported
19043 whole_archive_flag_spec_CXX=''
19044 link_all_deplibs_CXX=yes
19046 if test "$GXX" = yes ; then
19047 lt_int_apple_cc_single_mod=no
19048 output_verbose_link_cmd='echo'
19049 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19050 lt_int_apple_cc_single_mod=yes
19052 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19053 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19054 else
19055 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'
19057 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19058 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19059 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19060 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}'
19061 else
19062 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}'
19064 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}'
19065 else
19066 case $cc_basename in
19067 xlc*)
19068 output_verbose_link_cmd='echo'
19069 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'
19070 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19071 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19072 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}'
19073 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}'
19076 ld_shlibs_CXX=no
19078 esac
19082 dgux*)
19083 case $cc_basename in
19084 ec++*)
19085 # FIXME: insert proper C++ library support
19086 ld_shlibs_CXX=no
19088 ghcx*)
19089 # Green Hills C++ Compiler
19090 # FIXME: insert proper C++ library support
19091 ld_shlibs_CXX=no
19094 # FIXME: insert proper C++ library support
19095 ld_shlibs_CXX=no
19097 esac
19099 freebsd[12]*)
19100 # C++ shared libraries reported to be fairly broken before switch to ELF
19101 ld_shlibs_CXX=no
19103 freebsd-elf*)
19104 archive_cmds_need_lc_CXX=no
19106 freebsd* | kfreebsd*-gnu | dragonfly*)
19107 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19108 # conventions
19109 ld_shlibs_CXX=yes
19111 gnu*)
19113 hpux9*)
19114 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19115 hardcode_libdir_separator_CXX=:
19116 export_dynamic_flag_spec_CXX='${wl}-E'
19117 hardcode_direct_CXX=yes
19118 hardcode_minus_L_CXX=yes # Not in the search PATH,
19119 # but as the default
19120 # location of the library.
19122 case $cc_basename in
19123 CC*)
19124 # FIXME: insert proper C++ library support
19125 ld_shlibs_CXX=no
19127 aCC*)
19128 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'
19129 # Commands to make compiler produce verbose output that lists
19130 # what "hidden" libraries, object files and flags are used when
19131 # linking a shared library.
19133 # There doesn't appear to be a way to prevent this compiler from
19134 # explicitly linking system object files so we need to strip them
19135 # from the output so that they don't get included in the library
19136 # dependencies.
19137 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'
19140 if test "$GXX" = yes; then
19141 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'
19142 else
19143 # FIXME: insert proper C++ library support
19144 ld_shlibs_CXX=no
19147 esac
19149 hpux10*|hpux11*)
19150 if test $with_gnu_ld = no; then
19151 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19152 hardcode_libdir_separator_CXX=:
19154 case $host_cpu in
19155 hppa*64*|ia64*)
19156 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19159 export_dynamic_flag_spec_CXX='${wl}-E'
19161 esac
19163 case $host_cpu in
19164 hppa*64*|ia64*)
19165 hardcode_direct_CXX=no
19166 hardcode_shlibpath_var_CXX=no
19169 hardcode_direct_CXX=yes
19170 hardcode_minus_L_CXX=yes # Not in the search PATH,
19171 # but as the default
19172 # location of the library.
19174 esac
19176 case $cc_basename in
19177 CC*)
19178 # FIXME: insert proper C++ library support
19179 ld_shlibs_CXX=no
19181 aCC*)
19182 case $host_cpu in
19183 hppa*64*)
19184 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19186 ia64*)
19187 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19190 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19192 esac
19193 # Commands to make compiler produce verbose output that lists
19194 # what "hidden" libraries, object files and flags are used when
19195 # linking a shared library.
19197 # There doesn't appear to be a way to prevent this compiler from
19198 # explicitly linking system object files so we need to strip them
19199 # from the output so that they don't get included in the library
19200 # dependencies.
19201 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'
19204 if test "$GXX" = yes; then
19205 if test $with_gnu_ld = no; then
19206 case $host_cpu in
19207 hppa*64*)
19208 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19210 ia64*)
19211 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19214 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'
19216 esac
19218 else
19219 # FIXME: insert proper C++ library support
19220 ld_shlibs_CXX=no
19223 esac
19225 interix3*)
19226 hardcode_direct_CXX=no
19227 hardcode_shlibpath_var_CXX=no
19228 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19229 export_dynamic_flag_spec_CXX='${wl}-E'
19230 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19231 # Instead, shared libraries are loaded at an image base (0x10000000 by
19232 # default) and relocated if they conflict, which is a slow very memory
19233 # consuming and fragmenting process. To avoid this, we pick a random,
19234 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19235 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19236 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'
19237 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'
19239 irix5* | irix6*)
19240 case $cc_basename in
19241 CC*)
19242 # SGI C++
19243 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'
19245 # Archives containing C++ object files must be created using
19246 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19247 # necessary to make sure instantiated templates are included
19248 # in the archive.
19249 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19252 if test "$GXX" = yes; then
19253 if test "$with_gnu_ld" = no; then
19254 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'
19255 else
19256 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'
19259 link_all_deplibs_CXX=yes
19261 esac
19262 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19263 hardcode_libdir_separator_CXX=:
19265 linux*)
19266 case $cc_basename in
19267 KCC*)
19268 # Kuck and Associates, Inc. (KAI) C++ Compiler
19270 # KCC will only create a shared library if the output file
19271 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19272 # to its proper name (with version) after linking.
19273 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'
19274 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'
19275 # Commands to make compiler produce verbose output that lists
19276 # what "hidden" libraries, object files and flags are used when
19277 # linking a shared library.
19279 # There doesn't appear to be a way to prevent this compiler from
19280 # explicitly linking system object files so we need to strip them
19281 # from the output so that they don't get included in the library
19282 # dependencies.
19283 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'
19285 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19286 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19288 # Archives containing C++ object files must be created using
19289 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19290 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19292 icpc*)
19293 # Intel C++
19294 with_gnu_ld=yes
19295 # version 8.0 and above of icpc choke on multiply defined symbols
19296 # if we add $predep_objects and $postdep_objects, however 7.1 and
19297 # earlier do not add the objects themselves.
19298 case `$CC -V 2>&1` in
19299 *"Version 7."*)
19300 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19301 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'
19303 *) # Version 8.0 or newer
19304 tmp_idyn=
19305 case $host_cpu in
19306 ia64*) tmp_idyn=' -i_dynamic';;
19307 esac
19308 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19309 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'
19311 esac
19312 archive_cmds_need_lc_CXX=no
19313 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19314 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19315 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19317 pgCC*)
19318 # Portland Group C++ compiler
19319 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19320 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'
19322 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19323 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19324 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'
19326 cxx*)
19327 # Compaq C++
19328 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19329 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'
19331 runpath_var=LD_RUN_PATH
19332 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19333 hardcode_libdir_separator_CXX=:
19335 # Commands to make compiler produce verbose output that lists
19336 # what "hidden" libraries, object files and flags are used when
19337 # linking a shared library.
19339 # There doesn't appear to be a way to prevent this compiler from
19340 # explicitly linking system object files so we need to strip them
19341 # from the output so that they don't get included in the library
19342 # dependencies.
19343 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'
19345 esac
19347 lynxos*)
19348 # FIXME: insert proper C++ library support
19349 ld_shlibs_CXX=no
19351 m88k*)
19352 # FIXME: insert proper C++ library support
19353 ld_shlibs_CXX=no
19355 mvs*)
19356 case $cc_basename in
19357 cxx*)
19358 # FIXME: insert proper C++ library support
19359 ld_shlibs_CXX=no
19362 # FIXME: insert proper C++ library support
19363 ld_shlibs_CXX=no
19365 esac
19367 netbsd*)
19368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19369 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19370 wlarc=
19371 hardcode_libdir_flag_spec_CXX='-R$libdir'
19372 hardcode_direct_CXX=yes
19373 hardcode_shlibpath_var_CXX=no
19375 # Workaround some broken pre-1.5 toolchains
19376 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19378 openbsd2*)
19379 # C++ shared libraries are fairly broken
19380 ld_shlibs_CXX=no
19382 openbsd*)
19383 hardcode_direct_CXX=yes
19384 hardcode_shlibpath_var_CXX=no
19385 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19386 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19388 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19389 export_dynamic_flag_spec_CXX='${wl}-E'
19390 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19392 output_verbose_link_cmd='echo'
19394 osf3*)
19395 case $cc_basename in
19396 KCC*)
19397 # Kuck and Associates, Inc. (KAI) C++ Compiler
19399 # KCC will only create a shared library if the output file
19400 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19401 # to its proper name (with version) after linking.
19402 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'
19404 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19405 hardcode_libdir_separator_CXX=:
19407 # Archives containing C++ object files must be created using
19408 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19409 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19412 RCC*)
19413 # Rational C++ 2.4.1
19414 # FIXME: insert proper C++ library support
19415 ld_shlibs_CXX=no
19417 cxx*)
19418 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19419 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'
19421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19422 hardcode_libdir_separator_CXX=:
19424 # Commands to make compiler produce verbose output that lists
19425 # what "hidden" libraries, object files and flags are used when
19426 # linking a shared library.
19428 # There doesn't appear to be a way to prevent this compiler from
19429 # explicitly linking system object files so we need to strip them
19430 # from the output so that they don't get included in the library
19431 # dependencies.
19432 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'
19435 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19436 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19437 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'
19439 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19440 hardcode_libdir_separator_CXX=:
19442 # Commands to make compiler produce verbose output that lists
19443 # what "hidden" libraries, object files and flags are used when
19444 # linking a shared library.
19445 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19447 else
19448 # FIXME: insert proper C++ library support
19449 ld_shlibs_CXX=no
19452 esac
19454 osf4* | osf5*)
19455 case $cc_basename in
19456 KCC*)
19457 # Kuck and Associates, Inc. (KAI) C++ Compiler
19459 # KCC will only create a shared library if the output file
19460 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19461 # to its proper name (with version) after linking.
19462 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'
19464 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19465 hardcode_libdir_separator_CXX=:
19467 # Archives containing C++ object files must be created using
19468 # the KAI C++ compiler.
19469 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19471 RCC*)
19472 # Rational C++ 2.4.1
19473 # FIXME: insert proper C++ library support
19474 ld_shlibs_CXX=no
19476 cxx*)
19477 allow_undefined_flag_CXX=' -expect_unresolved \*'
19478 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'
19479 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19480 echo "-hidden">> $lib.exp~
19481 $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~
19482 $rm $lib.exp'
19484 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19485 hardcode_libdir_separator_CXX=:
19487 # Commands to make compiler produce verbose output that lists
19488 # what "hidden" libraries, object files and flags are used when
19489 # linking a shared library.
19491 # There doesn't appear to be a way to prevent this compiler from
19492 # explicitly linking system object files so we need to strip them
19493 # from the output so that they don't get included in the library
19494 # dependencies.
19495 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'
19498 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19499 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19500 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'
19502 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19503 hardcode_libdir_separator_CXX=:
19505 # Commands to make compiler produce verbose output that lists
19506 # what "hidden" libraries, object files and flags are used when
19507 # linking a shared library.
19508 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19510 else
19511 # FIXME: insert proper C++ library support
19512 ld_shlibs_CXX=no
19515 esac
19517 psos*)
19518 # FIXME: insert proper C++ library support
19519 ld_shlibs_CXX=no
19521 sunos4*)
19522 case $cc_basename in
19523 CC*)
19524 # Sun C++ 4.x
19525 # FIXME: insert proper C++ library support
19526 ld_shlibs_CXX=no
19528 lcc*)
19529 # Lucid
19530 # FIXME: insert proper C++ library support
19531 ld_shlibs_CXX=no
19534 # FIXME: insert proper C++ library support
19535 ld_shlibs_CXX=no
19537 esac
19539 solaris*)
19540 case $cc_basename in
19541 CC*)
19542 # Sun C++ 4.2, 5.x and Centerline C++
19543 archive_cmds_need_lc_CXX=yes
19544 no_undefined_flag_CXX=' -zdefs'
19545 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19546 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19547 $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'
19549 hardcode_libdir_flag_spec_CXX='-R$libdir'
19550 hardcode_shlibpath_var_CXX=no
19551 case $host_os in
19552 solaris2.[0-5] | solaris2.[0-5].*) ;;
19554 # The C++ compiler is used as linker so we must use $wl
19555 # flag to pass the commands to the underlying system
19556 # linker. We must also pass each convience library through
19557 # to the system linker between allextract/defaultextract.
19558 # The C++ compiler will combine linker options so we
19559 # cannot just pass the convience library names through
19560 # without $wl.
19561 # Supported since Solaris 2.6 (maybe 2.5.1?)
19562 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'
19564 esac
19565 link_all_deplibs_CXX=yes
19567 output_verbose_link_cmd='echo'
19569 # Archives containing C++ object files must be created using
19570 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19571 # necessary to make sure instantiated templates are included
19572 # in the archive.
19573 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19575 gcx*)
19576 # Green Hills C++ Compiler
19577 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19579 # The C++ compiler must be used to create the archive.
19580 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19583 # GNU C++ compiler with Solaris linker
19584 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19585 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19586 if $CC --version | grep -v '^2\.7' > /dev/null; then
19587 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19588 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19589 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19591 # Commands to make compiler produce verbose output that lists
19592 # what "hidden" libraries, object files and flags are used when
19593 # linking a shared library.
19594 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19595 else
19596 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19597 # platform.
19598 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19599 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19600 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19602 # Commands to make compiler produce verbose output that lists
19603 # what "hidden" libraries, object files and flags are used when
19604 # linking a shared library.
19605 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19608 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19611 esac
19613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19614 no_undefined_flag_CXX='${wl}-z,text'
19615 archive_cmds_need_lc_CXX=no
19616 hardcode_shlibpath_var_CXX=no
19617 runpath_var='LD_RUN_PATH'
19619 case $cc_basename in
19620 CC*)
19621 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19622 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19625 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19626 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19628 esac
19630 sysv5* | sco3.2v5* | sco5v6*)
19631 # Note: We can NOT use -z defs as we might desire, because we do not
19632 # link with -lc, and that would cause any symbols used from libc to
19633 # always be unresolved, which means just about no library would
19634 # ever link correctly. If we're not using GNU ld we use -z text
19635 # though, which does catch some bad symbols but isn't as heavy-handed
19636 # as -z defs.
19637 # For security reasons, it is highly recommended that you always
19638 # use absolute paths for naming shared libraries, and exclude the
19639 # DT_RUNPATH tag from executables and libraries. But doing so
19640 # requires that you compile everything twice, which is a pain.
19641 # So that behaviour is only enabled if SCOABSPATH is set to a
19642 # non-empty value in the environment. Most likely only useful for
19643 # creating official distributions of packages.
19644 # This is a hack until libtool officially supports absolute path
19645 # names for shared libraries.
19646 no_undefined_flag_CXX='${wl}-z,text'
19647 allow_undefined_flag_CXX='${wl}-z,nodefs'
19648 archive_cmds_need_lc_CXX=no
19649 hardcode_shlibpath_var_CXX=no
19650 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19651 hardcode_libdir_separator_CXX=':'
19652 link_all_deplibs_CXX=yes
19653 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19654 runpath_var='LD_RUN_PATH'
19656 case $cc_basename in
19657 CC*)
19658 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19659 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19662 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19663 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19665 esac
19667 tandem*)
19668 case $cc_basename in
19669 NCC*)
19670 # NonStop-UX NCC 3.20
19671 # FIXME: insert proper C++ library support
19672 ld_shlibs_CXX=no
19675 # FIXME: insert proper C++ library support
19676 ld_shlibs_CXX=no
19678 esac
19680 vxworks*)
19681 # FIXME: insert proper C++ library support
19682 ld_shlibs_CXX=no
19685 # FIXME: insert proper C++ library support
19686 ld_shlibs_CXX=no
19688 esac
19689 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19690 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19691 test "$ld_shlibs_CXX" = no && can_build_shared=no
19693 GCC_CXX="$GXX"
19694 LD_CXX="$LD"
19697 cat > conftest.$ac_ext <<EOF
19698 class Foo
19700 public:
19701 Foo (void) { a = 0; }
19702 private:
19703 int a;
19707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19708 (eval $ac_compile) 2>&5
19709 ac_status=$?
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; then
19712 # Parse the compiler output and extract the necessary
19713 # objects, libraries and library flags.
19715 # Sentinel used to keep track of whether or not we are before
19716 # the conftest object file.
19717 pre_test_object_deps_done=no
19719 # The `*' in the case matches for architectures that use `case' in
19720 # $output_verbose_cmd can trigger glob expansion during the loop
19721 # eval without this substitution.
19722 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19724 for p in `eval $output_verbose_link_cmd`; do
19725 case $p in
19727 -L* | -R* | -l*)
19728 # Some compilers place space between "-{L,R}" and the path.
19729 # Remove the space.
19730 if test $p = "-L" \
19731 || test $p = "-R"; then
19732 prev=$p
19733 continue
19734 else
19735 prev=
19738 if test "$pre_test_object_deps_done" = no; then
19739 case $p in
19740 -L* | -R*)
19741 # Internal compiler library paths should come after those
19742 # provided the user. The postdeps already come after the
19743 # user supplied libs so there is no need to process them.
19744 if test -z "$compiler_lib_search_path_CXX"; then
19745 compiler_lib_search_path_CXX="${prev}${p}"
19746 else
19747 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19750 # The "-l" case would never come before the object being
19751 # linked, so don't bother handling this case.
19752 esac
19753 else
19754 if test -z "$postdeps_CXX"; then
19755 postdeps_CXX="${prev}${p}"
19756 else
19757 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19762 *.$objext)
19763 # This assumes that the test object file only shows up
19764 # once in the compiler output.
19765 if test "$p" = "conftest.$objext"; then
19766 pre_test_object_deps_done=yes
19767 continue
19770 if test "$pre_test_object_deps_done" = no; then
19771 if test -z "$predep_objects_CXX"; then
19772 predep_objects_CXX="$p"
19773 else
19774 predep_objects_CXX="$predep_objects_CXX $p"
19776 else
19777 if test -z "$postdep_objects_CXX"; then
19778 postdep_objects_CXX="$p"
19779 else
19780 postdep_objects_CXX="$postdep_objects_CXX $p"
19785 *) ;; # Ignore the rest.
19787 esac
19788 done
19790 # Clean up.
19791 rm -f a.out a.exe
19792 else
19793 echo "libtool.m4: error: problem compiling CXX test program"
19796 $rm -f confest.$objext
19798 # PORTME: override above test on systems where it is broken
19799 case $host_os in
19800 interix3*)
19801 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19802 # hack all around it, let's just trust "g++" to DTRT.
19803 predep_objects_CXX=
19804 postdep_objects_CXX=
19805 postdeps_CXX=
19808 solaris*)
19809 case $cc_basename in
19810 CC*)
19811 # Adding this requires a known-good setup of shared libraries for
19812 # Sun compiler versions before 5.6, else PIC objects from an old
19813 # archive will be linked into the output, leading to subtle bugs.
19814 postdeps_CXX='-lCstd -lCrun'
19816 esac
19818 esac
19821 case " $postdeps_CXX " in
19822 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19823 esac
19825 lt_prog_compiler_wl_CXX=
19826 lt_prog_compiler_pic_CXX=
19827 lt_prog_compiler_static_CXX=
19829 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19830 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19832 # C++ specific cases for pic, static, wl, etc.
19833 if test "$GXX" = yes; then
19834 lt_prog_compiler_wl_CXX='-Wl,'
19835 lt_prog_compiler_static_CXX='-static'
19837 case $host_os in
19838 aix*)
19839 # All AIX code is PIC.
19840 if test "$host_cpu" = ia64; then
19841 # AIX 5 now supports IA64 processor
19842 lt_prog_compiler_static_CXX='-Bstatic'
19845 amigaos*)
19846 # FIXME: we need at least 68020 code to build shared libraries, but
19847 # adding the `-m68020' flag to GCC prevents building anything better,
19848 # like `-m68040'.
19849 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19851 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19852 # PIC is the default for these OSes.
19854 mingw* | os2* | pw32*)
19855 # This hack is so that the source file can tell whether it is being
19856 # built for inclusion in a dll (and should export symbols for example).
19857 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19859 darwin* | rhapsody*)
19860 # PIC is the default on this platform
19861 # Common symbols not allowed in MH_DYLIB files
19862 lt_prog_compiler_pic_CXX='-fno-common'
19864 *djgpp*)
19865 # DJGPP does not support shared libraries at all
19866 lt_prog_compiler_pic_CXX=
19868 interix3*)
19869 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19870 # Instead, we relocate shared libraries at runtime.
19872 sysv4*MP*)
19873 if test -d /usr/nec; then
19874 lt_prog_compiler_pic_CXX=-Kconform_pic
19877 hpux*)
19878 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19879 # not for PA HP-UX.
19880 case $host_cpu in
19881 hppa*64*|ia64*)
19884 lt_prog_compiler_pic_CXX='-fPIC'
19886 esac
19889 lt_prog_compiler_pic_CXX='-fPIC'
19891 esac
19892 else
19893 case $host_os in
19894 aix4* | aix5*)
19895 # All AIX code is PIC.
19896 if test "$host_cpu" = ia64; then
19897 # AIX 5 now supports IA64 processor
19898 lt_prog_compiler_static_CXX='-Bstatic'
19899 else
19900 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19903 chorus*)
19904 case $cc_basename in
19905 cxch68*)
19906 # Green Hills C++ Compiler
19907 # _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"
19909 esac
19911 darwin*)
19912 # PIC is the default on this platform
19913 # Common symbols not allowed in MH_DYLIB files
19914 case $cc_basename in
19915 xlc*)
19916 lt_prog_compiler_pic_CXX='-qnocommon'
19917 lt_prog_compiler_wl_CXX='-Wl,'
19919 esac
19921 dgux*)
19922 case $cc_basename in
19923 ec++*)
19924 lt_prog_compiler_pic_CXX='-KPIC'
19926 ghcx*)
19927 # Green Hills C++ Compiler
19928 lt_prog_compiler_pic_CXX='-pic'
19932 esac
19934 freebsd* | kfreebsd*-gnu | dragonfly*)
19935 # FreeBSD uses GNU C++
19937 hpux9* | hpux10* | hpux11*)
19938 case $cc_basename in
19939 CC*)
19940 lt_prog_compiler_wl_CXX='-Wl,'
19941 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19942 if test "$host_cpu" != ia64; then
19943 lt_prog_compiler_pic_CXX='+Z'
19946 aCC*)
19947 lt_prog_compiler_wl_CXX='-Wl,'
19948 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19949 case $host_cpu in
19950 hppa*64*|ia64*)
19951 # +Z the default
19954 lt_prog_compiler_pic_CXX='+Z'
19956 esac
19960 esac
19962 interix*)
19963 # This is c89, which is MS Visual C++ (no shared libs)
19964 # Anyone wants to do a port?
19966 irix5* | irix6* | nonstopux*)
19967 case $cc_basename in
19968 CC*)
19969 lt_prog_compiler_wl_CXX='-Wl,'
19970 lt_prog_compiler_static_CXX='-non_shared'
19971 # CC pic flag -KPIC is the default.
19975 esac
19977 linux*)
19978 case $cc_basename in
19979 KCC*)
19980 # KAI C++ Compiler
19981 lt_prog_compiler_wl_CXX='--backend -Wl,'
19982 lt_prog_compiler_pic_CXX='-fPIC'
19984 icpc* | ecpc*)
19985 # Intel C++
19986 lt_prog_compiler_wl_CXX='-Wl,'
19987 lt_prog_compiler_pic_CXX='-KPIC'
19988 lt_prog_compiler_static_CXX='-static'
19990 pgCC*)
19991 # Portland Group C++ compiler.
19992 lt_prog_compiler_wl_CXX='-Wl,'
19993 lt_prog_compiler_pic_CXX='-fpic'
19994 lt_prog_compiler_static_CXX='-Bstatic'
19996 cxx*)
19997 # Compaq C++
19998 # Make sure the PIC flag is empty. It appears that all Alpha
19999 # Linux and Compaq Tru64 Unix objects are PIC.
20000 lt_prog_compiler_pic_CXX=
20001 lt_prog_compiler_static_CXX='-non_shared'
20005 esac
20007 lynxos*)
20009 m88k*)
20011 mvs*)
20012 case $cc_basename in
20013 cxx*)
20014 lt_prog_compiler_pic_CXX='-W c,exportall'
20018 esac
20020 netbsd*)
20022 osf3* | osf4* | osf5*)
20023 case $cc_basename in
20024 KCC*)
20025 lt_prog_compiler_wl_CXX='--backend -Wl,'
20027 RCC*)
20028 # Rational C++ 2.4.1
20029 lt_prog_compiler_pic_CXX='-pic'
20031 cxx*)
20032 # Digital/Compaq C++
20033 lt_prog_compiler_wl_CXX='-Wl,'
20034 # Make sure the PIC flag is empty. It appears that all Alpha
20035 # Linux and Compaq Tru64 Unix objects are PIC.
20036 lt_prog_compiler_pic_CXX=
20037 lt_prog_compiler_static_CXX='-non_shared'
20041 esac
20043 psos*)
20045 solaris*)
20046 case $cc_basename in
20047 CC*)
20048 # Sun C++ 4.2, 5.x and Centerline C++
20049 lt_prog_compiler_pic_CXX='-KPIC'
20050 lt_prog_compiler_static_CXX='-Bstatic'
20051 lt_prog_compiler_wl_CXX='-Qoption ld '
20053 gcx*)
20054 # Green Hills C++ Compiler
20055 lt_prog_compiler_pic_CXX='-PIC'
20059 esac
20061 sunos4*)
20062 case $cc_basename in
20063 CC*)
20064 # Sun C++ 4.x
20065 lt_prog_compiler_pic_CXX='-pic'
20066 lt_prog_compiler_static_CXX='-Bstatic'
20068 lcc*)
20069 # Lucid
20070 lt_prog_compiler_pic_CXX='-pic'
20074 esac
20076 tandem*)
20077 case $cc_basename in
20078 NCC*)
20079 # NonStop-UX NCC 3.20
20080 lt_prog_compiler_pic_CXX='-KPIC'
20084 esac
20086 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20087 case $cc_basename in
20088 CC*)
20089 lt_prog_compiler_wl_CXX='-Wl,'
20090 lt_prog_compiler_pic_CXX='-KPIC'
20091 lt_prog_compiler_static_CXX='-Bstatic'
20093 esac
20095 vxworks*)
20098 lt_prog_compiler_can_build_shared_CXX=no
20100 esac
20103 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20104 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20107 # Check to make sure the PIC flag actually works.
20109 if test -n "$lt_prog_compiler_pic_CXX"; then
20111 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20113 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 else
20116 lt_prog_compiler_pic_works_CXX=no
20117 ac_outfile=conftest.$ac_objext
20118 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20119 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20120 # Insert the option either (1) after the last *FLAGS variable, or
20121 # (2) before a word containing "conftest.", or (3) at the end.
20122 # Note that $ac_compile itself does not contain backslashes and begins
20123 # with a dollar sign (not a hyphen), so the echo should work correctly.
20124 # The option is referenced via a variable to avoid confusing sed.
20125 lt_compile=`echo "$ac_compile" | $SED \
20126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20128 -e 's:$: $lt_compiler_flag:'`
20129 (eval echo "\"\$as_me:20129: $lt_compile\"" >&5)
20130 (eval "$lt_compile" 2>conftest.err)
20131 ac_status=$?
20132 cat conftest.err >&5
20133 echo "$as_me:20133: \$? = $ac_status" >&5
20134 if (exit $ac_status) && test -s "$ac_outfile"; then
20135 # The compiler can only warn and ignore the option if not recognized
20136 # So say no if there are warnings other than the usual output.
20137 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20140 lt_prog_compiler_pic_works_CXX=yes
20143 $rm conftest*
20146 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20147 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20149 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20150 case $lt_prog_compiler_pic_CXX in
20151 "" | " "*) ;;
20152 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20153 esac
20154 else
20155 lt_prog_compiler_pic_CXX=
20156 lt_prog_compiler_can_build_shared_CXX=no
20160 case $host_os in
20161 # For platforms which do not support PIC, -DPIC is meaningless:
20162 *djgpp*)
20163 lt_prog_compiler_pic_CXX=
20166 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20168 esac
20171 # Check to make sure the static flag actually works.
20173 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20174 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20175 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20176 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20178 else
20179 lt_prog_compiler_static_works_CXX=no
20180 save_LDFLAGS="$LDFLAGS"
20181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20182 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20184 # The linker can only warn and ignore the option if not recognized
20185 # So say no if there are warnings
20186 if test -s conftest.err; then
20187 # Append any errors to the config.log.
20188 cat conftest.err 1>&5
20189 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20191 if diff conftest.exp conftest.er2 >/dev/null; then
20192 lt_prog_compiler_static_works_CXX=yes
20194 else
20195 lt_prog_compiler_static_works_CXX=yes
20198 $rm conftest*
20199 LDFLAGS="$save_LDFLAGS"
20202 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20203 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20205 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20207 else
20208 lt_prog_compiler_static_CXX=
20212 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20213 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20214 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20215 echo $ECHO_N "(cached) $ECHO_C" >&6
20216 else
20217 lt_cv_prog_compiler_c_o_CXX=no
20218 $rm -r conftest 2>/dev/null
20219 mkdir conftest
20220 cd conftest
20221 mkdir out
20222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20224 lt_compiler_flag="-o out/conftest2.$ac_objext"
20225 # Insert the option either (1) after the last *FLAGS variable, or
20226 # (2) before a word containing "conftest.", or (3) at the end.
20227 # Note that $ac_compile itself does not contain backslashes and begins
20228 # with a dollar sign (not a hyphen), so the echo should work correctly.
20229 lt_compile=`echo "$ac_compile" | $SED \
20230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20232 -e 's:$: $lt_compiler_flag:'`
20233 (eval echo "\"\$as_me:20233: $lt_compile\"" >&5)
20234 (eval "$lt_compile" 2>out/conftest.err)
20235 ac_status=$?
20236 cat out/conftest.err >&5
20237 echo "$as_me:20237: \$? = $ac_status" >&5
20238 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20239 then
20240 # The compiler can only warn and ignore the option if not recognized
20241 # So say no if there are warnings
20242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20245 lt_cv_prog_compiler_c_o_CXX=yes
20248 chmod u+w . 2>&5
20249 $rm conftest*
20250 # SGI C++ compiler will create directory out/ii_files/ for
20251 # template instantiation
20252 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20253 $rm out/* && rmdir out
20254 cd ..
20255 rmdir conftest
20256 $rm conftest*
20259 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20260 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20263 hard_links="nottested"
20264 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20265 # do not overwrite the value of need_locks provided by the user
20266 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20267 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20268 hard_links=yes
20269 $rm conftest*
20270 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20271 touch conftest.a
20272 ln conftest.a conftest.b 2>&5 || hard_links=no
20273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20274 { echo "$as_me:$LINENO: result: $hard_links" >&5
20275 echo "${ECHO_T}$hard_links" >&6; }
20276 if test "$hard_links" = no; then
20277 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20278 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20279 need_locks=warn
20281 else
20282 need_locks=no
20285 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20286 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20288 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20289 case $host_os in
20290 aix4* | aix5*)
20291 # If we're using GNU nm, then we don't want the "-C" option.
20292 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20293 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20294 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'
20295 else
20296 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'
20299 pw32*)
20300 export_symbols_cmds_CXX="$ltdll_cmds"
20302 cygwin* | mingw*)
20303 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'
20306 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20308 esac
20310 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20311 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20312 test "$ld_shlibs_CXX" = no && can_build_shared=no
20315 # Do we need to explicitly link libc?
20317 case "x$archive_cmds_need_lc_CXX" in
20318 x|xyes)
20319 # Assume -lc should be added
20320 archive_cmds_need_lc_CXX=yes
20322 if test "$enable_shared" = yes && test "$GCC" = yes; then
20323 case $archive_cmds_CXX in
20324 *'~'*)
20325 # FIXME: we may have to deal with multi-command sequences.
20327 '$CC '*)
20328 # Test whether the compiler implicitly links with -lc since on some
20329 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20330 # to ld, don't add -lc before -lgcc.
20331 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20332 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20333 $rm conftest*
20334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20337 (eval $ac_compile) 2>&5
20338 ac_status=$?
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } 2>conftest.err; then
20341 soname=conftest
20342 lib=conftest
20343 libobjs=conftest.$ac_objext
20344 deplibs=
20345 wl=$lt_prog_compiler_wl_CXX
20346 pic_flag=$lt_prog_compiler_pic_CXX
20347 compiler_flags=-v
20348 linker_flags=-v
20349 verstring=
20350 output_objdir=.
20351 libname=conftest
20352 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20353 allow_undefined_flag_CXX=
20354 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20355 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20356 ac_status=$?
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }
20359 then
20360 archive_cmds_need_lc_CXX=no
20361 else
20362 archive_cmds_need_lc_CXX=yes
20364 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20365 else
20366 cat conftest.err 1>&5
20368 $rm conftest*
20369 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20370 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20372 esac
20375 esac
20377 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20378 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20379 library_names_spec=
20380 libname_spec='lib$name'
20381 soname_spec=
20382 shrext_cmds=".so"
20383 postinstall_cmds=
20384 postuninstall_cmds=
20385 finish_cmds=
20386 finish_eval=
20387 shlibpath_var=
20388 shlibpath_overrides_runpath=unknown
20389 version_type=none
20390 dynamic_linker="$host_os ld.so"
20391 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20392 if test "$GCC" = yes; then
20393 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20394 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20395 # if the path contains ";" then we assume it to be the separator
20396 # otherwise default to the standard path separator (i.e. ":") - it is
20397 # assumed that no part of a normal pathname contains ";" but that should
20398 # okay in the real world where ";" in dirpaths is itself problematic.
20399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20400 else
20401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20403 else
20404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20406 need_lib_prefix=unknown
20407 hardcode_into_libs=no
20409 # when you set need_version to no, make sure it does not cause -set_version
20410 # flags to be left without arguments
20411 need_version=unknown
20413 case $host_os in
20414 aix3*)
20415 version_type=linux
20416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20417 shlibpath_var=LIBPATH
20419 # AIX 3 has no versioning support, so we append a major version to the name.
20420 soname_spec='${libname}${release}${shared_ext}$major'
20423 aix4* | aix5*)
20424 version_type=linux
20425 need_lib_prefix=no
20426 need_version=no
20427 hardcode_into_libs=yes
20428 if test "$host_cpu" = ia64; then
20429 # AIX 5 supports IA64
20430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20431 shlibpath_var=LD_LIBRARY_PATH
20432 else
20433 # With GCC up to 2.95.x, collect2 would create an import file
20434 # for dependence libraries. The import file would start with
20435 # the line `#! .'. This would cause the generated library to
20436 # depend on `.', always an invalid library. This was fixed in
20437 # development snapshots of GCC prior to 3.0.
20438 case $host_os in
20439 aix4 | aix4.[01] | aix4.[01].*)
20440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20441 echo ' yes '
20442 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20444 else
20445 can_build_shared=no
20448 esac
20449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20450 # soname into executable. Probably we can add versioning support to
20451 # collect2, so additional links can be useful in future.
20452 if test "$aix_use_runtimelinking" = yes; then
20453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20454 # instead of lib<name>.a to let people know that these are not
20455 # typical AIX shared libraries.
20456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20457 else
20458 # We preserve .a as extension for shared libraries through AIX4.2
20459 # and later when we are not doing run time linking.
20460 library_names_spec='${libname}${release}.a $libname.a'
20461 soname_spec='${libname}${release}${shared_ext}$major'
20463 shlibpath_var=LIBPATH
20467 amigaos*)
20468 library_names_spec='$libname.ixlibrary $libname.a'
20469 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20470 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'
20473 beos*)
20474 library_names_spec='${libname}${shared_ext}'
20475 dynamic_linker="$host_os ld.so"
20476 shlibpath_var=LIBRARY_PATH
20479 bsdi[45]*)
20480 version_type=linux
20481 need_version=no
20482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483 soname_spec='${libname}${release}${shared_ext}$major'
20484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20485 shlibpath_var=LD_LIBRARY_PATH
20486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20488 # the default ld.so.conf also contains /usr/contrib/lib and
20489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20490 # libtool to hard-code these into programs
20493 cygwin* | mingw* | pw32*)
20494 version_type=windows
20495 shrext_cmds=".dll"
20496 need_version=no
20497 need_lib_prefix=no
20499 case $GCC,$host_os in
20500 yes,cygwin* | yes,mingw* | yes,pw32*)
20501 library_names_spec='$libname.dll.a'
20502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20503 postinstall_cmds='base_file=`basename \${file}`~
20504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20505 dldir=$destdir/`dirname \$dlpath`~
20506 test -d \$dldir || mkdir -p \$dldir~
20507 $install_prog $dir/$dlname \$dldir/$dlname~
20508 chmod a+x \$dldir/$dlname'
20509 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20510 dlpath=$dir/\$dldll~
20511 $rm \$dlpath'
20512 shlibpath_overrides_runpath=yes
20514 case $host_os in
20515 cygwin*)
20516 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20517 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20518 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20520 mingw*)
20521 # MinGW DLLs use traditional 'lib' prefix
20522 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20524 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20525 # It is most probably a Windows format PATH printed by
20526 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20527 # path with ; separators, and with drive letters. We can handle the
20528 # drive letters (cygwin fileutils understands them), so leave them,
20529 # especially as we might pass files found there to a mingw objdump,
20530 # which wouldn't understand a cygwinified path. Ahh.
20531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20532 else
20533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20536 pw32*)
20537 # pw32 DLLs use 'pw' prefix rather than 'lib'
20538 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20540 esac
20544 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20546 esac
20547 dynamic_linker='Win32 ld.exe'
20548 # FIXME: first we should search . and the directory the executable is in
20549 shlibpath_var=PATH
20552 darwin* | rhapsody*)
20553 dynamic_linker="$host_os dyld"
20554 version_type=darwin
20555 need_lib_prefix=no
20556 need_version=no
20557 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20558 soname_spec='${libname}${release}${major}$shared_ext'
20559 shlibpath_overrides_runpath=yes
20560 shlibpath_var=DYLD_LIBRARY_PATH
20561 shrext_cmds='.dylib'
20562 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20563 if test "$GCC" = yes; then
20564 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"`
20565 else
20566 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20568 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20571 dgux*)
20572 version_type=linux
20573 need_lib_prefix=no
20574 need_version=no
20575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20576 soname_spec='${libname}${release}${shared_ext}$major'
20577 shlibpath_var=LD_LIBRARY_PATH
20580 freebsd1*)
20581 dynamic_linker=no
20584 kfreebsd*-gnu)
20585 version_type=linux
20586 need_lib_prefix=no
20587 need_version=no
20588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20589 soname_spec='${libname}${release}${shared_ext}$major'
20590 shlibpath_var=LD_LIBRARY_PATH
20591 shlibpath_overrides_runpath=no
20592 hardcode_into_libs=yes
20593 dynamic_linker='GNU ld.so'
20596 freebsd* | dragonfly*)
20597 # DragonFly does not have aout. When/if they implement a new
20598 # versioning mechanism, adjust this.
20599 if test -x /usr/bin/objformat; then
20600 objformat=`/usr/bin/objformat`
20601 else
20602 case $host_os in
20603 freebsd[123]*) objformat=aout ;;
20604 *) objformat=elf ;;
20605 esac
20607 version_type=freebsd-$objformat
20608 case $version_type in
20609 freebsd-elf*)
20610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20611 need_version=no
20612 need_lib_prefix=no
20614 freebsd-*)
20615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20616 need_version=yes
20618 esac
20619 shlibpath_var=LD_LIBRARY_PATH
20620 case $host_os in
20621 freebsd2*)
20622 shlibpath_overrides_runpath=yes
20624 freebsd3.[01]* | freebsdelf3.[01]*)
20625 shlibpath_overrides_runpath=yes
20626 hardcode_into_libs=yes
20628 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20629 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20630 shlibpath_overrides_runpath=no
20631 hardcode_into_libs=yes
20633 freebsd*) # from 4.6 on
20634 shlibpath_overrides_runpath=yes
20635 hardcode_into_libs=yes
20637 esac
20640 gnu*)
20641 version_type=linux
20642 need_lib_prefix=no
20643 need_version=no
20644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20645 soname_spec='${libname}${release}${shared_ext}$major'
20646 shlibpath_var=LD_LIBRARY_PATH
20647 hardcode_into_libs=yes
20650 hpux9* | hpux10* | hpux11*)
20651 # Give a soname corresponding to the major version so that dld.sl refuses to
20652 # link against other versions.
20653 version_type=sunos
20654 need_lib_prefix=no
20655 need_version=no
20656 case $host_cpu in
20657 ia64*)
20658 shrext_cmds='.so'
20659 hardcode_into_libs=yes
20660 dynamic_linker="$host_os dld.so"
20661 shlibpath_var=LD_LIBRARY_PATH
20662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20664 soname_spec='${libname}${release}${shared_ext}$major'
20665 if test "X$HPUX_IA64_MODE" = X32; then
20666 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20667 else
20668 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20672 hppa*64*)
20673 shrext_cmds='.sl'
20674 hardcode_into_libs=yes
20675 dynamic_linker="$host_os dld.sl"
20676 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20679 soname_spec='${libname}${release}${shared_ext}$major'
20680 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20684 shrext_cmds='.sl'
20685 dynamic_linker="$host_os dld.sl"
20686 shlibpath_var=SHLIB_PATH
20687 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20689 soname_spec='${libname}${release}${shared_ext}$major'
20691 esac
20692 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20693 postinstall_cmds='chmod 555 $lib'
20696 interix3*)
20697 version_type=linux
20698 need_lib_prefix=no
20699 need_version=no
20700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20701 soname_spec='${libname}${release}${shared_ext}$major'
20702 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20703 shlibpath_var=LD_LIBRARY_PATH
20704 shlibpath_overrides_runpath=no
20705 hardcode_into_libs=yes
20708 irix5* | irix6* | nonstopux*)
20709 case $host_os in
20710 nonstopux*) version_type=nonstopux ;;
20712 if test "$lt_cv_prog_gnu_ld" = yes; then
20713 version_type=linux
20714 else
20715 version_type=irix
20716 fi ;;
20717 esac
20718 need_lib_prefix=no
20719 need_version=no
20720 soname_spec='${libname}${release}${shared_ext}$major'
20721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20722 case $host_os in
20723 irix5* | nonstopux*)
20724 libsuff= shlibsuff=
20727 case $LD in # libtool.m4 will add one of these switches to LD
20728 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20729 libsuff= shlibsuff= libmagic=32-bit;;
20730 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20731 libsuff=32 shlibsuff=N32 libmagic=N32;;
20732 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20733 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20734 *) libsuff= shlibsuff= libmagic=never-match;;
20735 esac
20737 esac
20738 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20739 shlibpath_overrides_runpath=no
20740 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20741 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20742 hardcode_into_libs=yes
20745 # No shared lib support for Linux oldld, aout, or coff.
20746 linux*oldld* | linux*aout* | linux*coff*)
20747 dynamic_linker=no
20750 # This must be Linux ELF.
20751 linux*)
20752 version_type=linux
20753 need_lib_prefix=no
20754 need_version=no
20755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20756 soname_spec='${libname}${release}${shared_ext}$major'
20757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20758 shlibpath_var=LD_LIBRARY_PATH
20759 shlibpath_overrides_runpath=no
20760 # This implies no fast_install, which is unacceptable.
20761 # Some rework will be needed to allow for fast_install
20762 # before this can be enabled.
20763 hardcode_into_libs=yes
20765 # Append ld.so.conf contents to the search path
20766 if test -f /etc/ld.so.conf; then
20767 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' ' '`
20768 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20771 # We used to test for /lib/ld.so.1 and disable shared libraries on
20772 # powerpc, because MkLinux only supported shared libraries with the
20773 # GNU dynamic linker. Since this was broken with cross compilers,
20774 # most powerpc-linux boxes support dynamic linking these days and
20775 # people can always --disable-shared, the test was removed, and we
20776 # assume the GNU/Linux dynamic linker is in use.
20777 dynamic_linker='GNU/Linux ld.so'
20780 knetbsd*-gnu)
20781 version_type=linux
20782 need_lib_prefix=no
20783 need_version=no
20784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20785 soname_spec='${libname}${release}${shared_ext}$major'
20786 shlibpath_var=LD_LIBRARY_PATH
20787 shlibpath_overrides_runpath=no
20788 hardcode_into_libs=yes
20789 dynamic_linker='GNU ld.so'
20792 netbsd*)
20793 version_type=sunos
20794 need_lib_prefix=no
20795 need_version=no
20796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20799 dynamic_linker='NetBSD (a.out) ld.so'
20800 else
20801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20802 soname_spec='${libname}${release}${shared_ext}$major'
20803 dynamic_linker='NetBSD ld.elf_so'
20805 shlibpath_var=LD_LIBRARY_PATH
20806 shlibpath_overrides_runpath=yes
20807 hardcode_into_libs=yes
20810 newsos6)
20811 version_type=linux
20812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20813 shlibpath_var=LD_LIBRARY_PATH
20814 shlibpath_overrides_runpath=yes
20817 nto-qnx*)
20818 version_type=linux
20819 need_lib_prefix=no
20820 need_version=no
20821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20822 soname_spec='${libname}${release}${shared_ext}$major'
20823 shlibpath_var=LD_LIBRARY_PATH
20824 shlibpath_overrides_runpath=yes
20827 openbsd*)
20828 version_type=sunos
20829 sys_lib_dlsearch_path_spec="/usr/lib"
20830 need_lib_prefix=no
20831 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20832 case $host_os in
20833 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20834 *) need_version=no ;;
20835 esac
20836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20838 shlibpath_var=LD_LIBRARY_PATH
20839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20840 case $host_os in
20841 openbsd2.[89] | openbsd2.[89].*)
20842 shlibpath_overrides_runpath=no
20845 shlibpath_overrides_runpath=yes
20847 esac
20848 else
20849 shlibpath_overrides_runpath=yes
20853 os2*)
20854 libname_spec='$name'
20855 shrext_cmds=".dll"
20856 need_lib_prefix=no
20857 library_names_spec='$libname${shared_ext} $libname.a'
20858 dynamic_linker='OS/2 ld.exe'
20859 shlibpath_var=LIBPATH
20862 osf3* | osf4* | osf5*)
20863 version_type=osf
20864 need_lib_prefix=no
20865 need_version=no
20866 soname_spec='${libname}${release}${shared_ext}$major'
20867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20868 shlibpath_var=LD_LIBRARY_PATH
20869 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20870 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20873 solaris*)
20874 version_type=linux
20875 need_lib_prefix=no
20876 need_version=no
20877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20878 soname_spec='${libname}${release}${shared_ext}$major'
20879 shlibpath_var=LD_LIBRARY_PATH
20880 shlibpath_overrides_runpath=yes
20881 hardcode_into_libs=yes
20882 # ldd complains unless libraries are executable
20883 postinstall_cmds='chmod +x $lib'
20886 sunos4*)
20887 version_type=sunos
20888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20889 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20890 shlibpath_var=LD_LIBRARY_PATH
20891 shlibpath_overrides_runpath=yes
20892 if test "$with_gnu_ld" = yes; then
20893 need_lib_prefix=no
20895 need_version=yes
20898 sysv4 | sysv4.3*)
20899 version_type=linux
20900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20901 soname_spec='${libname}${release}${shared_ext}$major'
20902 shlibpath_var=LD_LIBRARY_PATH
20903 case $host_vendor in
20904 sni)
20905 shlibpath_overrides_runpath=no
20906 need_lib_prefix=no
20907 export_dynamic_flag_spec='${wl}-Blargedynsym'
20908 runpath_var=LD_RUN_PATH
20910 siemens)
20911 need_lib_prefix=no
20913 motorola)
20914 need_lib_prefix=no
20915 need_version=no
20916 shlibpath_overrides_runpath=no
20917 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20919 esac
20922 sysv4*MP*)
20923 if test -d /usr/nec ;then
20924 version_type=linux
20925 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20926 soname_spec='$libname${shared_ext}.$major'
20927 shlibpath_var=LD_LIBRARY_PATH
20931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20932 version_type=freebsd-elf
20933 need_lib_prefix=no
20934 need_version=no
20935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20936 soname_spec='${libname}${release}${shared_ext}$major'
20937 shlibpath_var=LD_LIBRARY_PATH
20938 hardcode_into_libs=yes
20939 if test "$with_gnu_ld" = yes; then
20940 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20941 shlibpath_overrides_runpath=no
20942 else
20943 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20944 shlibpath_overrides_runpath=yes
20945 case $host_os in
20946 sco3.2v5*)
20947 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20949 esac
20951 sys_lib_dlsearch_path_spec='/usr/lib'
20954 uts4*)
20955 version_type=linux
20956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20957 soname_spec='${libname}${release}${shared_ext}$major'
20958 shlibpath_var=LD_LIBRARY_PATH
20962 dynamic_linker=no
20964 esac
20965 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20966 echo "${ECHO_T}$dynamic_linker" >&6; }
20967 test "$dynamic_linker" = no && can_build_shared=no
20969 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20970 if test "$GCC" = yes; then
20971 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20974 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20975 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20976 hardcode_action_CXX=
20977 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20978 test -n "$runpath_var_CXX" || \
20979 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20981 # We can hardcode non-existant directories.
20982 if test "$hardcode_direct_CXX" != no &&
20983 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20984 # have to relink, otherwise we might link with an installed library
20985 # when we should be linking with a yet-to-be-installed one
20986 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20987 test "$hardcode_minus_L_CXX" != no; then
20988 # Linking always hardcodes the temporary library directory.
20989 hardcode_action_CXX=relink
20990 else
20991 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20992 hardcode_action_CXX=immediate
20994 else
20995 # We cannot hardcode anything, or else we can only hardcode existing
20996 # directories.
20997 hardcode_action_CXX=unsupported
20999 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21000 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21002 if test "$hardcode_action_CXX" = relink; then
21003 # Fast installation is not supported
21004 enable_fast_install=no
21005 elif test "$shlibpath_overrides_runpath" = yes ||
21006 test "$enable_shared" = no; then
21007 # Fast installation is not necessary
21008 enable_fast_install=needless
21012 # The else clause should only fire when bootstrapping the
21013 # libtool distribution, otherwise you forgot to ship ltmain.sh
21014 # with your package, and you will get complaints that there are
21015 # no rules to generate ltmain.sh.
21016 if test -f "$ltmain"; then
21017 # See if we are running on zsh, and set the options which allow our commands through
21018 # without removal of \ escapes.
21019 if test -n "${ZSH_VERSION+set}" ; then
21020 setopt NO_GLOB_SUBST
21022 # Now quote all the things that may contain metacharacters while being
21023 # careful not to overquote the AC_SUBSTed values. We take copies of the
21024 # variables and quote the copies for generation of the libtool script.
21025 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21026 SED SHELL STRIP \
21027 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21028 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21029 deplibs_check_method reload_flag reload_cmds need_locks \
21030 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21031 lt_cv_sys_global_symbol_to_c_name_address \
21032 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21033 old_postinstall_cmds old_postuninstall_cmds \
21034 compiler_CXX \
21035 CC_CXX \
21036 LD_CXX \
21037 lt_prog_compiler_wl_CXX \
21038 lt_prog_compiler_pic_CXX \
21039 lt_prog_compiler_static_CXX \
21040 lt_prog_compiler_no_builtin_flag_CXX \
21041 export_dynamic_flag_spec_CXX \
21042 thread_safe_flag_spec_CXX \
21043 whole_archive_flag_spec_CXX \
21044 enable_shared_with_static_runtimes_CXX \
21045 old_archive_cmds_CXX \
21046 old_archive_from_new_cmds_CXX \
21047 predep_objects_CXX \
21048 postdep_objects_CXX \
21049 predeps_CXX \
21050 postdeps_CXX \
21051 compiler_lib_search_path_CXX \
21052 archive_cmds_CXX \
21053 archive_expsym_cmds_CXX \
21054 postinstall_cmds_CXX \
21055 postuninstall_cmds_CXX \
21056 old_archive_from_expsyms_cmds_CXX \
21057 allow_undefined_flag_CXX \
21058 no_undefined_flag_CXX \
21059 export_symbols_cmds_CXX \
21060 hardcode_libdir_flag_spec_CXX \
21061 hardcode_libdir_flag_spec_ld_CXX \
21062 hardcode_libdir_separator_CXX \
21063 hardcode_automatic_CXX \
21064 module_cmds_CXX \
21065 module_expsym_cmds_CXX \
21066 lt_cv_prog_compiler_c_o_CXX \
21067 exclude_expsyms_CXX \
21068 include_expsyms_CXX; do
21070 case $var in
21071 old_archive_cmds_CXX | \
21072 old_archive_from_new_cmds_CXX | \
21073 archive_cmds_CXX | \
21074 archive_expsym_cmds_CXX | \
21075 module_cmds_CXX | \
21076 module_expsym_cmds_CXX | \
21077 old_archive_from_expsyms_cmds_CXX | \
21078 export_symbols_cmds_CXX | \
21079 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21080 postinstall_cmds | postuninstall_cmds | \
21081 old_postinstall_cmds | old_postuninstall_cmds | \
21082 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21083 # Double-quote double-evaled strings.
21084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21087 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21089 esac
21090 done
21092 case $lt_echo in
21093 *'\$0 --fallback-echo"')
21094 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21096 esac
21098 cfgfile="$ofile"
21100 cat <<__EOF__ >> "$cfgfile"
21101 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21103 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21105 # Shell to use when invoking shell scripts.
21106 SHELL=$lt_SHELL
21108 # Whether or not to build shared libraries.
21109 build_libtool_libs=$enable_shared
21111 # Whether or not to build static libraries.
21112 build_old_libs=$enable_static
21114 # Whether or not to add -lc for building shared libraries.
21115 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21117 # Whether or not to disallow shared libs when runtime libs are static
21118 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21120 # Whether or not to optimize for fast installation.
21121 fast_install=$enable_fast_install
21123 # The host system.
21124 host_alias=$host_alias
21125 host=$host
21126 host_os=$host_os
21128 # The build system.
21129 build_alias=$build_alias
21130 build=$build
21131 build_os=$build_os
21133 # An echo program that does not interpret backslashes.
21134 echo=$lt_echo
21136 # The archiver.
21137 AR=$lt_AR
21138 AR_FLAGS=$lt_AR_FLAGS
21140 # A C compiler.
21141 LTCC=$lt_LTCC
21143 # LTCC compiler flags.
21144 LTCFLAGS=$lt_LTCFLAGS
21146 # A language-specific compiler.
21147 CC=$lt_compiler_CXX
21149 # Is the compiler the GNU C compiler?
21150 with_gcc=$GCC_CXX
21152 # An ERE matcher.
21153 EGREP=$lt_EGREP
21155 # The linker used to build libraries.
21156 LD=$lt_LD_CXX
21158 # Whether we need hard or soft links.
21159 LN_S=$lt_LN_S
21161 # A BSD-compatible nm program.
21162 NM=$lt_NM
21164 # A symbol stripping program
21165 STRIP=$lt_STRIP
21167 # Used to examine libraries when file_magic_cmd begins "file"
21168 MAGIC_CMD=$MAGIC_CMD
21170 # Used on cygwin: DLL creation program.
21171 DLLTOOL="$DLLTOOL"
21173 # Used on cygwin: object dumper.
21174 OBJDUMP="$OBJDUMP"
21176 # Used on cygwin: assembler.
21177 AS="$AS"
21179 # The name of the directory that contains temporary libtool files.
21180 objdir=$objdir
21182 # How to create reloadable object files.
21183 reload_flag=$lt_reload_flag
21184 reload_cmds=$lt_reload_cmds
21186 # How to pass a linker flag through the compiler.
21187 wl=$lt_lt_prog_compiler_wl_CXX
21189 # Object file suffix (normally "o").
21190 objext="$ac_objext"
21192 # Old archive suffix (normally "a").
21193 libext="$libext"
21195 # Shared library suffix (normally ".so").
21196 shrext_cmds='$shrext_cmds'
21198 # Executable file suffix (normally "").
21199 exeext="$exeext"
21201 # Additional compiler flags for building library objects.
21202 pic_flag=$lt_lt_prog_compiler_pic_CXX
21203 pic_mode=$pic_mode
21205 # What is the maximum length of a command?
21206 max_cmd_len=$lt_cv_sys_max_cmd_len
21208 # Does compiler simultaneously support -c and -o options?
21209 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21211 # Must we lock files when doing compilation?
21212 need_locks=$lt_need_locks
21214 # Do we need the lib prefix for modules?
21215 need_lib_prefix=$need_lib_prefix
21217 # Do we need a version for libraries?
21218 need_version=$need_version
21220 # Whether dlopen is supported.
21221 dlopen_support=$enable_dlopen
21223 # Whether dlopen of programs is supported.
21224 dlopen_self=$enable_dlopen_self
21226 # Whether dlopen of statically linked programs is supported.
21227 dlopen_self_static=$enable_dlopen_self_static
21229 # Compiler flag to prevent dynamic linking.
21230 link_static_flag=$lt_lt_prog_compiler_static_CXX
21232 # Compiler flag to turn off builtin functions.
21233 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21235 # Compiler flag to allow reflexive dlopens.
21236 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21238 # Compiler flag to generate shared objects directly from archives.
21239 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21241 # Compiler flag to generate thread-safe objects.
21242 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21244 # Library versioning type.
21245 version_type=$version_type
21247 # Format of library name prefix.
21248 libname_spec=$lt_libname_spec
21250 # List of archive names. First name is the real one, the rest are links.
21251 # The last name is the one that the linker finds with -lNAME.
21252 library_names_spec=$lt_library_names_spec
21254 # The coded name of the library, if different from the real name.
21255 soname_spec=$lt_soname_spec
21257 # Commands used to build and install an old-style archive.
21258 RANLIB=$lt_RANLIB
21259 old_archive_cmds=$lt_old_archive_cmds_CXX
21260 old_postinstall_cmds=$lt_old_postinstall_cmds
21261 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21263 # Create an old-style archive from a shared archive.
21264 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21266 # Create a temporary old-style archive to link instead of a shared archive.
21267 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21269 # Commands used to build and install a shared archive.
21270 archive_cmds=$lt_archive_cmds_CXX
21271 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21272 postinstall_cmds=$lt_postinstall_cmds
21273 postuninstall_cmds=$lt_postuninstall_cmds
21275 # Commands used to build a loadable module (assumed same as above if empty)
21276 module_cmds=$lt_module_cmds_CXX
21277 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21279 # Commands to strip libraries.
21280 old_striplib=$lt_old_striplib
21281 striplib=$lt_striplib
21283 # Dependencies to place before the objects being linked to create a
21284 # shared library.
21285 predep_objects=$lt_predep_objects_CXX
21287 # Dependencies to place after the objects being linked to create a
21288 # shared library.
21289 postdep_objects=$lt_postdep_objects_CXX
21291 # Dependencies to place before the objects being linked to create a
21292 # shared library.
21293 predeps=$lt_predeps_CXX
21295 # Dependencies to place after the objects being linked to create a
21296 # shared library.
21297 postdeps=$lt_postdeps_CXX
21299 # The library search path used internally by the compiler when linking
21300 # a shared library.
21301 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21303 # Method to check whether dependent libraries are shared objects.
21304 deplibs_check_method=$lt_deplibs_check_method
21306 # Command to use when deplibs_check_method == file_magic.
21307 file_magic_cmd=$lt_file_magic_cmd
21309 # Flag that allows shared libraries with undefined symbols to be built.
21310 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21312 # Flag that forces no undefined symbols.
21313 no_undefined_flag=$lt_no_undefined_flag_CXX
21315 # Commands used to finish a libtool library installation in a directory.
21316 finish_cmds=$lt_finish_cmds
21318 # Same as above, but a single script fragment to be evaled but not shown.
21319 finish_eval=$lt_finish_eval
21321 # Take the output of nm and produce a listing of raw symbols and C names.
21322 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21324 # Transform the output of nm in a proper C declaration
21325 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21327 # Transform the output of nm in a C name address pair
21328 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21330 # This is the shared library runtime path variable.
21331 runpath_var=$runpath_var
21333 # This is the shared library path variable.
21334 shlibpath_var=$shlibpath_var
21336 # Is shlibpath searched before the hard-coded library search path?
21337 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21339 # How to hardcode a shared library path into an executable.
21340 hardcode_action=$hardcode_action_CXX
21342 # Whether we should hardcode library paths into libraries.
21343 hardcode_into_libs=$hardcode_into_libs
21345 # Flag to hardcode \$libdir into a binary during linking.
21346 # This must work even if \$libdir does not exist.
21347 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21349 # If ld is used when linking, flag to hardcode \$libdir into
21350 # a binary during linking. This must work even if \$libdir does
21351 # not exist.
21352 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21354 # Whether we need a single -rpath flag with a separated argument.
21355 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21357 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21358 # resulting binary.
21359 hardcode_direct=$hardcode_direct_CXX
21361 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21362 # resulting binary.
21363 hardcode_minus_L=$hardcode_minus_L_CXX
21365 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21366 # the resulting binary.
21367 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21369 # Set to yes if building a shared library automatically hardcodes DIR into the library
21370 # and all subsequent libraries and executables linked against it.
21371 hardcode_automatic=$hardcode_automatic_CXX
21373 # Variables whose values should be saved in libtool wrapper scripts and
21374 # restored at relink time.
21375 variables_saved_for_relink="$variables_saved_for_relink"
21377 # Whether libtool must link a program against all its dependency libraries.
21378 link_all_deplibs=$link_all_deplibs_CXX
21380 # Compile-time system search path for libraries
21381 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21383 # Run-time system search path for libraries
21384 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21386 # Fix the shell variable \$srcfile for the compiler.
21387 fix_srcfile_path="$fix_srcfile_path_CXX"
21389 # Set to yes if exported symbols are required.
21390 always_export_symbols=$always_export_symbols_CXX
21392 # The commands to list exported symbols.
21393 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21395 # The commands to extract the exported symbol list from a shared archive.
21396 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21398 # Symbols that should not be listed in the preloaded symbols.
21399 exclude_expsyms=$lt_exclude_expsyms_CXX
21401 # Symbols that must always be exported.
21402 include_expsyms=$lt_include_expsyms_CXX
21404 # ### END LIBTOOL TAG CONFIG: $tagname
21406 __EOF__
21409 else
21410 # If there is no Makefile yet, we rely on a make rule to execute
21411 # `config.status --recheck' to rerun these tests and create the
21412 # libtool script then.
21413 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21414 if test -f "$ltmain_in"; then
21415 test -f Makefile && make "$ltmain"
21420 ac_ext=c
21421 ac_cpp='$CPP $CPPFLAGS'
21422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21426 CC=$lt_save_CC
21427 LDCXX=$LD
21428 LD=$lt_save_LD
21429 GCC=$lt_save_GCC
21430 with_gnu_ldcxx=$with_gnu_ld
21431 with_gnu_ld=$lt_save_with_gnu_ld
21432 lt_cv_path_LDCXX=$lt_cv_path_LD
21433 lt_cv_path_LD=$lt_save_path_LD
21434 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21435 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21437 else
21438 tagname=""
21442 F77)
21443 if test -n "$F77" && test "X$F77" != "Xno"; then
21445 ac_ext=f
21446 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21447 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21448 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21451 archive_cmds_need_lc_F77=no
21452 allow_undefined_flag_F77=
21453 always_export_symbols_F77=no
21454 archive_expsym_cmds_F77=
21455 export_dynamic_flag_spec_F77=
21456 hardcode_direct_F77=no
21457 hardcode_libdir_flag_spec_F77=
21458 hardcode_libdir_flag_spec_ld_F77=
21459 hardcode_libdir_separator_F77=
21460 hardcode_minus_L_F77=no
21461 hardcode_automatic_F77=no
21462 module_cmds_F77=
21463 module_expsym_cmds_F77=
21464 link_all_deplibs_F77=unknown
21465 old_archive_cmds_F77=$old_archive_cmds
21466 no_undefined_flag_F77=
21467 whole_archive_flag_spec_F77=
21468 enable_shared_with_static_runtimes_F77=no
21470 # Source file extension for f77 test sources.
21471 ac_ext=f
21473 # Object file extension for compiled f77 test sources.
21474 objext=o
21475 objext_F77=$objext
21477 # Code to be used in simple compile tests
21478 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21480 # Code to be used in simple link tests
21481 lt_simple_link_test_code=" program t\n end\n"
21483 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21485 # If no C compiler was specified, use CC.
21486 LTCC=${LTCC-"$CC"}
21488 # If no C compiler flags were specified, use CFLAGS.
21489 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21491 # Allow CC to be a program name with arguments.
21492 compiler=$CC
21495 # save warnings/boilerplate of simple test code
21496 ac_outfile=conftest.$ac_objext
21497 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21498 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21499 _lt_compiler_boilerplate=`cat conftest.err`
21500 $rm conftest*
21502 ac_outfile=conftest.$ac_objext
21503 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21504 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21505 _lt_linker_boilerplate=`cat conftest.err`
21506 $rm conftest*
21509 # Allow CC to be a program name with arguments.
21510 lt_save_CC="$CC"
21511 CC=${F77-"f77"}
21512 compiler=$CC
21513 compiler_F77=$CC
21514 for cc_temp in $compiler""; do
21515 case $cc_temp in
21516 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21517 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21518 \-*) ;;
21519 *) break;;
21520 esac
21521 done
21522 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21525 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21526 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21527 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21528 echo "${ECHO_T}$can_build_shared" >&6; }
21530 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21531 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21532 test "$can_build_shared" = "no" && enable_shared=no
21534 # On AIX, shared libraries and static libraries use the same namespace, and
21535 # are all built from PIC.
21536 case $host_os in
21537 aix3*)
21538 test "$enable_shared" = yes && enable_static=no
21539 if test -n "$RANLIB"; then
21540 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21541 postinstall_cmds='$RANLIB $lib'
21544 aix4* | aix5*)
21545 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21546 test "$enable_shared" = yes && enable_static=no
21549 esac
21550 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21551 echo "${ECHO_T}$enable_shared" >&6; }
21553 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21554 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21555 # Make sure either enable_shared or enable_static is yes.
21556 test "$enable_shared" = yes || enable_static=yes
21557 { echo "$as_me:$LINENO: result: $enable_static" >&5
21558 echo "${ECHO_T}$enable_static" >&6; }
21560 GCC_F77="$G77"
21561 LD_F77="$LD"
21563 lt_prog_compiler_wl_F77=
21564 lt_prog_compiler_pic_F77=
21565 lt_prog_compiler_static_F77=
21567 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21568 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21570 if test "$GCC" = yes; then
21571 lt_prog_compiler_wl_F77='-Wl,'
21572 lt_prog_compiler_static_F77='-static'
21574 case $host_os in
21575 aix*)
21576 # All AIX code is PIC.
21577 if test "$host_cpu" = ia64; then
21578 # AIX 5 now supports IA64 processor
21579 lt_prog_compiler_static_F77='-Bstatic'
21583 amigaos*)
21584 # FIXME: we need at least 68020 code to build shared libraries, but
21585 # adding the `-m68020' flag to GCC prevents building anything better,
21586 # like `-m68040'.
21587 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21590 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21591 # PIC is the default for these OSes.
21594 mingw* | pw32* | os2*)
21595 # This hack is so that the source file can tell whether it is being
21596 # built for inclusion in a dll (and should export symbols for example).
21597 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21600 darwin* | rhapsody*)
21601 # PIC is the default on this platform
21602 # Common symbols not allowed in MH_DYLIB files
21603 lt_prog_compiler_pic_F77='-fno-common'
21606 interix3*)
21607 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21608 # Instead, we relocate shared libraries at runtime.
21611 msdosdjgpp*)
21612 # Just because we use GCC doesn't mean we suddenly get shared libraries
21613 # on systems that don't support them.
21614 lt_prog_compiler_can_build_shared_F77=no
21615 enable_shared=no
21618 sysv4*MP*)
21619 if test -d /usr/nec; then
21620 lt_prog_compiler_pic_F77=-Kconform_pic
21624 hpux*)
21625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21626 # not for PA HP-UX.
21627 case $host_cpu in
21628 hppa*64*|ia64*)
21629 # +Z the default
21632 lt_prog_compiler_pic_F77='-fPIC'
21634 esac
21638 lt_prog_compiler_pic_F77='-fPIC'
21640 esac
21641 else
21642 # PORTME Check for flag to pass linker flags through the system compiler.
21643 case $host_os in
21644 aix*)
21645 lt_prog_compiler_wl_F77='-Wl,'
21646 if test "$host_cpu" = ia64; then
21647 # AIX 5 now supports IA64 processor
21648 lt_prog_compiler_static_F77='-Bstatic'
21649 else
21650 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21653 darwin*)
21654 # PIC is the default on this platform
21655 # Common symbols not allowed in MH_DYLIB files
21656 case $cc_basename in
21657 xlc*)
21658 lt_prog_compiler_pic_F77='-qnocommon'
21659 lt_prog_compiler_wl_F77='-Wl,'
21661 esac
21664 mingw* | pw32* | os2*)
21665 # This hack is so that the source file can tell whether it is being
21666 # built for inclusion in a dll (and should export symbols for example).
21667 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21670 hpux9* | hpux10* | hpux11*)
21671 lt_prog_compiler_wl_F77='-Wl,'
21672 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21673 # not for PA HP-UX.
21674 case $host_cpu in
21675 hppa*64*|ia64*)
21676 # +Z the default
21679 lt_prog_compiler_pic_F77='+Z'
21681 esac
21682 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21683 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21686 irix5* | irix6* | nonstopux*)
21687 lt_prog_compiler_wl_F77='-Wl,'
21688 # PIC (with -KPIC) is the default.
21689 lt_prog_compiler_static_F77='-non_shared'
21692 newsos6)
21693 lt_prog_compiler_pic_F77='-KPIC'
21694 lt_prog_compiler_static_F77='-Bstatic'
21697 linux*)
21698 case $cc_basename in
21699 icc* | ecc*)
21700 lt_prog_compiler_wl_F77='-Wl,'
21701 lt_prog_compiler_pic_F77='-KPIC'
21702 lt_prog_compiler_static_F77='-static'
21704 pgcc* | pgf77* | pgf90* | pgf95*)
21705 # Portland Group compilers (*not* the Pentium gcc compiler,
21706 # which looks to be a dead project)
21707 lt_prog_compiler_wl_F77='-Wl,'
21708 lt_prog_compiler_pic_F77='-fpic'
21709 lt_prog_compiler_static_F77='-Bstatic'
21711 ccc*)
21712 lt_prog_compiler_wl_F77='-Wl,'
21713 # All Alpha code is PIC.
21714 lt_prog_compiler_static_F77='-non_shared'
21716 esac
21719 osf3* | osf4* | osf5*)
21720 lt_prog_compiler_wl_F77='-Wl,'
21721 # All OSF/1 code is PIC.
21722 lt_prog_compiler_static_F77='-non_shared'
21725 solaris*)
21726 lt_prog_compiler_pic_F77='-KPIC'
21727 lt_prog_compiler_static_F77='-Bstatic'
21728 case $cc_basename in
21729 f77* | f90* | f95*)
21730 lt_prog_compiler_wl_F77='-Qoption ld ';;
21732 lt_prog_compiler_wl_F77='-Wl,';;
21733 esac
21736 sunos4*)
21737 lt_prog_compiler_wl_F77='-Qoption ld '
21738 lt_prog_compiler_pic_F77='-PIC'
21739 lt_prog_compiler_static_F77='-Bstatic'
21742 sysv4 | sysv4.2uw2* | sysv4.3*)
21743 lt_prog_compiler_wl_F77='-Wl,'
21744 lt_prog_compiler_pic_F77='-KPIC'
21745 lt_prog_compiler_static_F77='-Bstatic'
21748 sysv4*MP*)
21749 if test -d /usr/nec ;then
21750 lt_prog_compiler_pic_F77='-Kconform_pic'
21751 lt_prog_compiler_static_F77='-Bstatic'
21755 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21756 lt_prog_compiler_wl_F77='-Wl,'
21757 lt_prog_compiler_pic_F77='-KPIC'
21758 lt_prog_compiler_static_F77='-Bstatic'
21761 unicos*)
21762 lt_prog_compiler_wl_F77='-Wl,'
21763 lt_prog_compiler_can_build_shared_F77=no
21766 uts4*)
21767 lt_prog_compiler_pic_F77='-pic'
21768 lt_prog_compiler_static_F77='-Bstatic'
21772 lt_prog_compiler_can_build_shared_F77=no
21774 esac
21777 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21778 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21781 # Check to make sure the PIC flag actually works.
21783 if test -n "$lt_prog_compiler_pic_F77"; then
21785 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21786 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21787 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21788 echo $ECHO_N "(cached) $ECHO_C" >&6
21789 else
21790 lt_prog_compiler_pic_works_F77=no
21791 ac_outfile=conftest.$ac_objext
21792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21793 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21794 # Insert the option either (1) after the last *FLAGS variable, or
21795 # (2) before a word containing "conftest.", or (3) at the end.
21796 # Note that $ac_compile itself does not contain backslashes and begins
21797 # with a dollar sign (not a hyphen), so the echo should work correctly.
21798 # The option is referenced via a variable to avoid confusing sed.
21799 lt_compile=`echo "$ac_compile" | $SED \
21800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21802 -e 's:$: $lt_compiler_flag:'`
21803 (eval echo "\"\$as_me:21803: $lt_compile\"" >&5)
21804 (eval "$lt_compile" 2>conftest.err)
21805 ac_status=$?
21806 cat conftest.err >&5
21807 echo "$as_me:21807: \$? = $ac_status" >&5
21808 if (exit $ac_status) && test -s "$ac_outfile"; then
21809 # The compiler can only warn and ignore the option if not recognized
21810 # So say no if there are warnings other than the usual output.
21811 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21813 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21814 lt_prog_compiler_pic_works_F77=yes
21817 $rm conftest*
21820 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21821 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21823 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21824 case $lt_prog_compiler_pic_F77 in
21825 "" | " "*) ;;
21826 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21827 esac
21828 else
21829 lt_prog_compiler_pic_F77=
21830 lt_prog_compiler_can_build_shared_F77=no
21834 case $host_os in
21835 # For platforms which do not support PIC, -DPIC is meaningless:
21836 *djgpp*)
21837 lt_prog_compiler_pic_F77=
21840 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21842 esac
21845 # Check to make sure the static flag actually works.
21847 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21848 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21849 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21850 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21852 else
21853 lt_prog_compiler_static_works_F77=no
21854 save_LDFLAGS="$LDFLAGS"
21855 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21856 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21857 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21858 # The linker can only warn and ignore the option if not recognized
21859 # So say no if there are warnings
21860 if test -s conftest.err; then
21861 # Append any errors to the config.log.
21862 cat conftest.err 1>&5
21863 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21865 if diff conftest.exp conftest.er2 >/dev/null; then
21866 lt_prog_compiler_static_works_F77=yes
21868 else
21869 lt_prog_compiler_static_works_F77=yes
21872 $rm conftest*
21873 LDFLAGS="$save_LDFLAGS"
21876 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21877 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21879 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21881 else
21882 lt_prog_compiler_static_F77=
21886 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21887 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21888 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21890 else
21891 lt_cv_prog_compiler_c_o_F77=no
21892 $rm -r conftest 2>/dev/null
21893 mkdir conftest
21894 cd conftest
21895 mkdir out
21896 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21898 lt_compiler_flag="-o out/conftest2.$ac_objext"
21899 # Insert the option either (1) after the last *FLAGS variable, or
21900 # (2) before a word containing "conftest.", or (3) at the end.
21901 # Note that $ac_compile itself does not contain backslashes and begins
21902 # with a dollar sign (not a hyphen), so the echo should work correctly.
21903 lt_compile=`echo "$ac_compile" | $SED \
21904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21906 -e 's:$: $lt_compiler_flag:'`
21907 (eval echo "\"\$as_me:21907: $lt_compile\"" >&5)
21908 (eval "$lt_compile" 2>out/conftest.err)
21909 ac_status=$?
21910 cat out/conftest.err >&5
21911 echo "$as_me:21911: \$? = $ac_status" >&5
21912 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21913 then
21914 # The compiler can only warn and ignore the option if not recognized
21915 # So say no if there are warnings
21916 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21917 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21918 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21919 lt_cv_prog_compiler_c_o_F77=yes
21922 chmod u+w . 2>&5
21923 $rm conftest*
21924 # SGI C++ compiler will create directory out/ii_files/ for
21925 # template instantiation
21926 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21927 $rm out/* && rmdir out
21928 cd ..
21929 rmdir conftest
21930 $rm conftest*
21933 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21934 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21937 hard_links="nottested"
21938 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21939 # do not overwrite the value of need_locks provided by the user
21940 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21941 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21942 hard_links=yes
21943 $rm conftest*
21944 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21945 touch conftest.a
21946 ln conftest.a conftest.b 2>&5 || hard_links=no
21947 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21948 { echo "$as_me:$LINENO: result: $hard_links" >&5
21949 echo "${ECHO_T}$hard_links" >&6; }
21950 if test "$hard_links" = no; then
21951 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21952 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21953 need_locks=warn
21955 else
21956 need_locks=no
21959 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21960 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21962 runpath_var=
21963 allow_undefined_flag_F77=
21964 enable_shared_with_static_runtimes_F77=no
21965 archive_cmds_F77=
21966 archive_expsym_cmds_F77=
21967 old_archive_From_new_cmds_F77=
21968 old_archive_from_expsyms_cmds_F77=
21969 export_dynamic_flag_spec_F77=
21970 whole_archive_flag_spec_F77=
21971 thread_safe_flag_spec_F77=
21972 hardcode_libdir_flag_spec_F77=
21973 hardcode_libdir_flag_spec_ld_F77=
21974 hardcode_libdir_separator_F77=
21975 hardcode_direct_F77=no
21976 hardcode_minus_L_F77=no
21977 hardcode_shlibpath_var_F77=unsupported
21978 link_all_deplibs_F77=unknown
21979 hardcode_automatic_F77=no
21980 module_cmds_F77=
21981 module_expsym_cmds_F77=
21982 always_export_symbols_F77=no
21983 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21984 # include_expsyms should be a list of space-separated symbols to be *always*
21985 # included in the symbol list
21986 include_expsyms_F77=
21987 # exclude_expsyms can be an extended regexp of symbols to exclude
21988 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21989 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21990 # as well as any symbol that contains `d'.
21991 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21992 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21993 # platforms (ab)use it in PIC code, but their linkers get confused if
21994 # the symbol is explicitly referenced. Since portable code cannot
21995 # rely on this symbol name, it's probably fine to never include it in
21996 # preloaded symbol tables.
21997 extract_expsyms_cmds=
21998 # Just being paranoid about ensuring that cc_basename is set.
21999 for cc_temp in $compiler""; do
22000 case $cc_temp in
22001 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22002 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22003 \-*) ;;
22004 *) break;;
22005 esac
22006 done
22007 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22009 case $host_os in
22010 cygwin* | mingw* | pw32*)
22011 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22012 # When not using gcc, we currently assume that we are using
22013 # Microsoft Visual C++.
22014 if test "$GCC" != yes; then
22015 with_gnu_ld=no
22018 interix*)
22019 # we just hope/assume this is gcc and not c89 (= MSVC++)
22020 with_gnu_ld=yes
22022 openbsd*)
22023 with_gnu_ld=no
22025 esac
22027 ld_shlibs_F77=yes
22028 if test "$with_gnu_ld" = yes; then
22029 # If archive_cmds runs LD, not CC, wlarc should be empty
22030 wlarc='${wl}'
22032 # Set some defaults for GNU ld with shared library support. These
22033 # are reset later if shared libraries are not supported. Putting them
22034 # here allows them to be overridden if necessary.
22035 runpath_var=LD_RUN_PATH
22036 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22037 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22038 # ancient GNU ld didn't support --whole-archive et. al.
22039 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22040 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22041 else
22042 whole_archive_flag_spec_F77=
22044 supports_anon_versioning=no
22045 case `$LD -v 2>/dev/null` in
22046 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22047 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22048 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22049 *\ 2.11.*) ;; # other 2.11 versions
22050 *) supports_anon_versioning=yes ;;
22051 esac
22053 # See if GNU ld supports shared libraries.
22054 case $host_os in
22055 aix3* | aix4* | aix5*)
22056 # On AIX/PPC, the GNU linker is very broken
22057 if test "$host_cpu" != ia64; then
22058 ld_shlibs_F77=no
22059 cat <<EOF 1>&2
22061 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22062 *** to be unable to reliably create shared libraries on AIX.
22063 *** Therefore, libtool is disabling shared libraries support. If you
22064 *** really care for shared libraries, you may want to modify your PATH
22065 *** so that a non-GNU linker is found, and then restart.
22071 amigaos*)
22072 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)'
22073 hardcode_libdir_flag_spec_F77='-L$libdir'
22074 hardcode_minus_L_F77=yes
22076 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22077 # that the semantics of dynamic libraries on AmigaOS, at least up
22078 # to version 4, is to share data among multiple programs linked
22079 # with the same dynamic library. Since this doesn't match the
22080 # behavior of shared libraries on other platforms, we can't use
22081 # them.
22082 ld_shlibs_F77=no
22085 beos*)
22086 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22087 allow_undefined_flag_F77=unsupported
22088 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22089 # support --undefined. This deserves some investigation. FIXME
22090 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22091 else
22092 ld_shlibs_F77=no
22096 cygwin* | mingw* | pw32*)
22097 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22098 # as there is no search path for DLLs.
22099 hardcode_libdir_flag_spec_F77='-L$libdir'
22100 allow_undefined_flag_F77=unsupported
22101 always_export_symbols_F77=no
22102 enable_shared_with_static_runtimes_F77=yes
22103 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22105 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22106 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22107 # If the export-symbols file already is a .def file (1st line
22108 # is EXPORTS), use it as is; otherwise, prepend...
22109 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22110 cp $export_symbols $output_objdir/$soname.def;
22111 else
22112 echo EXPORTS > $output_objdir/$soname.def;
22113 cat $export_symbols >> $output_objdir/$soname.def;
22115 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22116 else
22117 ld_shlibs_F77=no
22121 interix3*)
22122 hardcode_direct_F77=no
22123 hardcode_shlibpath_var_F77=no
22124 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22125 export_dynamic_flag_spec_F77='${wl}-E'
22126 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22127 # Instead, shared libraries are loaded at an image base (0x10000000 by
22128 # default) and relocated if they conflict, which is a slow very memory
22129 # consuming and fragmenting process. To avoid this, we pick a random,
22130 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22131 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22132 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'
22133 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'
22136 linux*)
22137 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22138 tmp_addflag=
22139 case $cc_basename,$host_cpu in
22140 pgcc*) # Portland Group C compiler
22141 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'
22142 tmp_addflag=' $pic_flag'
22144 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22145 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'
22146 tmp_addflag=' $pic_flag -Mnomain' ;;
22147 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22148 tmp_addflag=' -i_dynamic' ;;
22149 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22150 tmp_addflag=' -i_dynamic -nofor_main' ;;
22151 ifc* | ifort*) # Intel Fortran compiler
22152 tmp_addflag=' -nofor_main' ;;
22153 esac
22154 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22156 if test $supports_anon_versioning = yes; then
22157 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22158 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22159 $echo "local: *; };" >> $output_objdir/$libname.ver~
22160 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22162 else
22163 ld_shlibs_F77=no
22167 netbsd*)
22168 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22169 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22170 wlarc=
22171 else
22172 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22173 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22177 solaris*)
22178 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22179 ld_shlibs_F77=no
22180 cat <<EOF 1>&2
22182 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22183 *** create shared libraries on Solaris systems. Therefore, libtool
22184 *** is disabling shared libraries support. We urge you to upgrade GNU
22185 *** binutils to release 2.9.1 or newer. Another option is to modify
22186 *** your PATH or compiler configuration so that the native linker is
22187 *** used, and then restart.
22190 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22191 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22192 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22193 else
22194 ld_shlibs_F77=no
22198 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22199 case `$LD -v 2>&1` in
22200 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22201 ld_shlibs_F77=no
22202 cat <<_LT_EOF 1>&2
22204 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22205 *** reliably create shared libraries on SCO systems. Therefore, libtool
22206 *** is disabling shared libraries support. We urge you to upgrade GNU
22207 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22208 *** your PATH or compiler configuration so that the native linker is
22209 *** used, and then restart.
22211 _LT_EOF
22214 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22215 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22216 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22217 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22218 else
22219 ld_shlibs_F77=no
22222 esac
22225 sunos4*)
22226 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22227 wlarc=
22228 hardcode_direct_F77=yes
22229 hardcode_shlibpath_var_F77=no
22233 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22234 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22235 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22236 else
22237 ld_shlibs_F77=no
22240 esac
22242 if test "$ld_shlibs_F77" = no; then
22243 runpath_var=
22244 hardcode_libdir_flag_spec_F77=
22245 export_dynamic_flag_spec_F77=
22246 whole_archive_flag_spec_F77=
22248 else
22249 # PORTME fill in a description of your system's linker (not GNU ld)
22250 case $host_os in
22251 aix3*)
22252 allow_undefined_flag_F77=unsupported
22253 always_export_symbols_F77=yes
22254 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'
22255 # Note: this linker hardcodes the directories in LIBPATH if there
22256 # are no directories specified by -L.
22257 hardcode_minus_L_F77=yes
22258 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22259 # Neither direct hardcoding nor static linking is supported with a
22260 # broken collect2.
22261 hardcode_direct_F77=unsupported
22265 aix4* | aix5*)
22266 if test "$host_cpu" = ia64; then
22267 # On IA64, the linker does run time linking by default, so we don't
22268 # have to do anything special.
22269 aix_use_runtimelinking=no
22270 exp_sym_flag='-Bexport'
22271 no_entry_flag=""
22272 else
22273 # If we're using GNU nm, then we don't want the "-C" option.
22274 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22275 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22276 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'
22277 else
22278 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'
22280 aix_use_runtimelinking=no
22282 # Test if we are trying to use run time linking or normal
22283 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22284 # need to do runtime linking.
22285 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22286 for ld_flag in $LDFLAGS; do
22287 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22288 aix_use_runtimelinking=yes
22289 break
22291 done
22293 esac
22295 exp_sym_flag='-bexport'
22296 no_entry_flag='-bnoentry'
22299 # When large executables or shared objects are built, AIX ld can
22300 # have problems creating the table of contents. If linking a library
22301 # or program results in "error TOC overflow" add -mminimal-toc to
22302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22305 archive_cmds_F77=''
22306 hardcode_direct_F77=yes
22307 hardcode_libdir_separator_F77=':'
22308 link_all_deplibs_F77=yes
22310 if test "$GCC" = yes; then
22311 case $host_os in aix4.[012]|aix4.[012].*)
22312 # We only want to do this on AIX 4.2 and lower, the check
22313 # below for broken collect2 doesn't work under 4.3+
22314 collect2name=`${CC} -print-prog-name=collect2`
22315 if test -f "$collect2name" && \
22316 strings "$collect2name" | grep resolve_lib_name >/dev/null
22317 then
22318 # We have reworked collect2
22319 hardcode_direct_F77=yes
22320 else
22321 # We have old collect2
22322 hardcode_direct_F77=unsupported
22323 # It fails to find uninstalled libraries when the uninstalled
22324 # path is not listed in the libpath. Setting hardcode_minus_L
22325 # to unsupported forces relinking
22326 hardcode_minus_L_F77=yes
22327 hardcode_libdir_flag_spec_F77='-L$libdir'
22328 hardcode_libdir_separator_F77=
22331 esac
22332 shared_flag='-shared'
22333 if test "$aix_use_runtimelinking" = yes; then
22334 shared_flag="$shared_flag "'${wl}-G'
22336 else
22337 # not using gcc
22338 if test "$host_cpu" = ia64; then
22339 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22340 # chokes on -Wl,-G. The following line is correct:
22341 shared_flag='-G'
22342 else
22343 if test "$aix_use_runtimelinking" = yes; then
22344 shared_flag='${wl}-G'
22345 else
22346 shared_flag='${wl}-bM:SRE'
22351 # It seems that -bexpall does not export symbols beginning with
22352 # underscore (_), so it is better to generate a list of symbols to export.
22353 always_export_symbols_F77=yes
22354 if test "$aix_use_runtimelinking" = yes; then
22355 # Warning - without using the other runtime loading flags (-brtl),
22356 # -berok will link without error, but may produce a broken library.
22357 allow_undefined_flag_F77='-berok'
22358 # Determine the default libpath from the value encoded in an empty executable.
22359 cat >conftest.$ac_ext <<_ACEOF
22360 program main
22363 _ACEOF
22364 rm -f conftest.$ac_objext conftest$ac_exeext
22365 if { (ac_try="$ac_link"
22366 case "(($ac_try" in
22367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22368 *) ac_try_echo=$ac_try;;
22369 esac
22370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22371 (eval "$ac_link") 2>conftest.er1
22372 ac_status=$?
22373 grep -v '^ *+' conftest.er1 >conftest.err
22374 rm -f conftest.er1
22375 cat conftest.err >&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); } &&
22378 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22379 { (case "(($ac_try" in
22380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381 *) ac_try_echo=$ac_try;;
22382 esac
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384 (eval "$ac_try") 2>&5
22385 ac_status=$?
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; } &&
22388 { ac_try='test -s conftest$ac_exeext'
22389 { (case "(($ac_try" in
22390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391 *) ac_try_echo=$ac_try;;
22392 esac
22393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394 (eval "$ac_try") 2>&5
22395 ac_status=$?
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; }; then
22399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22401 # Check for a 64-bit object if we didn't find anything.
22402 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; }
22403 }'`; fi
22404 else
22405 echo "$as_me: failed program was:" >&5
22406 sed 's/^/| /' conftest.$ac_ext >&5
22411 rm -f core conftest.err conftest.$ac_objext \
22412 conftest$ac_exeext conftest.$ac_ext
22413 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22415 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22416 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"
22417 else
22418 if test "$host_cpu" = ia64; then
22419 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22420 allow_undefined_flag_F77="-z nodefs"
22421 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"
22422 else
22423 # Determine the default libpath from the value encoded in an empty executable.
22424 cat >conftest.$ac_ext <<_ACEOF
22425 program main
22428 _ACEOF
22429 rm -f conftest.$ac_objext conftest$ac_exeext
22430 if { (ac_try="$ac_link"
22431 case "(($ac_try" in
22432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22433 *) ac_try_echo=$ac_try;;
22434 esac
22435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22436 (eval "$ac_link") 2>conftest.er1
22437 ac_status=$?
22438 grep -v '^ *+' conftest.er1 >conftest.err
22439 rm -f conftest.er1
22440 cat conftest.err >&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } &&
22443 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22444 { (case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22447 esac
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_try") 2>&5
22450 ac_status=$?
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }; } &&
22453 { ac_try='test -s conftest$ac_exeext'
22454 { (case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22457 esac
22458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459 (eval "$ac_try") 2>&5
22460 ac_status=$?
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; }; then
22464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22466 # Check for a 64-bit object if we didn't find anything.
22467 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; }
22468 }'`; fi
22469 else
22470 echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22476 rm -f core conftest.err conftest.$ac_objext \
22477 conftest$ac_exeext conftest.$ac_ext
22478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22480 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22481 # Warning - without using the other run time loading flags,
22482 # -berok will link without error, but may produce a broken library.
22483 no_undefined_flag_F77=' ${wl}-bernotok'
22484 allow_undefined_flag_F77=' ${wl}-berok'
22485 # Exported symbols can be pulled into shared objects from archives
22486 whole_archive_flag_spec_F77='$convenience'
22487 archive_cmds_need_lc_F77=yes
22488 # This is similar to how AIX traditionally builds its shared libraries.
22489 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'
22494 amigaos*)
22495 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)'
22496 hardcode_libdir_flag_spec_F77='-L$libdir'
22497 hardcode_minus_L_F77=yes
22498 # see comment about different semantics on the GNU ld section
22499 ld_shlibs_F77=no
22502 bsdi[45]*)
22503 export_dynamic_flag_spec_F77=-rdynamic
22506 cygwin* | mingw* | pw32*)
22507 # When not using gcc, we currently assume that we are using
22508 # Microsoft Visual C++.
22509 # hardcode_libdir_flag_spec is actually meaningless, as there is
22510 # no search path for DLLs.
22511 hardcode_libdir_flag_spec_F77=' '
22512 allow_undefined_flag_F77=unsupported
22513 # Tell ltmain to make .lib files, not .a files.
22514 libext=lib
22515 # Tell ltmain to make .dll files, not .so files.
22516 shrext_cmds=".dll"
22517 # FIXME: Setting linknames here is a bad hack.
22518 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22519 # The linker will automatically build a .lib file if we build a DLL.
22520 old_archive_From_new_cmds_F77='true'
22521 # FIXME: Should let the user specify the lib program.
22522 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22523 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22524 enable_shared_with_static_runtimes_F77=yes
22527 darwin* | rhapsody*)
22528 case $host_os in
22529 rhapsody* | darwin1.[012])
22530 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22532 *) # Darwin 1.3 on
22533 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22534 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22535 else
22536 case ${MACOSX_DEPLOYMENT_TARGET} in
22537 10.[012])
22538 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22540 10.*)
22541 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22543 esac
22546 esac
22547 archive_cmds_need_lc_F77=no
22548 hardcode_direct_F77=no
22549 hardcode_automatic_F77=yes
22550 hardcode_shlibpath_var_F77=unsupported
22551 whole_archive_flag_spec_F77=''
22552 link_all_deplibs_F77=yes
22553 if test "$GCC" = yes ; then
22554 output_verbose_link_cmd='echo'
22555 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22556 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22557 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22558 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}'
22559 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}'
22560 else
22561 case $cc_basename in
22562 xlc*)
22563 output_verbose_link_cmd='echo'
22564 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22565 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22566 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22567 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}'
22568 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}'
22571 ld_shlibs_F77=no
22573 esac
22577 dgux*)
22578 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22579 hardcode_libdir_flag_spec_F77='-L$libdir'
22580 hardcode_shlibpath_var_F77=no
22583 freebsd1*)
22584 ld_shlibs_F77=no
22587 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22588 # support. Future versions do this automatically, but an explicit c++rt0.o
22589 # does not break anything, and helps significantly (at the cost of a little
22590 # extra space).
22591 freebsd2.2*)
22592 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22593 hardcode_libdir_flag_spec_F77='-R$libdir'
22594 hardcode_direct_F77=yes
22595 hardcode_shlibpath_var_F77=no
22598 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22599 freebsd2*)
22600 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22601 hardcode_direct_F77=yes
22602 hardcode_minus_L_F77=yes
22603 hardcode_shlibpath_var_F77=no
22606 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22607 freebsd* | kfreebsd*-gnu | dragonfly*)
22608 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22609 hardcode_libdir_flag_spec_F77='-R$libdir'
22610 hardcode_direct_F77=yes
22611 hardcode_shlibpath_var_F77=no
22614 hpux9*)
22615 if test "$GCC" = yes; then
22616 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'
22617 else
22618 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'
22620 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22621 hardcode_libdir_separator_F77=:
22622 hardcode_direct_F77=yes
22624 # hardcode_minus_L: Not really in the search PATH,
22625 # but as the default location of the library.
22626 hardcode_minus_L_F77=yes
22627 export_dynamic_flag_spec_F77='${wl}-E'
22630 hpux10*)
22631 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22632 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22633 else
22634 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22636 if test "$with_gnu_ld" = no; then
22637 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22638 hardcode_libdir_separator_F77=:
22640 hardcode_direct_F77=yes
22641 export_dynamic_flag_spec_F77='${wl}-E'
22643 # hardcode_minus_L: Not really in the search PATH,
22644 # but as the default location of the library.
22645 hardcode_minus_L_F77=yes
22649 hpux11*)
22650 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22651 case $host_cpu in
22652 hppa*64*)
22653 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22655 ia64*)
22656 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22659 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22661 esac
22662 else
22663 case $host_cpu in
22664 hppa*64*)
22665 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22667 ia64*)
22668 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22671 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22673 esac
22675 if test "$with_gnu_ld" = no; then
22676 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22677 hardcode_libdir_separator_F77=:
22679 case $host_cpu in
22680 hppa*64*|ia64*)
22681 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22682 hardcode_direct_F77=no
22683 hardcode_shlibpath_var_F77=no
22686 hardcode_direct_F77=yes
22687 export_dynamic_flag_spec_F77='${wl}-E'
22689 # hardcode_minus_L: Not really in the search PATH,
22690 # but as the default location of the library.
22691 hardcode_minus_L_F77=yes
22693 esac
22697 irix5* | irix6* | nonstopux*)
22698 if test "$GCC" = yes; then
22699 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'
22700 else
22701 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'
22702 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22704 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22705 hardcode_libdir_separator_F77=:
22706 link_all_deplibs_F77=yes
22709 netbsd*)
22710 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22711 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22712 else
22713 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22715 hardcode_libdir_flag_spec_F77='-R$libdir'
22716 hardcode_direct_F77=yes
22717 hardcode_shlibpath_var_F77=no
22720 newsos6)
22721 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22722 hardcode_direct_F77=yes
22723 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22724 hardcode_libdir_separator_F77=:
22725 hardcode_shlibpath_var_F77=no
22728 openbsd*)
22729 hardcode_direct_F77=yes
22730 hardcode_shlibpath_var_F77=no
22731 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22732 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22733 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22734 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22735 export_dynamic_flag_spec_F77='${wl}-E'
22736 else
22737 case $host_os in
22738 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22739 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22740 hardcode_libdir_flag_spec_F77='-R$libdir'
22743 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22744 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22746 esac
22750 os2*)
22751 hardcode_libdir_flag_spec_F77='-L$libdir'
22752 hardcode_minus_L_F77=yes
22753 allow_undefined_flag_F77=unsupported
22754 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'
22755 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22758 osf3*)
22759 if test "$GCC" = yes; then
22760 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22761 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'
22762 else
22763 allow_undefined_flag_F77=' -expect_unresolved \*'
22764 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'
22766 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22767 hardcode_libdir_separator_F77=:
22770 osf4* | osf5*) # as osf3* with the addition of -msym flag
22771 if test "$GCC" = yes; then
22772 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22773 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'
22774 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22775 else
22776 allow_undefined_flag_F77=' -expect_unresolved \*'
22777 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'
22778 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~
22779 $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'
22781 # Both c and cxx compiler support -rpath directly
22782 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22784 hardcode_libdir_separator_F77=:
22787 solaris*)
22788 no_undefined_flag_F77=' -z text'
22789 if test "$GCC" = yes; then
22790 wlarc='${wl}'
22791 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22792 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22793 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22794 else
22795 wlarc=''
22796 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22797 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22798 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22800 hardcode_libdir_flag_spec_F77='-R$libdir'
22801 hardcode_shlibpath_var_F77=no
22802 case $host_os in
22803 solaris2.[0-5] | solaris2.[0-5].*) ;;
22805 # The compiler driver will combine linker options so we
22806 # cannot just pass the convience library names through
22807 # without $wl, iff we do not link with $LD.
22808 # Luckily, gcc supports the same syntax we need for Sun Studio.
22809 # Supported since Solaris 2.6 (maybe 2.5.1?)
22810 case $wlarc in
22812 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22814 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' ;;
22815 esac ;;
22816 esac
22817 link_all_deplibs_F77=yes
22820 sunos4*)
22821 if test "x$host_vendor" = xsequent; then
22822 # Use $CC to link under sequent, because it throws in some extra .o
22823 # files that make .init and .fini sections work.
22824 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22825 else
22826 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22828 hardcode_libdir_flag_spec_F77='-L$libdir'
22829 hardcode_direct_F77=yes
22830 hardcode_minus_L_F77=yes
22831 hardcode_shlibpath_var_F77=no
22834 sysv4)
22835 case $host_vendor in
22836 sni)
22837 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22838 hardcode_direct_F77=yes # is this really true???
22840 siemens)
22841 ## LD is ld it makes a PLAMLIB
22842 ## CC just makes a GrossModule.
22843 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22844 reload_cmds_F77='$CC -r -o $output$reload_objs'
22845 hardcode_direct_F77=no
22847 motorola)
22848 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22849 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22851 esac
22852 runpath_var='LD_RUN_PATH'
22853 hardcode_shlibpath_var_F77=no
22856 sysv4.3*)
22857 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22858 hardcode_shlibpath_var_F77=no
22859 export_dynamic_flag_spec_F77='-Bexport'
22862 sysv4*MP*)
22863 if test -d /usr/nec; then
22864 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22865 hardcode_shlibpath_var_F77=no
22866 runpath_var=LD_RUN_PATH
22867 hardcode_runpath_var=yes
22868 ld_shlibs_F77=yes
22872 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22873 no_undefined_flag_F77='${wl}-z,text'
22874 archive_cmds_need_lc_F77=no
22875 hardcode_shlibpath_var_F77=no
22876 runpath_var='LD_RUN_PATH'
22878 if test "$GCC" = yes; then
22879 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22880 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22881 else
22882 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22883 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22887 sysv5* | sco3.2v5* | sco5v6*)
22888 # Note: We can NOT use -z defs as we might desire, because we do not
22889 # link with -lc, and that would cause any symbols used from libc to
22890 # always be unresolved, which means just about no library would
22891 # ever link correctly. If we're not using GNU ld we use -z text
22892 # though, which does catch some bad symbols but isn't as heavy-handed
22893 # as -z defs.
22894 no_undefined_flag_F77='${wl}-z,text'
22895 allow_undefined_flag_F77='${wl}-z,nodefs'
22896 archive_cmds_need_lc_F77=no
22897 hardcode_shlibpath_var_F77=no
22898 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22899 hardcode_libdir_separator_F77=':'
22900 link_all_deplibs_F77=yes
22901 export_dynamic_flag_spec_F77='${wl}-Bexport'
22902 runpath_var='LD_RUN_PATH'
22904 if test "$GCC" = yes; then
22905 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22906 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22907 else
22908 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22909 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22913 uts4*)
22914 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22915 hardcode_libdir_flag_spec_F77='-L$libdir'
22916 hardcode_shlibpath_var_F77=no
22920 ld_shlibs_F77=no
22922 esac
22925 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22926 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22927 test "$ld_shlibs_F77" = no && can_build_shared=no
22930 # Do we need to explicitly link libc?
22932 case "x$archive_cmds_need_lc_F77" in
22933 x|xyes)
22934 # Assume -lc should be added
22935 archive_cmds_need_lc_F77=yes
22937 if test "$enable_shared" = yes && test "$GCC" = yes; then
22938 case $archive_cmds_F77 in
22939 *'~'*)
22940 # FIXME: we may have to deal with multi-command sequences.
22942 '$CC '*)
22943 # Test whether the compiler implicitly links with -lc since on some
22944 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22945 # to ld, don't add -lc before -lgcc.
22946 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22947 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22948 $rm conftest*
22949 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22952 (eval $ac_compile) 2>&5
22953 ac_status=$?
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); } 2>conftest.err; then
22956 soname=conftest
22957 lib=conftest
22958 libobjs=conftest.$ac_objext
22959 deplibs=
22960 wl=$lt_prog_compiler_wl_F77
22961 pic_flag=$lt_prog_compiler_pic_F77
22962 compiler_flags=-v
22963 linker_flags=-v
22964 verstring=
22965 output_objdir=.
22966 libname=conftest
22967 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22968 allow_undefined_flag_F77=
22969 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22970 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22971 ac_status=$?
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); }
22974 then
22975 archive_cmds_need_lc_F77=no
22976 else
22977 archive_cmds_need_lc_F77=yes
22979 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22980 else
22981 cat conftest.err 1>&5
22983 $rm conftest*
22984 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22985 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22987 esac
22990 esac
22992 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22993 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22994 library_names_spec=
22995 libname_spec='lib$name'
22996 soname_spec=
22997 shrext_cmds=".so"
22998 postinstall_cmds=
22999 postuninstall_cmds=
23000 finish_cmds=
23001 finish_eval=
23002 shlibpath_var=
23003 shlibpath_overrides_runpath=unknown
23004 version_type=none
23005 dynamic_linker="$host_os ld.so"
23006 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23007 if test "$GCC" = yes; then
23008 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23009 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23010 # if the path contains ";" then we assume it to be the separator
23011 # otherwise default to the standard path separator (i.e. ":") - it is
23012 # assumed that no part of a normal pathname contains ";" but that should
23013 # okay in the real world where ";" in dirpaths is itself problematic.
23014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23015 else
23016 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23018 else
23019 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23021 need_lib_prefix=unknown
23022 hardcode_into_libs=no
23024 # when you set need_version to no, make sure it does not cause -set_version
23025 # flags to be left without arguments
23026 need_version=unknown
23028 case $host_os in
23029 aix3*)
23030 version_type=linux
23031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23032 shlibpath_var=LIBPATH
23034 # AIX 3 has no versioning support, so we append a major version to the name.
23035 soname_spec='${libname}${release}${shared_ext}$major'
23038 aix4* | aix5*)
23039 version_type=linux
23040 need_lib_prefix=no
23041 need_version=no
23042 hardcode_into_libs=yes
23043 if test "$host_cpu" = ia64; then
23044 # AIX 5 supports IA64
23045 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23046 shlibpath_var=LD_LIBRARY_PATH
23047 else
23048 # With GCC up to 2.95.x, collect2 would create an import file
23049 # for dependence libraries. The import file would start with
23050 # the line `#! .'. This would cause the generated library to
23051 # depend on `.', always an invalid library. This was fixed in
23052 # development snapshots of GCC prior to 3.0.
23053 case $host_os in
23054 aix4 | aix4.[01] | aix4.[01].*)
23055 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23056 echo ' yes '
23057 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23059 else
23060 can_build_shared=no
23063 esac
23064 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23065 # soname into executable. Probably we can add versioning support to
23066 # collect2, so additional links can be useful in future.
23067 if test "$aix_use_runtimelinking" = yes; then
23068 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23069 # instead of lib<name>.a to let people know that these are not
23070 # typical AIX shared libraries.
23071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23072 else
23073 # We preserve .a as extension for shared libraries through AIX4.2
23074 # and later when we are not doing run time linking.
23075 library_names_spec='${libname}${release}.a $libname.a'
23076 soname_spec='${libname}${release}${shared_ext}$major'
23078 shlibpath_var=LIBPATH
23082 amigaos*)
23083 library_names_spec='$libname.ixlibrary $libname.a'
23084 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23085 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'
23088 beos*)
23089 library_names_spec='${libname}${shared_ext}'
23090 dynamic_linker="$host_os ld.so"
23091 shlibpath_var=LIBRARY_PATH
23094 bsdi[45]*)
23095 version_type=linux
23096 need_version=no
23097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23098 soname_spec='${libname}${release}${shared_ext}$major'
23099 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23100 shlibpath_var=LD_LIBRARY_PATH
23101 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23102 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23103 # the default ld.so.conf also contains /usr/contrib/lib and
23104 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23105 # libtool to hard-code these into programs
23108 cygwin* | mingw* | pw32*)
23109 version_type=windows
23110 shrext_cmds=".dll"
23111 need_version=no
23112 need_lib_prefix=no
23114 case $GCC,$host_os in
23115 yes,cygwin* | yes,mingw* | yes,pw32*)
23116 library_names_spec='$libname.dll.a'
23117 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23118 postinstall_cmds='base_file=`basename \${file}`~
23119 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23120 dldir=$destdir/`dirname \$dlpath`~
23121 test -d \$dldir || mkdir -p \$dldir~
23122 $install_prog $dir/$dlname \$dldir/$dlname~
23123 chmod a+x \$dldir/$dlname'
23124 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23125 dlpath=$dir/\$dldll~
23126 $rm \$dlpath'
23127 shlibpath_overrides_runpath=yes
23129 case $host_os in
23130 cygwin*)
23131 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23132 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23133 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23135 mingw*)
23136 # MinGW DLLs use traditional 'lib' prefix
23137 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23138 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23139 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23140 # It is most probably a Windows format PATH printed by
23141 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23142 # path with ; separators, and with drive letters. We can handle the
23143 # drive letters (cygwin fileutils understands them), so leave them,
23144 # especially as we might pass files found there to a mingw objdump,
23145 # which wouldn't understand a cygwinified path. Ahh.
23146 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23147 else
23148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23151 pw32*)
23152 # pw32 DLLs use 'pw' prefix rather than 'lib'
23153 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23155 esac
23159 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23161 esac
23162 dynamic_linker='Win32 ld.exe'
23163 # FIXME: first we should search . and the directory the executable is in
23164 shlibpath_var=PATH
23167 darwin* | rhapsody*)
23168 dynamic_linker="$host_os dyld"
23169 version_type=darwin
23170 need_lib_prefix=no
23171 need_version=no
23172 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23173 soname_spec='${libname}${release}${major}$shared_ext'
23174 shlibpath_overrides_runpath=yes
23175 shlibpath_var=DYLD_LIBRARY_PATH
23176 shrext_cmds='.dylib'
23177 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23178 if test "$GCC" = yes; then
23179 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"`
23180 else
23181 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23183 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23186 dgux*)
23187 version_type=linux
23188 need_lib_prefix=no
23189 need_version=no
23190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23191 soname_spec='${libname}${release}${shared_ext}$major'
23192 shlibpath_var=LD_LIBRARY_PATH
23195 freebsd1*)
23196 dynamic_linker=no
23199 kfreebsd*-gnu)
23200 version_type=linux
23201 need_lib_prefix=no
23202 need_version=no
23203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23204 soname_spec='${libname}${release}${shared_ext}$major'
23205 shlibpath_var=LD_LIBRARY_PATH
23206 shlibpath_overrides_runpath=no
23207 hardcode_into_libs=yes
23208 dynamic_linker='GNU ld.so'
23211 freebsd* | dragonfly*)
23212 # DragonFly does not have aout. When/if they implement a new
23213 # versioning mechanism, adjust this.
23214 if test -x /usr/bin/objformat; then
23215 objformat=`/usr/bin/objformat`
23216 else
23217 case $host_os in
23218 freebsd[123]*) objformat=aout ;;
23219 *) objformat=elf ;;
23220 esac
23222 version_type=freebsd-$objformat
23223 case $version_type in
23224 freebsd-elf*)
23225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23226 need_version=no
23227 need_lib_prefix=no
23229 freebsd-*)
23230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23231 need_version=yes
23233 esac
23234 shlibpath_var=LD_LIBRARY_PATH
23235 case $host_os in
23236 freebsd2*)
23237 shlibpath_overrides_runpath=yes
23239 freebsd3.[01]* | freebsdelf3.[01]*)
23240 shlibpath_overrides_runpath=yes
23241 hardcode_into_libs=yes
23243 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23244 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23245 shlibpath_overrides_runpath=no
23246 hardcode_into_libs=yes
23248 freebsd*) # from 4.6 on
23249 shlibpath_overrides_runpath=yes
23250 hardcode_into_libs=yes
23252 esac
23255 gnu*)
23256 version_type=linux
23257 need_lib_prefix=no
23258 need_version=no
23259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23260 soname_spec='${libname}${release}${shared_ext}$major'
23261 shlibpath_var=LD_LIBRARY_PATH
23262 hardcode_into_libs=yes
23265 hpux9* | hpux10* | hpux11*)
23266 # Give a soname corresponding to the major version so that dld.sl refuses to
23267 # link against other versions.
23268 version_type=sunos
23269 need_lib_prefix=no
23270 need_version=no
23271 case $host_cpu in
23272 ia64*)
23273 shrext_cmds='.so'
23274 hardcode_into_libs=yes
23275 dynamic_linker="$host_os dld.so"
23276 shlibpath_var=LD_LIBRARY_PATH
23277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23279 soname_spec='${libname}${release}${shared_ext}$major'
23280 if test "X$HPUX_IA64_MODE" = X32; then
23281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23282 else
23283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23287 hppa*64*)
23288 shrext_cmds='.sl'
23289 hardcode_into_libs=yes
23290 dynamic_linker="$host_os dld.sl"
23291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23294 soname_spec='${libname}${release}${shared_ext}$major'
23295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23299 shrext_cmds='.sl'
23300 dynamic_linker="$host_os dld.sl"
23301 shlibpath_var=SHLIB_PATH
23302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23304 soname_spec='${libname}${release}${shared_ext}$major'
23306 esac
23307 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23308 postinstall_cmds='chmod 555 $lib'
23311 interix3*)
23312 version_type=linux
23313 need_lib_prefix=no
23314 need_version=no
23315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23316 soname_spec='${libname}${release}${shared_ext}$major'
23317 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23318 shlibpath_var=LD_LIBRARY_PATH
23319 shlibpath_overrides_runpath=no
23320 hardcode_into_libs=yes
23323 irix5* | irix6* | nonstopux*)
23324 case $host_os in
23325 nonstopux*) version_type=nonstopux ;;
23327 if test "$lt_cv_prog_gnu_ld" = yes; then
23328 version_type=linux
23329 else
23330 version_type=irix
23331 fi ;;
23332 esac
23333 need_lib_prefix=no
23334 need_version=no
23335 soname_spec='${libname}${release}${shared_ext}$major'
23336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23337 case $host_os in
23338 irix5* | nonstopux*)
23339 libsuff= shlibsuff=
23342 case $LD in # libtool.m4 will add one of these switches to LD
23343 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23344 libsuff= shlibsuff= libmagic=32-bit;;
23345 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23346 libsuff=32 shlibsuff=N32 libmagic=N32;;
23347 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23348 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23349 *) libsuff= shlibsuff= libmagic=never-match;;
23350 esac
23352 esac
23353 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23354 shlibpath_overrides_runpath=no
23355 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23356 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23357 hardcode_into_libs=yes
23360 # No shared lib support for Linux oldld, aout, or coff.
23361 linux*oldld* | linux*aout* | linux*coff*)
23362 dynamic_linker=no
23365 # This must be Linux ELF.
23366 linux*)
23367 version_type=linux
23368 need_lib_prefix=no
23369 need_version=no
23370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23371 soname_spec='${libname}${release}${shared_ext}$major'
23372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23373 shlibpath_var=LD_LIBRARY_PATH
23374 shlibpath_overrides_runpath=no
23375 # This implies no fast_install, which is unacceptable.
23376 # Some rework will be needed to allow for fast_install
23377 # before this can be enabled.
23378 hardcode_into_libs=yes
23380 # Append ld.so.conf contents to the search path
23381 if test -f /etc/ld.so.conf; then
23382 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' ' '`
23383 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23386 # We used to test for /lib/ld.so.1 and disable shared libraries on
23387 # powerpc, because MkLinux only supported shared libraries with the
23388 # GNU dynamic linker. Since this was broken with cross compilers,
23389 # most powerpc-linux boxes support dynamic linking these days and
23390 # people can always --disable-shared, the test was removed, and we
23391 # assume the GNU/Linux dynamic linker is in use.
23392 dynamic_linker='GNU/Linux ld.so'
23395 knetbsd*-gnu)
23396 version_type=linux
23397 need_lib_prefix=no
23398 need_version=no
23399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23400 soname_spec='${libname}${release}${shared_ext}$major'
23401 shlibpath_var=LD_LIBRARY_PATH
23402 shlibpath_overrides_runpath=no
23403 hardcode_into_libs=yes
23404 dynamic_linker='GNU ld.so'
23407 netbsd*)
23408 version_type=sunos
23409 need_lib_prefix=no
23410 need_version=no
23411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23414 dynamic_linker='NetBSD (a.out) ld.so'
23415 else
23416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23417 soname_spec='${libname}${release}${shared_ext}$major'
23418 dynamic_linker='NetBSD ld.elf_so'
23420 shlibpath_var=LD_LIBRARY_PATH
23421 shlibpath_overrides_runpath=yes
23422 hardcode_into_libs=yes
23425 newsos6)
23426 version_type=linux
23427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23428 shlibpath_var=LD_LIBRARY_PATH
23429 shlibpath_overrides_runpath=yes
23432 nto-qnx*)
23433 version_type=linux
23434 need_lib_prefix=no
23435 need_version=no
23436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23437 soname_spec='${libname}${release}${shared_ext}$major'
23438 shlibpath_var=LD_LIBRARY_PATH
23439 shlibpath_overrides_runpath=yes
23442 openbsd*)
23443 version_type=sunos
23444 sys_lib_dlsearch_path_spec="/usr/lib"
23445 need_lib_prefix=no
23446 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23447 case $host_os in
23448 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23449 *) need_version=no ;;
23450 esac
23451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23453 shlibpath_var=LD_LIBRARY_PATH
23454 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23455 case $host_os in
23456 openbsd2.[89] | openbsd2.[89].*)
23457 shlibpath_overrides_runpath=no
23460 shlibpath_overrides_runpath=yes
23462 esac
23463 else
23464 shlibpath_overrides_runpath=yes
23468 os2*)
23469 libname_spec='$name'
23470 shrext_cmds=".dll"
23471 need_lib_prefix=no
23472 library_names_spec='$libname${shared_ext} $libname.a'
23473 dynamic_linker='OS/2 ld.exe'
23474 shlibpath_var=LIBPATH
23477 osf3* | osf4* | osf5*)
23478 version_type=osf
23479 need_lib_prefix=no
23480 need_version=no
23481 soname_spec='${libname}${release}${shared_ext}$major'
23482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23483 shlibpath_var=LD_LIBRARY_PATH
23484 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23485 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23488 solaris*)
23489 version_type=linux
23490 need_lib_prefix=no
23491 need_version=no
23492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23493 soname_spec='${libname}${release}${shared_ext}$major'
23494 shlibpath_var=LD_LIBRARY_PATH
23495 shlibpath_overrides_runpath=yes
23496 hardcode_into_libs=yes
23497 # ldd complains unless libraries are executable
23498 postinstall_cmds='chmod +x $lib'
23501 sunos4*)
23502 version_type=sunos
23503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23504 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23505 shlibpath_var=LD_LIBRARY_PATH
23506 shlibpath_overrides_runpath=yes
23507 if test "$with_gnu_ld" = yes; then
23508 need_lib_prefix=no
23510 need_version=yes
23513 sysv4 | sysv4.3*)
23514 version_type=linux
23515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23516 soname_spec='${libname}${release}${shared_ext}$major'
23517 shlibpath_var=LD_LIBRARY_PATH
23518 case $host_vendor in
23519 sni)
23520 shlibpath_overrides_runpath=no
23521 need_lib_prefix=no
23522 export_dynamic_flag_spec='${wl}-Blargedynsym'
23523 runpath_var=LD_RUN_PATH
23525 siemens)
23526 need_lib_prefix=no
23528 motorola)
23529 need_lib_prefix=no
23530 need_version=no
23531 shlibpath_overrides_runpath=no
23532 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23534 esac
23537 sysv4*MP*)
23538 if test -d /usr/nec ;then
23539 version_type=linux
23540 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23541 soname_spec='$libname${shared_ext}.$major'
23542 shlibpath_var=LD_LIBRARY_PATH
23546 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23547 version_type=freebsd-elf
23548 need_lib_prefix=no
23549 need_version=no
23550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23551 soname_spec='${libname}${release}${shared_ext}$major'
23552 shlibpath_var=LD_LIBRARY_PATH
23553 hardcode_into_libs=yes
23554 if test "$with_gnu_ld" = yes; then
23555 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23556 shlibpath_overrides_runpath=no
23557 else
23558 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23559 shlibpath_overrides_runpath=yes
23560 case $host_os in
23561 sco3.2v5*)
23562 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23564 esac
23566 sys_lib_dlsearch_path_spec='/usr/lib'
23569 uts4*)
23570 version_type=linux
23571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23572 soname_spec='${libname}${release}${shared_ext}$major'
23573 shlibpath_var=LD_LIBRARY_PATH
23577 dynamic_linker=no
23579 esac
23580 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23581 echo "${ECHO_T}$dynamic_linker" >&6; }
23582 test "$dynamic_linker" = no && can_build_shared=no
23584 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23585 if test "$GCC" = yes; then
23586 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23589 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23590 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23591 hardcode_action_F77=
23592 if test -n "$hardcode_libdir_flag_spec_F77" || \
23593 test -n "$runpath_var_F77" || \
23594 test "X$hardcode_automatic_F77" = "Xyes" ; then
23596 # We can hardcode non-existant directories.
23597 if test "$hardcode_direct_F77" != no &&
23598 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23599 # have to relink, otherwise we might link with an installed library
23600 # when we should be linking with a yet-to-be-installed one
23601 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23602 test "$hardcode_minus_L_F77" != no; then
23603 # Linking always hardcodes the temporary library directory.
23604 hardcode_action_F77=relink
23605 else
23606 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23607 hardcode_action_F77=immediate
23609 else
23610 # We cannot hardcode anything, or else we can only hardcode existing
23611 # directories.
23612 hardcode_action_F77=unsupported
23614 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23615 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23617 if test "$hardcode_action_F77" = relink; then
23618 # Fast installation is not supported
23619 enable_fast_install=no
23620 elif test "$shlibpath_overrides_runpath" = yes ||
23621 test "$enable_shared" = no; then
23622 # Fast installation is not necessary
23623 enable_fast_install=needless
23627 # The else clause should only fire when bootstrapping the
23628 # libtool distribution, otherwise you forgot to ship ltmain.sh
23629 # with your package, and you will get complaints that there are
23630 # no rules to generate ltmain.sh.
23631 if test -f "$ltmain"; then
23632 # See if we are running on zsh, and set the options which allow our commands through
23633 # without removal of \ escapes.
23634 if test -n "${ZSH_VERSION+set}" ; then
23635 setopt NO_GLOB_SUBST
23637 # Now quote all the things that may contain metacharacters while being
23638 # careful not to overquote the AC_SUBSTed values. We take copies of the
23639 # variables and quote the copies for generation of the libtool script.
23640 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23641 SED SHELL STRIP \
23642 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23643 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23644 deplibs_check_method reload_flag reload_cmds need_locks \
23645 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23646 lt_cv_sys_global_symbol_to_c_name_address \
23647 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23648 old_postinstall_cmds old_postuninstall_cmds \
23649 compiler_F77 \
23650 CC_F77 \
23651 LD_F77 \
23652 lt_prog_compiler_wl_F77 \
23653 lt_prog_compiler_pic_F77 \
23654 lt_prog_compiler_static_F77 \
23655 lt_prog_compiler_no_builtin_flag_F77 \
23656 export_dynamic_flag_spec_F77 \
23657 thread_safe_flag_spec_F77 \
23658 whole_archive_flag_spec_F77 \
23659 enable_shared_with_static_runtimes_F77 \
23660 old_archive_cmds_F77 \
23661 old_archive_from_new_cmds_F77 \
23662 predep_objects_F77 \
23663 postdep_objects_F77 \
23664 predeps_F77 \
23665 postdeps_F77 \
23666 compiler_lib_search_path_F77 \
23667 archive_cmds_F77 \
23668 archive_expsym_cmds_F77 \
23669 postinstall_cmds_F77 \
23670 postuninstall_cmds_F77 \
23671 old_archive_from_expsyms_cmds_F77 \
23672 allow_undefined_flag_F77 \
23673 no_undefined_flag_F77 \
23674 export_symbols_cmds_F77 \
23675 hardcode_libdir_flag_spec_F77 \
23676 hardcode_libdir_flag_spec_ld_F77 \
23677 hardcode_libdir_separator_F77 \
23678 hardcode_automatic_F77 \
23679 module_cmds_F77 \
23680 module_expsym_cmds_F77 \
23681 lt_cv_prog_compiler_c_o_F77 \
23682 exclude_expsyms_F77 \
23683 include_expsyms_F77; do
23685 case $var in
23686 old_archive_cmds_F77 | \
23687 old_archive_from_new_cmds_F77 | \
23688 archive_cmds_F77 | \
23689 archive_expsym_cmds_F77 | \
23690 module_cmds_F77 | \
23691 module_expsym_cmds_F77 | \
23692 old_archive_from_expsyms_cmds_F77 | \
23693 export_symbols_cmds_F77 | \
23694 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23695 postinstall_cmds | postuninstall_cmds | \
23696 old_postinstall_cmds | old_postuninstall_cmds | \
23697 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23698 # Double-quote double-evaled strings.
23699 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23702 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23704 esac
23705 done
23707 case $lt_echo in
23708 *'\$0 --fallback-echo"')
23709 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23711 esac
23713 cfgfile="$ofile"
23715 cat <<__EOF__ >> "$cfgfile"
23716 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23718 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23720 # Shell to use when invoking shell scripts.
23721 SHELL=$lt_SHELL
23723 # Whether or not to build shared libraries.
23724 build_libtool_libs=$enable_shared
23726 # Whether or not to build static libraries.
23727 build_old_libs=$enable_static
23729 # Whether or not to add -lc for building shared libraries.
23730 build_libtool_need_lc=$archive_cmds_need_lc_F77
23732 # Whether or not to disallow shared libs when runtime libs are static
23733 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23735 # Whether or not to optimize for fast installation.
23736 fast_install=$enable_fast_install
23738 # The host system.
23739 host_alias=$host_alias
23740 host=$host
23741 host_os=$host_os
23743 # The build system.
23744 build_alias=$build_alias
23745 build=$build
23746 build_os=$build_os
23748 # An echo program that does not interpret backslashes.
23749 echo=$lt_echo
23751 # The archiver.
23752 AR=$lt_AR
23753 AR_FLAGS=$lt_AR_FLAGS
23755 # A C compiler.
23756 LTCC=$lt_LTCC
23758 # LTCC compiler flags.
23759 LTCFLAGS=$lt_LTCFLAGS
23761 # A language-specific compiler.
23762 CC=$lt_compiler_F77
23764 # Is the compiler the GNU C compiler?
23765 with_gcc=$GCC_F77
23767 # An ERE matcher.
23768 EGREP=$lt_EGREP
23770 # The linker used to build libraries.
23771 LD=$lt_LD_F77
23773 # Whether we need hard or soft links.
23774 LN_S=$lt_LN_S
23776 # A BSD-compatible nm program.
23777 NM=$lt_NM
23779 # A symbol stripping program
23780 STRIP=$lt_STRIP
23782 # Used to examine libraries when file_magic_cmd begins "file"
23783 MAGIC_CMD=$MAGIC_CMD
23785 # Used on cygwin: DLL creation program.
23786 DLLTOOL="$DLLTOOL"
23788 # Used on cygwin: object dumper.
23789 OBJDUMP="$OBJDUMP"
23791 # Used on cygwin: assembler.
23792 AS="$AS"
23794 # The name of the directory that contains temporary libtool files.
23795 objdir=$objdir
23797 # How to create reloadable object files.
23798 reload_flag=$lt_reload_flag
23799 reload_cmds=$lt_reload_cmds
23801 # How to pass a linker flag through the compiler.
23802 wl=$lt_lt_prog_compiler_wl_F77
23804 # Object file suffix (normally "o").
23805 objext="$ac_objext"
23807 # Old archive suffix (normally "a").
23808 libext="$libext"
23810 # Shared library suffix (normally ".so").
23811 shrext_cmds='$shrext_cmds'
23813 # Executable file suffix (normally "").
23814 exeext="$exeext"
23816 # Additional compiler flags for building library objects.
23817 pic_flag=$lt_lt_prog_compiler_pic_F77
23818 pic_mode=$pic_mode
23820 # What is the maximum length of a command?
23821 max_cmd_len=$lt_cv_sys_max_cmd_len
23823 # Does compiler simultaneously support -c and -o options?
23824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23826 # Must we lock files when doing compilation?
23827 need_locks=$lt_need_locks
23829 # Do we need the lib prefix for modules?
23830 need_lib_prefix=$need_lib_prefix
23832 # Do we need a version for libraries?
23833 need_version=$need_version
23835 # Whether dlopen is supported.
23836 dlopen_support=$enable_dlopen
23838 # Whether dlopen of programs is supported.
23839 dlopen_self=$enable_dlopen_self
23841 # Whether dlopen of statically linked programs is supported.
23842 dlopen_self_static=$enable_dlopen_self_static
23844 # Compiler flag to prevent dynamic linking.
23845 link_static_flag=$lt_lt_prog_compiler_static_F77
23847 # Compiler flag to turn off builtin functions.
23848 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23850 # Compiler flag to allow reflexive dlopens.
23851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23853 # Compiler flag to generate shared objects directly from archives.
23854 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23856 # Compiler flag to generate thread-safe objects.
23857 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23859 # Library versioning type.
23860 version_type=$version_type
23862 # Format of library name prefix.
23863 libname_spec=$lt_libname_spec
23865 # List of archive names. First name is the real one, the rest are links.
23866 # The last name is the one that the linker finds with -lNAME.
23867 library_names_spec=$lt_library_names_spec
23869 # The coded name of the library, if different from the real name.
23870 soname_spec=$lt_soname_spec
23872 # Commands used to build and install an old-style archive.
23873 RANLIB=$lt_RANLIB
23874 old_archive_cmds=$lt_old_archive_cmds_F77
23875 old_postinstall_cmds=$lt_old_postinstall_cmds
23876 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23878 # Create an old-style archive from a shared archive.
23879 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23881 # Create a temporary old-style archive to link instead of a shared archive.
23882 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23884 # Commands used to build and install a shared archive.
23885 archive_cmds=$lt_archive_cmds_F77
23886 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23887 postinstall_cmds=$lt_postinstall_cmds
23888 postuninstall_cmds=$lt_postuninstall_cmds
23890 # Commands used to build a loadable module (assumed same as above if empty)
23891 module_cmds=$lt_module_cmds_F77
23892 module_expsym_cmds=$lt_module_expsym_cmds_F77
23894 # Commands to strip libraries.
23895 old_striplib=$lt_old_striplib
23896 striplib=$lt_striplib
23898 # Dependencies to place before the objects being linked to create a
23899 # shared library.
23900 predep_objects=$lt_predep_objects_F77
23902 # Dependencies to place after the objects being linked to create a
23903 # shared library.
23904 postdep_objects=$lt_postdep_objects_F77
23906 # Dependencies to place before the objects being linked to create a
23907 # shared library.
23908 predeps=$lt_predeps_F77
23910 # Dependencies to place after the objects being linked to create a
23911 # shared library.
23912 postdeps=$lt_postdeps_F77
23914 # The library search path used internally by the compiler when linking
23915 # a shared library.
23916 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23918 # Method to check whether dependent libraries are shared objects.
23919 deplibs_check_method=$lt_deplibs_check_method
23921 # Command to use when deplibs_check_method == file_magic.
23922 file_magic_cmd=$lt_file_magic_cmd
23924 # Flag that allows shared libraries with undefined symbols to be built.
23925 allow_undefined_flag=$lt_allow_undefined_flag_F77
23927 # Flag that forces no undefined symbols.
23928 no_undefined_flag=$lt_no_undefined_flag_F77
23930 # Commands used to finish a libtool library installation in a directory.
23931 finish_cmds=$lt_finish_cmds
23933 # Same as above, but a single script fragment to be evaled but not shown.
23934 finish_eval=$lt_finish_eval
23936 # Take the output of nm and produce a listing of raw symbols and C names.
23937 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23939 # Transform the output of nm in a proper C declaration
23940 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23942 # Transform the output of nm in a C name address pair
23943 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23945 # This is the shared library runtime path variable.
23946 runpath_var=$runpath_var
23948 # This is the shared library path variable.
23949 shlibpath_var=$shlibpath_var
23951 # Is shlibpath searched before the hard-coded library search path?
23952 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23954 # How to hardcode a shared library path into an executable.
23955 hardcode_action=$hardcode_action_F77
23957 # Whether we should hardcode library paths into libraries.
23958 hardcode_into_libs=$hardcode_into_libs
23960 # Flag to hardcode \$libdir into a binary during linking.
23961 # This must work even if \$libdir does not exist.
23962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23964 # If ld is used when linking, flag to hardcode \$libdir into
23965 # a binary during linking. This must work even if \$libdir does
23966 # not exist.
23967 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23969 # Whether we need a single -rpath flag with a separated argument.
23970 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23972 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23973 # resulting binary.
23974 hardcode_direct=$hardcode_direct_F77
23976 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23977 # resulting binary.
23978 hardcode_minus_L=$hardcode_minus_L_F77
23980 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23981 # the resulting binary.
23982 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23984 # Set to yes if building a shared library automatically hardcodes DIR into the library
23985 # and all subsequent libraries and executables linked against it.
23986 hardcode_automatic=$hardcode_automatic_F77
23988 # Variables whose values should be saved in libtool wrapper scripts and
23989 # restored at relink time.
23990 variables_saved_for_relink="$variables_saved_for_relink"
23992 # Whether libtool must link a program against all its dependency libraries.
23993 link_all_deplibs=$link_all_deplibs_F77
23995 # Compile-time system search path for libraries
23996 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23998 # Run-time system search path for libraries
23999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24001 # Fix the shell variable \$srcfile for the compiler.
24002 fix_srcfile_path="$fix_srcfile_path_F77"
24004 # Set to yes if exported symbols are required.
24005 always_export_symbols=$always_export_symbols_F77
24007 # The commands to list exported symbols.
24008 export_symbols_cmds=$lt_export_symbols_cmds_F77
24010 # The commands to extract the exported symbol list from a shared archive.
24011 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24013 # Symbols that should not be listed in the preloaded symbols.
24014 exclude_expsyms=$lt_exclude_expsyms_F77
24016 # Symbols that must always be exported.
24017 include_expsyms=$lt_include_expsyms_F77
24019 # ### END LIBTOOL TAG CONFIG: $tagname
24021 __EOF__
24024 else
24025 # If there is no Makefile yet, we rely on a make rule to execute
24026 # `config.status --recheck' to rerun these tests and create the
24027 # libtool script then.
24028 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24029 if test -f "$ltmain_in"; then
24030 test -f Makefile && make "$ltmain"
24035 ac_ext=c
24036 ac_cpp='$CPP $CPPFLAGS'
24037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24041 CC="$lt_save_CC"
24043 else
24044 tagname=""
24048 GCJ)
24049 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24050 ac_ext=c
24051 ac_cpp='$CPP $CPPFLAGS'
24052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24057 # Source file extension for Java test sources.
24058 ac_ext=java
24060 # Object file extension for compiled Java test sources.
24061 objext=o
24062 objext_GCJ=$objext
24064 # Code to be used in simple compile tests
24065 lt_simple_compile_test_code="class foo {}\n"
24067 # Code to be used in simple link tests
24068 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24070 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24072 # If no C compiler was specified, use CC.
24073 LTCC=${LTCC-"$CC"}
24075 # If no C compiler flags were specified, use CFLAGS.
24076 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24078 # Allow CC to be a program name with arguments.
24079 compiler=$CC
24082 # save warnings/boilerplate of simple test code
24083 ac_outfile=conftest.$ac_objext
24084 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24085 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24086 _lt_compiler_boilerplate=`cat conftest.err`
24087 $rm conftest*
24089 ac_outfile=conftest.$ac_objext
24090 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24091 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24092 _lt_linker_boilerplate=`cat conftest.err`
24093 $rm conftest*
24096 # Allow CC to be a program name with arguments.
24097 lt_save_CC="$CC"
24098 CC=${GCJ-"gcj"}
24099 compiler=$CC
24100 compiler_GCJ=$CC
24101 for cc_temp in $compiler""; do
24102 case $cc_temp in
24103 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24104 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24105 \-*) ;;
24106 *) break;;
24107 esac
24108 done
24109 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24112 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24113 archive_cmds_need_lc_GCJ=no
24115 old_archive_cmds_GCJ=$old_archive_cmds
24118 lt_prog_compiler_no_builtin_flag_GCJ=
24120 if test "$GCC" = yes; then
24121 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24124 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24125 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24126 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24127 echo $ECHO_N "(cached) $ECHO_C" >&6
24128 else
24129 lt_cv_prog_compiler_rtti_exceptions=no
24130 ac_outfile=conftest.$ac_objext
24131 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24132 lt_compiler_flag="-fno-rtti -fno-exceptions"
24133 # Insert the option either (1) after the last *FLAGS variable, or
24134 # (2) before a word containing "conftest.", or (3) at the end.
24135 # Note that $ac_compile itself does not contain backslashes and begins
24136 # with a dollar sign (not a hyphen), so the echo should work correctly.
24137 # The option is referenced via a variable to avoid confusing sed.
24138 lt_compile=`echo "$ac_compile" | $SED \
24139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24141 -e 's:$: $lt_compiler_flag:'`
24142 (eval echo "\"\$as_me:24142: $lt_compile\"" >&5)
24143 (eval "$lt_compile" 2>conftest.err)
24144 ac_status=$?
24145 cat conftest.err >&5
24146 echo "$as_me:24146: \$? = $ac_status" >&5
24147 if (exit $ac_status) && test -s "$ac_outfile"; then
24148 # The compiler can only warn and ignore the option if not recognized
24149 # So say no if there are warnings other than the usual output.
24150 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24152 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24153 lt_cv_prog_compiler_rtti_exceptions=yes
24156 $rm conftest*
24159 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24160 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24162 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24163 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24164 else
24170 lt_prog_compiler_wl_GCJ=
24171 lt_prog_compiler_pic_GCJ=
24172 lt_prog_compiler_static_GCJ=
24174 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24175 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24177 if test "$GCC" = yes; then
24178 lt_prog_compiler_wl_GCJ='-Wl,'
24179 lt_prog_compiler_static_GCJ='-static'
24181 case $host_os in
24182 aix*)
24183 # All AIX code is PIC.
24184 if test "$host_cpu" = ia64; then
24185 # AIX 5 now supports IA64 processor
24186 lt_prog_compiler_static_GCJ='-Bstatic'
24190 amigaos*)
24191 # FIXME: we need at least 68020 code to build shared libraries, but
24192 # adding the `-m68020' flag to GCC prevents building anything better,
24193 # like `-m68040'.
24194 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24197 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24198 # PIC is the default for these OSes.
24201 mingw* | pw32* | os2*)
24202 # This hack is so that the source file can tell whether it is being
24203 # built for inclusion in a dll (and should export symbols for example).
24204 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24207 darwin* | rhapsody*)
24208 # PIC is the default on this platform
24209 # Common symbols not allowed in MH_DYLIB files
24210 lt_prog_compiler_pic_GCJ='-fno-common'
24213 interix3*)
24214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24215 # Instead, we relocate shared libraries at runtime.
24218 msdosdjgpp*)
24219 # Just because we use GCC doesn't mean we suddenly get shared libraries
24220 # on systems that don't support them.
24221 lt_prog_compiler_can_build_shared_GCJ=no
24222 enable_shared=no
24225 sysv4*MP*)
24226 if test -d /usr/nec; then
24227 lt_prog_compiler_pic_GCJ=-Kconform_pic
24231 hpux*)
24232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24233 # not for PA HP-UX.
24234 case $host_cpu in
24235 hppa*64*|ia64*)
24236 # +Z the default
24239 lt_prog_compiler_pic_GCJ='-fPIC'
24241 esac
24245 lt_prog_compiler_pic_GCJ='-fPIC'
24247 esac
24248 else
24249 # PORTME Check for flag to pass linker flags through the system compiler.
24250 case $host_os in
24251 aix*)
24252 lt_prog_compiler_wl_GCJ='-Wl,'
24253 if test "$host_cpu" = ia64; then
24254 # AIX 5 now supports IA64 processor
24255 lt_prog_compiler_static_GCJ='-Bstatic'
24256 else
24257 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24260 darwin*)
24261 # PIC is the default on this platform
24262 # Common symbols not allowed in MH_DYLIB files
24263 case $cc_basename in
24264 xlc*)
24265 lt_prog_compiler_pic_GCJ='-qnocommon'
24266 lt_prog_compiler_wl_GCJ='-Wl,'
24268 esac
24271 mingw* | pw32* | os2*)
24272 # This hack is so that the source file can tell whether it is being
24273 # built for inclusion in a dll (and should export symbols for example).
24274 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24277 hpux9* | hpux10* | hpux11*)
24278 lt_prog_compiler_wl_GCJ='-Wl,'
24279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24280 # not for PA HP-UX.
24281 case $host_cpu in
24282 hppa*64*|ia64*)
24283 # +Z the default
24286 lt_prog_compiler_pic_GCJ='+Z'
24288 esac
24289 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24290 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24293 irix5* | irix6* | nonstopux*)
24294 lt_prog_compiler_wl_GCJ='-Wl,'
24295 # PIC (with -KPIC) is the default.
24296 lt_prog_compiler_static_GCJ='-non_shared'
24299 newsos6)
24300 lt_prog_compiler_pic_GCJ='-KPIC'
24301 lt_prog_compiler_static_GCJ='-Bstatic'
24304 linux*)
24305 case $cc_basename in
24306 icc* | ecc*)
24307 lt_prog_compiler_wl_GCJ='-Wl,'
24308 lt_prog_compiler_pic_GCJ='-KPIC'
24309 lt_prog_compiler_static_GCJ='-static'
24311 pgcc* | pgf77* | pgf90* | pgf95*)
24312 # Portland Group compilers (*not* the Pentium gcc compiler,
24313 # which looks to be a dead project)
24314 lt_prog_compiler_wl_GCJ='-Wl,'
24315 lt_prog_compiler_pic_GCJ='-fpic'
24316 lt_prog_compiler_static_GCJ='-Bstatic'
24318 ccc*)
24319 lt_prog_compiler_wl_GCJ='-Wl,'
24320 # All Alpha code is PIC.
24321 lt_prog_compiler_static_GCJ='-non_shared'
24323 esac
24326 osf3* | osf4* | osf5*)
24327 lt_prog_compiler_wl_GCJ='-Wl,'
24328 # All OSF/1 code is PIC.
24329 lt_prog_compiler_static_GCJ='-non_shared'
24332 solaris*)
24333 lt_prog_compiler_pic_GCJ='-KPIC'
24334 lt_prog_compiler_static_GCJ='-Bstatic'
24335 case $cc_basename in
24336 f77* | f90* | f95*)
24337 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24339 lt_prog_compiler_wl_GCJ='-Wl,';;
24340 esac
24343 sunos4*)
24344 lt_prog_compiler_wl_GCJ='-Qoption ld '
24345 lt_prog_compiler_pic_GCJ='-PIC'
24346 lt_prog_compiler_static_GCJ='-Bstatic'
24349 sysv4 | sysv4.2uw2* | sysv4.3*)
24350 lt_prog_compiler_wl_GCJ='-Wl,'
24351 lt_prog_compiler_pic_GCJ='-KPIC'
24352 lt_prog_compiler_static_GCJ='-Bstatic'
24355 sysv4*MP*)
24356 if test -d /usr/nec ;then
24357 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24358 lt_prog_compiler_static_GCJ='-Bstatic'
24362 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24363 lt_prog_compiler_wl_GCJ='-Wl,'
24364 lt_prog_compiler_pic_GCJ='-KPIC'
24365 lt_prog_compiler_static_GCJ='-Bstatic'
24368 unicos*)
24369 lt_prog_compiler_wl_GCJ='-Wl,'
24370 lt_prog_compiler_can_build_shared_GCJ=no
24373 uts4*)
24374 lt_prog_compiler_pic_GCJ='-pic'
24375 lt_prog_compiler_static_GCJ='-Bstatic'
24379 lt_prog_compiler_can_build_shared_GCJ=no
24381 esac
24384 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24385 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24388 # Check to make sure the PIC flag actually works.
24390 if test -n "$lt_prog_compiler_pic_GCJ"; then
24392 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24393 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24394 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24395 echo $ECHO_N "(cached) $ECHO_C" >&6
24396 else
24397 lt_prog_compiler_pic_works_GCJ=no
24398 ac_outfile=conftest.$ac_objext
24399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24400 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24401 # Insert the option either (1) after the last *FLAGS variable, or
24402 # (2) before a word containing "conftest.", or (3) at the end.
24403 # Note that $ac_compile itself does not contain backslashes and begins
24404 # with a dollar sign (not a hyphen), so the echo should work correctly.
24405 # The option is referenced via a variable to avoid confusing sed.
24406 lt_compile=`echo "$ac_compile" | $SED \
24407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24409 -e 's:$: $lt_compiler_flag:'`
24410 (eval echo "\"\$as_me:24410: $lt_compile\"" >&5)
24411 (eval "$lt_compile" 2>conftest.err)
24412 ac_status=$?
24413 cat conftest.err >&5
24414 echo "$as_me:24414: \$? = $ac_status" >&5
24415 if (exit $ac_status) && test -s "$ac_outfile"; then
24416 # The compiler can only warn and ignore the option if not recognized
24417 # So say no if there are warnings other than the usual output.
24418 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24420 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24421 lt_prog_compiler_pic_works_GCJ=yes
24424 $rm conftest*
24427 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24428 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24430 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24431 case $lt_prog_compiler_pic_GCJ in
24432 "" | " "*) ;;
24433 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24434 esac
24435 else
24436 lt_prog_compiler_pic_GCJ=
24437 lt_prog_compiler_can_build_shared_GCJ=no
24441 case $host_os in
24442 # For platforms which do not support PIC, -DPIC is meaningless:
24443 *djgpp*)
24444 lt_prog_compiler_pic_GCJ=
24447 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24449 esac
24452 # Check to make sure the static flag actually works.
24454 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24455 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24456 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24457 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24458 echo $ECHO_N "(cached) $ECHO_C" >&6
24459 else
24460 lt_prog_compiler_static_works_GCJ=no
24461 save_LDFLAGS="$LDFLAGS"
24462 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24463 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24464 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24465 # The linker can only warn and ignore the option if not recognized
24466 # So say no if there are warnings
24467 if test -s conftest.err; then
24468 # Append any errors to the config.log.
24469 cat conftest.err 1>&5
24470 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24472 if diff conftest.exp conftest.er2 >/dev/null; then
24473 lt_prog_compiler_static_works_GCJ=yes
24475 else
24476 lt_prog_compiler_static_works_GCJ=yes
24479 $rm conftest*
24480 LDFLAGS="$save_LDFLAGS"
24483 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24484 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24486 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24488 else
24489 lt_prog_compiler_static_GCJ=
24493 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24494 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24495 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24496 echo $ECHO_N "(cached) $ECHO_C" >&6
24497 else
24498 lt_cv_prog_compiler_c_o_GCJ=no
24499 $rm -r conftest 2>/dev/null
24500 mkdir conftest
24501 cd conftest
24502 mkdir out
24503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24505 lt_compiler_flag="-o out/conftest2.$ac_objext"
24506 # Insert the option either (1) after the last *FLAGS variable, or
24507 # (2) before a word containing "conftest.", or (3) at the end.
24508 # Note that $ac_compile itself does not contain backslashes and begins
24509 # with a dollar sign (not a hyphen), so the echo should work correctly.
24510 lt_compile=`echo "$ac_compile" | $SED \
24511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24513 -e 's:$: $lt_compiler_flag:'`
24514 (eval echo "\"\$as_me:24514: $lt_compile\"" >&5)
24515 (eval "$lt_compile" 2>out/conftest.err)
24516 ac_status=$?
24517 cat out/conftest.err >&5
24518 echo "$as_me:24518: \$? = $ac_status" >&5
24519 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24520 then
24521 # The compiler can only warn and ignore the option if not recognized
24522 # So say no if there are warnings
24523 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24524 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24525 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24526 lt_cv_prog_compiler_c_o_GCJ=yes
24529 chmod u+w . 2>&5
24530 $rm conftest*
24531 # SGI C++ compiler will create directory out/ii_files/ for
24532 # template instantiation
24533 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24534 $rm out/* && rmdir out
24535 cd ..
24536 rmdir conftest
24537 $rm conftest*
24540 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24541 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24544 hard_links="nottested"
24545 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24546 # do not overwrite the value of need_locks provided by the user
24547 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24548 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24549 hard_links=yes
24550 $rm conftest*
24551 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24552 touch conftest.a
24553 ln conftest.a conftest.b 2>&5 || hard_links=no
24554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24555 { echo "$as_me:$LINENO: result: $hard_links" >&5
24556 echo "${ECHO_T}$hard_links" >&6; }
24557 if test "$hard_links" = no; then
24558 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24559 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24560 need_locks=warn
24562 else
24563 need_locks=no
24566 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24567 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24569 runpath_var=
24570 allow_undefined_flag_GCJ=
24571 enable_shared_with_static_runtimes_GCJ=no
24572 archive_cmds_GCJ=
24573 archive_expsym_cmds_GCJ=
24574 old_archive_From_new_cmds_GCJ=
24575 old_archive_from_expsyms_cmds_GCJ=
24576 export_dynamic_flag_spec_GCJ=
24577 whole_archive_flag_spec_GCJ=
24578 thread_safe_flag_spec_GCJ=
24579 hardcode_libdir_flag_spec_GCJ=
24580 hardcode_libdir_flag_spec_ld_GCJ=
24581 hardcode_libdir_separator_GCJ=
24582 hardcode_direct_GCJ=no
24583 hardcode_minus_L_GCJ=no
24584 hardcode_shlibpath_var_GCJ=unsupported
24585 link_all_deplibs_GCJ=unknown
24586 hardcode_automatic_GCJ=no
24587 module_cmds_GCJ=
24588 module_expsym_cmds_GCJ=
24589 always_export_symbols_GCJ=no
24590 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24591 # include_expsyms should be a list of space-separated symbols to be *always*
24592 # included in the symbol list
24593 include_expsyms_GCJ=
24594 # exclude_expsyms can be an extended regexp of symbols to exclude
24595 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24596 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24597 # as well as any symbol that contains `d'.
24598 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24599 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24600 # platforms (ab)use it in PIC code, but their linkers get confused if
24601 # the symbol is explicitly referenced. Since portable code cannot
24602 # rely on this symbol name, it's probably fine to never include it in
24603 # preloaded symbol tables.
24604 extract_expsyms_cmds=
24605 # Just being paranoid about ensuring that cc_basename is set.
24606 for cc_temp in $compiler""; do
24607 case $cc_temp in
24608 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24609 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24610 \-*) ;;
24611 *) break;;
24612 esac
24613 done
24614 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24616 case $host_os in
24617 cygwin* | mingw* | pw32*)
24618 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24619 # When not using gcc, we currently assume that we are using
24620 # Microsoft Visual C++.
24621 if test "$GCC" != yes; then
24622 with_gnu_ld=no
24625 interix*)
24626 # we just hope/assume this is gcc and not c89 (= MSVC++)
24627 with_gnu_ld=yes
24629 openbsd*)
24630 with_gnu_ld=no
24632 esac
24634 ld_shlibs_GCJ=yes
24635 if test "$with_gnu_ld" = yes; then
24636 # If archive_cmds runs LD, not CC, wlarc should be empty
24637 wlarc='${wl}'
24639 # Set some defaults for GNU ld with shared library support. These
24640 # are reset later if shared libraries are not supported. Putting them
24641 # here allows them to be overridden if necessary.
24642 runpath_var=LD_RUN_PATH
24643 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24644 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24645 # ancient GNU ld didn't support --whole-archive et. al.
24646 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24647 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24648 else
24649 whole_archive_flag_spec_GCJ=
24651 supports_anon_versioning=no
24652 case `$LD -v 2>/dev/null` in
24653 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24654 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24655 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24656 *\ 2.11.*) ;; # other 2.11 versions
24657 *) supports_anon_versioning=yes ;;
24658 esac
24660 # See if GNU ld supports shared libraries.
24661 case $host_os in
24662 aix3* | aix4* | aix5*)
24663 # On AIX/PPC, the GNU linker is very broken
24664 if test "$host_cpu" != ia64; then
24665 ld_shlibs_GCJ=no
24666 cat <<EOF 1>&2
24668 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24669 *** to be unable to reliably create shared libraries on AIX.
24670 *** Therefore, libtool is disabling shared libraries support. If you
24671 *** really care for shared libraries, you may want to modify your PATH
24672 *** so that a non-GNU linker is found, and then restart.
24678 amigaos*)
24679 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)'
24680 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24681 hardcode_minus_L_GCJ=yes
24683 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24684 # that the semantics of dynamic libraries on AmigaOS, at least up
24685 # to version 4, is to share data among multiple programs linked
24686 # with the same dynamic library. Since this doesn't match the
24687 # behavior of shared libraries on other platforms, we can't use
24688 # them.
24689 ld_shlibs_GCJ=no
24692 beos*)
24693 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24694 allow_undefined_flag_GCJ=unsupported
24695 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24696 # support --undefined. This deserves some investigation. FIXME
24697 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24698 else
24699 ld_shlibs_GCJ=no
24703 cygwin* | mingw* | pw32*)
24704 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24705 # as there is no search path for DLLs.
24706 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24707 allow_undefined_flag_GCJ=unsupported
24708 always_export_symbols_GCJ=no
24709 enable_shared_with_static_runtimes_GCJ=yes
24710 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24712 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24713 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24714 # If the export-symbols file already is a .def file (1st line
24715 # is EXPORTS), use it as is; otherwise, prepend...
24716 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24717 cp $export_symbols $output_objdir/$soname.def;
24718 else
24719 echo EXPORTS > $output_objdir/$soname.def;
24720 cat $export_symbols >> $output_objdir/$soname.def;
24722 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24723 else
24724 ld_shlibs_GCJ=no
24728 interix3*)
24729 hardcode_direct_GCJ=no
24730 hardcode_shlibpath_var_GCJ=no
24731 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24732 export_dynamic_flag_spec_GCJ='${wl}-E'
24733 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24734 # Instead, shared libraries are loaded at an image base (0x10000000 by
24735 # default) and relocated if they conflict, which is a slow very memory
24736 # consuming and fragmenting process. To avoid this, we pick a random,
24737 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24738 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24739 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'
24740 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'
24743 linux*)
24744 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24745 tmp_addflag=
24746 case $cc_basename,$host_cpu in
24747 pgcc*) # Portland Group C compiler
24748 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'
24749 tmp_addflag=' $pic_flag'
24751 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24752 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'
24753 tmp_addflag=' $pic_flag -Mnomain' ;;
24754 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24755 tmp_addflag=' -i_dynamic' ;;
24756 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24757 tmp_addflag=' -i_dynamic -nofor_main' ;;
24758 ifc* | ifort*) # Intel Fortran compiler
24759 tmp_addflag=' -nofor_main' ;;
24760 esac
24761 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24763 if test $supports_anon_versioning = yes; then
24764 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24766 $echo "local: *; };" >> $output_objdir/$libname.ver~
24767 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24769 else
24770 ld_shlibs_GCJ=no
24774 netbsd*)
24775 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24776 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24777 wlarc=
24778 else
24779 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24780 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24784 solaris*)
24785 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24786 ld_shlibs_GCJ=no
24787 cat <<EOF 1>&2
24789 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24790 *** create shared libraries on Solaris systems. Therefore, libtool
24791 *** is disabling shared libraries support. We urge you to upgrade GNU
24792 *** binutils to release 2.9.1 or newer. Another option is to modify
24793 *** your PATH or compiler configuration so that the native linker is
24794 *** used, and then restart.
24797 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24798 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24799 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24800 else
24801 ld_shlibs_GCJ=no
24805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24806 case `$LD -v 2>&1` in
24807 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24808 ld_shlibs_GCJ=no
24809 cat <<_LT_EOF 1>&2
24811 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24812 *** reliably create shared libraries on SCO systems. Therefore, libtool
24813 *** is disabling shared libraries support. We urge you to upgrade GNU
24814 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24815 *** your PATH or compiler configuration so that the native linker is
24816 *** used, and then restart.
24818 _LT_EOF
24821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24822 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24823 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24824 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24825 else
24826 ld_shlibs_GCJ=no
24829 esac
24832 sunos4*)
24833 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24834 wlarc=
24835 hardcode_direct_GCJ=yes
24836 hardcode_shlibpath_var_GCJ=no
24840 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24841 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24842 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24843 else
24844 ld_shlibs_GCJ=no
24847 esac
24849 if test "$ld_shlibs_GCJ" = no; then
24850 runpath_var=
24851 hardcode_libdir_flag_spec_GCJ=
24852 export_dynamic_flag_spec_GCJ=
24853 whole_archive_flag_spec_GCJ=
24855 else
24856 # PORTME fill in a description of your system's linker (not GNU ld)
24857 case $host_os in
24858 aix3*)
24859 allow_undefined_flag_GCJ=unsupported
24860 always_export_symbols_GCJ=yes
24861 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'
24862 # Note: this linker hardcodes the directories in LIBPATH if there
24863 # are no directories specified by -L.
24864 hardcode_minus_L_GCJ=yes
24865 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24866 # Neither direct hardcoding nor static linking is supported with a
24867 # broken collect2.
24868 hardcode_direct_GCJ=unsupported
24872 aix4* | aix5*)
24873 if test "$host_cpu" = ia64; then
24874 # On IA64, the linker does run time linking by default, so we don't
24875 # have to do anything special.
24876 aix_use_runtimelinking=no
24877 exp_sym_flag='-Bexport'
24878 no_entry_flag=""
24879 else
24880 # If we're using GNU nm, then we don't want the "-C" option.
24881 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24882 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24883 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'
24884 else
24885 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'
24887 aix_use_runtimelinking=no
24889 # Test if we are trying to use run time linking or normal
24890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24891 # need to do runtime linking.
24892 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24893 for ld_flag in $LDFLAGS; do
24894 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24895 aix_use_runtimelinking=yes
24896 break
24898 done
24900 esac
24902 exp_sym_flag='-bexport'
24903 no_entry_flag='-bnoentry'
24906 # When large executables or shared objects are built, AIX ld can
24907 # have problems creating the table of contents. If linking a library
24908 # or program results in "error TOC overflow" add -mminimal-toc to
24909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24912 archive_cmds_GCJ=''
24913 hardcode_direct_GCJ=yes
24914 hardcode_libdir_separator_GCJ=':'
24915 link_all_deplibs_GCJ=yes
24917 if test "$GCC" = yes; then
24918 case $host_os in aix4.[012]|aix4.[012].*)
24919 # We only want to do this on AIX 4.2 and lower, the check
24920 # below for broken collect2 doesn't work under 4.3+
24921 collect2name=`${CC} -print-prog-name=collect2`
24922 if test -f "$collect2name" && \
24923 strings "$collect2name" | grep resolve_lib_name >/dev/null
24924 then
24925 # We have reworked collect2
24926 hardcode_direct_GCJ=yes
24927 else
24928 # We have old collect2
24929 hardcode_direct_GCJ=unsupported
24930 # It fails to find uninstalled libraries when the uninstalled
24931 # path is not listed in the libpath. Setting hardcode_minus_L
24932 # to unsupported forces relinking
24933 hardcode_minus_L_GCJ=yes
24934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24935 hardcode_libdir_separator_GCJ=
24938 esac
24939 shared_flag='-shared'
24940 if test "$aix_use_runtimelinking" = yes; then
24941 shared_flag="$shared_flag "'${wl}-G'
24943 else
24944 # not using gcc
24945 if test "$host_cpu" = ia64; then
24946 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24947 # chokes on -Wl,-G. The following line is correct:
24948 shared_flag='-G'
24949 else
24950 if test "$aix_use_runtimelinking" = yes; then
24951 shared_flag='${wl}-G'
24952 else
24953 shared_flag='${wl}-bM:SRE'
24958 # It seems that -bexpall does not export symbols beginning with
24959 # underscore (_), so it is better to generate a list of symbols to export.
24960 always_export_symbols_GCJ=yes
24961 if test "$aix_use_runtimelinking" = yes; then
24962 # Warning - without using the other runtime loading flags (-brtl),
24963 # -berok will link without error, but may produce a broken library.
24964 allow_undefined_flag_GCJ='-berok'
24965 # Determine the default libpath from the value encoded in an empty executable.
24966 cat >conftest.$ac_ext <<_ACEOF
24967 /* confdefs.h. */
24968 _ACEOF
24969 cat confdefs.h >>conftest.$ac_ext
24970 cat >>conftest.$ac_ext <<_ACEOF
24971 /* end confdefs.h. */
24974 main ()
24978 return 0;
24980 _ACEOF
24981 rm -f conftest.$ac_objext conftest$ac_exeext
24982 if { (ac_try="$ac_link"
24983 case "(($ac_try" in
24984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24985 *) ac_try_echo=$ac_try;;
24986 esac
24987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24988 (eval "$ac_link") 2>conftest.er1
24989 ac_status=$?
24990 grep -v '^ *+' conftest.er1 >conftest.err
24991 rm -f conftest.er1
24992 cat conftest.err >&5
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); } &&
24995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24996 { (case "(($ac_try" in
24997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24998 *) ac_try_echo=$ac_try;;
24999 esac
25000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25001 (eval "$ac_try") 2>&5
25002 ac_status=$?
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); }; } &&
25005 { ac_try='test -s conftest$ac_exeext'
25006 { (case "(($ac_try" in
25007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008 *) ac_try_echo=$ac_try;;
25009 esac
25010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25011 (eval "$ac_try") 2>&5
25012 ac_status=$?
25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); }; }; then
25016 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25018 # Check for a 64-bit object if we didn't find anything.
25019 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; }
25020 }'`; fi
25021 else
25022 echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25028 rm -f core conftest.err conftest.$ac_objext \
25029 conftest$ac_exeext conftest.$ac_ext
25030 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25032 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25033 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"
25034 else
25035 if test "$host_cpu" = ia64; then
25036 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25037 allow_undefined_flag_GCJ="-z nodefs"
25038 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"
25039 else
25040 # Determine the default libpath from the value encoded in an empty executable.
25041 cat >conftest.$ac_ext <<_ACEOF
25042 /* confdefs.h. */
25043 _ACEOF
25044 cat confdefs.h >>conftest.$ac_ext
25045 cat >>conftest.$ac_ext <<_ACEOF
25046 /* end confdefs.h. */
25049 main ()
25053 return 0;
25055 _ACEOF
25056 rm -f conftest.$ac_objext conftest$ac_exeext
25057 if { (ac_try="$ac_link"
25058 case "(($ac_try" in
25059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25060 *) ac_try_echo=$ac_try;;
25061 esac
25062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25063 (eval "$ac_link") 2>conftest.er1
25064 ac_status=$?
25065 grep -v '^ *+' conftest.er1 >conftest.err
25066 rm -f conftest.er1
25067 cat conftest.err >&5
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); } &&
25070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25071 { (case "(($ac_try" in
25072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25073 *) ac_try_echo=$ac_try;;
25074 esac
25075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25076 (eval "$ac_try") 2>&5
25077 ac_status=$?
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); }; } &&
25080 { ac_try='test -s conftest$ac_exeext'
25081 { (case "(($ac_try" in
25082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083 *) ac_try_echo=$ac_try;;
25084 esac
25085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25086 (eval "$ac_try") 2>&5
25087 ac_status=$?
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); }; }; then
25091 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25093 # Check for a 64-bit object if we didn't find anything.
25094 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; }
25095 }'`; fi
25096 else
25097 echo "$as_me: failed program was:" >&5
25098 sed 's/^/| /' conftest.$ac_ext >&5
25103 rm -f core conftest.err conftest.$ac_objext \
25104 conftest$ac_exeext conftest.$ac_ext
25105 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25107 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25108 # Warning - without using the other run time loading flags,
25109 # -berok will link without error, but may produce a broken library.
25110 no_undefined_flag_GCJ=' ${wl}-bernotok'
25111 allow_undefined_flag_GCJ=' ${wl}-berok'
25112 # Exported symbols can be pulled into shared objects from archives
25113 whole_archive_flag_spec_GCJ='$convenience'
25114 archive_cmds_need_lc_GCJ=yes
25115 # This is similar to how AIX traditionally builds its shared libraries.
25116 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'
25121 amigaos*)
25122 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)'
25123 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25124 hardcode_minus_L_GCJ=yes
25125 # see comment about different semantics on the GNU ld section
25126 ld_shlibs_GCJ=no
25129 bsdi[45]*)
25130 export_dynamic_flag_spec_GCJ=-rdynamic
25133 cygwin* | mingw* | pw32*)
25134 # When not using gcc, we currently assume that we are using
25135 # Microsoft Visual C++.
25136 # hardcode_libdir_flag_spec is actually meaningless, as there is
25137 # no search path for DLLs.
25138 hardcode_libdir_flag_spec_GCJ=' '
25139 allow_undefined_flag_GCJ=unsupported
25140 # Tell ltmain to make .lib files, not .a files.
25141 libext=lib
25142 # Tell ltmain to make .dll files, not .so files.
25143 shrext_cmds=".dll"
25144 # FIXME: Setting linknames here is a bad hack.
25145 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25146 # The linker will automatically build a .lib file if we build a DLL.
25147 old_archive_From_new_cmds_GCJ='true'
25148 # FIXME: Should let the user specify the lib program.
25149 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25150 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25151 enable_shared_with_static_runtimes_GCJ=yes
25154 darwin* | rhapsody*)
25155 case $host_os in
25156 rhapsody* | darwin1.[012])
25157 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25159 *) # Darwin 1.3 on
25160 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25161 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25162 else
25163 case ${MACOSX_DEPLOYMENT_TARGET} in
25164 10.[012])
25165 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25167 10.*)
25168 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25170 esac
25173 esac
25174 archive_cmds_need_lc_GCJ=no
25175 hardcode_direct_GCJ=no
25176 hardcode_automatic_GCJ=yes
25177 hardcode_shlibpath_var_GCJ=unsupported
25178 whole_archive_flag_spec_GCJ=''
25179 link_all_deplibs_GCJ=yes
25180 if test "$GCC" = yes ; then
25181 output_verbose_link_cmd='echo'
25182 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25183 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25184 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25185 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}'
25186 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}'
25187 else
25188 case $cc_basename in
25189 xlc*)
25190 output_verbose_link_cmd='echo'
25191 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25192 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25193 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25194 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}'
25195 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}'
25198 ld_shlibs_GCJ=no
25200 esac
25204 dgux*)
25205 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25206 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25207 hardcode_shlibpath_var_GCJ=no
25210 freebsd1*)
25211 ld_shlibs_GCJ=no
25214 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25215 # support. Future versions do this automatically, but an explicit c++rt0.o
25216 # does not break anything, and helps significantly (at the cost of a little
25217 # extra space).
25218 freebsd2.2*)
25219 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25220 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25221 hardcode_direct_GCJ=yes
25222 hardcode_shlibpath_var_GCJ=no
25225 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25226 freebsd2*)
25227 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25228 hardcode_direct_GCJ=yes
25229 hardcode_minus_L_GCJ=yes
25230 hardcode_shlibpath_var_GCJ=no
25233 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25234 freebsd* | kfreebsd*-gnu | dragonfly*)
25235 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25236 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25237 hardcode_direct_GCJ=yes
25238 hardcode_shlibpath_var_GCJ=no
25241 hpux9*)
25242 if test "$GCC" = yes; then
25243 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'
25244 else
25245 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'
25247 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25248 hardcode_libdir_separator_GCJ=:
25249 hardcode_direct_GCJ=yes
25251 # hardcode_minus_L: Not really in the search PATH,
25252 # but as the default location of the library.
25253 hardcode_minus_L_GCJ=yes
25254 export_dynamic_flag_spec_GCJ='${wl}-E'
25257 hpux10*)
25258 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25259 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25260 else
25261 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25263 if test "$with_gnu_ld" = no; then
25264 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25265 hardcode_libdir_separator_GCJ=:
25267 hardcode_direct_GCJ=yes
25268 export_dynamic_flag_spec_GCJ='${wl}-E'
25270 # hardcode_minus_L: Not really in the search PATH,
25271 # but as the default location of the library.
25272 hardcode_minus_L_GCJ=yes
25276 hpux11*)
25277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25278 case $host_cpu in
25279 hppa*64*)
25280 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25282 ia64*)
25283 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25286 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25288 esac
25289 else
25290 case $host_cpu in
25291 hppa*64*)
25292 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25294 ia64*)
25295 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25298 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25300 esac
25302 if test "$with_gnu_ld" = no; then
25303 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25304 hardcode_libdir_separator_GCJ=:
25306 case $host_cpu in
25307 hppa*64*|ia64*)
25308 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25309 hardcode_direct_GCJ=no
25310 hardcode_shlibpath_var_GCJ=no
25313 hardcode_direct_GCJ=yes
25314 export_dynamic_flag_spec_GCJ='${wl}-E'
25316 # hardcode_minus_L: Not really in the search PATH,
25317 # but as the default location of the library.
25318 hardcode_minus_L_GCJ=yes
25320 esac
25324 irix5* | irix6* | nonstopux*)
25325 if test "$GCC" = yes; then
25326 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'
25327 else
25328 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'
25329 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25331 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25332 hardcode_libdir_separator_GCJ=:
25333 link_all_deplibs_GCJ=yes
25336 netbsd*)
25337 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25338 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25339 else
25340 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25342 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25343 hardcode_direct_GCJ=yes
25344 hardcode_shlibpath_var_GCJ=no
25347 newsos6)
25348 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25349 hardcode_direct_GCJ=yes
25350 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25351 hardcode_libdir_separator_GCJ=:
25352 hardcode_shlibpath_var_GCJ=no
25355 openbsd*)
25356 hardcode_direct_GCJ=yes
25357 hardcode_shlibpath_var_GCJ=no
25358 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25359 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25360 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25361 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25362 export_dynamic_flag_spec_GCJ='${wl}-E'
25363 else
25364 case $host_os in
25365 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25366 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25367 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25370 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25371 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25373 esac
25377 os2*)
25378 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25379 hardcode_minus_L_GCJ=yes
25380 allow_undefined_flag_GCJ=unsupported
25381 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'
25382 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25385 osf3*)
25386 if test "$GCC" = yes; then
25387 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25388 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'
25389 else
25390 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25391 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'
25393 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25394 hardcode_libdir_separator_GCJ=:
25397 osf4* | osf5*) # as osf3* with the addition of -msym flag
25398 if test "$GCC" = yes; then
25399 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25400 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'
25401 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25402 else
25403 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25404 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'
25405 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~
25406 $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'
25408 # Both c and cxx compiler support -rpath directly
25409 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25411 hardcode_libdir_separator_GCJ=:
25414 solaris*)
25415 no_undefined_flag_GCJ=' -z text'
25416 if test "$GCC" = yes; then
25417 wlarc='${wl}'
25418 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25419 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25420 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25421 else
25422 wlarc=''
25423 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25424 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25425 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25427 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25428 hardcode_shlibpath_var_GCJ=no
25429 case $host_os in
25430 solaris2.[0-5] | solaris2.[0-5].*) ;;
25432 # The compiler driver will combine linker options so we
25433 # cannot just pass the convience library names through
25434 # without $wl, iff we do not link with $LD.
25435 # Luckily, gcc supports the same syntax we need for Sun Studio.
25436 # Supported since Solaris 2.6 (maybe 2.5.1?)
25437 case $wlarc in
25439 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25441 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' ;;
25442 esac ;;
25443 esac
25444 link_all_deplibs_GCJ=yes
25447 sunos4*)
25448 if test "x$host_vendor" = xsequent; then
25449 # Use $CC to link under sequent, because it throws in some extra .o
25450 # files that make .init and .fini sections work.
25451 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25452 else
25453 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25455 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25456 hardcode_direct_GCJ=yes
25457 hardcode_minus_L_GCJ=yes
25458 hardcode_shlibpath_var_GCJ=no
25461 sysv4)
25462 case $host_vendor in
25463 sni)
25464 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25465 hardcode_direct_GCJ=yes # is this really true???
25467 siemens)
25468 ## LD is ld it makes a PLAMLIB
25469 ## CC just makes a GrossModule.
25470 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25471 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25472 hardcode_direct_GCJ=no
25474 motorola)
25475 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25476 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25478 esac
25479 runpath_var='LD_RUN_PATH'
25480 hardcode_shlibpath_var_GCJ=no
25483 sysv4.3*)
25484 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25485 hardcode_shlibpath_var_GCJ=no
25486 export_dynamic_flag_spec_GCJ='-Bexport'
25489 sysv4*MP*)
25490 if test -d /usr/nec; then
25491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25492 hardcode_shlibpath_var_GCJ=no
25493 runpath_var=LD_RUN_PATH
25494 hardcode_runpath_var=yes
25495 ld_shlibs_GCJ=yes
25499 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25500 no_undefined_flag_GCJ='${wl}-z,text'
25501 archive_cmds_need_lc_GCJ=no
25502 hardcode_shlibpath_var_GCJ=no
25503 runpath_var='LD_RUN_PATH'
25505 if test "$GCC" = yes; then
25506 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25507 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25508 else
25509 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25510 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25514 sysv5* | sco3.2v5* | sco5v6*)
25515 # Note: We can NOT use -z defs as we might desire, because we do not
25516 # link with -lc, and that would cause any symbols used from libc to
25517 # always be unresolved, which means just about no library would
25518 # ever link correctly. If we're not using GNU ld we use -z text
25519 # though, which does catch some bad symbols but isn't as heavy-handed
25520 # as -z defs.
25521 no_undefined_flag_GCJ='${wl}-z,text'
25522 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25523 archive_cmds_need_lc_GCJ=no
25524 hardcode_shlibpath_var_GCJ=no
25525 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25526 hardcode_libdir_separator_GCJ=':'
25527 link_all_deplibs_GCJ=yes
25528 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25529 runpath_var='LD_RUN_PATH'
25531 if test "$GCC" = yes; then
25532 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25533 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25534 else
25535 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25536 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25540 uts4*)
25541 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25542 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25543 hardcode_shlibpath_var_GCJ=no
25547 ld_shlibs_GCJ=no
25549 esac
25552 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25553 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25554 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25557 # Do we need to explicitly link libc?
25559 case "x$archive_cmds_need_lc_GCJ" in
25560 x|xyes)
25561 # Assume -lc should be added
25562 archive_cmds_need_lc_GCJ=yes
25564 if test "$enable_shared" = yes && test "$GCC" = yes; then
25565 case $archive_cmds_GCJ in
25566 *'~'*)
25567 # FIXME: we may have to deal with multi-command sequences.
25569 '$CC '*)
25570 # Test whether the compiler implicitly links with -lc since on some
25571 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25572 # to ld, don't add -lc before -lgcc.
25573 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25574 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25575 $rm conftest*
25576 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25579 (eval $ac_compile) 2>&5
25580 ac_status=$?
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); } 2>conftest.err; then
25583 soname=conftest
25584 lib=conftest
25585 libobjs=conftest.$ac_objext
25586 deplibs=
25587 wl=$lt_prog_compiler_wl_GCJ
25588 pic_flag=$lt_prog_compiler_pic_GCJ
25589 compiler_flags=-v
25590 linker_flags=-v
25591 verstring=
25592 output_objdir=.
25593 libname=conftest
25594 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25595 allow_undefined_flag_GCJ=
25596 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25597 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25598 ac_status=$?
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); }
25601 then
25602 archive_cmds_need_lc_GCJ=no
25603 else
25604 archive_cmds_need_lc_GCJ=yes
25606 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25607 else
25608 cat conftest.err 1>&5
25610 $rm conftest*
25611 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25612 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25614 esac
25617 esac
25619 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25620 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25621 library_names_spec=
25622 libname_spec='lib$name'
25623 soname_spec=
25624 shrext_cmds=".so"
25625 postinstall_cmds=
25626 postuninstall_cmds=
25627 finish_cmds=
25628 finish_eval=
25629 shlibpath_var=
25630 shlibpath_overrides_runpath=unknown
25631 version_type=none
25632 dynamic_linker="$host_os ld.so"
25633 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25634 if test "$GCC" = yes; then
25635 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25636 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25637 # if the path contains ";" then we assume it to be the separator
25638 # otherwise default to the standard path separator (i.e. ":") - it is
25639 # assumed that no part of a normal pathname contains ";" but that should
25640 # okay in the real world where ";" in dirpaths is itself problematic.
25641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25642 else
25643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25645 else
25646 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25648 need_lib_prefix=unknown
25649 hardcode_into_libs=no
25651 # when you set need_version to no, make sure it does not cause -set_version
25652 # flags to be left without arguments
25653 need_version=unknown
25655 case $host_os in
25656 aix3*)
25657 version_type=linux
25658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25659 shlibpath_var=LIBPATH
25661 # AIX 3 has no versioning support, so we append a major version to the name.
25662 soname_spec='${libname}${release}${shared_ext}$major'
25665 aix4* | aix5*)
25666 version_type=linux
25667 need_lib_prefix=no
25668 need_version=no
25669 hardcode_into_libs=yes
25670 if test "$host_cpu" = ia64; then
25671 # AIX 5 supports IA64
25672 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25673 shlibpath_var=LD_LIBRARY_PATH
25674 else
25675 # With GCC up to 2.95.x, collect2 would create an import file
25676 # for dependence libraries. The import file would start with
25677 # the line `#! .'. This would cause the generated library to
25678 # depend on `.', always an invalid library. This was fixed in
25679 # development snapshots of GCC prior to 3.0.
25680 case $host_os in
25681 aix4 | aix4.[01] | aix4.[01].*)
25682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25683 echo ' yes '
25684 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25686 else
25687 can_build_shared=no
25690 esac
25691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25692 # soname into executable. Probably we can add versioning support to
25693 # collect2, so additional links can be useful in future.
25694 if test "$aix_use_runtimelinking" = yes; then
25695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25696 # instead of lib<name>.a to let people know that these are not
25697 # typical AIX shared libraries.
25698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25699 else
25700 # We preserve .a as extension for shared libraries through AIX4.2
25701 # and later when we are not doing run time linking.
25702 library_names_spec='${libname}${release}.a $libname.a'
25703 soname_spec='${libname}${release}${shared_ext}$major'
25705 shlibpath_var=LIBPATH
25709 amigaos*)
25710 library_names_spec='$libname.ixlibrary $libname.a'
25711 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25712 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'
25715 beos*)
25716 library_names_spec='${libname}${shared_ext}'
25717 dynamic_linker="$host_os ld.so"
25718 shlibpath_var=LIBRARY_PATH
25721 bsdi[45]*)
25722 version_type=linux
25723 need_version=no
25724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25725 soname_spec='${libname}${release}${shared_ext}$major'
25726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25727 shlibpath_var=LD_LIBRARY_PATH
25728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25730 # the default ld.so.conf also contains /usr/contrib/lib and
25731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25732 # libtool to hard-code these into programs
25735 cygwin* | mingw* | pw32*)
25736 version_type=windows
25737 shrext_cmds=".dll"
25738 need_version=no
25739 need_lib_prefix=no
25741 case $GCC,$host_os in
25742 yes,cygwin* | yes,mingw* | yes,pw32*)
25743 library_names_spec='$libname.dll.a'
25744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25745 postinstall_cmds='base_file=`basename \${file}`~
25746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25747 dldir=$destdir/`dirname \$dlpath`~
25748 test -d \$dldir || mkdir -p \$dldir~
25749 $install_prog $dir/$dlname \$dldir/$dlname~
25750 chmod a+x \$dldir/$dlname'
25751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25752 dlpath=$dir/\$dldll~
25753 $rm \$dlpath'
25754 shlibpath_overrides_runpath=yes
25756 case $host_os in
25757 cygwin*)
25758 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25759 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25760 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25762 mingw*)
25763 # MinGW DLLs use traditional 'lib' prefix
25764 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25765 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25766 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25767 # It is most probably a Windows format PATH printed by
25768 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25769 # path with ; separators, and with drive letters. We can handle the
25770 # drive letters (cygwin fileutils understands them), so leave them,
25771 # especially as we might pass files found there to a mingw objdump,
25772 # which wouldn't understand a cygwinified path. Ahh.
25773 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25774 else
25775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25778 pw32*)
25779 # pw32 DLLs use 'pw' prefix rather than 'lib'
25780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25782 esac
25786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25788 esac
25789 dynamic_linker='Win32 ld.exe'
25790 # FIXME: first we should search . and the directory the executable is in
25791 shlibpath_var=PATH
25794 darwin* | rhapsody*)
25795 dynamic_linker="$host_os dyld"
25796 version_type=darwin
25797 need_lib_prefix=no
25798 need_version=no
25799 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25800 soname_spec='${libname}${release}${major}$shared_ext'
25801 shlibpath_overrides_runpath=yes
25802 shlibpath_var=DYLD_LIBRARY_PATH
25803 shrext_cmds='.dylib'
25804 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25805 if test "$GCC" = yes; then
25806 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"`
25807 else
25808 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25810 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25813 dgux*)
25814 version_type=linux
25815 need_lib_prefix=no
25816 need_version=no
25817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25818 soname_spec='${libname}${release}${shared_ext}$major'
25819 shlibpath_var=LD_LIBRARY_PATH
25822 freebsd1*)
25823 dynamic_linker=no
25826 kfreebsd*-gnu)
25827 version_type=linux
25828 need_lib_prefix=no
25829 need_version=no
25830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25831 soname_spec='${libname}${release}${shared_ext}$major'
25832 shlibpath_var=LD_LIBRARY_PATH
25833 shlibpath_overrides_runpath=no
25834 hardcode_into_libs=yes
25835 dynamic_linker='GNU ld.so'
25838 freebsd* | dragonfly*)
25839 # DragonFly does not have aout. When/if they implement a new
25840 # versioning mechanism, adjust this.
25841 if test -x /usr/bin/objformat; then
25842 objformat=`/usr/bin/objformat`
25843 else
25844 case $host_os in
25845 freebsd[123]*) objformat=aout ;;
25846 *) objformat=elf ;;
25847 esac
25849 version_type=freebsd-$objformat
25850 case $version_type in
25851 freebsd-elf*)
25852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25853 need_version=no
25854 need_lib_prefix=no
25856 freebsd-*)
25857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25858 need_version=yes
25860 esac
25861 shlibpath_var=LD_LIBRARY_PATH
25862 case $host_os in
25863 freebsd2*)
25864 shlibpath_overrides_runpath=yes
25866 freebsd3.[01]* | freebsdelf3.[01]*)
25867 shlibpath_overrides_runpath=yes
25868 hardcode_into_libs=yes
25870 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25871 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25872 shlibpath_overrides_runpath=no
25873 hardcode_into_libs=yes
25875 freebsd*) # from 4.6 on
25876 shlibpath_overrides_runpath=yes
25877 hardcode_into_libs=yes
25879 esac
25882 gnu*)
25883 version_type=linux
25884 need_lib_prefix=no
25885 need_version=no
25886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25887 soname_spec='${libname}${release}${shared_ext}$major'
25888 shlibpath_var=LD_LIBRARY_PATH
25889 hardcode_into_libs=yes
25892 hpux9* | hpux10* | hpux11*)
25893 # Give a soname corresponding to the major version so that dld.sl refuses to
25894 # link against other versions.
25895 version_type=sunos
25896 need_lib_prefix=no
25897 need_version=no
25898 case $host_cpu in
25899 ia64*)
25900 shrext_cmds='.so'
25901 hardcode_into_libs=yes
25902 dynamic_linker="$host_os dld.so"
25903 shlibpath_var=LD_LIBRARY_PATH
25904 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25906 soname_spec='${libname}${release}${shared_ext}$major'
25907 if test "X$HPUX_IA64_MODE" = X32; then
25908 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25909 else
25910 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25914 hppa*64*)
25915 shrext_cmds='.sl'
25916 hardcode_into_libs=yes
25917 dynamic_linker="$host_os dld.sl"
25918 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25921 soname_spec='${libname}${release}${shared_ext}$major'
25922 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25926 shrext_cmds='.sl'
25927 dynamic_linker="$host_os dld.sl"
25928 shlibpath_var=SHLIB_PATH
25929 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25931 soname_spec='${libname}${release}${shared_ext}$major'
25933 esac
25934 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25935 postinstall_cmds='chmod 555 $lib'
25938 interix3*)
25939 version_type=linux
25940 need_lib_prefix=no
25941 need_version=no
25942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25943 soname_spec='${libname}${release}${shared_ext}$major'
25944 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25945 shlibpath_var=LD_LIBRARY_PATH
25946 shlibpath_overrides_runpath=no
25947 hardcode_into_libs=yes
25950 irix5* | irix6* | nonstopux*)
25951 case $host_os in
25952 nonstopux*) version_type=nonstopux ;;
25954 if test "$lt_cv_prog_gnu_ld" = yes; then
25955 version_type=linux
25956 else
25957 version_type=irix
25958 fi ;;
25959 esac
25960 need_lib_prefix=no
25961 need_version=no
25962 soname_spec='${libname}${release}${shared_ext}$major'
25963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25964 case $host_os in
25965 irix5* | nonstopux*)
25966 libsuff= shlibsuff=
25969 case $LD in # libtool.m4 will add one of these switches to LD
25970 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25971 libsuff= shlibsuff= libmagic=32-bit;;
25972 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25973 libsuff=32 shlibsuff=N32 libmagic=N32;;
25974 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25975 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25976 *) libsuff= shlibsuff= libmagic=never-match;;
25977 esac
25979 esac
25980 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25981 shlibpath_overrides_runpath=no
25982 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25983 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25984 hardcode_into_libs=yes
25987 # No shared lib support for Linux oldld, aout, or coff.
25988 linux*oldld* | linux*aout* | linux*coff*)
25989 dynamic_linker=no
25992 # This must be Linux ELF.
25993 linux*)
25994 version_type=linux
25995 need_lib_prefix=no
25996 need_version=no
25997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25998 soname_spec='${libname}${release}${shared_ext}$major'
25999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26000 shlibpath_var=LD_LIBRARY_PATH
26001 shlibpath_overrides_runpath=no
26002 # This implies no fast_install, which is unacceptable.
26003 # Some rework will be needed to allow for fast_install
26004 # before this can be enabled.
26005 hardcode_into_libs=yes
26007 # Append ld.so.conf contents to the search path
26008 if test -f /etc/ld.so.conf; then
26009 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' ' '`
26010 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26013 # We used to test for /lib/ld.so.1 and disable shared libraries on
26014 # powerpc, because MkLinux only supported shared libraries with the
26015 # GNU dynamic linker. Since this was broken with cross compilers,
26016 # most powerpc-linux boxes support dynamic linking these days and
26017 # people can always --disable-shared, the test was removed, and we
26018 # assume the GNU/Linux dynamic linker is in use.
26019 dynamic_linker='GNU/Linux ld.so'
26022 knetbsd*-gnu)
26023 version_type=linux
26024 need_lib_prefix=no
26025 need_version=no
26026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26027 soname_spec='${libname}${release}${shared_ext}$major'
26028 shlibpath_var=LD_LIBRARY_PATH
26029 shlibpath_overrides_runpath=no
26030 hardcode_into_libs=yes
26031 dynamic_linker='GNU ld.so'
26034 netbsd*)
26035 version_type=sunos
26036 need_lib_prefix=no
26037 need_version=no
26038 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26041 dynamic_linker='NetBSD (a.out) ld.so'
26042 else
26043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26044 soname_spec='${libname}${release}${shared_ext}$major'
26045 dynamic_linker='NetBSD ld.elf_so'
26047 shlibpath_var=LD_LIBRARY_PATH
26048 shlibpath_overrides_runpath=yes
26049 hardcode_into_libs=yes
26052 newsos6)
26053 version_type=linux
26054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26055 shlibpath_var=LD_LIBRARY_PATH
26056 shlibpath_overrides_runpath=yes
26059 nto-qnx*)
26060 version_type=linux
26061 need_lib_prefix=no
26062 need_version=no
26063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26064 soname_spec='${libname}${release}${shared_ext}$major'
26065 shlibpath_var=LD_LIBRARY_PATH
26066 shlibpath_overrides_runpath=yes
26069 openbsd*)
26070 version_type=sunos
26071 sys_lib_dlsearch_path_spec="/usr/lib"
26072 need_lib_prefix=no
26073 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26074 case $host_os in
26075 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26076 *) need_version=no ;;
26077 esac
26078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26080 shlibpath_var=LD_LIBRARY_PATH
26081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26082 case $host_os in
26083 openbsd2.[89] | openbsd2.[89].*)
26084 shlibpath_overrides_runpath=no
26087 shlibpath_overrides_runpath=yes
26089 esac
26090 else
26091 shlibpath_overrides_runpath=yes
26095 os2*)
26096 libname_spec='$name'
26097 shrext_cmds=".dll"
26098 need_lib_prefix=no
26099 library_names_spec='$libname${shared_ext} $libname.a'
26100 dynamic_linker='OS/2 ld.exe'
26101 shlibpath_var=LIBPATH
26104 osf3* | osf4* | osf5*)
26105 version_type=osf
26106 need_lib_prefix=no
26107 need_version=no
26108 soname_spec='${libname}${release}${shared_ext}$major'
26109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26110 shlibpath_var=LD_LIBRARY_PATH
26111 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26112 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26115 solaris*)
26116 version_type=linux
26117 need_lib_prefix=no
26118 need_version=no
26119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26120 soname_spec='${libname}${release}${shared_ext}$major'
26121 shlibpath_var=LD_LIBRARY_PATH
26122 shlibpath_overrides_runpath=yes
26123 hardcode_into_libs=yes
26124 # ldd complains unless libraries are executable
26125 postinstall_cmds='chmod +x $lib'
26128 sunos4*)
26129 version_type=sunos
26130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26131 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26132 shlibpath_var=LD_LIBRARY_PATH
26133 shlibpath_overrides_runpath=yes
26134 if test "$with_gnu_ld" = yes; then
26135 need_lib_prefix=no
26137 need_version=yes
26140 sysv4 | sysv4.3*)
26141 version_type=linux
26142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26143 soname_spec='${libname}${release}${shared_ext}$major'
26144 shlibpath_var=LD_LIBRARY_PATH
26145 case $host_vendor in
26146 sni)
26147 shlibpath_overrides_runpath=no
26148 need_lib_prefix=no
26149 export_dynamic_flag_spec='${wl}-Blargedynsym'
26150 runpath_var=LD_RUN_PATH
26152 siemens)
26153 need_lib_prefix=no
26155 motorola)
26156 need_lib_prefix=no
26157 need_version=no
26158 shlibpath_overrides_runpath=no
26159 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26161 esac
26164 sysv4*MP*)
26165 if test -d /usr/nec ;then
26166 version_type=linux
26167 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26168 soname_spec='$libname${shared_ext}.$major'
26169 shlibpath_var=LD_LIBRARY_PATH
26173 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26174 version_type=freebsd-elf
26175 need_lib_prefix=no
26176 need_version=no
26177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26178 soname_spec='${libname}${release}${shared_ext}$major'
26179 shlibpath_var=LD_LIBRARY_PATH
26180 hardcode_into_libs=yes
26181 if test "$with_gnu_ld" = yes; then
26182 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26183 shlibpath_overrides_runpath=no
26184 else
26185 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26186 shlibpath_overrides_runpath=yes
26187 case $host_os in
26188 sco3.2v5*)
26189 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26191 esac
26193 sys_lib_dlsearch_path_spec='/usr/lib'
26196 uts4*)
26197 version_type=linux
26198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26199 soname_spec='${libname}${release}${shared_ext}$major'
26200 shlibpath_var=LD_LIBRARY_PATH
26204 dynamic_linker=no
26206 esac
26207 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26208 echo "${ECHO_T}$dynamic_linker" >&6; }
26209 test "$dynamic_linker" = no && can_build_shared=no
26211 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26212 if test "$GCC" = yes; then
26213 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26216 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26217 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26218 hardcode_action_GCJ=
26219 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26220 test -n "$runpath_var_GCJ" || \
26221 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26223 # We can hardcode non-existant directories.
26224 if test "$hardcode_direct_GCJ" != no &&
26225 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26226 # have to relink, otherwise we might link with an installed library
26227 # when we should be linking with a yet-to-be-installed one
26228 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26229 test "$hardcode_minus_L_GCJ" != no; then
26230 # Linking always hardcodes the temporary library directory.
26231 hardcode_action_GCJ=relink
26232 else
26233 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26234 hardcode_action_GCJ=immediate
26236 else
26237 # We cannot hardcode anything, or else we can only hardcode existing
26238 # directories.
26239 hardcode_action_GCJ=unsupported
26241 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26242 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26244 if test "$hardcode_action_GCJ" = relink; then
26245 # Fast installation is not supported
26246 enable_fast_install=no
26247 elif test "$shlibpath_overrides_runpath" = yes ||
26248 test "$enable_shared" = no; then
26249 # Fast installation is not necessary
26250 enable_fast_install=needless
26254 # The else clause should only fire when bootstrapping the
26255 # libtool distribution, otherwise you forgot to ship ltmain.sh
26256 # with your package, and you will get complaints that there are
26257 # no rules to generate ltmain.sh.
26258 if test -f "$ltmain"; then
26259 # See if we are running on zsh, and set the options which allow our commands through
26260 # without removal of \ escapes.
26261 if test -n "${ZSH_VERSION+set}" ; then
26262 setopt NO_GLOB_SUBST
26264 # Now quote all the things that may contain metacharacters while being
26265 # careful not to overquote the AC_SUBSTed values. We take copies of the
26266 # variables and quote the copies for generation of the libtool script.
26267 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26268 SED SHELL STRIP \
26269 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26270 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26271 deplibs_check_method reload_flag reload_cmds need_locks \
26272 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26273 lt_cv_sys_global_symbol_to_c_name_address \
26274 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26275 old_postinstall_cmds old_postuninstall_cmds \
26276 compiler_GCJ \
26277 CC_GCJ \
26278 LD_GCJ \
26279 lt_prog_compiler_wl_GCJ \
26280 lt_prog_compiler_pic_GCJ \
26281 lt_prog_compiler_static_GCJ \
26282 lt_prog_compiler_no_builtin_flag_GCJ \
26283 export_dynamic_flag_spec_GCJ \
26284 thread_safe_flag_spec_GCJ \
26285 whole_archive_flag_spec_GCJ \
26286 enable_shared_with_static_runtimes_GCJ \
26287 old_archive_cmds_GCJ \
26288 old_archive_from_new_cmds_GCJ \
26289 predep_objects_GCJ \
26290 postdep_objects_GCJ \
26291 predeps_GCJ \
26292 postdeps_GCJ \
26293 compiler_lib_search_path_GCJ \
26294 archive_cmds_GCJ \
26295 archive_expsym_cmds_GCJ \
26296 postinstall_cmds_GCJ \
26297 postuninstall_cmds_GCJ \
26298 old_archive_from_expsyms_cmds_GCJ \
26299 allow_undefined_flag_GCJ \
26300 no_undefined_flag_GCJ \
26301 export_symbols_cmds_GCJ \
26302 hardcode_libdir_flag_spec_GCJ \
26303 hardcode_libdir_flag_spec_ld_GCJ \
26304 hardcode_libdir_separator_GCJ \
26305 hardcode_automatic_GCJ \
26306 module_cmds_GCJ \
26307 module_expsym_cmds_GCJ \
26308 lt_cv_prog_compiler_c_o_GCJ \
26309 exclude_expsyms_GCJ \
26310 include_expsyms_GCJ; do
26312 case $var in
26313 old_archive_cmds_GCJ | \
26314 old_archive_from_new_cmds_GCJ | \
26315 archive_cmds_GCJ | \
26316 archive_expsym_cmds_GCJ | \
26317 module_cmds_GCJ | \
26318 module_expsym_cmds_GCJ | \
26319 old_archive_from_expsyms_cmds_GCJ | \
26320 export_symbols_cmds_GCJ | \
26321 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26322 postinstall_cmds | postuninstall_cmds | \
26323 old_postinstall_cmds | old_postuninstall_cmds | \
26324 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26325 # Double-quote double-evaled strings.
26326 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26329 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26331 esac
26332 done
26334 case $lt_echo in
26335 *'\$0 --fallback-echo"')
26336 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26338 esac
26340 cfgfile="$ofile"
26342 cat <<__EOF__ >> "$cfgfile"
26343 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26345 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26347 # Shell to use when invoking shell scripts.
26348 SHELL=$lt_SHELL
26350 # Whether or not to build shared libraries.
26351 build_libtool_libs=$enable_shared
26353 # Whether or not to build static libraries.
26354 build_old_libs=$enable_static
26356 # Whether or not to add -lc for building shared libraries.
26357 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26359 # Whether or not to disallow shared libs when runtime libs are static
26360 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26362 # Whether or not to optimize for fast installation.
26363 fast_install=$enable_fast_install
26365 # The host system.
26366 host_alias=$host_alias
26367 host=$host
26368 host_os=$host_os
26370 # The build system.
26371 build_alias=$build_alias
26372 build=$build
26373 build_os=$build_os
26375 # An echo program that does not interpret backslashes.
26376 echo=$lt_echo
26378 # The archiver.
26379 AR=$lt_AR
26380 AR_FLAGS=$lt_AR_FLAGS
26382 # A C compiler.
26383 LTCC=$lt_LTCC
26385 # LTCC compiler flags.
26386 LTCFLAGS=$lt_LTCFLAGS
26388 # A language-specific compiler.
26389 CC=$lt_compiler_GCJ
26391 # Is the compiler the GNU C compiler?
26392 with_gcc=$GCC_GCJ
26394 # An ERE matcher.
26395 EGREP=$lt_EGREP
26397 # The linker used to build libraries.
26398 LD=$lt_LD_GCJ
26400 # Whether we need hard or soft links.
26401 LN_S=$lt_LN_S
26403 # A BSD-compatible nm program.
26404 NM=$lt_NM
26406 # A symbol stripping program
26407 STRIP=$lt_STRIP
26409 # Used to examine libraries when file_magic_cmd begins "file"
26410 MAGIC_CMD=$MAGIC_CMD
26412 # Used on cygwin: DLL creation program.
26413 DLLTOOL="$DLLTOOL"
26415 # Used on cygwin: object dumper.
26416 OBJDUMP="$OBJDUMP"
26418 # Used on cygwin: assembler.
26419 AS="$AS"
26421 # The name of the directory that contains temporary libtool files.
26422 objdir=$objdir
26424 # How to create reloadable object files.
26425 reload_flag=$lt_reload_flag
26426 reload_cmds=$lt_reload_cmds
26428 # How to pass a linker flag through the compiler.
26429 wl=$lt_lt_prog_compiler_wl_GCJ
26431 # Object file suffix (normally "o").
26432 objext="$ac_objext"
26434 # Old archive suffix (normally "a").
26435 libext="$libext"
26437 # Shared library suffix (normally ".so").
26438 shrext_cmds='$shrext_cmds'
26440 # Executable file suffix (normally "").
26441 exeext="$exeext"
26443 # Additional compiler flags for building library objects.
26444 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26445 pic_mode=$pic_mode
26447 # What is the maximum length of a command?
26448 max_cmd_len=$lt_cv_sys_max_cmd_len
26450 # Does compiler simultaneously support -c and -o options?
26451 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26453 # Must we lock files when doing compilation?
26454 need_locks=$lt_need_locks
26456 # Do we need the lib prefix for modules?
26457 need_lib_prefix=$need_lib_prefix
26459 # Do we need a version for libraries?
26460 need_version=$need_version
26462 # Whether dlopen is supported.
26463 dlopen_support=$enable_dlopen
26465 # Whether dlopen of programs is supported.
26466 dlopen_self=$enable_dlopen_self
26468 # Whether dlopen of statically linked programs is supported.
26469 dlopen_self_static=$enable_dlopen_self_static
26471 # Compiler flag to prevent dynamic linking.
26472 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26474 # Compiler flag to turn off builtin functions.
26475 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26477 # Compiler flag to allow reflexive dlopens.
26478 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26480 # Compiler flag to generate shared objects directly from archives.
26481 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26483 # Compiler flag to generate thread-safe objects.
26484 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26486 # Library versioning type.
26487 version_type=$version_type
26489 # Format of library name prefix.
26490 libname_spec=$lt_libname_spec
26492 # List of archive names. First name is the real one, the rest are links.
26493 # The last name is the one that the linker finds with -lNAME.
26494 library_names_spec=$lt_library_names_spec
26496 # The coded name of the library, if different from the real name.
26497 soname_spec=$lt_soname_spec
26499 # Commands used to build and install an old-style archive.
26500 RANLIB=$lt_RANLIB
26501 old_archive_cmds=$lt_old_archive_cmds_GCJ
26502 old_postinstall_cmds=$lt_old_postinstall_cmds
26503 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26505 # Create an old-style archive from a shared archive.
26506 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26508 # Create a temporary old-style archive to link instead of a shared archive.
26509 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26511 # Commands used to build and install a shared archive.
26512 archive_cmds=$lt_archive_cmds_GCJ
26513 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26514 postinstall_cmds=$lt_postinstall_cmds
26515 postuninstall_cmds=$lt_postuninstall_cmds
26517 # Commands used to build a loadable module (assumed same as above if empty)
26518 module_cmds=$lt_module_cmds_GCJ
26519 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26521 # Commands to strip libraries.
26522 old_striplib=$lt_old_striplib
26523 striplib=$lt_striplib
26525 # Dependencies to place before the objects being linked to create a
26526 # shared library.
26527 predep_objects=$lt_predep_objects_GCJ
26529 # Dependencies to place after the objects being linked to create a
26530 # shared library.
26531 postdep_objects=$lt_postdep_objects_GCJ
26533 # Dependencies to place before the objects being linked to create a
26534 # shared library.
26535 predeps=$lt_predeps_GCJ
26537 # Dependencies to place after the objects being linked to create a
26538 # shared library.
26539 postdeps=$lt_postdeps_GCJ
26541 # The library search path used internally by the compiler when linking
26542 # a shared library.
26543 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26545 # Method to check whether dependent libraries are shared objects.
26546 deplibs_check_method=$lt_deplibs_check_method
26548 # Command to use when deplibs_check_method == file_magic.
26549 file_magic_cmd=$lt_file_magic_cmd
26551 # Flag that allows shared libraries with undefined symbols to be built.
26552 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26554 # Flag that forces no undefined symbols.
26555 no_undefined_flag=$lt_no_undefined_flag_GCJ
26557 # Commands used to finish a libtool library installation in a directory.
26558 finish_cmds=$lt_finish_cmds
26560 # Same as above, but a single script fragment to be evaled but not shown.
26561 finish_eval=$lt_finish_eval
26563 # Take the output of nm and produce a listing of raw symbols and C names.
26564 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26566 # Transform the output of nm in a proper C declaration
26567 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26569 # Transform the output of nm in a C name address pair
26570 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26572 # This is the shared library runtime path variable.
26573 runpath_var=$runpath_var
26575 # This is the shared library path variable.
26576 shlibpath_var=$shlibpath_var
26578 # Is shlibpath searched before the hard-coded library search path?
26579 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26581 # How to hardcode a shared library path into an executable.
26582 hardcode_action=$hardcode_action_GCJ
26584 # Whether we should hardcode library paths into libraries.
26585 hardcode_into_libs=$hardcode_into_libs
26587 # Flag to hardcode \$libdir into a binary during linking.
26588 # This must work even if \$libdir does not exist.
26589 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26591 # If ld is used when linking, flag to hardcode \$libdir into
26592 # a binary during linking. This must work even if \$libdir does
26593 # not exist.
26594 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26596 # Whether we need a single -rpath flag with a separated argument.
26597 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26599 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26600 # resulting binary.
26601 hardcode_direct=$hardcode_direct_GCJ
26603 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26604 # resulting binary.
26605 hardcode_minus_L=$hardcode_minus_L_GCJ
26607 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26608 # the resulting binary.
26609 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26611 # Set to yes if building a shared library automatically hardcodes DIR into the library
26612 # and all subsequent libraries and executables linked against it.
26613 hardcode_automatic=$hardcode_automatic_GCJ
26615 # Variables whose values should be saved in libtool wrapper scripts and
26616 # restored at relink time.
26617 variables_saved_for_relink="$variables_saved_for_relink"
26619 # Whether libtool must link a program against all its dependency libraries.
26620 link_all_deplibs=$link_all_deplibs_GCJ
26622 # Compile-time system search path for libraries
26623 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26625 # Run-time system search path for libraries
26626 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26628 # Fix the shell variable \$srcfile for the compiler.
26629 fix_srcfile_path="$fix_srcfile_path_GCJ"
26631 # Set to yes if exported symbols are required.
26632 always_export_symbols=$always_export_symbols_GCJ
26634 # The commands to list exported symbols.
26635 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26637 # The commands to extract the exported symbol list from a shared archive.
26638 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26640 # Symbols that should not be listed in the preloaded symbols.
26641 exclude_expsyms=$lt_exclude_expsyms_GCJ
26643 # Symbols that must always be exported.
26644 include_expsyms=$lt_include_expsyms_GCJ
26646 # ### END LIBTOOL TAG CONFIG: $tagname
26648 __EOF__
26651 else
26652 # If there is no Makefile yet, we rely on a make rule to execute
26653 # `config.status --recheck' to rerun these tests and create the
26654 # libtool script then.
26655 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26656 if test -f "$ltmain_in"; then
26657 test -f Makefile && make "$ltmain"
26662 ac_ext=c
26663 ac_cpp='$CPP $CPPFLAGS'
26664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26668 CC="$lt_save_CC"
26670 else
26671 tagname=""
26676 ac_ext=c
26677 ac_cpp='$CPP $CPPFLAGS'
26678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26683 # Source file extension for RC test sources.
26684 ac_ext=rc
26686 # Object file extension for compiled RC test sources.
26687 objext=o
26688 objext_RC=$objext
26690 # Code to be used in simple compile tests
26691 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26693 # Code to be used in simple link tests
26694 lt_simple_link_test_code="$lt_simple_compile_test_code"
26696 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26698 # If no C compiler was specified, use CC.
26699 LTCC=${LTCC-"$CC"}
26701 # If no C compiler flags were specified, use CFLAGS.
26702 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26704 # Allow CC to be a program name with arguments.
26705 compiler=$CC
26708 # save warnings/boilerplate of simple test code
26709 ac_outfile=conftest.$ac_objext
26710 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26711 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26712 _lt_compiler_boilerplate=`cat conftest.err`
26713 $rm conftest*
26715 ac_outfile=conftest.$ac_objext
26716 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26717 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26718 _lt_linker_boilerplate=`cat conftest.err`
26719 $rm conftest*
26722 # Allow CC to be a program name with arguments.
26723 lt_save_CC="$CC"
26724 CC=${RC-"windres"}
26725 compiler=$CC
26726 compiler_RC=$CC
26727 for cc_temp in $compiler""; do
26728 case $cc_temp in
26729 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26730 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26731 \-*) ;;
26732 *) break;;
26733 esac
26734 done
26735 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26737 lt_cv_prog_compiler_c_o_RC=yes
26739 # The else clause should only fire when bootstrapping the
26740 # libtool distribution, otherwise you forgot to ship ltmain.sh
26741 # with your package, and you will get complaints that there are
26742 # no rules to generate ltmain.sh.
26743 if test -f "$ltmain"; then
26744 # See if we are running on zsh, and set the options which allow our commands through
26745 # without removal of \ escapes.
26746 if test -n "${ZSH_VERSION+set}" ; then
26747 setopt NO_GLOB_SUBST
26749 # Now quote all the things that may contain metacharacters while being
26750 # careful not to overquote the AC_SUBSTed values. We take copies of the
26751 # variables and quote the copies for generation of the libtool script.
26752 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26753 SED SHELL STRIP \
26754 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26755 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26756 deplibs_check_method reload_flag reload_cmds need_locks \
26757 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26758 lt_cv_sys_global_symbol_to_c_name_address \
26759 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26760 old_postinstall_cmds old_postuninstall_cmds \
26761 compiler_RC \
26762 CC_RC \
26763 LD_RC \
26764 lt_prog_compiler_wl_RC \
26765 lt_prog_compiler_pic_RC \
26766 lt_prog_compiler_static_RC \
26767 lt_prog_compiler_no_builtin_flag_RC \
26768 export_dynamic_flag_spec_RC \
26769 thread_safe_flag_spec_RC \
26770 whole_archive_flag_spec_RC \
26771 enable_shared_with_static_runtimes_RC \
26772 old_archive_cmds_RC \
26773 old_archive_from_new_cmds_RC \
26774 predep_objects_RC \
26775 postdep_objects_RC \
26776 predeps_RC \
26777 postdeps_RC \
26778 compiler_lib_search_path_RC \
26779 archive_cmds_RC \
26780 archive_expsym_cmds_RC \
26781 postinstall_cmds_RC \
26782 postuninstall_cmds_RC \
26783 old_archive_from_expsyms_cmds_RC \
26784 allow_undefined_flag_RC \
26785 no_undefined_flag_RC \
26786 export_symbols_cmds_RC \
26787 hardcode_libdir_flag_spec_RC \
26788 hardcode_libdir_flag_spec_ld_RC \
26789 hardcode_libdir_separator_RC \
26790 hardcode_automatic_RC \
26791 module_cmds_RC \
26792 module_expsym_cmds_RC \
26793 lt_cv_prog_compiler_c_o_RC \
26794 exclude_expsyms_RC \
26795 include_expsyms_RC; do
26797 case $var in
26798 old_archive_cmds_RC | \
26799 old_archive_from_new_cmds_RC | \
26800 archive_cmds_RC | \
26801 archive_expsym_cmds_RC | \
26802 module_cmds_RC | \
26803 module_expsym_cmds_RC | \
26804 old_archive_from_expsyms_cmds_RC | \
26805 export_symbols_cmds_RC | \
26806 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26807 postinstall_cmds | postuninstall_cmds | \
26808 old_postinstall_cmds | old_postuninstall_cmds | \
26809 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26810 # Double-quote double-evaled strings.
26811 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26814 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26816 esac
26817 done
26819 case $lt_echo in
26820 *'\$0 --fallback-echo"')
26821 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26823 esac
26825 cfgfile="$ofile"
26827 cat <<__EOF__ >> "$cfgfile"
26828 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26830 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26832 # Shell to use when invoking shell scripts.
26833 SHELL=$lt_SHELL
26835 # Whether or not to build shared libraries.
26836 build_libtool_libs=$enable_shared
26838 # Whether or not to build static libraries.
26839 build_old_libs=$enable_static
26841 # Whether or not to add -lc for building shared libraries.
26842 build_libtool_need_lc=$archive_cmds_need_lc_RC
26844 # Whether or not to disallow shared libs when runtime libs are static
26845 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26847 # Whether or not to optimize for fast installation.
26848 fast_install=$enable_fast_install
26850 # The host system.
26851 host_alias=$host_alias
26852 host=$host
26853 host_os=$host_os
26855 # The build system.
26856 build_alias=$build_alias
26857 build=$build
26858 build_os=$build_os
26860 # An echo program that does not interpret backslashes.
26861 echo=$lt_echo
26863 # The archiver.
26864 AR=$lt_AR
26865 AR_FLAGS=$lt_AR_FLAGS
26867 # A C compiler.
26868 LTCC=$lt_LTCC
26870 # LTCC compiler flags.
26871 LTCFLAGS=$lt_LTCFLAGS
26873 # A language-specific compiler.
26874 CC=$lt_compiler_RC
26876 # Is the compiler the GNU C compiler?
26877 with_gcc=$GCC_RC
26879 # An ERE matcher.
26880 EGREP=$lt_EGREP
26882 # The linker used to build libraries.
26883 LD=$lt_LD_RC
26885 # Whether we need hard or soft links.
26886 LN_S=$lt_LN_S
26888 # A BSD-compatible nm program.
26889 NM=$lt_NM
26891 # A symbol stripping program
26892 STRIP=$lt_STRIP
26894 # Used to examine libraries when file_magic_cmd begins "file"
26895 MAGIC_CMD=$MAGIC_CMD
26897 # Used on cygwin: DLL creation program.
26898 DLLTOOL="$DLLTOOL"
26900 # Used on cygwin: object dumper.
26901 OBJDUMP="$OBJDUMP"
26903 # Used on cygwin: assembler.
26904 AS="$AS"
26906 # The name of the directory that contains temporary libtool files.
26907 objdir=$objdir
26909 # How to create reloadable object files.
26910 reload_flag=$lt_reload_flag
26911 reload_cmds=$lt_reload_cmds
26913 # How to pass a linker flag through the compiler.
26914 wl=$lt_lt_prog_compiler_wl_RC
26916 # Object file suffix (normally "o").
26917 objext="$ac_objext"
26919 # Old archive suffix (normally "a").
26920 libext="$libext"
26922 # Shared library suffix (normally ".so").
26923 shrext_cmds='$shrext_cmds'
26925 # Executable file suffix (normally "").
26926 exeext="$exeext"
26928 # Additional compiler flags for building library objects.
26929 pic_flag=$lt_lt_prog_compiler_pic_RC
26930 pic_mode=$pic_mode
26932 # What is the maximum length of a command?
26933 max_cmd_len=$lt_cv_sys_max_cmd_len
26935 # Does compiler simultaneously support -c and -o options?
26936 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26938 # Must we lock files when doing compilation?
26939 need_locks=$lt_need_locks
26941 # Do we need the lib prefix for modules?
26942 need_lib_prefix=$need_lib_prefix
26944 # Do we need a version for libraries?
26945 need_version=$need_version
26947 # Whether dlopen is supported.
26948 dlopen_support=$enable_dlopen
26950 # Whether dlopen of programs is supported.
26951 dlopen_self=$enable_dlopen_self
26953 # Whether dlopen of statically linked programs is supported.
26954 dlopen_self_static=$enable_dlopen_self_static
26956 # Compiler flag to prevent dynamic linking.
26957 link_static_flag=$lt_lt_prog_compiler_static_RC
26959 # Compiler flag to turn off builtin functions.
26960 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26962 # Compiler flag to allow reflexive dlopens.
26963 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26965 # Compiler flag to generate shared objects directly from archives.
26966 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26968 # Compiler flag to generate thread-safe objects.
26969 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26971 # Library versioning type.
26972 version_type=$version_type
26974 # Format of library name prefix.
26975 libname_spec=$lt_libname_spec
26977 # List of archive names. First name is the real one, the rest are links.
26978 # The last name is the one that the linker finds with -lNAME.
26979 library_names_spec=$lt_library_names_spec
26981 # The coded name of the library, if different from the real name.
26982 soname_spec=$lt_soname_spec
26984 # Commands used to build and install an old-style archive.
26985 RANLIB=$lt_RANLIB
26986 old_archive_cmds=$lt_old_archive_cmds_RC
26987 old_postinstall_cmds=$lt_old_postinstall_cmds
26988 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26990 # Create an old-style archive from a shared archive.
26991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26993 # Create a temporary old-style archive to link instead of a shared archive.
26994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26996 # Commands used to build and install a shared archive.
26997 archive_cmds=$lt_archive_cmds_RC
26998 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26999 postinstall_cmds=$lt_postinstall_cmds
27000 postuninstall_cmds=$lt_postuninstall_cmds
27002 # Commands used to build a loadable module (assumed same as above if empty)
27003 module_cmds=$lt_module_cmds_RC
27004 module_expsym_cmds=$lt_module_expsym_cmds_RC
27006 # Commands to strip libraries.
27007 old_striplib=$lt_old_striplib
27008 striplib=$lt_striplib
27010 # Dependencies to place before the objects being linked to create a
27011 # shared library.
27012 predep_objects=$lt_predep_objects_RC
27014 # Dependencies to place after the objects being linked to create a
27015 # shared library.
27016 postdep_objects=$lt_postdep_objects_RC
27018 # Dependencies to place before the objects being linked to create a
27019 # shared library.
27020 predeps=$lt_predeps_RC
27022 # Dependencies to place after the objects being linked to create a
27023 # shared library.
27024 postdeps=$lt_postdeps_RC
27026 # The library search path used internally by the compiler when linking
27027 # a shared library.
27028 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27030 # Method to check whether dependent libraries are shared objects.
27031 deplibs_check_method=$lt_deplibs_check_method
27033 # Command to use when deplibs_check_method == file_magic.
27034 file_magic_cmd=$lt_file_magic_cmd
27036 # Flag that allows shared libraries with undefined symbols to be built.
27037 allow_undefined_flag=$lt_allow_undefined_flag_RC
27039 # Flag that forces no undefined symbols.
27040 no_undefined_flag=$lt_no_undefined_flag_RC
27042 # Commands used to finish a libtool library installation in a directory.
27043 finish_cmds=$lt_finish_cmds
27045 # Same as above, but a single script fragment to be evaled but not shown.
27046 finish_eval=$lt_finish_eval
27048 # Take the output of nm and produce a listing of raw symbols and C names.
27049 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27051 # Transform the output of nm in a proper C declaration
27052 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27054 # Transform the output of nm in a C name address pair
27055 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27057 # This is the shared library runtime path variable.
27058 runpath_var=$runpath_var
27060 # This is the shared library path variable.
27061 shlibpath_var=$shlibpath_var
27063 # Is shlibpath searched before the hard-coded library search path?
27064 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27066 # How to hardcode a shared library path into an executable.
27067 hardcode_action=$hardcode_action_RC
27069 # Whether we should hardcode library paths into libraries.
27070 hardcode_into_libs=$hardcode_into_libs
27072 # Flag to hardcode \$libdir into a binary during linking.
27073 # This must work even if \$libdir does not exist.
27074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27076 # If ld is used when linking, flag to hardcode \$libdir into
27077 # a binary during linking. This must work even if \$libdir does
27078 # not exist.
27079 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27081 # Whether we need a single -rpath flag with a separated argument.
27082 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27084 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27085 # resulting binary.
27086 hardcode_direct=$hardcode_direct_RC
27088 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27089 # resulting binary.
27090 hardcode_minus_L=$hardcode_minus_L_RC
27092 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27093 # the resulting binary.
27094 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27096 # Set to yes if building a shared library automatically hardcodes DIR into the library
27097 # and all subsequent libraries and executables linked against it.
27098 hardcode_automatic=$hardcode_automatic_RC
27100 # Variables whose values should be saved in libtool wrapper scripts and
27101 # restored at relink time.
27102 variables_saved_for_relink="$variables_saved_for_relink"
27104 # Whether libtool must link a program against all its dependency libraries.
27105 link_all_deplibs=$link_all_deplibs_RC
27107 # Compile-time system search path for libraries
27108 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27110 # Run-time system search path for libraries
27111 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27113 # Fix the shell variable \$srcfile for the compiler.
27114 fix_srcfile_path="$fix_srcfile_path_RC"
27116 # Set to yes if exported symbols are required.
27117 always_export_symbols=$always_export_symbols_RC
27119 # The commands to list exported symbols.
27120 export_symbols_cmds=$lt_export_symbols_cmds_RC
27122 # The commands to extract the exported symbol list from a shared archive.
27123 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27125 # Symbols that should not be listed in the preloaded symbols.
27126 exclude_expsyms=$lt_exclude_expsyms_RC
27128 # Symbols that must always be exported.
27129 include_expsyms=$lt_include_expsyms_RC
27131 # ### END LIBTOOL TAG CONFIG: $tagname
27133 __EOF__
27136 else
27137 # If there is no Makefile yet, we rely on a make rule to execute
27138 # `config.status --recheck' to rerun these tests and create the
27139 # libtool script then.
27140 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27141 if test -f "$ltmain_in"; then
27142 test -f Makefile && make "$ltmain"
27147 ac_ext=c
27148 ac_cpp='$CPP $CPPFLAGS'
27149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27153 CC="$lt_save_CC"
27158 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27159 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27160 { (exit 1); exit 1; }; }
27162 esac
27164 # Append the new tag name to the list of available tags.
27165 if test -n "$tagname" ; then
27166 available_tags="$available_tags $tagname"
27169 done
27170 IFS="$lt_save_ifs"
27172 # Now substitute the updated list of available tags.
27173 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27174 mv "${ofile}T" "$ofile"
27175 chmod +x "$ofile"
27176 else
27177 rm -f "${ofile}T"
27178 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27179 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27180 { (exit 1); exit 1; }; }
27186 # This can be used to rebuild libtool when needed
27187 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27189 # Always use our own libtool.
27190 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27192 # Prevent multiple expansion
27214 if test "$lt_cv_dlopen_self" = "yes" ; then
27216 cat >>confdefs.h <<\_ACEOF
27217 #define CAN_DLOPEN_SELF 1
27218 _ACEOF
27223 if test "$WITH_LLVMGCCDIR" = "default" ; then
27224 LLVMGCC="llvm-gcc${EXEEXT}"
27225 LLVMGXX="llvm-g++${EXEEXT}"
27226 LLVMGCCCOMMAND="$LLVMGCC"
27227 LLVMGXXCOMMAND="$LLVMGXX"
27228 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27230 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27232 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27233 set dummy $LLVMGCC; ac_word=$2
27234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27236 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27237 echo $ECHO_N "(cached) $ECHO_C" >&6
27238 else
27239 case $LLVMGCC in
27240 [\\/]* | ?:[\\/]*)
27241 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27245 for as_dir in $PATH
27247 IFS=$as_save_IFS
27248 test -z "$as_dir" && as_dir=.
27249 for ac_exec_ext in '' $ac_executable_extensions; do
27250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27251 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27253 break 2
27255 done
27256 done
27257 IFS=$as_save_IFS
27260 esac
27262 LLVMGCC=$ac_cv_path_LLVMGCC
27263 if test -n "$LLVMGCC"; then
27264 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27265 echo "${ECHO_T}$LLVMGCC" >&6; }
27266 else
27267 { echo "$as_me:$LINENO: result: no" >&5
27268 echo "${ECHO_T}no" >&6; }
27272 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27273 set dummy $LLVMGXX; ac_word=$2
27274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27276 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27277 echo $ECHO_N "(cached) $ECHO_C" >&6
27278 else
27279 case $LLVMGXX in
27280 [\\/]* | ?:[\\/]*)
27281 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27285 for as_dir in $PATH
27287 IFS=$as_save_IFS
27288 test -z "$as_dir" && as_dir=.
27289 for ac_exec_ext in '' $ac_executable_extensions; do
27290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27291 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27293 break 2
27295 done
27296 done
27297 IFS=$as_save_IFS
27300 esac
27302 LLVMGXX=$ac_cv_path_LLVMGXX
27303 if test -n "$LLVMGXX"; then
27304 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27305 echo "${ECHO_T}$LLVMGXX" >&6; }
27306 else
27307 { echo "$as_me:$LINENO: result: no" >&5
27308 echo "${ECHO_T}no" >&6; }
27312 else
27313 if test -z "$LLVMGCC"; then
27314 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27315 LLVMGCCCOMMAND="$LLVMGCC"
27317 if test -z "$LLVMGXX"; then
27318 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27319 LLVMGXXCOMMAND="$LLVMGXX"
27322 LLVMGCC=$LLVMGCC
27324 LLVMGXX=$LLVMGXX
27326 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27328 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27333 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27334 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27336 ICC=no
27337 IXX=no
27338 case $CC in
27339 icc*|icpc*)
27340 ICC=yes
27341 IXX=yes
27345 esac
27347 if test "$GCC" != "yes" && test "$ICC" != "yes"
27348 then
27349 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27350 echo "$as_me: error: gcc|icc required but not found" >&2;}
27351 { (exit 1); exit 1; }; }
27354 if test "$GXX" != "yes" && test "$IXX" != "yes"
27355 then
27356 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27357 echo "$as_me: error: g++|icc required but not found" >&2;}
27358 { (exit 1); exit 1; }; }
27361 if test "$GCC" = "yes"
27362 then
27363 cat >conftest.$ac_ext <<_ACEOF
27364 #if !defined(__GNUC__) || __GNUC__ < 3
27365 #error Unsupported GCC version
27366 #endif
27368 _ACEOF
27369 rm -f conftest.$ac_objext
27370 if { (ac_try="$ac_compile"
27371 case "(($ac_try" in
27372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27373 *) ac_try_echo=$ac_try;;
27374 esac
27375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27376 (eval "$ac_compile") 2>conftest.er1
27377 ac_status=$?
27378 grep -v '^ *+' conftest.er1 >conftest.err
27379 rm -f conftest.er1
27380 cat conftest.err >&5
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); } &&
27383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27384 { (case "(($ac_try" in
27385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386 *) ac_try_echo=$ac_try;;
27387 esac
27388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27389 (eval "$ac_try") 2>&5
27390 ac_status=$?
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); }; } &&
27393 { ac_try='test -s conftest.$ac_objext'
27394 { (case "(($ac_try" in
27395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27396 *) ac_try_echo=$ac_try;;
27397 esac
27398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27399 (eval "$ac_try") 2>&5
27400 ac_status=$?
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; }; then
27404 else
27405 echo "$as_me: failed program was:" >&5
27406 sed 's/^/| /' conftest.$ac_ext >&5
27408 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27409 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27410 { (exit 1); exit 1; }; }
27413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27416 if test -z "$llvm_cv_gnu_make_command"
27417 then
27418 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27419 echo "$as_me: error: GNU Make required but not found" >&2;}
27420 { (exit 1); exit 1; }; }
27423 { echo "$as_me:$LINENO: result: ok" >&5
27424 echo "${ECHO_T}ok" >&6; }
27428 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27429 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27430 if test "${ac_cv_lib_m_sin+set}" = set; then
27431 echo $ECHO_N "(cached) $ECHO_C" >&6
27432 else
27433 ac_check_lib_save_LIBS=$LIBS
27434 LIBS="-lm $LIBS"
27435 cat >conftest.$ac_ext <<_ACEOF
27436 /* confdefs.h. */
27437 _ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h. */
27442 /* Override any GCC internal prototype to avoid an error.
27443 Use char because int might match the return type of a GCC
27444 builtin and then its argument prototype would still apply. */
27445 #ifdef __cplusplus
27446 extern "C"
27447 #endif
27448 char sin ();
27450 main ()
27452 return sin ();
27454 return 0;
27456 _ACEOF
27457 rm -f conftest.$ac_objext conftest$ac_exeext
27458 if { (ac_try="$ac_link"
27459 case "(($ac_try" in
27460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461 *) ac_try_echo=$ac_try;;
27462 esac
27463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464 (eval "$ac_link") 2>conftest.er1
27465 ac_status=$?
27466 grep -v '^ *+' conftest.er1 >conftest.err
27467 rm -f conftest.er1
27468 cat conftest.err >&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); } &&
27471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27472 { (case "(($ac_try" in
27473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474 *) ac_try_echo=$ac_try;;
27475 esac
27476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477 (eval "$ac_try") 2>&5
27478 ac_status=$?
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; } &&
27481 { ac_try='test -s conftest$ac_exeext'
27482 { (case "(($ac_try" in
27483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484 *) ac_try_echo=$ac_try;;
27485 esac
27486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487 (eval "$ac_try") 2>&5
27488 ac_status=$?
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); }; }; then
27491 ac_cv_lib_m_sin=yes
27492 else
27493 echo "$as_me: failed program was:" >&5
27494 sed 's/^/| /' conftest.$ac_ext >&5
27496 ac_cv_lib_m_sin=no
27499 rm -f core conftest.err conftest.$ac_objext \
27500 conftest$ac_exeext conftest.$ac_ext
27501 LIBS=$ac_check_lib_save_LIBS
27503 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27504 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27505 if test $ac_cv_lib_m_sin = yes; then
27506 cat >>confdefs.h <<_ACEOF
27507 #define HAVE_LIBM 1
27508 _ACEOF
27510 LIBS="-lm $LIBS"
27514 if test "$llvm_cv_os_type" = "MingW" ; then
27516 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27517 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27518 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27519 echo $ECHO_N "(cached) $ECHO_C" >&6
27520 else
27521 ac_check_lib_save_LIBS=$LIBS
27522 LIBS="-limagehlp $LIBS"
27523 cat >conftest.$ac_ext <<_ACEOF
27524 /* confdefs.h. */
27525 _ACEOF
27526 cat confdefs.h >>conftest.$ac_ext
27527 cat >>conftest.$ac_ext <<_ACEOF
27528 /* end confdefs.h. */
27532 main ()
27534 return main ();
27536 return 0;
27538 _ACEOF
27539 rm -f conftest.$ac_objext conftest$ac_exeext
27540 if { (ac_try="$ac_link"
27541 case "(($ac_try" in
27542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27543 *) ac_try_echo=$ac_try;;
27544 esac
27545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27546 (eval "$ac_link") 2>conftest.er1
27547 ac_status=$?
27548 grep -v '^ *+' conftest.er1 >conftest.err
27549 rm -f conftest.er1
27550 cat conftest.err >&5
27551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552 (exit $ac_status); } &&
27553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27554 { (case "(($ac_try" in
27555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556 *) ac_try_echo=$ac_try;;
27557 esac
27558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559 (eval "$ac_try") 2>&5
27560 ac_status=$?
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); }; } &&
27563 { ac_try='test -s conftest$ac_exeext'
27564 { (case "(($ac_try" in
27565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27566 *) ac_try_echo=$ac_try;;
27567 esac
27568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27569 (eval "$ac_try") 2>&5
27570 ac_status=$?
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); }; }; then
27573 ac_cv_lib_imagehlp_main=yes
27574 else
27575 echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27578 ac_cv_lib_imagehlp_main=no
27581 rm -f core conftest.err conftest.$ac_objext \
27582 conftest$ac_exeext conftest.$ac_ext
27583 LIBS=$ac_check_lib_save_LIBS
27585 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27586 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27587 if test $ac_cv_lib_imagehlp_main = yes; then
27588 cat >>confdefs.h <<_ACEOF
27589 #define HAVE_LIBIMAGEHLP 1
27590 _ACEOF
27592 LIBS="-limagehlp $LIBS"
27597 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27598 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27599 if test "${ac_cv_lib_psapi_main+set}" = set; then
27600 echo $ECHO_N "(cached) $ECHO_C" >&6
27601 else
27602 ac_check_lib_save_LIBS=$LIBS
27603 LIBS="-lpsapi $LIBS"
27604 cat >conftest.$ac_ext <<_ACEOF
27605 /* confdefs.h. */
27606 _ACEOF
27607 cat confdefs.h >>conftest.$ac_ext
27608 cat >>conftest.$ac_ext <<_ACEOF
27609 /* end confdefs.h. */
27613 main ()
27615 return main ();
27617 return 0;
27619 _ACEOF
27620 rm -f conftest.$ac_objext conftest$ac_exeext
27621 if { (ac_try="$ac_link"
27622 case "(($ac_try" in
27623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27624 *) ac_try_echo=$ac_try;;
27625 esac
27626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27627 (eval "$ac_link") 2>conftest.er1
27628 ac_status=$?
27629 grep -v '^ *+' conftest.er1 >conftest.err
27630 rm -f conftest.er1
27631 cat conftest.err >&5
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); } &&
27634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27635 { (case "(($ac_try" in
27636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27637 *) ac_try_echo=$ac_try;;
27638 esac
27639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27640 (eval "$ac_try") 2>&5
27641 ac_status=$?
27642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643 (exit $ac_status); }; } &&
27644 { ac_try='test -s conftest$ac_exeext'
27645 { (case "(($ac_try" in
27646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27647 *) ac_try_echo=$ac_try;;
27648 esac
27649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27650 (eval "$ac_try") 2>&5
27651 ac_status=$?
27652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653 (exit $ac_status); }; }; then
27654 ac_cv_lib_psapi_main=yes
27655 else
27656 echo "$as_me: failed program was:" >&5
27657 sed 's/^/| /' conftest.$ac_ext >&5
27659 ac_cv_lib_psapi_main=no
27662 rm -f core conftest.err conftest.$ac_objext \
27663 conftest$ac_exeext conftest.$ac_ext
27664 LIBS=$ac_check_lib_save_LIBS
27666 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27667 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27668 if test $ac_cv_lib_psapi_main = yes; then
27669 cat >>confdefs.h <<_ACEOF
27670 #define HAVE_LIBPSAPI 1
27671 _ACEOF
27673 LIBS="-lpsapi $LIBS"
27679 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27680 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27681 if test "${ac_cv_search_dlopen+set}" = set; then
27682 echo $ECHO_N "(cached) $ECHO_C" >&6
27683 else
27684 ac_func_search_save_LIBS=$LIBS
27685 cat >conftest.$ac_ext <<_ACEOF
27686 /* confdefs.h. */
27687 _ACEOF
27688 cat confdefs.h >>conftest.$ac_ext
27689 cat >>conftest.$ac_ext <<_ACEOF
27690 /* end confdefs.h. */
27692 /* Override any GCC internal prototype to avoid an error.
27693 Use char because int might match the return type of a GCC
27694 builtin and then its argument prototype would still apply. */
27695 #ifdef __cplusplus
27696 extern "C"
27697 #endif
27698 char dlopen ();
27700 main ()
27702 return dlopen ();
27704 return 0;
27706 _ACEOF
27707 for ac_lib in '' dl; do
27708 if test -z "$ac_lib"; then
27709 ac_res="none required"
27710 else
27711 ac_res=-l$ac_lib
27712 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27714 rm -f conftest.$ac_objext conftest$ac_exeext
27715 if { (ac_try="$ac_link"
27716 case "(($ac_try" in
27717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27718 *) ac_try_echo=$ac_try;;
27719 esac
27720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27721 (eval "$ac_link") 2>conftest.er1
27722 ac_status=$?
27723 grep -v '^ *+' conftest.er1 >conftest.err
27724 rm -f conftest.er1
27725 cat conftest.err >&5
27726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727 (exit $ac_status); } &&
27728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27729 { (case "(($ac_try" in
27730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27731 *) ac_try_echo=$ac_try;;
27732 esac
27733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27734 (eval "$ac_try") 2>&5
27735 ac_status=$?
27736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); }; } &&
27738 { ac_try='test -s conftest$ac_exeext'
27739 { (case "(($ac_try" in
27740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27741 *) ac_try_echo=$ac_try;;
27742 esac
27743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27744 (eval "$ac_try") 2>&5
27745 ac_status=$?
27746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747 (exit $ac_status); }; }; then
27748 ac_cv_search_dlopen=$ac_res
27749 else
27750 echo "$as_me: failed program was:" >&5
27751 sed 's/^/| /' conftest.$ac_ext >&5
27756 rm -f core conftest.err conftest.$ac_objext \
27757 conftest$ac_exeext
27758 if test "${ac_cv_search_dlopen+set}" = set; then
27759 break
27761 done
27762 if test "${ac_cv_search_dlopen+set}" = set; then
27764 else
27765 ac_cv_search_dlopen=no
27767 rm conftest.$ac_ext
27768 LIBS=$ac_func_search_save_LIBS
27770 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27771 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27772 ac_res=$ac_cv_search_dlopen
27773 if test "$ac_res" != no; then
27774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27776 cat >>confdefs.h <<\_ACEOF
27777 #define HAVE_DLOPEN 1
27778 _ACEOF
27780 else
27781 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27782 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27786 if test "$llvm_cv_enable_libffi" = "yes" ; then
27787 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27788 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27789 if test "${ac_cv_search_ffi_call+set}" = set; then
27790 echo $ECHO_N "(cached) $ECHO_C" >&6
27791 else
27792 ac_func_search_save_LIBS=$LIBS
27793 cat >conftest.$ac_ext <<_ACEOF
27794 /* confdefs.h. */
27795 _ACEOF
27796 cat confdefs.h >>conftest.$ac_ext
27797 cat >>conftest.$ac_ext <<_ACEOF
27798 /* end confdefs.h. */
27800 /* Override any GCC internal prototype to avoid an error.
27801 Use char because int might match the return type of a GCC
27802 builtin and then its argument prototype would still apply. */
27803 #ifdef __cplusplus
27804 extern "C"
27805 #endif
27806 char ffi_call ();
27808 main ()
27810 return ffi_call ();
27812 return 0;
27814 _ACEOF
27815 for ac_lib in '' ffi; do
27816 if test -z "$ac_lib"; then
27817 ac_res="none required"
27818 else
27819 ac_res=-l$ac_lib
27820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27822 rm -f conftest.$ac_objext conftest$ac_exeext
27823 if { (ac_try="$ac_link"
27824 case "(($ac_try" in
27825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27826 *) ac_try_echo=$ac_try;;
27827 esac
27828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27829 (eval "$ac_link") 2>conftest.er1
27830 ac_status=$?
27831 grep -v '^ *+' conftest.er1 >conftest.err
27832 rm -f conftest.er1
27833 cat conftest.err >&5
27834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835 (exit $ac_status); } &&
27836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27837 { (case "(($ac_try" in
27838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27839 *) ac_try_echo=$ac_try;;
27840 esac
27841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27842 (eval "$ac_try") 2>&5
27843 ac_status=$?
27844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27845 (exit $ac_status); }; } &&
27846 { ac_try='test -s conftest$ac_exeext'
27847 { (case "(($ac_try" in
27848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27849 *) ac_try_echo=$ac_try;;
27850 esac
27851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27852 (eval "$ac_try") 2>&5
27853 ac_status=$?
27854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855 (exit $ac_status); }; }; then
27856 ac_cv_search_ffi_call=$ac_res
27857 else
27858 echo "$as_me: failed program was:" >&5
27859 sed 's/^/| /' conftest.$ac_ext >&5
27864 rm -f core conftest.err conftest.$ac_objext \
27865 conftest$ac_exeext
27866 if test "${ac_cv_search_ffi_call+set}" = set; then
27867 break
27869 done
27870 if test "${ac_cv_search_ffi_call+set}" = set; then
27872 else
27873 ac_cv_search_ffi_call=no
27875 rm conftest.$ac_ext
27876 LIBS=$ac_func_search_save_LIBS
27878 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27879 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27880 ac_res=$ac_cv_search_ffi_call
27881 if test "$ac_res" != no; then
27882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27884 cat >>confdefs.h <<\_ACEOF
27885 #define HAVE_FFI_CALL 1
27886 _ACEOF
27888 else
27889 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27890 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27895 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27896 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27897 if test "${ac_cv_search_mallinfo+set}" = set; then
27898 echo $ECHO_N "(cached) $ECHO_C" >&6
27899 else
27900 ac_func_search_save_LIBS=$LIBS
27901 cat >conftest.$ac_ext <<_ACEOF
27902 /* confdefs.h. */
27903 _ACEOF
27904 cat confdefs.h >>conftest.$ac_ext
27905 cat >>conftest.$ac_ext <<_ACEOF
27906 /* end confdefs.h. */
27908 /* Override any GCC internal prototype to avoid an error.
27909 Use char because int might match the return type of a GCC
27910 builtin and then its argument prototype would still apply. */
27911 #ifdef __cplusplus
27912 extern "C"
27913 #endif
27914 char mallinfo ();
27916 main ()
27918 return mallinfo ();
27920 return 0;
27922 _ACEOF
27923 for ac_lib in '' malloc; do
27924 if test -z "$ac_lib"; then
27925 ac_res="none required"
27926 else
27927 ac_res=-l$ac_lib
27928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27930 rm -f conftest.$ac_objext conftest$ac_exeext
27931 if { (ac_try="$ac_link"
27932 case "(($ac_try" in
27933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27934 *) ac_try_echo=$ac_try;;
27935 esac
27936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27937 (eval "$ac_link") 2>conftest.er1
27938 ac_status=$?
27939 grep -v '^ *+' conftest.er1 >conftest.err
27940 rm -f conftest.er1
27941 cat conftest.err >&5
27942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943 (exit $ac_status); } &&
27944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27945 { (case "(($ac_try" in
27946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947 *) ac_try_echo=$ac_try;;
27948 esac
27949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27950 (eval "$ac_try") 2>&5
27951 ac_status=$?
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; } &&
27954 { ac_try='test -s conftest$ac_exeext'
27955 { (case "(($ac_try" in
27956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957 *) ac_try_echo=$ac_try;;
27958 esac
27959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960 (eval "$ac_try") 2>&5
27961 ac_status=$?
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); }; }; then
27964 ac_cv_search_mallinfo=$ac_res
27965 else
27966 echo "$as_me: failed program was:" >&5
27967 sed 's/^/| /' conftest.$ac_ext >&5
27972 rm -f core conftest.err conftest.$ac_objext \
27973 conftest$ac_exeext
27974 if test "${ac_cv_search_mallinfo+set}" = set; then
27975 break
27977 done
27978 if test "${ac_cv_search_mallinfo+set}" = set; then
27980 else
27981 ac_cv_search_mallinfo=no
27983 rm conftest.$ac_ext
27984 LIBS=$ac_func_search_save_LIBS
27986 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27987 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27988 ac_res=$ac_cv_search_mallinfo
27989 if test "$ac_res" != no; then
27990 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27992 cat >>confdefs.h <<\_ACEOF
27993 #define HAVE_MALLINFO 1
27994 _ACEOF
27999 if test "$ENABLE_THREADS" -eq 1 ; then
28001 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28002 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28003 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28004 echo $ECHO_N "(cached) $ECHO_C" >&6
28005 else
28006 ac_check_lib_save_LIBS=$LIBS
28007 LIBS="-lpthread $LIBS"
28008 cat >conftest.$ac_ext <<_ACEOF
28009 /* confdefs.h. */
28010 _ACEOF
28011 cat confdefs.h >>conftest.$ac_ext
28012 cat >>conftest.$ac_ext <<_ACEOF
28013 /* end confdefs.h. */
28015 /* Override any GCC internal prototype to avoid an error.
28016 Use char because int might match the return type of a GCC
28017 builtin and then its argument prototype would still apply. */
28018 #ifdef __cplusplus
28019 extern "C"
28020 #endif
28021 char pthread_mutex_init ();
28023 main ()
28025 return pthread_mutex_init ();
28027 return 0;
28029 _ACEOF
28030 rm -f conftest.$ac_objext conftest$ac_exeext
28031 if { (ac_try="$ac_link"
28032 case "(($ac_try" in
28033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28034 *) ac_try_echo=$ac_try;;
28035 esac
28036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28037 (eval "$ac_link") 2>conftest.er1
28038 ac_status=$?
28039 grep -v '^ *+' conftest.er1 >conftest.err
28040 rm -f conftest.er1
28041 cat conftest.err >&5
28042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 (exit $ac_status); } &&
28044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28045 { (case "(($ac_try" in
28046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28047 *) ac_try_echo=$ac_try;;
28048 esac
28049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28050 (eval "$ac_try") 2>&5
28051 ac_status=$?
28052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); }; } &&
28054 { ac_try='test -s conftest$ac_exeext'
28055 { (case "(($ac_try" in
28056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28057 *) ac_try_echo=$ac_try;;
28058 esac
28059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28060 (eval "$ac_try") 2>&5
28061 ac_status=$?
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; }; then
28064 ac_cv_lib_pthread_pthread_mutex_init=yes
28065 else
28066 echo "$as_me: failed program was:" >&5
28067 sed 's/^/| /' conftest.$ac_ext >&5
28069 ac_cv_lib_pthread_pthread_mutex_init=no
28072 rm -f core conftest.err conftest.$ac_objext \
28073 conftest$ac_exeext conftest.$ac_ext
28074 LIBS=$ac_check_lib_save_LIBS
28076 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28077 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28078 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28079 cat >>confdefs.h <<_ACEOF
28080 #define HAVE_LIBPTHREAD 1
28081 _ACEOF
28083 LIBS="-lpthread $LIBS"
28087 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28088 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28089 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28090 echo $ECHO_N "(cached) $ECHO_C" >&6
28091 else
28092 ac_func_search_save_LIBS=$LIBS
28093 cat >conftest.$ac_ext <<_ACEOF
28094 /* confdefs.h. */
28095 _ACEOF
28096 cat confdefs.h >>conftest.$ac_ext
28097 cat >>conftest.$ac_ext <<_ACEOF
28098 /* end confdefs.h. */
28100 /* Override any GCC internal prototype to avoid an error.
28101 Use char because int might match the return type of a GCC
28102 builtin and then its argument prototype would still apply. */
28103 #ifdef __cplusplus
28104 extern "C"
28105 #endif
28106 char pthread_mutex_lock ();
28108 main ()
28110 return pthread_mutex_lock ();
28112 return 0;
28114 _ACEOF
28115 for ac_lib in '' pthread; do
28116 if test -z "$ac_lib"; then
28117 ac_res="none required"
28118 else
28119 ac_res=-l$ac_lib
28120 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28122 rm -f conftest.$ac_objext conftest$ac_exeext
28123 if { (ac_try="$ac_link"
28124 case "(($ac_try" in
28125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28126 *) ac_try_echo=$ac_try;;
28127 esac
28128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28129 (eval "$ac_link") 2>conftest.er1
28130 ac_status=$?
28131 grep -v '^ *+' conftest.er1 >conftest.err
28132 rm -f conftest.er1
28133 cat conftest.err >&5
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); } &&
28136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28137 { (case "(($ac_try" in
28138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139 *) ac_try_echo=$ac_try;;
28140 esac
28141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142 (eval "$ac_try") 2>&5
28143 ac_status=$?
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); }; } &&
28146 { ac_try='test -s conftest$ac_exeext'
28147 { (case "(($ac_try" in
28148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28149 *) ac_try_echo=$ac_try;;
28150 esac
28151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28152 (eval "$ac_try") 2>&5
28153 ac_status=$?
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; }; then
28156 ac_cv_search_pthread_mutex_lock=$ac_res
28157 else
28158 echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.$ac_ext >&5
28164 rm -f core conftest.err conftest.$ac_objext \
28165 conftest$ac_exeext
28166 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28167 break
28169 done
28170 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28172 else
28173 ac_cv_search_pthread_mutex_lock=no
28175 rm conftest.$ac_ext
28176 LIBS=$ac_func_search_save_LIBS
28178 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28179 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28180 ac_res=$ac_cv_search_pthread_mutex_lock
28181 if test "$ac_res" != no; then
28182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28184 cat >>confdefs.h <<\_ACEOF
28185 #define HAVE_PTHREAD_MUTEX_LOCK 1
28186 _ACEOF
28190 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28191 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28192 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28193 echo $ECHO_N "(cached) $ECHO_C" >&6
28194 else
28195 ac_func_search_save_LIBS=$LIBS
28196 cat >conftest.$ac_ext <<_ACEOF
28197 /* confdefs.h. */
28198 _ACEOF
28199 cat confdefs.h >>conftest.$ac_ext
28200 cat >>conftest.$ac_ext <<_ACEOF
28201 /* end confdefs.h. */
28203 /* Override any GCC internal prototype to avoid an error.
28204 Use char because int might match the return type of a GCC
28205 builtin and then its argument prototype would still apply. */
28206 #ifdef __cplusplus
28207 extern "C"
28208 #endif
28209 char pthread_rwlock_init ();
28211 main ()
28213 return pthread_rwlock_init ();
28215 return 0;
28217 _ACEOF
28218 for ac_lib in '' pthread; do
28219 if test -z "$ac_lib"; then
28220 ac_res="none required"
28221 else
28222 ac_res=-l$ac_lib
28223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28225 rm -f conftest.$ac_objext conftest$ac_exeext
28226 if { (ac_try="$ac_link"
28227 case "(($ac_try" in
28228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229 *) ac_try_echo=$ac_try;;
28230 esac
28231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232 (eval "$ac_link") 2>conftest.er1
28233 ac_status=$?
28234 grep -v '^ *+' conftest.er1 >conftest.err
28235 rm -f conftest.er1
28236 cat conftest.err >&5
28237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); } &&
28239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28240 { (case "(($ac_try" in
28241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242 *) ac_try_echo=$ac_try;;
28243 esac
28244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28245 (eval "$ac_try") 2>&5
28246 ac_status=$?
28247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248 (exit $ac_status); }; } &&
28249 { ac_try='test -s conftest$ac_exeext'
28250 { (case "(($ac_try" in
28251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28252 *) ac_try_echo=$ac_try;;
28253 esac
28254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28255 (eval "$ac_try") 2>&5
28256 ac_status=$?
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); }; }; then
28259 ac_cv_search_pthread_rwlock_init=$ac_res
28260 else
28261 echo "$as_me: failed program was:" >&5
28262 sed 's/^/| /' conftest.$ac_ext >&5
28267 rm -f core conftest.err conftest.$ac_objext \
28268 conftest$ac_exeext
28269 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28270 break
28272 done
28273 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28275 else
28276 ac_cv_search_pthread_rwlock_init=no
28278 rm conftest.$ac_ext
28279 LIBS=$ac_func_search_save_LIBS
28281 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28282 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28283 ac_res=$ac_cv_search_pthread_rwlock_init
28284 if test "$ac_res" != no; then
28285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28287 cat >>confdefs.h <<\_ACEOF
28288 #define HAVE_PTHREAD_RWLOCK_INIT 1
28289 _ACEOF
28293 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28294 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28295 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28296 echo $ECHO_N "(cached) $ECHO_C" >&6
28297 else
28298 ac_func_search_save_LIBS=$LIBS
28299 cat >conftest.$ac_ext <<_ACEOF
28300 /* confdefs.h. */
28301 _ACEOF
28302 cat confdefs.h >>conftest.$ac_ext
28303 cat >>conftest.$ac_ext <<_ACEOF
28304 /* end confdefs.h. */
28306 /* Override any GCC internal prototype to avoid an error.
28307 Use char because int might match the return type of a GCC
28308 builtin and then its argument prototype would still apply. */
28309 #ifdef __cplusplus
28310 extern "C"
28311 #endif
28312 char pthread_getspecific ();
28314 main ()
28316 return pthread_getspecific ();
28318 return 0;
28320 _ACEOF
28321 for ac_lib in '' pthread; do
28322 if test -z "$ac_lib"; then
28323 ac_res="none required"
28324 else
28325 ac_res=-l$ac_lib
28326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28328 rm -f conftest.$ac_objext conftest$ac_exeext
28329 if { (ac_try="$ac_link"
28330 case "(($ac_try" in
28331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28332 *) ac_try_echo=$ac_try;;
28333 esac
28334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28335 (eval "$ac_link") 2>conftest.er1
28336 ac_status=$?
28337 grep -v '^ *+' conftest.er1 >conftest.err
28338 rm -f conftest.er1
28339 cat conftest.err >&5
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); } &&
28342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28343 { (case "(($ac_try" in
28344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28345 *) ac_try_echo=$ac_try;;
28346 esac
28347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28348 (eval "$ac_try") 2>&5
28349 ac_status=$?
28350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 (exit $ac_status); }; } &&
28352 { ac_try='test -s conftest$ac_exeext'
28353 { (case "(($ac_try" in
28354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28355 *) ac_try_echo=$ac_try;;
28356 esac
28357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28358 (eval "$ac_try") 2>&5
28359 ac_status=$?
28360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); }; }; then
28362 ac_cv_search_pthread_getspecific=$ac_res
28363 else
28364 echo "$as_me: failed program was:" >&5
28365 sed 's/^/| /' conftest.$ac_ext >&5
28370 rm -f core conftest.err conftest.$ac_objext \
28371 conftest$ac_exeext
28372 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28373 break
28375 done
28376 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28378 else
28379 ac_cv_search_pthread_getspecific=no
28381 rm conftest.$ac_ext
28382 LIBS=$ac_func_search_save_LIBS
28384 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28385 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28386 ac_res=$ac_cv_search_pthread_getspecific
28387 if test "$ac_res" != no; then
28388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28390 cat >>confdefs.h <<\_ACEOF
28391 #define HAVE_PTHREAD_GETSPECIFIC 1
28392 _ACEOF
28399 # Check whether --with-udis86 was given.
28400 if test "${with_udis86+set}" = set; then
28401 withval=$with_udis86;
28402 USE_UDIS86=1
28404 case "$withval" in
28405 /usr/lib|yes) ;;
28406 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28407 esac
28409 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28410 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28411 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28412 echo $ECHO_N "(cached) $ECHO_C" >&6
28413 else
28414 ac_check_lib_save_LIBS=$LIBS
28415 LIBS="-ludis86 $LIBS"
28416 cat >conftest.$ac_ext <<_ACEOF
28417 /* confdefs.h. */
28418 _ACEOF
28419 cat confdefs.h >>conftest.$ac_ext
28420 cat >>conftest.$ac_ext <<_ACEOF
28421 /* end confdefs.h. */
28423 /* Override any GCC internal prototype to avoid an error.
28424 Use char because int might match the return type of a GCC
28425 builtin and then its argument prototype would still apply. */
28426 #ifdef __cplusplus
28427 extern "C"
28428 #endif
28429 char ud_init ();
28431 main ()
28433 return ud_init ();
28435 return 0;
28437 _ACEOF
28438 rm -f conftest.$ac_objext conftest$ac_exeext
28439 if { (ac_try="$ac_link"
28440 case "(($ac_try" in
28441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28442 *) ac_try_echo=$ac_try;;
28443 esac
28444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28445 (eval "$ac_link") 2>conftest.er1
28446 ac_status=$?
28447 grep -v '^ *+' conftest.er1 >conftest.err
28448 rm -f conftest.er1
28449 cat conftest.err >&5
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); } &&
28452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28453 { (case "(($ac_try" in
28454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28455 *) ac_try_echo=$ac_try;;
28456 esac
28457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28458 (eval "$ac_try") 2>&5
28459 ac_status=$?
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); }; } &&
28462 { ac_try='test -s conftest$ac_exeext'
28463 { (case "(($ac_try" in
28464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28465 *) ac_try_echo=$ac_try;;
28466 esac
28467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28468 (eval "$ac_try") 2>&5
28469 ac_status=$?
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); }; }; then
28472 ac_cv_lib_udis86_ud_init=yes
28473 else
28474 echo "$as_me: failed program was:" >&5
28475 sed 's/^/| /' conftest.$ac_ext >&5
28477 ac_cv_lib_udis86_ud_init=no
28480 rm -f core conftest.err conftest.$ac_objext \
28481 conftest$ac_exeext conftest.$ac_ext
28482 LIBS=$ac_check_lib_save_LIBS
28484 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28485 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28486 if test $ac_cv_lib_udis86_ud_init = yes; then
28487 cat >>confdefs.h <<_ACEOF
28488 #define HAVE_LIBUDIS86 1
28489 _ACEOF
28491 LIBS="-ludis86 $LIBS"
28493 else
28495 echo "Error! You need to have libudis86 around."
28496 exit -1
28501 else
28502 USE_UDIS86=0
28507 cat >>confdefs.h <<_ACEOF
28508 #define USE_UDIS86 $USE_UDIS86
28509 _ACEOF
28513 # Check whether --with-oprofile was given.
28514 if test "${with_oprofile+set}" = set; then
28515 withval=$with_oprofile;
28516 USE_OPROFILE=1
28518 case "$withval" in
28519 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28520 *) llvm_cv_oppath="${withval}/lib/oprofile"
28521 CPPFLAGS="-I${withval}/include";;
28522 esac
28523 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28524 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28525 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28526 if test "${ac_cv_search_op_open_agent+set}" = set; then
28527 echo $ECHO_N "(cached) $ECHO_C" >&6
28528 else
28529 ac_func_search_save_LIBS=$LIBS
28530 cat >conftest.$ac_ext <<_ACEOF
28531 /* confdefs.h. */
28532 _ACEOF
28533 cat confdefs.h >>conftest.$ac_ext
28534 cat >>conftest.$ac_ext <<_ACEOF
28535 /* end confdefs.h. */
28537 /* Override any GCC internal prototype to avoid an error.
28538 Use char because int might match the return type of a GCC
28539 builtin and then its argument prototype would still apply. */
28540 #ifdef __cplusplus
28541 extern "C"
28542 #endif
28543 char op_open_agent ();
28545 main ()
28547 return op_open_agent ();
28549 return 0;
28551 _ACEOF
28552 for ac_lib in '' opagent; do
28553 if test -z "$ac_lib"; then
28554 ac_res="none required"
28555 else
28556 ac_res=-l$ac_lib
28557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28559 rm -f conftest.$ac_objext conftest$ac_exeext
28560 if { (ac_try="$ac_link"
28561 case "(($ac_try" in
28562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28563 *) ac_try_echo=$ac_try;;
28564 esac
28565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28566 (eval "$ac_link") 2>conftest.er1
28567 ac_status=$?
28568 grep -v '^ *+' conftest.er1 >conftest.err
28569 rm -f conftest.er1
28570 cat conftest.err >&5
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); } &&
28573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28574 { (case "(($ac_try" in
28575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28576 *) ac_try_echo=$ac_try;;
28577 esac
28578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28579 (eval "$ac_try") 2>&5
28580 ac_status=$?
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); }; } &&
28583 { ac_try='test -s conftest$ac_exeext'
28584 { (case "(($ac_try" in
28585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586 *) ac_try_echo=$ac_try;;
28587 esac
28588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589 (eval "$ac_try") 2>&5
28590 ac_status=$?
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); }; }; then
28593 ac_cv_search_op_open_agent=$ac_res
28594 else
28595 echo "$as_me: failed program was:" >&5
28596 sed 's/^/| /' conftest.$ac_ext >&5
28601 rm -f core conftest.err conftest.$ac_objext \
28602 conftest$ac_exeext
28603 if test "${ac_cv_search_op_open_agent+set}" = set; then
28604 break
28606 done
28607 if test "${ac_cv_search_op_open_agent+set}" = set; then
28609 else
28610 ac_cv_search_op_open_agent=no
28612 rm conftest.$ac_ext
28613 LIBS=$ac_func_search_save_LIBS
28615 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28616 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28617 ac_res=$ac_cv_search_op_open_agent
28618 if test "$ac_res" != no; then
28619 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28621 else
28623 echo "Error! You need to have libopagent around."
28624 exit -1
28628 if test "${ac_cv_header_opagent_h+set}" = set; then
28629 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28630 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28631 if test "${ac_cv_header_opagent_h+set}" = set; then
28632 echo $ECHO_N "(cached) $ECHO_C" >&6
28634 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28635 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28636 else
28637 # Is the header compilable?
28638 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28639 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28640 cat >conftest.$ac_ext <<_ACEOF
28641 /* confdefs.h. */
28642 _ACEOF
28643 cat confdefs.h >>conftest.$ac_ext
28644 cat >>conftest.$ac_ext <<_ACEOF
28645 /* end confdefs.h. */
28646 $ac_includes_default
28647 #include <opagent.h>
28648 _ACEOF
28649 rm -f conftest.$ac_objext
28650 if { (ac_try="$ac_compile"
28651 case "(($ac_try" in
28652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28653 *) ac_try_echo=$ac_try;;
28654 esac
28655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28656 (eval "$ac_compile") 2>conftest.er1
28657 ac_status=$?
28658 grep -v '^ *+' conftest.er1 >conftest.err
28659 rm -f conftest.er1
28660 cat conftest.err >&5
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); } &&
28663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28664 { (case "(($ac_try" in
28665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666 *) ac_try_echo=$ac_try;;
28667 esac
28668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28669 (eval "$ac_try") 2>&5
28670 ac_status=$?
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); }; } &&
28673 { ac_try='test -s conftest.$ac_objext'
28674 { (case "(($ac_try" in
28675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28676 *) ac_try_echo=$ac_try;;
28677 esac
28678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28679 (eval "$ac_try") 2>&5
28680 ac_status=$?
28681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682 (exit $ac_status); }; }; then
28683 ac_header_compiler=yes
28684 else
28685 echo "$as_me: failed program was:" >&5
28686 sed 's/^/| /' conftest.$ac_ext >&5
28688 ac_header_compiler=no
28691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28693 echo "${ECHO_T}$ac_header_compiler" >&6; }
28695 # Is the header present?
28696 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28697 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28698 cat >conftest.$ac_ext <<_ACEOF
28699 /* confdefs.h. */
28700 _ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h. */
28704 #include <opagent.h>
28705 _ACEOF
28706 if { (ac_try="$ac_cpp conftest.$ac_ext"
28707 case "(($ac_try" in
28708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28709 *) ac_try_echo=$ac_try;;
28710 esac
28711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28713 ac_status=$?
28714 grep -v '^ *+' conftest.er1 >conftest.err
28715 rm -f conftest.er1
28716 cat conftest.err >&5
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); } >/dev/null; then
28719 if test -s conftest.err; then
28720 ac_cpp_err=$ac_c_preproc_warn_flag
28721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28722 else
28723 ac_cpp_err=
28725 else
28726 ac_cpp_err=yes
28728 if test -z "$ac_cpp_err"; then
28729 ac_header_preproc=yes
28730 else
28731 echo "$as_me: failed program was:" >&5
28732 sed 's/^/| /' conftest.$ac_ext >&5
28734 ac_header_preproc=no
28737 rm -f conftest.err conftest.$ac_ext
28738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28739 echo "${ECHO_T}$ac_header_preproc" >&6; }
28741 # So? What about this header?
28742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28743 yes:no: )
28744 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28745 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28746 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28747 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28748 ac_header_preproc=yes
28750 no:yes:* )
28751 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28752 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28753 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28754 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28755 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28756 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28757 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28758 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28759 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28760 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28761 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28762 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28763 ( cat <<\_ASBOX
28764 ## ----------------------------------- ##
28765 ## Report this to llvmbugs@cs.uiuc.edu ##
28766 ## ----------------------------------- ##
28767 _ASBOX
28768 ) | sed "s/^/$as_me: WARNING: /" >&2
28770 esac
28771 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28772 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28773 if test "${ac_cv_header_opagent_h+set}" = set; then
28774 echo $ECHO_N "(cached) $ECHO_C" >&6
28775 else
28776 ac_cv_header_opagent_h=$ac_header_preproc
28778 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28779 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28782 if test $ac_cv_header_opagent_h = yes; then
28784 else
28786 echo "Error! You need to have opagent.h around."
28787 exit -1
28793 else
28795 llvm_cv_old_LIBS="$LIBS"
28796 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28797 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28798 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28799 if test "${ac_cv_search_op_open_agent+set}" = set; then
28800 echo $ECHO_N "(cached) $ECHO_C" >&6
28801 else
28802 ac_func_search_save_LIBS=$LIBS
28803 cat >conftest.$ac_ext <<_ACEOF
28804 /* confdefs.h. */
28805 _ACEOF
28806 cat confdefs.h >>conftest.$ac_ext
28807 cat >>conftest.$ac_ext <<_ACEOF
28808 /* end confdefs.h. */
28810 /* Override any GCC internal prototype to avoid an error.
28811 Use char because int might match the return type of a GCC
28812 builtin and then its argument prototype would still apply. */
28813 #ifdef __cplusplus
28814 extern "C"
28815 #endif
28816 char op_open_agent ();
28818 main ()
28820 return op_open_agent ();
28822 return 0;
28824 _ACEOF
28825 for ac_lib in '' opagent; do
28826 if test -z "$ac_lib"; then
28827 ac_res="none required"
28828 else
28829 ac_res=-l$ac_lib
28830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28832 rm -f conftest.$ac_objext conftest$ac_exeext
28833 if { (ac_try="$ac_link"
28834 case "(($ac_try" in
28835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28836 *) ac_try_echo=$ac_try;;
28837 esac
28838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28839 (eval "$ac_link") 2>conftest.er1
28840 ac_status=$?
28841 grep -v '^ *+' conftest.er1 >conftest.err
28842 rm -f conftest.er1
28843 cat conftest.err >&5
28844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845 (exit $ac_status); } &&
28846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28847 { (case "(($ac_try" in
28848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28849 *) ac_try_echo=$ac_try;;
28850 esac
28851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28852 (eval "$ac_try") 2>&5
28853 ac_status=$?
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); }; } &&
28856 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
28863 ac_status=$?
28864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865 (exit $ac_status); }; }; then
28866 ac_cv_search_op_open_agent=$ac_res
28867 else
28868 echo "$as_me: failed program was:" >&5
28869 sed 's/^/| /' conftest.$ac_ext >&5
28874 rm -f core conftest.err conftest.$ac_objext \
28875 conftest$ac_exeext
28876 if test "${ac_cv_search_op_open_agent+set}" = set; then
28877 break
28879 done
28880 if test "${ac_cv_search_op_open_agent+set}" = set; then
28882 else
28883 ac_cv_search_op_open_agent=no
28885 rm conftest.$ac_ext
28886 LIBS=$ac_func_search_save_LIBS
28888 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28889 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28890 ac_res=$ac_cv_search_op_open_agent
28891 if test "$ac_res" != no; then
28892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28893 USE_OPROFILE=1
28895 else
28896 LIBS="$llvm_cv_old_LIBS"
28897 USE_OPROFILE=0
28901 if test "${ac_cv_header_opagent_h+set}" = set; then
28902 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28903 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28904 if test "${ac_cv_header_opagent_h+set}" = set; then
28905 echo $ECHO_N "(cached) $ECHO_C" >&6
28907 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28908 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28909 else
28910 # Is the header compilable?
28911 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28912 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28913 cat >conftest.$ac_ext <<_ACEOF
28914 /* confdefs.h. */
28915 _ACEOF
28916 cat confdefs.h >>conftest.$ac_ext
28917 cat >>conftest.$ac_ext <<_ACEOF
28918 /* end confdefs.h. */
28919 $ac_includes_default
28920 #include <opagent.h>
28921 _ACEOF
28922 rm -f conftest.$ac_objext
28923 if { (ac_try="$ac_compile"
28924 case "(($ac_try" in
28925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926 *) ac_try_echo=$ac_try;;
28927 esac
28928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28929 (eval "$ac_compile") 2>conftest.er1
28930 ac_status=$?
28931 grep -v '^ *+' conftest.er1 >conftest.err
28932 rm -f conftest.er1
28933 cat conftest.err >&5
28934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935 (exit $ac_status); } &&
28936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28937 { (case "(($ac_try" in
28938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28939 *) ac_try_echo=$ac_try;;
28940 esac
28941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28942 (eval "$ac_try") 2>&5
28943 ac_status=$?
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); }; } &&
28946 { ac_try='test -s conftest.$ac_objext'
28947 { (case "(($ac_try" in
28948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28949 *) ac_try_echo=$ac_try;;
28950 esac
28951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28952 (eval "$ac_try") 2>&5
28953 ac_status=$?
28954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955 (exit $ac_status); }; }; then
28956 ac_header_compiler=yes
28957 else
28958 echo "$as_me: failed program was:" >&5
28959 sed 's/^/| /' conftest.$ac_ext >&5
28961 ac_header_compiler=no
28964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28966 echo "${ECHO_T}$ac_header_compiler" >&6; }
28968 # Is the header present?
28969 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28970 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
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 <opagent.h>
28978 _ACEOF
28979 if { (ac_try="$ac_cpp conftest.$ac_ext"
28980 case "(($ac_try" in
28981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28982 *) ac_try_echo=$ac_try;;
28983 esac
28984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28986 ac_status=$?
28987 grep -v '^ *+' conftest.er1 >conftest.err
28988 rm -f conftest.er1
28989 cat conftest.err >&5
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); } >/dev/null; then
28992 if test -s conftest.err; then
28993 ac_cpp_err=$ac_c_preproc_warn_flag
28994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28995 else
28996 ac_cpp_err=
28998 else
28999 ac_cpp_err=yes
29001 if test -z "$ac_cpp_err"; then
29002 ac_header_preproc=yes
29003 else
29004 echo "$as_me: failed program was:" >&5
29005 sed 's/^/| /' conftest.$ac_ext >&5
29007 ac_header_preproc=no
29010 rm -f conftest.err conftest.$ac_ext
29011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29012 echo "${ECHO_T}$ac_header_preproc" >&6; }
29014 # So? What about this header?
29015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29016 yes:no: )
29017 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29018 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29019 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29020 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29021 ac_header_preproc=yes
29023 no:yes:* )
29024 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29025 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29026 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29027 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29028 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29029 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29031 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29033 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29034 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29035 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29036 ( cat <<\_ASBOX
29037 ## ----------------------------------- ##
29038 ## Report this to llvmbugs@cs.uiuc.edu ##
29039 ## ----------------------------------- ##
29040 _ASBOX
29041 ) | sed "s/^/$as_me: WARNING: /" >&2
29043 esac
29044 { echo "$as_me:$LINENO: checking for opagent.h" >&5
29045 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29046 if test "${ac_cv_header_opagent_h+set}" = set; then
29047 echo $ECHO_N "(cached) $ECHO_C" >&6
29048 else
29049 ac_cv_header_opagent_h=$ac_header_preproc
29051 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29052 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29055 if test $ac_cv_header_opagent_h = yes; then
29057 else
29059 LIBS="$llvm_cv_old_LIBS"
29060 USE_OPROFILE=0
29070 cat >>confdefs.h <<_ACEOF
29071 #define USE_OPROFILE $USE_OPROFILE
29072 _ACEOF
29081 ac_header_dirent=no
29082 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29083 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29084 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29085 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29087 echo $ECHO_N "(cached) $ECHO_C" >&6
29088 else
29089 cat >conftest.$ac_ext <<_ACEOF
29090 /* confdefs.h. */
29091 _ACEOF
29092 cat confdefs.h >>conftest.$ac_ext
29093 cat >>conftest.$ac_ext <<_ACEOF
29094 /* end confdefs.h. */
29095 #include <sys/types.h>
29096 #include <$ac_hdr>
29099 main ()
29101 if ((DIR *) 0)
29102 return 0;
29104 return 0;
29106 _ACEOF
29107 rm -f conftest.$ac_objext
29108 if { (ac_try="$ac_compile"
29109 case "(($ac_try" in
29110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111 *) ac_try_echo=$ac_try;;
29112 esac
29113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29114 (eval "$ac_compile") 2>conftest.er1
29115 ac_status=$?
29116 grep -v '^ *+' conftest.er1 >conftest.err
29117 rm -f conftest.er1
29118 cat conftest.err >&5
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); } &&
29121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29122 { (case "(($ac_try" in
29123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29124 *) ac_try_echo=$ac_try;;
29125 esac
29126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29127 (eval "$ac_try") 2>&5
29128 ac_status=$?
29129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130 (exit $ac_status); }; } &&
29131 { ac_try='test -s conftest.$ac_objext'
29132 { (case "(($ac_try" in
29133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29134 *) ac_try_echo=$ac_try;;
29135 esac
29136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29137 (eval "$ac_try") 2>&5
29138 ac_status=$?
29139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140 (exit $ac_status); }; }; then
29141 eval "$as_ac_Header=yes"
29142 else
29143 echo "$as_me: failed program was:" >&5
29144 sed 's/^/| /' conftest.$ac_ext >&5
29146 eval "$as_ac_Header=no"
29149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29151 ac_res=`eval echo '${'$as_ac_Header'}'`
29152 { echo "$as_me:$LINENO: result: $ac_res" >&5
29153 echo "${ECHO_T}$ac_res" >&6; }
29154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29155 cat >>confdefs.h <<_ACEOF
29156 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29157 _ACEOF
29159 ac_header_dirent=$ac_hdr; break
29162 done
29163 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29164 if test $ac_header_dirent = dirent.h; then
29165 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29166 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29167 if test "${ac_cv_search_opendir+set}" = set; then
29168 echo $ECHO_N "(cached) $ECHO_C" >&6
29169 else
29170 ac_func_search_save_LIBS=$LIBS
29171 cat >conftest.$ac_ext <<_ACEOF
29172 /* confdefs.h. */
29173 _ACEOF
29174 cat confdefs.h >>conftest.$ac_ext
29175 cat >>conftest.$ac_ext <<_ACEOF
29176 /* end confdefs.h. */
29178 /* Override any GCC internal prototype to avoid an error.
29179 Use char because int might match the return type of a GCC
29180 builtin and then its argument prototype would still apply. */
29181 #ifdef __cplusplus
29182 extern "C"
29183 #endif
29184 char opendir ();
29186 main ()
29188 return opendir ();
29190 return 0;
29192 _ACEOF
29193 for ac_lib in '' dir; do
29194 if test -z "$ac_lib"; then
29195 ac_res="none required"
29196 else
29197 ac_res=-l$ac_lib
29198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29200 rm -f conftest.$ac_objext conftest$ac_exeext
29201 if { (ac_try="$ac_link"
29202 case "(($ac_try" in
29203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29204 *) ac_try_echo=$ac_try;;
29205 esac
29206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29207 (eval "$ac_link") 2>conftest.er1
29208 ac_status=$?
29209 grep -v '^ *+' conftest.er1 >conftest.err
29210 rm -f conftest.er1
29211 cat conftest.err >&5
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); } &&
29214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29215 { (case "(($ac_try" in
29216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29217 *) ac_try_echo=$ac_try;;
29218 esac
29219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29220 (eval "$ac_try") 2>&5
29221 ac_status=$?
29222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223 (exit $ac_status); }; } &&
29224 { ac_try='test -s conftest$ac_exeext'
29225 { (case "(($ac_try" in
29226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29227 *) ac_try_echo=$ac_try;;
29228 esac
29229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29230 (eval "$ac_try") 2>&5
29231 ac_status=$?
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); }; }; then
29234 ac_cv_search_opendir=$ac_res
29235 else
29236 echo "$as_me: failed program was:" >&5
29237 sed 's/^/| /' conftest.$ac_ext >&5
29242 rm -f core conftest.err conftest.$ac_objext \
29243 conftest$ac_exeext
29244 if test "${ac_cv_search_opendir+set}" = set; then
29245 break
29247 done
29248 if test "${ac_cv_search_opendir+set}" = set; then
29250 else
29251 ac_cv_search_opendir=no
29253 rm conftest.$ac_ext
29254 LIBS=$ac_func_search_save_LIBS
29256 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29257 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29258 ac_res=$ac_cv_search_opendir
29259 if test "$ac_res" != no; then
29260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29264 else
29265 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29266 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29267 if test "${ac_cv_search_opendir+set}" = set; then
29268 echo $ECHO_N "(cached) $ECHO_C" >&6
29269 else
29270 ac_func_search_save_LIBS=$LIBS
29271 cat >conftest.$ac_ext <<_ACEOF
29272 /* confdefs.h. */
29273 _ACEOF
29274 cat confdefs.h >>conftest.$ac_ext
29275 cat >>conftest.$ac_ext <<_ACEOF
29276 /* end confdefs.h. */
29278 /* Override any GCC internal prototype to avoid an error.
29279 Use char because int might match the return type of a GCC
29280 builtin and then its argument prototype would still apply. */
29281 #ifdef __cplusplus
29282 extern "C"
29283 #endif
29284 char opendir ();
29286 main ()
29288 return opendir ();
29290 return 0;
29292 _ACEOF
29293 for ac_lib in '' x; do
29294 if test -z "$ac_lib"; then
29295 ac_res="none required"
29296 else
29297 ac_res=-l$ac_lib
29298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29300 rm -f conftest.$ac_objext conftest$ac_exeext
29301 if { (ac_try="$ac_link"
29302 case "(($ac_try" in
29303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29304 *) ac_try_echo=$ac_try;;
29305 esac
29306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29307 (eval "$ac_link") 2>conftest.er1
29308 ac_status=$?
29309 grep -v '^ *+' conftest.er1 >conftest.err
29310 rm -f conftest.er1
29311 cat conftest.err >&5
29312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313 (exit $ac_status); } &&
29314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29315 { (case "(($ac_try" in
29316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317 *) ac_try_echo=$ac_try;;
29318 esac
29319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29320 (eval "$ac_try") 2>&5
29321 ac_status=$?
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; } &&
29324 { ac_try='test -s conftest$ac_exeext'
29325 { (case "(($ac_try" in
29326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29327 *) ac_try_echo=$ac_try;;
29328 esac
29329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29330 (eval "$ac_try") 2>&5
29331 ac_status=$?
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); }; }; then
29334 ac_cv_search_opendir=$ac_res
29335 else
29336 echo "$as_me: failed program was:" >&5
29337 sed 's/^/| /' conftest.$ac_ext >&5
29342 rm -f core conftest.err conftest.$ac_objext \
29343 conftest$ac_exeext
29344 if test "${ac_cv_search_opendir+set}" = set; then
29345 break
29347 done
29348 if test "${ac_cv_search_opendir+set}" = set; then
29350 else
29351 ac_cv_search_opendir=no
29353 rm conftest.$ac_ext
29354 LIBS=$ac_func_search_save_LIBS
29356 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29357 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29358 ac_res=$ac_cv_search_opendir
29359 if test "$ac_res" != no; then
29360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29366 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29367 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29368 if test "${ac_cv_header_mmap_anon+set}" = set; then
29369 echo $ECHO_N "(cached) $ECHO_C" >&6
29370 else
29371 ac_ext=c
29372 ac_cpp='$CPP $CPPFLAGS'
29373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29377 cat >conftest.$ac_ext <<_ACEOF
29378 /* confdefs.h. */
29379 _ACEOF
29380 cat confdefs.h >>conftest.$ac_ext
29381 cat >>conftest.$ac_ext <<_ACEOF
29382 /* end confdefs.h. */
29383 #include <sys/mman.h>
29384 #include <unistd.h>
29385 #include <fcntl.h>
29387 main ()
29389 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29391 return 0;
29393 _ACEOF
29394 rm -f conftest.$ac_objext
29395 if { (ac_try="$ac_compile"
29396 case "(($ac_try" in
29397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29398 *) ac_try_echo=$ac_try;;
29399 esac
29400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29401 (eval "$ac_compile") 2>conftest.er1
29402 ac_status=$?
29403 grep -v '^ *+' conftest.er1 >conftest.err
29404 rm -f conftest.er1
29405 cat conftest.err >&5
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); } &&
29408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29409 { (case "(($ac_try" in
29410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29411 *) ac_try_echo=$ac_try;;
29412 esac
29413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29414 (eval "$ac_try") 2>&5
29415 ac_status=$?
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); }; } &&
29418 { ac_try='test -s conftest.$ac_objext'
29419 { (case "(($ac_try" in
29420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29421 *) ac_try_echo=$ac_try;;
29422 esac
29423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29424 (eval "$ac_try") 2>&5
29425 ac_status=$?
29426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427 (exit $ac_status); }; }; then
29428 ac_cv_header_mmap_anon=yes
29429 else
29430 echo "$as_me: failed program was:" >&5
29431 sed 's/^/| /' conftest.$ac_ext >&5
29433 ac_cv_header_mmap_anon=no
29436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29437 ac_ext=c
29438 ac_cpp='$CPP $CPPFLAGS'
29439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29445 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29446 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29447 if test "$ac_cv_header_mmap_anon" = yes; then
29449 cat >>confdefs.h <<\_ACEOF
29450 #define HAVE_MMAP_ANONYMOUS 1
29451 _ACEOF
29455 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29456 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29457 if test "${ac_cv_header_stat_broken+set}" = set; then
29458 echo $ECHO_N "(cached) $ECHO_C" >&6
29459 else
29460 cat >conftest.$ac_ext <<_ACEOF
29461 /* confdefs.h. */
29462 _ACEOF
29463 cat confdefs.h >>conftest.$ac_ext
29464 cat >>conftest.$ac_ext <<_ACEOF
29465 /* end confdefs.h. */
29466 #include <sys/types.h>
29467 #include <sys/stat.h>
29469 #if defined S_ISBLK && defined S_IFDIR
29470 # if S_ISBLK (S_IFDIR)
29471 You lose.
29472 # endif
29473 #endif
29475 #if defined S_ISBLK && defined S_IFCHR
29476 # if S_ISBLK (S_IFCHR)
29477 You lose.
29478 # endif
29479 #endif
29481 #if defined S_ISLNK && defined S_IFREG
29482 # if S_ISLNK (S_IFREG)
29483 You lose.
29484 # endif
29485 #endif
29487 #if defined S_ISSOCK && defined S_IFREG
29488 # if S_ISSOCK (S_IFREG)
29489 You lose.
29490 # endif
29491 #endif
29493 _ACEOF
29494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29495 $EGREP "You lose" >/dev/null 2>&1; then
29496 ac_cv_header_stat_broken=yes
29497 else
29498 ac_cv_header_stat_broken=no
29500 rm -f conftest*
29503 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29504 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29505 if test $ac_cv_header_stat_broken = yes; then
29507 cat >>confdefs.h <<\_ACEOF
29508 #define STAT_MACROS_BROKEN 1
29509 _ACEOF
29513 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29514 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29515 if test "${ac_cv_header_stdc+set}" = set; then
29516 echo $ECHO_N "(cached) $ECHO_C" >&6
29517 else
29518 cat >conftest.$ac_ext <<_ACEOF
29519 /* confdefs.h. */
29520 _ACEOF
29521 cat confdefs.h >>conftest.$ac_ext
29522 cat >>conftest.$ac_ext <<_ACEOF
29523 /* end confdefs.h. */
29524 #include <stdlib.h>
29525 #include <stdarg.h>
29526 #include <string.h>
29527 #include <float.h>
29530 main ()
29534 return 0;
29536 _ACEOF
29537 rm -f conftest.$ac_objext
29538 if { (ac_try="$ac_compile"
29539 case "(($ac_try" in
29540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29541 *) ac_try_echo=$ac_try;;
29542 esac
29543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29544 (eval "$ac_compile") 2>conftest.er1
29545 ac_status=$?
29546 grep -v '^ *+' conftest.er1 >conftest.err
29547 rm -f conftest.er1
29548 cat conftest.err >&5
29549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550 (exit $ac_status); } &&
29551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
29561 { ac_try='test -s conftest.$ac_objext'
29562 { (case "(($ac_try" in
29563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564 *) ac_try_echo=$ac_try;;
29565 esac
29566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29567 (eval "$ac_try") 2>&5
29568 ac_status=$?
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); }; }; then
29571 ac_cv_header_stdc=yes
29572 else
29573 echo "$as_me: failed program was:" >&5
29574 sed 's/^/| /' conftest.$ac_ext >&5
29576 ac_cv_header_stdc=no
29579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29581 if test $ac_cv_header_stdc = yes; then
29582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29583 cat >conftest.$ac_ext <<_ACEOF
29584 /* confdefs.h. */
29585 _ACEOF
29586 cat confdefs.h >>conftest.$ac_ext
29587 cat >>conftest.$ac_ext <<_ACEOF
29588 /* end confdefs.h. */
29589 #include <string.h>
29591 _ACEOF
29592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29593 $EGREP "memchr" >/dev/null 2>&1; then
29595 else
29596 ac_cv_header_stdc=no
29598 rm -f conftest*
29602 if test $ac_cv_header_stdc = yes; then
29603 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29604 cat >conftest.$ac_ext <<_ACEOF
29605 /* confdefs.h. */
29606 _ACEOF
29607 cat confdefs.h >>conftest.$ac_ext
29608 cat >>conftest.$ac_ext <<_ACEOF
29609 /* end confdefs.h. */
29610 #include <stdlib.h>
29612 _ACEOF
29613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29614 $EGREP "free" >/dev/null 2>&1; then
29616 else
29617 ac_cv_header_stdc=no
29619 rm -f conftest*
29623 if test $ac_cv_header_stdc = yes; then
29624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29625 if test "$cross_compiling" = yes; then
29627 else
29628 cat >conftest.$ac_ext <<_ACEOF
29629 /* confdefs.h. */
29630 _ACEOF
29631 cat confdefs.h >>conftest.$ac_ext
29632 cat >>conftest.$ac_ext <<_ACEOF
29633 /* end confdefs.h. */
29634 #include <ctype.h>
29635 #include <stdlib.h>
29636 #if ((' ' & 0x0FF) == 0x020)
29637 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29638 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29639 #else
29640 # define ISLOWER(c) \
29641 (('a' <= (c) && (c) <= 'i') \
29642 || ('j' <= (c) && (c) <= 'r') \
29643 || ('s' <= (c) && (c) <= 'z'))
29644 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29645 #endif
29647 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29649 main ()
29651 int i;
29652 for (i = 0; i < 256; i++)
29653 if (XOR (islower (i), ISLOWER (i))
29654 || toupper (i) != TOUPPER (i))
29655 return 2;
29656 return 0;
29658 _ACEOF
29659 rm -f conftest$ac_exeext
29660 if { (ac_try="$ac_link"
29661 case "(($ac_try" in
29662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29663 *) ac_try_echo=$ac_try;;
29664 esac
29665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29666 (eval "$ac_link") 2>&5
29667 ac_status=$?
29668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29670 { (case "(($ac_try" in
29671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672 *) ac_try_echo=$ac_try;;
29673 esac
29674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675 (eval "$ac_try") 2>&5
29676 ac_status=$?
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); }; }; then
29680 else
29681 echo "$as_me: program exited with status $ac_status" >&5
29682 echo "$as_me: failed program was:" >&5
29683 sed 's/^/| /' conftest.$ac_ext >&5
29685 ( exit $ac_status )
29686 ac_cv_header_stdc=no
29688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29694 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29695 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29696 if test $ac_cv_header_stdc = yes; then
29698 cat >>confdefs.h <<\_ACEOF
29699 #define STDC_HEADERS 1
29700 _ACEOF
29704 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29705 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29706 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29707 echo $ECHO_N "(cached) $ECHO_C" >&6
29708 else
29709 cat >conftest.$ac_ext <<_ACEOF
29710 /* confdefs.h. */
29711 _ACEOF
29712 cat confdefs.h >>conftest.$ac_ext
29713 cat >>conftest.$ac_ext <<_ACEOF
29714 /* end confdefs.h. */
29715 #include <sys/types.h>
29716 #include <sys/wait.h>
29717 #ifndef WEXITSTATUS
29718 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29719 #endif
29720 #ifndef WIFEXITED
29721 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29722 #endif
29725 main ()
29727 int s;
29728 wait (&s);
29729 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29731 return 0;
29733 _ACEOF
29734 rm -f conftest.$ac_objext
29735 if { (ac_try="$ac_compile"
29736 case "(($ac_try" in
29737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29738 *) ac_try_echo=$ac_try;;
29739 esac
29740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29741 (eval "$ac_compile") 2>conftest.er1
29742 ac_status=$?
29743 grep -v '^ *+' conftest.er1 >conftest.err
29744 rm -f conftest.er1
29745 cat conftest.err >&5
29746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747 (exit $ac_status); } &&
29748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29749 { (case "(($ac_try" in
29750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29751 *) ac_try_echo=$ac_try;;
29752 esac
29753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29754 (eval "$ac_try") 2>&5
29755 ac_status=$?
29756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757 (exit $ac_status); }; } &&
29758 { ac_try='test -s conftest.$ac_objext'
29759 { (case "(($ac_try" in
29760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29761 *) ac_try_echo=$ac_try;;
29762 esac
29763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29764 (eval "$ac_try") 2>&5
29765 ac_status=$?
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); }; }; then
29768 ac_cv_header_sys_wait_h=yes
29769 else
29770 echo "$as_me: failed program was:" >&5
29771 sed 's/^/| /' conftest.$ac_ext >&5
29773 ac_cv_header_sys_wait_h=no
29776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29778 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29779 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29780 if test $ac_cv_header_sys_wait_h = yes; then
29782 cat >>confdefs.h <<\_ACEOF
29783 #define HAVE_SYS_WAIT_H 1
29784 _ACEOF
29788 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29789 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29790 if test "${ac_cv_header_time+set}" = set; then
29791 echo $ECHO_N "(cached) $ECHO_C" >&6
29792 else
29793 cat >conftest.$ac_ext <<_ACEOF
29794 /* confdefs.h. */
29795 _ACEOF
29796 cat confdefs.h >>conftest.$ac_ext
29797 cat >>conftest.$ac_ext <<_ACEOF
29798 /* end confdefs.h. */
29799 #include <sys/types.h>
29800 #include <sys/time.h>
29801 #include <time.h>
29804 main ()
29806 if ((struct tm *) 0)
29807 return 0;
29809 return 0;
29811 _ACEOF
29812 rm -f conftest.$ac_objext
29813 if { (ac_try="$ac_compile"
29814 case "(($ac_try" in
29815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816 *) ac_try_echo=$ac_try;;
29817 esac
29818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819 (eval "$ac_compile") 2>conftest.er1
29820 ac_status=$?
29821 grep -v '^ *+' conftest.er1 >conftest.err
29822 rm -f conftest.er1
29823 cat conftest.err >&5
29824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825 (exit $ac_status); } &&
29826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29827 { (case "(($ac_try" in
29828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29829 *) ac_try_echo=$ac_try;;
29830 esac
29831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29832 (eval "$ac_try") 2>&5
29833 ac_status=$?
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; } &&
29836 { ac_try='test -s conftest.$ac_objext'
29837 { (case "(($ac_try" in
29838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29839 *) ac_try_echo=$ac_try;;
29840 esac
29841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29842 (eval "$ac_try") 2>&5
29843 ac_status=$?
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); }; }; then
29846 ac_cv_header_time=yes
29847 else
29848 echo "$as_me: failed program was:" >&5
29849 sed 's/^/| /' conftest.$ac_ext >&5
29851 ac_cv_header_time=no
29854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29856 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29857 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29858 if test $ac_cv_header_time = yes; then
29860 cat >>confdefs.h <<\_ACEOF
29861 #define TIME_WITH_SYS_TIME 1
29862 _ACEOF
29873 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29880 echo $ECHO_N "(cached) $ECHO_C" >&6
29882 ac_res=`eval echo '${'$as_ac_Header'}'`
29883 { echo "$as_me:$LINENO: result: $ac_res" >&5
29884 echo "${ECHO_T}$ac_res" >&6; }
29885 else
29886 # Is the header compilable?
29887 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29889 cat >conftest.$ac_ext <<_ACEOF
29890 /* confdefs.h. */
29891 _ACEOF
29892 cat confdefs.h >>conftest.$ac_ext
29893 cat >>conftest.$ac_ext <<_ACEOF
29894 /* end confdefs.h. */
29895 $ac_includes_default
29896 #include <$ac_header>
29897 _ACEOF
29898 rm -f conftest.$ac_objext
29899 if { (ac_try="$ac_compile"
29900 case "(($ac_try" in
29901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29902 *) ac_try_echo=$ac_try;;
29903 esac
29904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29905 (eval "$ac_compile") 2>conftest.er1
29906 ac_status=$?
29907 grep -v '^ *+' conftest.er1 >conftest.err
29908 rm -f conftest.er1
29909 cat conftest.err >&5
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); } &&
29912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29913 { (case "(($ac_try" in
29914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29915 *) ac_try_echo=$ac_try;;
29916 esac
29917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918 (eval "$ac_try") 2>&5
29919 ac_status=$?
29920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); }; } &&
29922 { ac_try='test -s conftest.$ac_objext'
29923 { (case "(($ac_try" in
29924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29925 *) ac_try_echo=$ac_try;;
29926 esac
29927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29928 (eval "$ac_try") 2>&5
29929 ac_status=$?
29930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931 (exit $ac_status); }; }; then
29932 ac_header_compiler=yes
29933 else
29934 echo "$as_me: failed program was:" >&5
29935 sed 's/^/| /' conftest.$ac_ext >&5
29937 ac_header_compiler=no
29940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29942 echo "${ECHO_T}$ac_header_compiler" >&6; }
29944 # Is the header present?
29945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29947 cat >conftest.$ac_ext <<_ACEOF
29948 /* confdefs.h. */
29949 _ACEOF
29950 cat confdefs.h >>conftest.$ac_ext
29951 cat >>conftest.$ac_ext <<_ACEOF
29952 /* end confdefs.h. */
29953 #include <$ac_header>
29954 _ACEOF
29955 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
29968 if test -s conftest.err; then
29969 ac_cpp_err=$ac_c_preproc_warn_flag
29970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29971 else
29972 ac_cpp_err=
29974 else
29975 ac_cpp_err=yes
29977 if test -z "$ac_cpp_err"; then
29978 ac_header_preproc=yes
29979 else
29980 echo "$as_me: failed program was:" >&5
29981 sed 's/^/| /' conftest.$ac_ext >&5
29983 ac_header_preproc=no
29986 rm -f conftest.err conftest.$ac_ext
29987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29988 echo "${ECHO_T}$ac_header_preproc" >&6; }
29990 # So? What about this header?
29991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29992 yes:no: )
29993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29997 ac_header_preproc=yes
29999 no:yes:* )
30000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30012 ( cat <<\_ASBOX
30013 ## ----------------------------------- ##
30014 ## Report this to llvmbugs@cs.uiuc.edu ##
30015 ## ----------------------------------- ##
30016 _ASBOX
30017 ) | sed "s/^/$as_me: WARNING: /" >&2
30019 esac
30020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30023 echo $ECHO_N "(cached) $ECHO_C" >&6
30024 else
30025 eval "$as_ac_Header=\$ac_header_preproc"
30027 ac_res=`eval echo '${'$as_ac_Header'}'`
30028 { echo "$as_me:$LINENO: result: $ac_res" >&5
30029 echo "${ECHO_T}$ac_res" >&6; }
30032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30033 cat >>confdefs.h <<_ACEOF
30034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30035 _ACEOF
30039 done
30047 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
30049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30054 echo $ECHO_N "(cached) $ECHO_C" >&6
30056 ac_res=`eval echo '${'$as_ac_Header'}'`
30057 { echo "$as_me:$LINENO: result: $ac_res" >&5
30058 echo "${ECHO_T}$ac_res" >&6; }
30059 else
30060 # Is the header compilable?
30061 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30063 cat >conftest.$ac_ext <<_ACEOF
30064 /* confdefs.h. */
30065 _ACEOF
30066 cat confdefs.h >>conftest.$ac_ext
30067 cat >>conftest.$ac_ext <<_ACEOF
30068 /* end confdefs.h. */
30069 $ac_includes_default
30070 #include <$ac_header>
30071 _ACEOF
30072 rm -f conftest.$ac_objext
30073 if { (ac_try="$ac_compile"
30074 case "(($ac_try" in
30075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30076 *) ac_try_echo=$ac_try;;
30077 esac
30078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30079 (eval "$ac_compile") 2>conftest.er1
30080 ac_status=$?
30081 grep -v '^ *+' conftest.er1 >conftest.err
30082 rm -f conftest.er1
30083 cat conftest.err >&5
30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085 (exit $ac_status); } &&
30086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30087 { (case "(($ac_try" in
30088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30089 *) ac_try_echo=$ac_try;;
30090 esac
30091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30092 (eval "$ac_try") 2>&5
30093 ac_status=$?
30094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); }; } &&
30096 { ac_try='test -s conftest.$ac_objext'
30097 { (case "(($ac_try" in
30098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30099 *) ac_try_echo=$ac_try;;
30100 esac
30101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30102 (eval "$ac_try") 2>&5
30103 ac_status=$?
30104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105 (exit $ac_status); }; }; then
30106 ac_header_compiler=yes
30107 else
30108 echo "$as_me: failed program was:" >&5
30109 sed 's/^/| /' conftest.$ac_ext >&5
30111 ac_header_compiler=no
30114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30115 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30116 echo "${ECHO_T}$ac_header_compiler" >&6; }
30118 # Is the header present?
30119 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30121 cat >conftest.$ac_ext <<_ACEOF
30122 /* confdefs.h. */
30123 _ACEOF
30124 cat confdefs.h >>conftest.$ac_ext
30125 cat >>conftest.$ac_ext <<_ACEOF
30126 /* end confdefs.h. */
30127 #include <$ac_header>
30128 _ACEOF
30129 if { (ac_try="$ac_cpp conftest.$ac_ext"
30130 case "(($ac_try" in
30131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30132 *) ac_try_echo=$ac_try;;
30133 esac
30134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30136 ac_status=$?
30137 grep -v '^ *+' conftest.er1 >conftest.err
30138 rm -f conftest.er1
30139 cat conftest.err >&5
30140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141 (exit $ac_status); } >/dev/null; then
30142 if test -s conftest.err; then
30143 ac_cpp_err=$ac_c_preproc_warn_flag
30144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30145 else
30146 ac_cpp_err=
30148 else
30149 ac_cpp_err=yes
30151 if test -z "$ac_cpp_err"; then
30152 ac_header_preproc=yes
30153 else
30154 echo "$as_me: failed program was:" >&5
30155 sed 's/^/| /' conftest.$ac_ext >&5
30157 ac_header_preproc=no
30160 rm -f conftest.err conftest.$ac_ext
30161 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30162 echo "${ECHO_T}$ac_header_preproc" >&6; }
30164 # So? What about this header?
30165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30166 yes:no: )
30167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30171 ac_header_preproc=yes
30173 no:yes:* )
30174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30186 ( cat <<\_ASBOX
30187 ## ----------------------------------- ##
30188 ## Report this to llvmbugs@cs.uiuc.edu ##
30189 ## ----------------------------------- ##
30190 _ASBOX
30191 ) | sed "s/^/$as_me: WARNING: /" >&2
30193 esac
30194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30197 echo $ECHO_N "(cached) $ECHO_C" >&6
30198 else
30199 eval "$as_ac_Header=\$ac_header_preproc"
30201 ac_res=`eval echo '${'$as_ac_Header'}'`
30202 { echo "$as_me:$LINENO: result: $ac_res" >&5
30203 echo "${ECHO_T}$ac_res" >&6; }
30206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30207 cat >>confdefs.h <<_ACEOF
30208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30209 _ACEOF
30213 done
30217 for ac_header in utime.h windows.h
30219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30224 echo $ECHO_N "(cached) $ECHO_C" >&6
30226 ac_res=`eval echo '${'$as_ac_Header'}'`
30227 { echo "$as_me:$LINENO: result: $ac_res" >&5
30228 echo "${ECHO_T}$ac_res" >&6; }
30229 else
30230 # Is the header compilable?
30231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30233 cat >conftest.$ac_ext <<_ACEOF
30234 /* confdefs.h. */
30235 _ACEOF
30236 cat confdefs.h >>conftest.$ac_ext
30237 cat >>conftest.$ac_ext <<_ACEOF
30238 /* end confdefs.h. */
30239 $ac_includes_default
30240 #include <$ac_header>
30241 _ACEOF
30242 rm -f conftest.$ac_objext
30243 if { (ac_try="$ac_compile"
30244 case "(($ac_try" in
30245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30246 *) ac_try_echo=$ac_try;;
30247 esac
30248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30249 (eval "$ac_compile") 2>conftest.er1
30250 ac_status=$?
30251 grep -v '^ *+' conftest.er1 >conftest.err
30252 rm -f conftest.er1
30253 cat conftest.err >&5
30254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255 (exit $ac_status); } &&
30256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30257 { (case "(($ac_try" in
30258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30259 *) ac_try_echo=$ac_try;;
30260 esac
30261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30262 (eval "$ac_try") 2>&5
30263 ac_status=$?
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); }; } &&
30266 { ac_try='test -s conftest.$ac_objext'
30267 { (case "(($ac_try" in
30268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30269 *) ac_try_echo=$ac_try;;
30270 esac
30271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30272 (eval "$ac_try") 2>&5
30273 ac_status=$?
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); }; }; then
30276 ac_header_compiler=yes
30277 else
30278 echo "$as_me: failed program was:" >&5
30279 sed 's/^/| /' conftest.$ac_ext >&5
30281 ac_header_compiler=no
30284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30286 echo "${ECHO_T}$ac_header_compiler" >&6; }
30288 # Is the header present?
30289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30291 cat >conftest.$ac_ext <<_ACEOF
30292 /* confdefs.h. */
30293 _ACEOF
30294 cat confdefs.h >>conftest.$ac_ext
30295 cat >>conftest.$ac_ext <<_ACEOF
30296 /* end confdefs.h. */
30297 #include <$ac_header>
30298 _ACEOF
30299 if { (ac_try="$ac_cpp conftest.$ac_ext"
30300 case "(($ac_try" in
30301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30302 *) ac_try_echo=$ac_try;;
30303 esac
30304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30306 ac_status=$?
30307 grep -v '^ *+' conftest.er1 >conftest.err
30308 rm -f conftest.er1
30309 cat conftest.err >&5
30310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311 (exit $ac_status); } >/dev/null; then
30312 if test -s conftest.err; then
30313 ac_cpp_err=$ac_c_preproc_warn_flag
30314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30315 else
30316 ac_cpp_err=
30318 else
30319 ac_cpp_err=yes
30321 if test -z "$ac_cpp_err"; then
30322 ac_header_preproc=yes
30323 else
30324 echo "$as_me: failed program was:" >&5
30325 sed 's/^/| /' conftest.$ac_ext >&5
30327 ac_header_preproc=no
30330 rm -f conftest.err conftest.$ac_ext
30331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30332 echo "${ECHO_T}$ac_header_preproc" >&6; }
30334 # So? What about this header?
30335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30336 yes:no: )
30337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30341 ac_header_preproc=yes
30343 no:yes:* )
30344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30356 ( cat <<\_ASBOX
30357 ## ----------------------------------- ##
30358 ## Report this to llvmbugs@cs.uiuc.edu ##
30359 ## ----------------------------------- ##
30360 _ASBOX
30361 ) | sed "s/^/$as_me: WARNING: /" >&2
30363 esac
30364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30367 echo $ECHO_N "(cached) $ECHO_C" >&6
30368 else
30369 eval "$as_ac_Header=\$ac_header_preproc"
30371 ac_res=`eval echo '${'$as_ac_Header'}'`
30372 { echo "$as_me:$LINENO: result: $ac_res" >&5
30373 echo "${ECHO_T}$ac_res" >&6; }
30376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30377 cat >>confdefs.h <<_ACEOF
30378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30379 _ACEOF
30383 done
30389 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30396 echo $ECHO_N "(cached) $ECHO_C" >&6
30398 ac_res=`eval echo '${'$as_ac_Header'}'`
30399 { echo "$as_me:$LINENO: result: $ac_res" >&5
30400 echo "${ECHO_T}$ac_res" >&6; }
30401 else
30402 # Is the header compilable?
30403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30405 cat >conftest.$ac_ext <<_ACEOF
30406 /* confdefs.h. */
30407 _ACEOF
30408 cat confdefs.h >>conftest.$ac_ext
30409 cat >>conftest.$ac_ext <<_ACEOF
30410 /* end confdefs.h. */
30411 $ac_includes_default
30412 #include <$ac_header>
30413 _ACEOF
30414 rm -f conftest.$ac_objext
30415 if { (ac_try="$ac_compile"
30416 case "(($ac_try" in
30417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30418 *) ac_try_echo=$ac_try;;
30419 esac
30420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30421 (eval "$ac_compile") 2>conftest.er1
30422 ac_status=$?
30423 grep -v '^ *+' conftest.er1 >conftest.err
30424 rm -f conftest.er1
30425 cat conftest.err >&5
30426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30427 (exit $ac_status); } &&
30428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30429 { (case "(($ac_try" in
30430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30431 *) ac_try_echo=$ac_try;;
30432 esac
30433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434 (eval "$ac_try") 2>&5
30435 ac_status=$?
30436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437 (exit $ac_status); }; } &&
30438 { ac_try='test -s conftest.$ac_objext'
30439 { (case "(($ac_try" in
30440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30441 *) ac_try_echo=$ac_try;;
30442 esac
30443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30444 (eval "$ac_try") 2>&5
30445 ac_status=$?
30446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30447 (exit $ac_status); }; }; then
30448 ac_header_compiler=yes
30449 else
30450 echo "$as_me: failed program was:" >&5
30451 sed 's/^/| /' conftest.$ac_ext >&5
30453 ac_header_compiler=no
30456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30458 echo "${ECHO_T}$ac_header_compiler" >&6; }
30460 # Is the header present?
30461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30463 cat >conftest.$ac_ext <<_ACEOF
30464 /* confdefs.h. */
30465 _ACEOF
30466 cat confdefs.h >>conftest.$ac_ext
30467 cat >>conftest.$ac_ext <<_ACEOF
30468 /* end confdefs.h. */
30469 #include <$ac_header>
30470 _ACEOF
30471 if { (ac_try="$ac_cpp conftest.$ac_ext"
30472 case "(($ac_try" in
30473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30474 *) ac_try_echo=$ac_try;;
30475 esac
30476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30478 ac_status=$?
30479 grep -v '^ *+' conftest.er1 >conftest.err
30480 rm -f conftest.er1
30481 cat conftest.err >&5
30482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483 (exit $ac_status); } >/dev/null; then
30484 if test -s conftest.err; then
30485 ac_cpp_err=$ac_c_preproc_warn_flag
30486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30487 else
30488 ac_cpp_err=
30490 else
30491 ac_cpp_err=yes
30493 if test -z "$ac_cpp_err"; then
30494 ac_header_preproc=yes
30495 else
30496 echo "$as_me: failed program was:" >&5
30497 sed 's/^/| /' conftest.$ac_ext >&5
30499 ac_header_preproc=no
30502 rm -f conftest.err conftest.$ac_ext
30503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30504 echo "${ECHO_T}$ac_header_preproc" >&6; }
30506 # So? What about this header?
30507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30508 yes:no: )
30509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30513 ac_header_preproc=yes
30515 no:yes:* )
30516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30528 ( cat <<\_ASBOX
30529 ## ----------------------------------- ##
30530 ## Report this to llvmbugs@cs.uiuc.edu ##
30531 ## ----------------------------------- ##
30532 _ASBOX
30533 ) | sed "s/^/$as_me: WARNING: /" >&2
30535 esac
30536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30539 echo $ECHO_N "(cached) $ECHO_C" >&6
30540 else
30541 eval "$as_ac_Header=\$ac_header_preproc"
30543 ac_res=`eval echo '${'$as_ac_Header'}'`
30544 { echo "$as_me:$LINENO: result: $ac_res" >&5
30545 echo "${ECHO_T}$ac_res" >&6; }
30548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30549 cat >>confdefs.h <<_ACEOF
30550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30551 _ACEOF
30555 done
30561 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30568 echo $ECHO_N "(cached) $ECHO_C" >&6
30570 ac_res=`eval echo '${'$as_ac_Header'}'`
30571 { echo "$as_me:$LINENO: result: $ac_res" >&5
30572 echo "${ECHO_T}$ac_res" >&6; }
30573 else
30574 # Is the header compilable?
30575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30577 cat >conftest.$ac_ext <<_ACEOF
30578 /* confdefs.h. */
30579 _ACEOF
30580 cat confdefs.h >>conftest.$ac_ext
30581 cat >>conftest.$ac_ext <<_ACEOF
30582 /* end confdefs.h. */
30583 $ac_includes_default
30584 #include <$ac_header>
30585 _ACEOF
30586 rm -f conftest.$ac_objext
30587 if { (ac_try="$ac_compile"
30588 case "(($ac_try" in
30589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30590 *) ac_try_echo=$ac_try;;
30591 esac
30592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30593 (eval "$ac_compile") 2>conftest.er1
30594 ac_status=$?
30595 grep -v '^ *+' conftest.er1 >conftest.err
30596 rm -f conftest.er1
30597 cat conftest.err >&5
30598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30599 (exit $ac_status); } &&
30600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30601 { (case "(($ac_try" in
30602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30603 *) ac_try_echo=$ac_try;;
30604 esac
30605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30606 (eval "$ac_try") 2>&5
30607 ac_status=$?
30608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609 (exit $ac_status); }; } &&
30610 { ac_try='test -s conftest.$ac_objext'
30611 { (case "(($ac_try" in
30612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30613 *) ac_try_echo=$ac_try;;
30614 esac
30615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30616 (eval "$ac_try") 2>&5
30617 ac_status=$?
30618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619 (exit $ac_status); }; }; then
30620 ac_header_compiler=yes
30621 else
30622 echo "$as_me: failed program was:" >&5
30623 sed 's/^/| /' conftest.$ac_ext >&5
30625 ac_header_compiler=no
30628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30630 echo "${ECHO_T}$ac_header_compiler" >&6; }
30632 # Is the header present?
30633 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30635 cat >conftest.$ac_ext <<_ACEOF
30636 /* confdefs.h. */
30637 _ACEOF
30638 cat confdefs.h >>conftest.$ac_ext
30639 cat >>conftest.$ac_ext <<_ACEOF
30640 /* end confdefs.h. */
30641 #include <$ac_header>
30642 _ACEOF
30643 if { (ac_try="$ac_cpp conftest.$ac_ext"
30644 case "(($ac_try" in
30645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30646 *) ac_try_echo=$ac_try;;
30647 esac
30648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30650 ac_status=$?
30651 grep -v '^ *+' conftest.er1 >conftest.err
30652 rm -f conftest.er1
30653 cat conftest.err >&5
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); } >/dev/null; then
30656 if test -s conftest.err; then
30657 ac_cpp_err=$ac_c_preproc_warn_flag
30658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30659 else
30660 ac_cpp_err=
30662 else
30663 ac_cpp_err=yes
30665 if test -z "$ac_cpp_err"; then
30666 ac_header_preproc=yes
30667 else
30668 echo "$as_me: failed program was:" >&5
30669 sed 's/^/| /' conftest.$ac_ext >&5
30671 ac_header_preproc=no
30674 rm -f conftest.err conftest.$ac_ext
30675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30676 echo "${ECHO_T}$ac_header_preproc" >&6; }
30678 # So? What about this header?
30679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30680 yes:no: )
30681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30685 ac_header_preproc=yes
30687 no:yes:* )
30688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30700 ( cat <<\_ASBOX
30701 ## ----------------------------------- ##
30702 ## Report this to llvmbugs@cs.uiuc.edu ##
30703 ## ----------------------------------- ##
30704 _ASBOX
30705 ) | sed "s/^/$as_me: WARNING: /" >&2
30707 esac
30708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30711 echo $ECHO_N "(cached) $ECHO_C" >&6
30712 else
30713 eval "$as_ac_Header=\$ac_header_preproc"
30715 ac_res=`eval echo '${'$as_ac_Header'}'`
30716 { echo "$as_me:$LINENO: result: $ac_res" >&5
30717 echo "${ECHO_T}$ac_res" >&6; }
30720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30721 cat >>confdefs.h <<_ACEOF
30722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30723 _ACEOF
30727 done
30729 if test "$ENABLE_THREADS" -eq 1 ; then
30731 for ac_header in pthread.h
30733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30738 echo $ECHO_N "(cached) $ECHO_C" >&6
30740 ac_res=`eval echo '${'$as_ac_Header'}'`
30741 { echo "$as_me:$LINENO: result: $ac_res" >&5
30742 echo "${ECHO_T}$ac_res" >&6; }
30743 else
30744 # Is the header compilable?
30745 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30747 cat >conftest.$ac_ext <<_ACEOF
30748 /* confdefs.h. */
30749 _ACEOF
30750 cat confdefs.h >>conftest.$ac_ext
30751 cat >>conftest.$ac_ext <<_ACEOF
30752 /* end confdefs.h. */
30753 $ac_includes_default
30754 #include <$ac_header>
30755 _ACEOF
30756 rm -f conftest.$ac_objext
30757 if { (ac_try="$ac_compile"
30758 case "(($ac_try" in
30759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30760 *) ac_try_echo=$ac_try;;
30761 esac
30762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30763 (eval "$ac_compile") 2>conftest.er1
30764 ac_status=$?
30765 grep -v '^ *+' conftest.er1 >conftest.err
30766 rm -f conftest.er1
30767 cat conftest.err >&5
30768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769 (exit $ac_status); } &&
30770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30771 { (case "(($ac_try" in
30772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30773 *) ac_try_echo=$ac_try;;
30774 esac
30775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30776 (eval "$ac_try") 2>&5
30777 ac_status=$?
30778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779 (exit $ac_status); }; } &&
30780 { ac_try='test -s conftest.$ac_objext'
30781 { (case "(($ac_try" in
30782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30783 *) ac_try_echo=$ac_try;;
30784 esac
30785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30786 (eval "$ac_try") 2>&5
30787 ac_status=$?
30788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30789 (exit $ac_status); }; }; then
30790 ac_header_compiler=yes
30791 else
30792 echo "$as_me: failed program was:" >&5
30793 sed 's/^/| /' conftest.$ac_ext >&5
30795 ac_header_compiler=no
30798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30800 echo "${ECHO_T}$ac_header_compiler" >&6; }
30802 # Is the header present?
30803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30805 cat >conftest.$ac_ext <<_ACEOF
30806 /* confdefs.h. */
30807 _ACEOF
30808 cat confdefs.h >>conftest.$ac_ext
30809 cat >>conftest.$ac_ext <<_ACEOF
30810 /* end confdefs.h. */
30811 #include <$ac_header>
30812 _ACEOF
30813 if { (ac_try="$ac_cpp conftest.$ac_ext"
30814 case "(($ac_try" in
30815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30816 *) ac_try_echo=$ac_try;;
30817 esac
30818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30820 ac_status=$?
30821 grep -v '^ *+' conftest.er1 >conftest.err
30822 rm -f conftest.er1
30823 cat conftest.err >&5
30824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825 (exit $ac_status); } >/dev/null; then
30826 if test -s conftest.err; then
30827 ac_cpp_err=$ac_c_preproc_warn_flag
30828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30829 else
30830 ac_cpp_err=
30832 else
30833 ac_cpp_err=yes
30835 if test -z "$ac_cpp_err"; then
30836 ac_header_preproc=yes
30837 else
30838 echo "$as_me: failed program was:" >&5
30839 sed 's/^/| /' conftest.$ac_ext >&5
30841 ac_header_preproc=no
30844 rm -f conftest.err conftest.$ac_ext
30845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30846 echo "${ECHO_T}$ac_header_preproc" >&6; }
30848 # So? What about this header?
30849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30850 yes:no: )
30851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30855 ac_header_preproc=yes
30857 no:yes:* )
30858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30870 ( cat <<\_ASBOX
30871 ## ----------------------------------- ##
30872 ## Report this to llvmbugs@cs.uiuc.edu ##
30873 ## ----------------------------------- ##
30874 _ASBOX
30875 ) | sed "s/^/$as_me: WARNING: /" >&2
30877 esac
30878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30881 echo $ECHO_N "(cached) $ECHO_C" >&6
30882 else
30883 eval "$as_ac_Header=\$ac_header_preproc"
30885 ac_res=`eval echo '${'$as_ac_Header'}'`
30886 { echo "$as_me:$LINENO: result: $ac_res" >&5
30887 echo "${ECHO_T}$ac_res" >&6; }
30890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30891 cat >>confdefs.h <<_ACEOF
30892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30893 _ACEOF
30894 HAVE_PTHREAD=1
30896 else
30897 HAVE_PTHREAD=0
30901 done
30903 else
30904 HAVE_PTHREAD=0
30908 if test "$llvm_cv_enable_libffi" = "yes" ; then
30911 for ac_header in ffi.h ffi/ffi.h
30913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30918 echo $ECHO_N "(cached) $ECHO_C" >&6
30920 ac_res=`eval echo '${'$as_ac_Header'}'`
30921 { echo "$as_me:$LINENO: result: $ac_res" >&5
30922 echo "${ECHO_T}$ac_res" >&6; }
30923 else
30924 # Is the header compilable?
30925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30927 cat >conftest.$ac_ext <<_ACEOF
30928 /* confdefs.h. */
30929 _ACEOF
30930 cat confdefs.h >>conftest.$ac_ext
30931 cat >>conftest.$ac_ext <<_ACEOF
30932 /* end confdefs.h. */
30933 $ac_includes_default
30934 #include <$ac_header>
30935 _ACEOF
30936 rm -f conftest.$ac_objext
30937 if { (ac_try="$ac_compile"
30938 case "(($ac_try" in
30939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30940 *) ac_try_echo=$ac_try;;
30941 esac
30942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30943 (eval "$ac_compile") 2>conftest.er1
30944 ac_status=$?
30945 grep -v '^ *+' conftest.er1 >conftest.err
30946 rm -f conftest.er1
30947 cat conftest.err >&5
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); } &&
30950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30951 { (case "(($ac_try" in
30952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953 *) ac_try_echo=$ac_try;;
30954 esac
30955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956 (eval "$ac_try") 2>&5
30957 ac_status=$?
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); }; } &&
30960 { ac_try='test -s conftest.$ac_objext'
30961 { (case "(($ac_try" in
30962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30963 *) ac_try_echo=$ac_try;;
30964 esac
30965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30966 (eval "$ac_try") 2>&5
30967 ac_status=$?
30968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969 (exit $ac_status); }; }; then
30970 ac_header_compiler=yes
30971 else
30972 echo "$as_me: failed program was:" >&5
30973 sed 's/^/| /' conftest.$ac_ext >&5
30975 ac_header_compiler=no
30978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30980 echo "${ECHO_T}$ac_header_compiler" >&6; }
30982 # Is the header present?
30983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30985 cat >conftest.$ac_ext <<_ACEOF
30986 /* confdefs.h. */
30987 _ACEOF
30988 cat confdefs.h >>conftest.$ac_ext
30989 cat >>conftest.$ac_ext <<_ACEOF
30990 /* end confdefs.h. */
30991 #include <$ac_header>
30992 _ACEOF
30993 if { (ac_try="$ac_cpp conftest.$ac_ext"
30994 case "(($ac_try" in
30995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30996 *) ac_try_echo=$ac_try;;
30997 esac
30998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31000 ac_status=$?
31001 grep -v '^ *+' conftest.er1 >conftest.err
31002 rm -f conftest.er1
31003 cat conftest.err >&5
31004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31005 (exit $ac_status); } >/dev/null; then
31006 if test -s conftest.err; then
31007 ac_cpp_err=$ac_c_preproc_warn_flag
31008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31009 else
31010 ac_cpp_err=
31012 else
31013 ac_cpp_err=yes
31015 if test -z "$ac_cpp_err"; then
31016 ac_header_preproc=yes
31017 else
31018 echo "$as_me: failed program was:" >&5
31019 sed 's/^/| /' conftest.$ac_ext >&5
31021 ac_header_preproc=no
31024 rm -f conftest.err conftest.$ac_ext
31025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31026 echo "${ECHO_T}$ac_header_preproc" >&6; }
31028 # So? What about this header?
31029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31030 yes:no: )
31031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31035 ac_header_preproc=yes
31037 no:yes:* )
31038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31050 ( cat <<\_ASBOX
31051 ## ----------------------------------- ##
31052 ## Report this to llvmbugs@cs.uiuc.edu ##
31053 ## ----------------------------------- ##
31054 _ASBOX
31055 ) | sed "s/^/$as_me: WARNING: /" >&2
31057 esac
31058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31061 echo $ECHO_N "(cached) $ECHO_C" >&6
31062 else
31063 eval "$as_ac_Header=\$ac_header_preproc"
31065 ac_res=`eval echo '${'$as_ac_Header'}'`
31066 { echo "$as_me:$LINENO: result: $ac_res" >&5
31067 echo "${ECHO_T}$ac_res" >&6; }
31070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31071 cat >>confdefs.h <<_ACEOF
31072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31073 _ACEOF
31077 done
31083 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31084 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31085 if test "${ac_cv_huge_val_sanity+set}" = set; then
31086 echo $ECHO_N "(cached) $ECHO_C" >&6
31087 else
31089 ac_ext=cpp
31090 ac_cpp='$CXXCPP $CPPFLAGS'
31091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31095 CXXFLAGS=-pedantic
31096 if test "$cross_compiling" = yes; then
31097 ac_cv_huge_val_sanity=yes
31098 else
31099 cat >conftest.$ac_ext <<_ACEOF
31100 /* confdefs.h. */
31101 _ACEOF
31102 cat confdefs.h >>conftest.$ac_ext
31103 cat >>conftest.$ac_ext <<_ACEOF
31104 /* end confdefs.h. */
31105 #include <math.h>
31107 main ()
31109 double x = HUGE_VAL; return x != x;
31111 return 0;
31113 _ACEOF
31114 rm -f conftest$ac_exeext
31115 if { (ac_try="$ac_link"
31116 case "(($ac_try" in
31117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31118 *) ac_try_echo=$ac_try;;
31119 esac
31120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31121 (eval "$ac_link") 2>&5
31122 ac_status=$?
31123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31125 { (case "(($ac_try" in
31126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31127 *) ac_try_echo=$ac_try;;
31128 esac
31129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31130 (eval "$ac_try") 2>&5
31131 ac_status=$?
31132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31133 (exit $ac_status); }; }; then
31134 ac_cv_huge_val_sanity=yes
31135 else
31136 echo "$as_me: program exited with status $ac_status" >&5
31137 echo "$as_me: failed program was:" >&5
31138 sed 's/^/| /' conftest.$ac_ext >&5
31140 ( exit $ac_status )
31141 ac_cv_huge_val_sanity=no
31143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31147 ac_ext=c
31148 ac_cpp='$CPP $CPPFLAGS'
31149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31155 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31156 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31157 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31160 { echo "$as_me:$LINENO: checking for pid_t" >&5
31161 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31162 if test "${ac_cv_type_pid_t+set}" = set; then
31163 echo $ECHO_N "(cached) $ECHO_C" >&6
31164 else
31165 cat >conftest.$ac_ext <<_ACEOF
31166 /* confdefs.h. */
31167 _ACEOF
31168 cat confdefs.h >>conftest.$ac_ext
31169 cat >>conftest.$ac_ext <<_ACEOF
31170 /* end confdefs.h. */
31171 $ac_includes_default
31172 typedef pid_t ac__type_new_;
31174 main ()
31176 if ((ac__type_new_ *) 0)
31177 return 0;
31178 if (sizeof (ac__type_new_))
31179 return 0;
31181 return 0;
31183 _ACEOF
31184 rm -f conftest.$ac_objext
31185 if { (ac_try="$ac_compile"
31186 case "(($ac_try" in
31187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31188 *) ac_try_echo=$ac_try;;
31189 esac
31190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31191 (eval "$ac_compile") 2>conftest.er1
31192 ac_status=$?
31193 grep -v '^ *+' conftest.er1 >conftest.err
31194 rm -f conftest.er1
31195 cat conftest.err >&5
31196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31197 (exit $ac_status); } &&
31198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31199 { (case "(($ac_try" in
31200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31201 *) ac_try_echo=$ac_try;;
31202 esac
31203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31204 (eval "$ac_try") 2>&5
31205 ac_status=$?
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); }; } &&
31208 { ac_try='test -s conftest.$ac_objext'
31209 { (case "(($ac_try" in
31210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31211 *) ac_try_echo=$ac_try;;
31212 esac
31213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31214 (eval "$ac_try") 2>&5
31215 ac_status=$?
31216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217 (exit $ac_status); }; }; then
31218 ac_cv_type_pid_t=yes
31219 else
31220 echo "$as_me: failed program was:" >&5
31221 sed 's/^/| /' conftest.$ac_ext >&5
31223 ac_cv_type_pid_t=no
31226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31228 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31229 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31230 if test $ac_cv_type_pid_t = yes; then
31232 else
31234 cat >>confdefs.h <<_ACEOF
31235 #define pid_t int
31236 _ACEOF
31240 { echo "$as_me:$LINENO: checking for size_t" >&5
31241 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31242 if test "${ac_cv_type_size_t+set}" = set; then
31243 echo $ECHO_N "(cached) $ECHO_C" >&6
31244 else
31245 cat >conftest.$ac_ext <<_ACEOF
31246 /* confdefs.h. */
31247 _ACEOF
31248 cat confdefs.h >>conftest.$ac_ext
31249 cat >>conftest.$ac_ext <<_ACEOF
31250 /* end confdefs.h. */
31251 $ac_includes_default
31252 typedef size_t ac__type_new_;
31254 main ()
31256 if ((ac__type_new_ *) 0)
31257 return 0;
31258 if (sizeof (ac__type_new_))
31259 return 0;
31261 return 0;
31263 _ACEOF
31264 rm -f conftest.$ac_objext
31265 if { (ac_try="$ac_compile"
31266 case "(($ac_try" in
31267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31268 *) ac_try_echo=$ac_try;;
31269 esac
31270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31271 (eval "$ac_compile") 2>conftest.er1
31272 ac_status=$?
31273 grep -v '^ *+' conftest.er1 >conftest.err
31274 rm -f conftest.er1
31275 cat conftest.err >&5
31276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31277 (exit $ac_status); } &&
31278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31279 { (case "(($ac_try" in
31280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31281 *) ac_try_echo=$ac_try;;
31282 esac
31283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31284 (eval "$ac_try") 2>&5
31285 ac_status=$?
31286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287 (exit $ac_status); }; } &&
31288 { ac_try='test -s conftest.$ac_objext'
31289 { (case "(($ac_try" in
31290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31291 *) ac_try_echo=$ac_try;;
31292 esac
31293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31294 (eval "$ac_try") 2>&5
31295 ac_status=$?
31296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297 (exit $ac_status); }; }; then
31298 ac_cv_type_size_t=yes
31299 else
31300 echo "$as_me: failed program was:" >&5
31301 sed 's/^/| /' conftest.$ac_ext >&5
31303 ac_cv_type_size_t=no
31306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31308 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31309 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31310 if test $ac_cv_type_size_t = yes; then
31312 else
31314 cat >>confdefs.h <<_ACEOF
31315 #define size_t unsigned int
31316 _ACEOF
31320 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31321 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31322 if test "${ac_cv_type_signal+set}" = set; then
31323 echo $ECHO_N "(cached) $ECHO_C" >&6
31324 else
31325 cat >conftest.$ac_ext <<_ACEOF
31326 /* confdefs.h. */
31327 _ACEOF
31328 cat confdefs.h >>conftest.$ac_ext
31329 cat >>conftest.$ac_ext <<_ACEOF
31330 /* end confdefs.h. */
31331 #include <sys/types.h>
31332 #include <signal.h>
31335 main ()
31337 return *(signal (0, 0)) (0) == 1;
31339 return 0;
31341 _ACEOF
31342 rm -f conftest.$ac_objext
31343 if { (ac_try="$ac_compile"
31344 case "(($ac_try" in
31345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31346 *) ac_try_echo=$ac_try;;
31347 esac
31348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31349 (eval "$ac_compile") 2>conftest.er1
31350 ac_status=$?
31351 grep -v '^ *+' conftest.er1 >conftest.err
31352 rm -f conftest.er1
31353 cat conftest.err >&5
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); } &&
31356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31357 { (case "(($ac_try" in
31358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31359 *) ac_try_echo=$ac_try;;
31360 esac
31361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31362 (eval "$ac_try") 2>&5
31363 ac_status=$?
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); }; } &&
31366 { ac_try='test -s conftest.$ac_objext'
31367 { (case "(($ac_try" in
31368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31369 *) ac_try_echo=$ac_try;;
31370 esac
31371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372 (eval "$ac_try") 2>&5
31373 ac_status=$?
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); }; }; then
31376 ac_cv_type_signal=int
31377 else
31378 echo "$as_me: failed program was:" >&5
31379 sed 's/^/| /' conftest.$ac_ext >&5
31381 ac_cv_type_signal=void
31384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31386 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31387 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31389 cat >>confdefs.h <<_ACEOF
31390 #define RETSIGTYPE $ac_cv_type_signal
31391 _ACEOF
31394 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31395 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31396 if test "${ac_cv_struct_tm+set}" = set; then
31397 echo $ECHO_N "(cached) $ECHO_C" >&6
31398 else
31399 cat >conftest.$ac_ext <<_ACEOF
31400 /* confdefs.h. */
31401 _ACEOF
31402 cat confdefs.h >>conftest.$ac_ext
31403 cat >>conftest.$ac_ext <<_ACEOF
31404 /* end confdefs.h. */
31405 #include <sys/types.h>
31406 #include <time.h>
31409 main ()
31411 struct tm *tp; tp->tm_sec;
31413 return 0;
31415 _ACEOF
31416 rm -f conftest.$ac_objext
31417 if { (ac_try="$ac_compile"
31418 case "(($ac_try" in
31419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31420 *) ac_try_echo=$ac_try;;
31421 esac
31422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31423 (eval "$ac_compile") 2>conftest.er1
31424 ac_status=$?
31425 grep -v '^ *+' conftest.er1 >conftest.err
31426 rm -f conftest.er1
31427 cat conftest.err >&5
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429 (exit $ac_status); } &&
31430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31431 { (case "(($ac_try" in
31432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31433 *) ac_try_echo=$ac_try;;
31434 esac
31435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31436 (eval "$ac_try") 2>&5
31437 ac_status=$?
31438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31439 (exit $ac_status); }; } &&
31440 { ac_try='test -s conftest.$ac_objext'
31441 { (case "(($ac_try" in
31442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31443 *) ac_try_echo=$ac_try;;
31444 esac
31445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31446 (eval "$ac_try") 2>&5
31447 ac_status=$?
31448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31449 (exit $ac_status); }; }; then
31450 ac_cv_struct_tm=time.h
31451 else
31452 echo "$as_me: failed program was:" >&5
31453 sed 's/^/| /' conftest.$ac_ext >&5
31455 ac_cv_struct_tm=sys/time.h
31458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31460 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31461 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31462 if test $ac_cv_struct_tm = sys/time.h; then
31464 cat >>confdefs.h <<\_ACEOF
31465 #define TM_IN_SYS_TIME 1
31466 _ACEOF
31470 { echo "$as_me:$LINENO: checking for int64_t" >&5
31471 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31472 if test "${ac_cv_type_int64_t+set}" = set; then
31473 echo $ECHO_N "(cached) $ECHO_C" >&6
31474 else
31475 cat >conftest.$ac_ext <<_ACEOF
31476 /* confdefs.h. */
31477 _ACEOF
31478 cat confdefs.h >>conftest.$ac_ext
31479 cat >>conftest.$ac_ext <<_ACEOF
31480 /* end confdefs.h. */
31481 $ac_includes_default
31482 typedef int64_t ac__type_new_;
31484 main ()
31486 if ((ac__type_new_ *) 0)
31487 return 0;
31488 if (sizeof (ac__type_new_))
31489 return 0;
31491 return 0;
31493 _ACEOF
31494 rm -f conftest.$ac_objext
31495 if { (ac_try="$ac_compile"
31496 case "(($ac_try" in
31497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31498 *) ac_try_echo=$ac_try;;
31499 esac
31500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31501 (eval "$ac_compile") 2>conftest.er1
31502 ac_status=$?
31503 grep -v '^ *+' conftest.er1 >conftest.err
31504 rm -f conftest.er1
31505 cat conftest.err >&5
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); } &&
31508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31509 { (case "(($ac_try" in
31510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511 *) ac_try_echo=$ac_try;;
31512 esac
31513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514 (eval "$ac_try") 2>&5
31515 ac_status=$?
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; } &&
31518 { ac_try='test -s conftest.$ac_objext'
31519 { (case "(($ac_try" in
31520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521 *) ac_try_echo=$ac_try;;
31522 esac
31523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524 (eval "$ac_try") 2>&5
31525 ac_status=$?
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); }; }; then
31528 ac_cv_type_int64_t=yes
31529 else
31530 echo "$as_me: failed program was:" >&5
31531 sed 's/^/| /' conftest.$ac_ext >&5
31533 ac_cv_type_int64_t=no
31536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31538 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31539 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31540 if test $ac_cv_type_int64_t = yes; then
31542 cat >>confdefs.h <<_ACEOF
31543 #define HAVE_INT64_T 1
31544 _ACEOF
31547 else
31548 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31549 echo "$as_me: error: Type int64_t required but not found" >&2;}
31550 { (exit 1); exit 1; }; }
31553 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31554 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31555 if test "${ac_cv_type_uint64_t+set}" = set; then
31556 echo $ECHO_N "(cached) $ECHO_C" >&6
31557 else
31558 cat >conftest.$ac_ext <<_ACEOF
31559 /* confdefs.h. */
31560 _ACEOF
31561 cat confdefs.h >>conftest.$ac_ext
31562 cat >>conftest.$ac_ext <<_ACEOF
31563 /* end confdefs.h. */
31564 $ac_includes_default
31565 typedef uint64_t ac__type_new_;
31567 main ()
31569 if ((ac__type_new_ *) 0)
31570 return 0;
31571 if (sizeof (ac__type_new_))
31572 return 0;
31574 return 0;
31576 _ACEOF
31577 rm -f conftest.$ac_objext
31578 if { (ac_try="$ac_compile"
31579 case "(($ac_try" in
31580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31581 *) ac_try_echo=$ac_try;;
31582 esac
31583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31584 (eval "$ac_compile") 2>conftest.er1
31585 ac_status=$?
31586 grep -v '^ *+' conftest.er1 >conftest.err
31587 rm -f conftest.er1
31588 cat conftest.err >&5
31589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590 (exit $ac_status); } &&
31591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31592 { (case "(($ac_try" in
31593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31594 *) ac_try_echo=$ac_try;;
31595 esac
31596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31597 (eval "$ac_try") 2>&5
31598 ac_status=$?
31599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600 (exit $ac_status); }; } &&
31601 { ac_try='test -s conftest.$ac_objext'
31602 { (case "(($ac_try" in
31603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31604 *) ac_try_echo=$ac_try;;
31605 esac
31606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31607 (eval "$ac_try") 2>&5
31608 ac_status=$?
31609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610 (exit $ac_status); }; }; then
31611 ac_cv_type_uint64_t=yes
31612 else
31613 echo "$as_me: failed program was:" >&5
31614 sed 's/^/| /' conftest.$ac_ext >&5
31616 ac_cv_type_uint64_t=no
31619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31621 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31622 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31623 if test $ac_cv_type_uint64_t = yes; then
31625 cat >>confdefs.h <<_ACEOF
31626 #define HAVE_UINT64_T 1
31627 _ACEOF
31630 else
31631 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31632 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31633 if test "${ac_cv_type_u_int64_t+set}" = set; then
31634 echo $ECHO_N "(cached) $ECHO_C" >&6
31635 else
31636 cat >conftest.$ac_ext <<_ACEOF
31637 /* confdefs.h. */
31638 _ACEOF
31639 cat confdefs.h >>conftest.$ac_ext
31640 cat >>conftest.$ac_ext <<_ACEOF
31641 /* end confdefs.h. */
31642 $ac_includes_default
31643 typedef u_int64_t ac__type_new_;
31645 main ()
31647 if ((ac__type_new_ *) 0)
31648 return 0;
31649 if (sizeof (ac__type_new_))
31650 return 0;
31652 return 0;
31654 _ACEOF
31655 rm -f conftest.$ac_objext
31656 if { (ac_try="$ac_compile"
31657 case "(($ac_try" in
31658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31659 *) ac_try_echo=$ac_try;;
31660 esac
31661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31662 (eval "$ac_compile") 2>conftest.er1
31663 ac_status=$?
31664 grep -v '^ *+' conftest.er1 >conftest.err
31665 rm -f conftest.er1
31666 cat conftest.err >&5
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); } &&
31669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31670 { (case "(($ac_try" in
31671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31672 *) ac_try_echo=$ac_try;;
31673 esac
31674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31675 (eval "$ac_try") 2>&5
31676 ac_status=$?
31677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678 (exit $ac_status); }; } &&
31679 { ac_try='test -s conftest.$ac_objext'
31680 { (case "(($ac_try" in
31681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31682 *) ac_try_echo=$ac_try;;
31683 esac
31684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31685 (eval "$ac_try") 2>&5
31686 ac_status=$?
31687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688 (exit $ac_status); }; }; then
31689 ac_cv_type_u_int64_t=yes
31690 else
31691 echo "$as_me: failed program was:" >&5
31692 sed 's/^/| /' conftest.$ac_ext >&5
31694 ac_cv_type_u_int64_t=no
31697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31699 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31700 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31701 if test $ac_cv_type_u_int64_t = yes; then
31703 cat >>confdefs.h <<_ACEOF
31704 #define HAVE_U_INT64_T 1
31705 _ACEOF
31708 else
31709 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31710 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31711 { (exit 1); exit 1; }; }
31725 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31731 echo $ECHO_N "(cached) $ECHO_C" >&6
31732 else
31733 cat >conftest.$ac_ext <<_ACEOF
31734 /* confdefs.h. */
31735 _ACEOF
31736 cat confdefs.h >>conftest.$ac_ext
31737 cat >>conftest.$ac_ext <<_ACEOF
31738 /* end confdefs.h. */
31739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31741 #define $ac_func innocuous_$ac_func
31743 /* System header to define __stub macros and hopefully few prototypes,
31744 which can conflict with char $ac_func (); below.
31745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31746 <limits.h> exists even on freestanding compilers. */
31748 #ifdef __STDC__
31749 # include <limits.h>
31750 #else
31751 # include <assert.h>
31752 #endif
31754 #undef $ac_func
31756 /* Override any GCC internal prototype to avoid an error.
31757 Use char because int might match the return type of a GCC
31758 builtin and then its argument prototype would still apply. */
31759 #ifdef __cplusplus
31760 extern "C"
31761 #endif
31762 char $ac_func ();
31763 /* The GNU C library defines this for functions which it implements
31764 to always fail with ENOSYS. Some functions are actually named
31765 something starting with __ and the normal name is an alias. */
31766 #if defined __stub_$ac_func || defined __stub___$ac_func
31767 choke me
31768 #endif
31771 main ()
31773 return $ac_func ();
31775 return 0;
31777 _ACEOF
31778 rm -f conftest.$ac_objext conftest$ac_exeext
31779 if { (ac_try="$ac_link"
31780 case "(($ac_try" in
31781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31782 *) ac_try_echo=$ac_try;;
31783 esac
31784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31785 (eval "$ac_link") 2>conftest.er1
31786 ac_status=$?
31787 grep -v '^ *+' conftest.er1 >conftest.err
31788 rm -f conftest.er1
31789 cat conftest.err >&5
31790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791 (exit $ac_status); } &&
31792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31793 { (case "(($ac_try" in
31794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31795 *) ac_try_echo=$ac_try;;
31796 esac
31797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31798 (eval "$ac_try") 2>&5
31799 ac_status=$?
31800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801 (exit $ac_status); }; } &&
31802 { ac_try='test -s conftest$ac_exeext'
31803 { (case "(($ac_try" in
31804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31805 *) ac_try_echo=$ac_try;;
31806 esac
31807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31808 (eval "$ac_try") 2>&5
31809 ac_status=$?
31810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31811 (exit $ac_status); }; }; then
31812 eval "$as_ac_var=yes"
31813 else
31814 echo "$as_me: failed program was:" >&5
31815 sed 's/^/| /' conftest.$ac_ext >&5
31817 eval "$as_ac_var=no"
31820 rm -f core conftest.err conftest.$ac_objext \
31821 conftest$ac_exeext conftest.$ac_ext
31823 ac_res=`eval echo '${'$as_ac_var'}'`
31824 { echo "$as_me:$LINENO: result: $ac_res" >&5
31825 echo "${ECHO_T}$ac_res" >&6; }
31826 if test `eval echo '${'$as_ac_var'}'` = yes; then
31827 cat >>confdefs.h <<_ACEOF
31828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31829 _ACEOF
31832 done
31838 for ac_func in powf fmodf strtof round
31840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31841 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31843 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31844 echo $ECHO_N "(cached) $ECHO_C" >&6
31845 else
31846 cat >conftest.$ac_ext <<_ACEOF
31847 /* confdefs.h. */
31848 _ACEOF
31849 cat confdefs.h >>conftest.$ac_ext
31850 cat >>conftest.$ac_ext <<_ACEOF
31851 /* end confdefs.h. */
31852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31854 #define $ac_func innocuous_$ac_func
31856 /* System header to define __stub macros and hopefully few prototypes,
31857 which can conflict with char $ac_func (); below.
31858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31859 <limits.h> exists even on freestanding compilers. */
31861 #ifdef __STDC__
31862 # include <limits.h>
31863 #else
31864 # include <assert.h>
31865 #endif
31867 #undef $ac_func
31869 /* Override any GCC internal prototype to avoid an error.
31870 Use char because int might match the return type of a GCC
31871 builtin and then its argument prototype would still apply. */
31872 #ifdef __cplusplus
31873 extern "C"
31874 #endif
31875 char $ac_func ();
31876 /* The GNU C library defines this for functions which it implements
31877 to always fail with ENOSYS. Some functions are actually named
31878 something starting with __ and the normal name is an alias. */
31879 #if defined __stub_$ac_func || defined __stub___$ac_func
31880 choke me
31881 #endif
31884 main ()
31886 return $ac_func ();
31888 return 0;
31890 _ACEOF
31891 rm -f conftest.$ac_objext conftest$ac_exeext
31892 if { (ac_try="$ac_link"
31893 case "(($ac_try" in
31894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31895 *) ac_try_echo=$ac_try;;
31896 esac
31897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31898 (eval "$ac_link") 2>conftest.er1
31899 ac_status=$?
31900 grep -v '^ *+' conftest.er1 >conftest.err
31901 rm -f conftest.er1
31902 cat conftest.err >&5
31903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904 (exit $ac_status); } &&
31905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31906 { (case "(($ac_try" in
31907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31908 *) ac_try_echo=$ac_try;;
31909 esac
31910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31911 (eval "$ac_try") 2>&5
31912 ac_status=$?
31913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914 (exit $ac_status); }; } &&
31915 { ac_try='test -s conftest$ac_exeext'
31916 { (case "(($ac_try" in
31917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31918 *) ac_try_echo=$ac_try;;
31919 esac
31920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31921 (eval "$ac_try") 2>&5
31922 ac_status=$?
31923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924 (exit $ac_status); }; }; then
31925 eval "$as_ac_var=yes"
31926 else
31927 echo "$as_me: failed program was:" >&5
31928 sed 's/^/| /' conftest.$ac_ext >&5
31930 eval "$as_ac_var=no"
31933 rm -f core conftest.err conftest.$ac_objext \
31934 conftest$ac_exeext conftest.$ac_ext
31936 ac_res=`eval echo '${'$as_ac_var'}'`
31937 { echo "$as_me:$LINENO: result: $ac_res" >&5
31938 echo "${ECHO_T}$ac_res" >&6; }
31939 if test `eval echo '${'$as_ac_var'}'` = yes; then
31940 cat >>confdefs.h <<_ACEOF
31941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31942 _ACEOF
31945 done
31952 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31958 echo $ECHO_N "(cached) $ECHO_C" >&6
31959 else
31960 cat >conftest.$ac_ext <<_ACEOF
31961 /* confdefs.h. */
31962 _ACEOF
31963 cat confdefs.h >>conftest.$ac_ext
31964 cat >>conftest.$ac_ext <<_ACEOF
31965 /* end confdefs.h. */
31966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31968 #define $ac_func innocuous_$ac_func
31970 /* System header to define __stub macros and hopefully few prototypes,
31971 which can conflict with char $ac_func (); below.
31972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31973 <limits.h> exists even on freestanding compilers. */
31975 #ifdef __STDC__
31976 # include <limits.h>
31977 #else
31978 # include <assert.h>
31979 #endif
31981 #undef $ac_func
31983 /* Override any GCC internal prototype to avoid an error.
31984 Use char because int might match the return type of a GCC
31985 builtin and then its argument prototype would still apply. */
31986 #ifdef __cplusplus
31987 extern "C"
31988 #endif
31989 char $ac_func ();
31990 /* The GNU C library defines this for functions which it implements
31991 to always fail with ENOSYS. Some functions are actually named
31992 something starting with __ and the normal name is an alias. */
31993 #if defined __stub_$ac_func || defined __stub___$ac_func
31994 choke me
31995 #endif
31998 main ()
32000 return $ac_func ();
32002 return 0;
32004 _ACEOF
32005 rm -f conftest.$ac_objext conftest$ac_exeext
32006 if { (ac_try="$ac_link"
32007 case "(($ac_try" in
32008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009 *) ac_try_echo=$ac_try;;
32010 esac
32011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012 (eval "$ac_link") 2>conftest.er1
32013 ac_status=$?
32014 grep -v '^ *+' conftest.er1 >conftest.err
32015 rm -f conftest.er1
32016 cat conftest.err >&5
32017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018 (exit $ac_status); } &&
32019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32020 { (case "(($ac_try" in
32021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022 *) ac_try_echo=$ac_try;;
32023 esac
32024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025 (eval "$ac_try") 2>&5
32026 ac_status=$?
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); }; } &&
32029 { ac_try='test -s conftest$ac_exeext'
32030 { (case "(($ac_try" in
32031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32032 *) ac_try_echo=$ac_try;;
32033 esac
32034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32035 (eval "$ac_try") 2>&5
32036 ac_status=$?
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); }; }; then
32039 eval "$as_ac_var=yes"
32040 else
32041 echo "$as_me: failed program was:" >&5
32042 sed 's/^/| /' conftest.$ac_ext >&5
32044 eval "$as_ac_var=no"
32047 rm -f core conftest.err conftest.$ac_objext \
32048 conftest$ac_exeext conftest.$ac_ext
32050 ac_res=`eval echo '${'$as_ac_var'}'`
32051 { echo "$as_me:$LINENO: result: $ac_res" >&5
32052 echo "${ECHO_T}$ac_res" >&6; }
32053 if test `eval echo '${'$as_ac_var'}'` = yes; then
32054 cat >>confdefs.h <<_ACEOF
32055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32056 _ACEOF
32059 done
32064 for ac_func in isatty mkdtemp mkstemp
32066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32070 echo $ECHO_N "(cached) $ECHO_C" >&6
32071 else
32072 cat >conftest.$ac_ext <<_ACEOF
32073 /* confdefs.h. */
32074 _ACEOF
32075 cat confdefs.h >>conftest.$ac_ext
32076 cat >>conftest.$ac_ext <<_ACEOF
32077 /* end confdefs.h. */
32078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32080 #define $ac_func innocuous_$ac_func
32082 /* System header to define __stub macros and hopefully few prototypes,
32083 which can conflict with char $ac_func (); below.
32084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32085 <limits.h> exists even on freestanding compilers. */
32087 #ifdef __STDC__
32088 # include <limits.h>
32089 #else
32090 # include <assert.h>
32091 #endif
32093 #undef $ac_func
32095 /* Override any GCC internal prototype to avoid an error.
32096 Use char because int might match the return type of a GCC
32097 builtin and then its argument prototype would still apply. */
32098 #ifdef __cplusplus
32099 extern "C"
32100 #endif
32101 char $ac_func ();
32102 /* The GNU C library defines this for functions which it implements
32103 to always fail with ENOSYS. Some functions are actually named
32104 something starting with __ and the normal name is an alias. */
32105 #if defined __stub_$ac_func || defined __stub___$ac_func
32106 choke me
32107 #endif
32110 main ()
32112 return $ac_func ();
32114 return 0;
32116 _ACEOF
32117 rm -f conftest.$ac_objext conftest$ac_exeext
32118 if { (ac_try="$ac_link"
32119 case "(($ac_try" in
32120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32121 *) ac_try_echo=$ac_try;;
32122 esac
32123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32124 (eval "$ac_link") 2>conftest.er1
32125 ac_status=$?
32126 grep -v '^ *+' conftest.er1 >conftest.err
32127 rm -f conftest.er1
32128 cat conftest.err >&5
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); } &&
32131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32132 { (case "(($ac_try" in
32133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32134 *) ac_try_echo=$ac_try;;
32135 esac
32136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32137 (eval "$ac_try") 2>&5
32138 ac_status=$?
32139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140 (exit $ac_status); }; } &&
32141 { ac_try='test -s conftest$ac_exeext'
32142 { (case "(($ac_try" in
32143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144 *) ac_try_echo=$ac_try;;
32145 esac
32146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32147 (eval "$ac_try") 2>&5
32148 ac_status=$?
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); }; }; then
32151 eval "$as_ac_var=yes"
32152 else
32153 echo "$as_me: failed program was:" >&5
32154 sed 's/^/| /' conftest.$ac_ext >&5
32156 eval "$as_ac_var=no"
32159 rm -f core conftest.err conftest.$ac_objext \
32160 conftest$ac_exeext conftest.$ac_ext
32162 ac_res=`eval echo '${'$as_ac_var'}'`
32163 { echo "$as_me:$LINENO: result: $ac_res" >&5
32164 echo "${ECHO_T}$ac_res" >&6; }
32165 if test `eval echo '${'$as_ac_var'}'` = yes; then
32166 cat >>confdefs.h <<_ACEOF
32167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32168 _ACEOF
32171 done
32178 for ac_func in mktemp realpath sbrk setrlimit strdup
32180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32184 echo $ECHO_N "(cached) $ECHO_C" >&6
32185 else
32186 cat >conftest.$ac_ext <<_ACEOF
32187 /* confdefs.h. */
32188 _ACEOF
32189 cat confdefs.h >>conftest.$ac_ext
32190 cat >>conftest.$ac_ext <<_ACEOF
32191 /* end confdefs.h. */
32192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32194 #define $ac_func innocuous_$ac_func
32196 /* System header to define __stub macros and hopefully few prototypes,
32197 which can conflict with char $ac_func (); below.
32198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32199 <limits.h> exists even on freestanding compilers. */
32201 #ifdef __STDC__
32202 # include <limits.h>
32203 #else
32204 # include <assert.h>
32205 #endif
32207 #undef $ac_func
32209 /* Override any GCC internal prototype to avoid an error.
32210 Use char because int might match the return type of a GCC
32211 builtin and then its argument prototype would still apply. */
32212 #ifdef __cplusplus
32213 extern "C"
32214 #endif
32215 char $ac_func ();
32216 /* The GNU C library defines this for functions which it implements
32217 to always fail with ENOSYS. Some functions are actually named
32218 something starting with __ and the normal name is an alias. */
32219 #if defined __stub_$ac_func || defined __stub___$ac_func
32220 choke me
32221 #endif
32224 main ()
32226 return $ac_func ();
32228 return 0;
32230 _ACEOF
32231 rm -f conftest.$ac_objext conftest$ac_exeext
32232 if { (ac_try="$ac_link"
32233 case "(($ac_try" in
32234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32235 *) ac_try_echo=$ac_try;;
32236 esac
32237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32238 (eval "$ac_link") 2>conftest.er1
32239 ac_status=$?
32240 grep -v '^ *+' conftest.er1 >conftest.err
32241 rm -f conftest.er1
32242 cat conftest.err >&5
32243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244 (exit $ac_status); } &&
32245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32246 { (case "(($ac_try" in
32247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32248 *) ac_try_echo=$ac_try;;
32249 esac
32250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32251 (eval "$ac_try") 2>&5
32252 ac_status=$?
32253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); }; } &&
32255 { ac_try='test -s conftest$ac_exeext'
32256 { (case "(($ac_try" in
32257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258 *) ac_try_echo=$ac_try;;
32259 esac
32260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261 (eval "$ac_try") 2>&5
32262 ac_status=$?
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); }; }; then
32265 eval "$as_ac_var=yes"
32266 else
32267 echo "$as_me: failed program was:" >&5
32268 sed 's/^/| /' conftest.$ac_ext >&5
32270 eval "$as_ac_var=no"
32273 rm -f core conftest.err conftest.$ac_objext \
32274 conftest$ac_exeext conftest.$ac_ext
32276 ac_res=`eval echo '${'$as_ac_var'}'`
32277 { echo "$as_me:$LINENO: result: $ac_res" >&5
32278 echo "${ECHO_T}$ac_res" >&6; }
32279 if test `eval echo '${'$as_ac_var'}'` = yes; then
32280 cat >>confdefs.h <<_ACEOF
32281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32282 _ACEOF
32285 done
32290 for ac_func in strerror strerror_r strerror_s
32292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32293 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32295 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32296 echo $ECHO_N "(cached) $ECHO_C" >&6
32297 else
32298 cat >conftest.$ac_ext <<_ACEOF
32299 /* confdefs.h. */
32300 _ACEOF
32301 cat confdefs.h >>conftest.$ac_ext
32302 cat >>conftest.$ac_ext <<_ACEOF
32303 /* end confdefs.h. */
32304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32306 #define $ac_func innocuous_$ac_func
32308 /* System header to define __stub macros and hopefully few prototypes,
32309 which can conflict with char $ac_func (); below.
32310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32311 <limits.h> exists even on freestanding compilers. */
32313 #ifdef __STDC__
32314 # include <limits.h>
32315 #else
32316 # include <assert.h>
32317 #endif
32319 #undef $ac_func
32321 /* Override any GCC internal prototype to avoid an error.
32322 Use char because int might match the return type of a GCC
32323 builtin and then its argument prototype would still apply. */
32324 #ifdef __cplusplus
32325 extern "C"
32326 #endif
32327 char $ac_func ();
32328 /* The GNU C library defines this for functions which it implements
32329 to always fail with ENOSYS. Some functions are actually named
32330 something starting with __ and the normal name is an alias. */
32331 #if defined __stub_$ac_func || defined __stub___$ac_func
32332 choke me
32333 #endif
32336 main ()
32338 return $ac_func ();
32340 return 0;
32342 _ACEOF
32343 rm -f conftest.$ac_objext conftest$ac_exeext
32344 if { (ac_try="$ac_link"
32345 case "(($ac_try" in
32346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347 *) ac_try_echo=$ac_try;;
32348 esac
32349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350 (eval "$ac_link") 2>conftest.er1
32351 ac_status=$?
32352 grep -v '^ *+' conftest.er1 >conftest.err
32353 rm -f conftest.er1
32354 cat conftest.err >&5
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); } &&
32357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32358 { (case "(($ac_try" in
32359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360 *) ac_try_echo=$ac_try;;
32361 esac
32362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363 (eval "$ac_try") 2>&5
32364 ac_status=$?
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); }; } &&
32367 { ac_try='test -s conftest$ac_exeext'
32368 { (case "(($ac_try" in
32369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370 *) ac_try_echo=$ac_try;;
32371 esac
32372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373 (eval "$ac_try") 2>&5
32374 ac_status=$?
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); }; }; then
32377 eval "$as_ac_var=yes"
32378 else
32379 echo "$as_me: failed program was:" >&5
32380 sed 's/^/| /' conftest.$ac_ext >&5
32382 eval "$as_ac_var=no"
32385 rm -f core conftest.err conftest.$ac_objext \
32386 conftest$ac_exeext conftest.$ac_ext
32388 ac_res=`eval echo '${'$as_ac_var'}'`
32389 { echo "$as_me:$LINENO: result: $ac_res" >&5
32390 echo "${ECHO_T}$ac_res" >&6; }
32391 if test `eval echo '${'$as_ac_var'}'` = yes; then
32392 cat >>confdefs.h <<_ACEOF
32393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32394 _ACEOF
32397 done
32403 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32409 echo $ECHO_N "(cached) $ECHO_C" >&6
32410 else
32411 cat >conftest.$ac_ext <<_ACEOF
32412 /* confdefs.h. */
32413 _ACEOF
32414 cat confdefs.h >>conftest.$ac_ext
32415 cat >>conftest.$ac_ext <<_ACEOF
32416 /* end confdefs.h. */
32417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32419 #define $ac_func innocuous_$ac_func
32421 /* System header to define __stub macros and hopefully few prototypes,
32422 which can conflict with char $ac_func (); below.
32423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32424 <limits.h> exists even on freestanding compilers. */
32426 #ifdef __STDC__
32427 # include <limits.h>
32428 #else
32429 # include <assert.h>
32430 #endif
32432 #undef $ac_func
32434 /* Override any GCC internal prototype to avoid an error.
32435 Use char because int might match the return type of a GCC
32436 builtin and then its argument prototype would still apply. */
32437 #ifdef __cplusplus
32438 extern "C"
32439 #endif
32440 char $ac_func ();
32441 /* The GNU C library defines this for functions which it implements
32442 to always fail with ENOSYS. Some functions are actually named
32443 something starting with __ and the normal name is an alias. */
32444 #if defined __stub_$ac_func || defined __stub___$ac_func
32445 choke me
32446 #endif
32449 main ()
32451 return $ac_func ();
32453 return 0;
32455 _ACEOF
32456 rm -f conftest.$ac_objext conftest$ac_exeext
32457 if { (ac_try="$ac_link"
32458 case "(($ac_try" in
32459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32460 *) ac_try_echo=$ac_try;;
32461 esac
32462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32463 (eval "$ac_link") 2>conftest.er1
32464 ac_status=$?
32465 grep -v '^ *+' conftest.er1 >conftest.err
32466 rm -f conftest.er1
32467 cat conftest.err >&5
32468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32469 (exit $ac_status); } &&
32470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32471 { (case "(($ac_try" in
32472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32473 *) ac_try_echo=$ac_try;;
32474 esac
32475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32476 (eval "$ac_try") 2>&5
32477 ac_status=$?
32478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32479 (exit $ac_status); }; } &&
32480 { ac_try='test -s conftest$ac_exeext'
32481 { (case "(($ac_try" in
32482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32483 *) ac_try_echo=$ac_try;;
32484 esac
32485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32486 (eval "$ac_try") 2>&5
32487 ac_status=$?
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); }; }; then
32490 eval "$as_ac_var=yes"
32491 else
32492 echo "$as_me: failed program was:" >&5
32493 sed 's/^/| /' conftest.$ac_ext >&5
32495 eval "$as_ac_var=no"
32498 rm -f core conftest.err conftest.$ac_objext \
32499 conftest$ac_exeext conftest.$ac_ext
32501 ac_res=`eval echo '${'$as_ac_var'}'`
32502 { echo "$as_me:$LINENO: result: $ac_res" >&5
32503 echo "${ECHO_T}$ac_res" >&6; }
32504 if test `eval echo '${'$as_ac_var'}'` = yes; then
32505 cat >>confdefs.h <<_ACEOF
32506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32507 _ACEOF
32510 done
32516 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32522 echo $ECHO_N "(cached) $ECHO_C" >&6
32523 else
32524 cat >conftest.$ac_ext <<_ACEOF
32525 /* confdefs.h. */
32526 _ACEOF
32527 cat confdefs.h >>conftest.$ac_ext
32528 cat >>conftest.$ac_ext <<_ACEOF
32529 /* end confdefs.h. */
32530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32532 #define $ac_func innocuous_$ac_func
32534 /* System header to define __stub macros and hopefully few prototypes,
32535 which can conflict with char $ac_func (); below.
32536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32537 <limits.h> exists even on freestanding compilers. */
32539 #ifdef __STDC__
32540 # include <limits.h>
32541 #else
32542 # include <assert.h>
32543 #endif
32545 #undef $ac_func
32547 /* Override any GCC internal prototype to avoid an error.
32548 Use char because int might match the return type of a GCC
32549 builtin and then its argument prototype would still apply. */
32550 #ifdef __cplusplus
32551 extern "C"
32552 #endif
32553 char $ac_func ();
32554 /* The GNU C library defines this for functions which it implements
32555 to always fail with ENOSYS. Some functions are actually named
32556 something starting with __ and the normal name is an alias. */
32557 #if defined __stub_$ac_func || defined __stub___$ac_func
32558 choke me
32559 #endif
32562 main ()
32564 return $ac_func ();
32566 return 0;
32568 _ACEOF
32569 rm -f conftest.$ac_objext conftest$ac_exeext
32570 if { (ac_try="$ac_link"
32571 case "(($ac_try" in
32572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573 *) ac_try_echo=$ac_try;;
32574 esac
32575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576 (eval "$ac_link") 2>conftest.er1
32577 ac_status=$?
32578 grep -v '^ *+' conftest.er1 >conftest.err
32579 rm -f conftest.er1
32580 cat conftest.err >&5
32581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582 (exit $ac_status); } &&
32583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32584 { (case "(($ac_try" in
32585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32586 *) ac_try_echo=$ac_try;;
32587 esac
32588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32589 (eval "$ac_try") 2>&5
32590 ac_status=$?
32591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592 (exit $ac_status); }; } &&
32593 { ac_try='test -s conftest$ac_exeext'
32594 { (case "(($ac_try" in
32595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596 *) ac_try_echo=$ac_try;;
32597 esac
32598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32599 (eval "$ac_try") 2>&5
32600 ac_status=$?
32601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602 (exit $ac_status); }; }; then
32603 eval "$as_ac_var=yes"
32604 else
32605 echo "$as_me: failed program was:" >&5
32606 sed 's/^/| /' conftest.$ac_ext >&5
32608 eval "$as_ac_var=no"
32611 rm -f core conftest.err conftest.$ac_objext \
32612 conftest$ac_exeext conftest.$ac_ext
32614 ac_res=`eval echo '${'$as_ac_var'}'`
32615 { echo "$as_me:$LINENO: result: $ac_res" >&5
32616 echo "${ECHO_T}$ac_res" >&6; }
32617 if test `eval echo '${'$as_ac_var'}'` = yes; then
32618 cat >>confdefs.h <<_ACEOF
32619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32620 _ACEOF
32623 done
32625 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32626 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32627 if test "${llvm_cv_c_printf_a+set}" = set; then
32628 echo $ECHO_N "(cached) $ECHO_C" >&6
32629 else
32630 ac_ext=c
32631 ac_cpp='$CPP $CPPFLAGS'
32632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32636 if test "$cross_compiling" = yes; then
32637 llvmac_cv_c_printf_a=no
32638 else
32639 cat >conftest.$ac_ext <<_ACEOF
32641 /* confdefs.h. */
32642 _ACEOF
32643 cat confdefs.h >>conftest.$ac_ext
32644 cat >>conftest.$ac_ext <<_ACEOF
32645 /* end confdefs.h. */
32647 #include <stdio.h>
32648 #include <stdlib.h>
32651 main ()
32654 volatile double A, B;
32655 char Buffer[100];
32656 A = 1;
32657 A /= 10.0;
32658 sprintf(Buffer, "%a", A);
32659 B = atof(Buffer);
32660 if (A != B)
32661 return (1);
32662 if (A != 0x1.999999999999ap-4)
32663 return (1);
32664 return (0);
32666 return 0;
32668 _ACEOF
32669 rm -f conftest$ac_exeext
32670 if { (ac_try="$ac_link"
32671 case "(($ac_try" in
32672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32673 *) ac_try_echo=$ac_try;;
32674 esac
32675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32676 (eval "$ac_link") 2>&5
32677 ac_status=$?
32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32680 { (case "(($ac_try" in
32681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682 *) ac_try_echo=$ac_try;;
32683 esac
32684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685 (eval "$ac_try") 2>&5
32686 ac_status=$?
32687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688 (exit $ac_status); }; }; then
32689 llvm_cv_c_printf_a=yes
32690 else
32691 echo "$as_me: program exited with status $ac_status" >&5
32692 echo "$as_me: failed program was:" >&5
32693 sed 's/^/| /' conftest.$ac_ext >&5
32695 ( exit $ac_status )
32696 llvmac_cv_c_printf_a=no
32698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32702 ac_ext=c
32703 ac_cpp='$CPP $CPPFLAGS'
32704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32709 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32710 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32711 if test "$llvm_cv_c_printf_a" = "yes"; then
32713 cat >>confdefs.h <<\_ACEOF
32714 #define HAVE_PRINTF_A 1
32715 _ACEOF
32719 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32720 # for constant arguments. Useless!
32721 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32722 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32723 if test "${ac_cv_working_alloca_h+set}" = set; then
32724 echo $ECHO_N "(cached) $ECHO_C" >&6
32725 else
32726 cat >conftest.$ac_ext <<_ACEOF
32727 /* confdefs.h. */
32728 _ACEOF
32729 cat confdefs.h >>conftest.$ac_ext
32730 cat >>conftest.$ac_ext <<_ACEOF
32731 /* end confdefs.h. */
32732 #include <alloca.h>
32734 main ()
32736 char *p = (char *) alloca (2 * sizeof (int));
32737 if (p) return 0;
32739 return 0;
32741 _ACEOF
32742 rm -f conftest.$ac_objext conftest$ac_exeext
32743 if { (ac_try="$ac_link"
32744 case "(($ac_try" in
32745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746 *) ac_try_echo=$ac_try;;
32747 esac
32748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749 (eval "$ac_link") 2>conftest.er1
32750 ac_status=$?
32751 grep -v '^ *+' conftest.er1 >conftest.err
32752 rm -f conftest.er1
32753 cat conftest.err >&5
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); } &&
32756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32757 { (case "(($ac_try" in
32758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32759 *) ac_try_echo=$ac_try;;
32760 esac
32761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32762 (eval "$ac_try") 2>&5
32763 ac_status=$?
32764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765 (exit $ac_status); }; } &&
32766 { ac_try='test -s conftest$ac_exeext'
32767 { (case "(($ac_try" in
32768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769 *) ac_try_echo=$ac_try;;
32770 esac
32771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772 (eval "$ac_try") 2>&5
32773 ac_status=$?
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; }; then
32776 ac_cv_working_alloca_h=yes
32777 else
32778 echo "$as_me: failed program was:" >&5
32779 sed 's/^/| /' conftest.$ac_ext >&5
32781 ac_cv_working_alloca_h=no
32784 rm -f core conftest.err conftest.$ac_objext \
32785 conftest$ac_exeext conftest.$ac_ext
32787 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32788 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32789 if test $ac_cv_working_alloca_h = yes; then
32791 cat >>confdefs.h <<\_ACEOF
32792 #define HAVE_ALLOCA_H 1
32793 _ACEOF
32797 { echo "$as_me:$LINENO: checking for alloca" >&5
32798 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32799 if test "${ac_cv_func_alloca_works+set}" = set; then
32800 echo $ECHO_N "(cached) $ECHO_C" >&6
32801 else
32802 cat >conftest.$ac_ext <<_ACEOF
32803 /* confdefs.h. */
32804 _ACEOF
32805 cat confdefs.h >>conftest.$ac_ext
32806 cat >>conftest.$ac_ext <<_ACEOF
32807 /* end confdefs.h. */
32808 #ifdef __GNUC__
32809 # define alloca __builtin_alloca
32810 #else
32811 # ifdef _MSC_VER
32812 # include <malloc.h>
32813 # define alloca _alloca
32814 # else
32815 # if HAVE_ALLOCA_H
32816 # include <alloca.h>
32817 # else
32818 # ifdef _AIX
32819 #pragma alloca
32820 # else
32821 # ifndef alloca /* predefined by HP cc +Olibcalls */
32822 char *alloca ();
32823 # endif
32824 # endif
32825 # endif
32826 # endif
32827 #endif
32830 main ()
32832 char *p = (char *) alloca (1);
32833 if (p) return 0;
32835 return 0;
32837 _ACEOF
32838 rm -f conftest.$ac_objext conftest$ac_exeext
32839 if { (ac_try="$ac_link"
32840 case "(($ac_try" in
32841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32842 *) ac_try_echo=$ac_try;;
32843 esac
32844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32845 (eval "$ac_link") 2>conftest.er1
32846 ac_status=$?
32847 grep -v '^ *+' conftest.er1 >conftest.err
32848 rm -f conftest.er1
32849 cat conftest.err >&5
32850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851 (exit $ac_status); } &&
32852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32853 { (case "(($ac_try" in
32854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32855 *) ac_try_echo=$ac_try;;
32856 esac
32857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32858 (eval "$ac_try") 2>&5
32859 ac_status=$?
32860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861 (exit $ac_status); }; } &&
32862 { ac_try='test -s conftest$ac_exeext'
32863 { (case "(($ac_try" in
32864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32865 *) ac_try_echo=$ac_try;;
32866 esac
32867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32868 (eval "$ac_try") 2>&5
32869 ac_status=$?
32870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32871 (exit $ac_status); }; }; then
32872 ac_cv_func_alloca_works=yes
32873 else
32874 echo "$as_me: failed program was:" >&5
32875 sed 's/^/| /' conftest.$ac_ext >&5
32877 ac_cv_func_alloca_works=no
32880 rm -f core conftest.err conftest.$ac_objext \
32881 conftest$ac_exeext conftest.$ac_ext
32883 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32884 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32886 if test $ac_cv_func_alloca_works = yes; then
32888 cat >>confdefs.h <<\_ACEOF
32889 #define HAVE_ALLOCA 1
32890 _ACEOF
32892 else
32893 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32894 # that cause trouble. Some versions do not even contain alloca or
32895 # contain a buggy version. If you still want to use their alloca,
32896 # use ar to extract alloca.o from them instead of compiling alloca.c.
32898 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32900 cat >>confdefs.h <<\_ACEOF
32901 #define C_ALLOCA 1
32902 _ACEOF
32905 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32906 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32907 if test "${ac_cv_os_cray+set}" = set; then
32908 echo $ECHO_N "(cached) $ECHO_C" >&6
32909 else
32910 cat >conftest.$ac_ext <<_ACEOF
32911 /* confdefs.h. */
32912 _ACEOF
32913 cat confdefs.h >>conftest.$ac_ext
32914 cat >>conftest.$ac_ext <<_ACEOF
32915 /* end confdefs.h. */
32916 #if defined CRAY && ! defined CRAY2
32917 webecray
32918 #else
32919 wenotbecray
32920 #endif
32922 _ACEOF
32923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32924 $EGREP "webecray" >/dev/null 2>&1; then
32925 ac_cv_os_cray=yes
32926 else
32927 ac_cv_os_cray=no
32929 rm -f conftest*
32932 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32933 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32934 if test $ac_cv_os_cray = yes; then
32935 for ac_func in _getb67 GETB67 getb67; do
32936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32940 echo $ECHO_N "(cached) $ECHO_C" >&6
32941 else
32942 cat >conftest.$ac_ext <<_ACEOF
32943 /* confdefs.h. */
32944 _ACEOF
32945 cat confdefs.h >>conftest.$ac_ext
32946 cat >>conftest.$ac_ext <<_ACEOF
32947 /* end confdefs.h. */
32948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32950 #define $ac_func innocuous_$ac_func
32952 /* System header to define __stub macros and hopefully few prototypes,
32953 which can conflict with char $ac_func (); below.
32954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32955 <limits.h> exists even on freestanding compilers. */
32957 #ifdef __STDC__
32958 # include <limits.h>
32959 #else
32960 # include <assert.h>
32961 #endif
32963 #undef $ac_func
32965 /* Override any GCC internal prototype to avoid an error.
32966 Use char because int might match the return type of a GCC
32967 builtin and then its argument prototype would still apply. */
32968 #ifdef __cplusplus
32969 extern "C"
32970 #endif
32971 char $ac_func ();
32972 /* The GNU C library defines this for functions which it implements
32973 to always fail with ENOSYS. Some functions are actually named
32974 something starting with __ and the normal name is an alias. */
32975 #if defined __stub_$ac_func || defined __stub___$ac_func
32976 choke me
32977 #endif
32980 main ()
32982 return $ac_func ();
32984 return 0;
32986 _ACEOF
32987 rm -f conftest.$ac_objext conftest$ac_exeext
32988 if { (ac_try="$ac_link"
32989 case "(($ac_try" in
32990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32991 *) ac_try_echo=$ac_try;;
32992 esac
32993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32994 (eval "$ac_link") 2>conftest.er1
32995 ac_status=$?
32996 grep -v '^ *+' conftest.er1 >conftest.err
32997 rm -f conftest.er1
32998 cat conftest.err >&5
32999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000 (exit $ac_status); } &&
33001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33002 { (case "(($ac_try" in
33003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33004 *) ac_try_echo=$ac_try;;
33005 esac
33006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33007 (eval "$ac_try") 2>&5
33008 ac_status=$?
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); }; } &&
33011 { ac_try='test -s conftest$ac_exeext'
33012 { (case "(($ac_try" in
33013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014 *) ac_try_echo=$ac_try;;
33015 esac
33016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017 (eval "$ac_try") 2>&5
33018 ac_status=$?
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); }; }; then
33021 eval "$as_ac_var=yes"
33022 else
33023 echo "$as_me: failed program was:" >&5
33024 sed 's/^/| /' conftest.$ac_ext >&5
33026 eval "$as_ac_var=no"
33029 rm -f core conftest.err conftest.$ac_objext \
33030 conftest$ac_exeext conftest.$ac_ext
33032 ac_res=`eval echo '${'$as_ac_var'}'`
33033 { echo "$as_me:$LINENO: result: $ac_res" >&5
33034 echo "${ECHO_T}$ac_res" >&6; }
33035 if test `eval echo '${'$as_ac_var'}'` = yes; then
33037 cat >>confdefs.h <<_ACEOF
33038 #define CRAY_STACKSEG_END $ac_func
33039 _ACEOF
33041 break
33044 done
33047 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33048 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33049 if test "${ac_cv_c_stack_direction+set}" = set; then
33050 echo $ECHO_N "(cached) $ECHO_C" >&6
33051 else
33052 if test "$cross_compiling" = yes; then
33053 ac_cv_c_stack_direction=0
33054 else
33055 cat >conftest.$ac_ext <<_ACEOF
33056 /* confdefs.h. */
33057 _ACEOF
33058 cat confdefs.h >>conftest.$ac_ext
33059 cat >>conftest.$ac_ext <<_ACEOF
33060 /* end confdefs.h. */
33061 $ac_includes_default
33063 find_stack_direction ()
33065 static char *addr = 0;
33066 auto char dummy;
33067 if (addr == 0)
33069 addr = &dummy;
33070 return find_stack_direction ();
33072 else
33073 return (&dummy > addr) ? 1 : -1;
33077 main ()
33079 return find_stack_direction () < 0;
33081 _ACEOF
33082 rm -f conftest$ac_exeext
33083 if { (ac_try="$ac_link"
33084 case "(($ac_try" in
33085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33086 *) ac_try_echo=$ac_try;;
33087 esac
33088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33089 (eval "$ac_link") 2>&5
33090 ac_status=$?
33091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33093 { (case "(($ac_try" in
33094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33095 *) ac_try_echo=$ac_try;;
33096 esac
33097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33098 (eval "$ac_try") 2>&5
33099 ac_status=$?
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); }; }; then
33102 ac_cv_c_stack_direction=1
33103 else
33104 echo "$as_me: program exited with status $ac_status" >&5
33105 echo "$as_me: failed program was:" >&5
33106 sed 's/^/| /' conftest.$ac_ext >&5
33108 ( exit $ac_status )
33109 ac_cv_c_stack_direction=-1
33111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33116 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33117 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33119 cat >>confdefs.h <<_ACEOF
33120 #define STACK_DIRECTION $ac_cv_c_stack_direction
33121 _ACEOF
33127 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33128 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33129 if test "${ac_cv_func_rand48+set}" = set; then
33130 echo $ECHO_N "(cached) $ECHO_C" >&6
33131 else
33132 ac_ext=cpp
33133 ac_cpp='$CXXCPP $CPPFLAGS'
33134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33138 cat >conftest.$ac_ext <<_ACEOF
33139 /* confdefs.h. */
33140 _ACEOF
33141 cat confdefs.h >>conftest.$ac_ext
33142 cat >>conftest.$ac_ext <<_ACEOF
33143 /* end confdefs.h. */
33144 #include <stdlib.h>
33146 main ()
33148 srand48(0);lrand48();drand48();
33150 return 0;
33152 _ACEOF
33153 rm -f conftest.$ac_objext
33154 if { (ac_try="$ac_compile"
33155 case "(($ac_try" in
33156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33157 *) ac_try_echo=$ac_try;;
33158 esac
33159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33160 (eval "$ac_compile") 2>conftest.er1
33161 ac_status=$?
33162 grep -v '^ *+' conftest.er1 >conftest.err
33163 rm -f conftest.er1
33164 cat conftest.err >&5
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); } &&
33167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33168 { (case "(($ac_try" in
33169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170 *) ac_try_echo=$ac_try;;
33171 esac
33172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173 (eval "$ac_try") 2>&5
33174 ac_status=$?
33175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 (exit $ac_status); }; } &&
33177 { ac_try='test -s conftest.$ac_objext'
33178 { (case "(($ac_try" in
33179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180 *) ac_try_echo=$ac_try;;
33181 esac
33182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183 (eval "$ac_try") 2>&5
33184 ac_status=$?
33185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186 (exit $ac_status); }; }; then
33187 ac_cv_func_rand48=yes
33188 else
33189 echo "$as_me: failed program was:" >&5
33190 sed 's/^/| /' conftest.$ac_ext >&5
33192 ac_cv_func_rand48=no
33195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33196 ac_ext=c
33197 ac_cpp='$CPP $CPPFLAGS'
33198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33203 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33204 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33206 if test "$ac_cv_func_rand48" = "yes" ; then
33208 cat >>confdefs.h <<\_ACEOF
33209 #define HAVE_RAND48 1
33210 _ACEOF
33215 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33216 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33217 if test "${ac_cv_cxx_namespaces+set}" = set; then
33218 echo $ECHO_N "(cached) $ECHO_C" >&6
33219 else
33220 ac_ext=cpp
33221 ac_cpp='$CXXCPP $CPPFLAGS'
33222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33226 cat >conftest.$ac_ext <<_ACEOF
33227 /* confdefs.h. */
33228 _ACEOF
33229 cat confdefs.h >>conftest.$ac_ext
33230 cat >>conftest.$ac_ext <<_ACEOF
33231 /* end confdefs.h. */
33232 namespace Outer { namespace Inner { int i = 0; }}
33234 main ()
33236 using namespace Outer::Inner; return i;
33238 return 0;
33240 _ACEOF
33241 rm -f conftest.$ac_objext
33242 if { (ac_try="$ac_compile"
33243 case "(($ac_try" in
33244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33245 *) ac_try_echo=$ac_try;;
33246 esac
33247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33248 (eval "$ac_compile") 2>conftest.er1
33249 ac_status=$?
33250 grep -v '^ *+' conftest.er1 >conftest.err
33251 rm -f conftest.er1
33252 cat conftest.err >&5
33253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254 (exit $ac_status); } &&
33255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33256 { (case "(($ac_try" in
33257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33258 *) ac_try_echo=$ac_try;;
33259 esac
33260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33261 (eval "$ac_try") 2>&5
33262 ac_status=$?
33263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264 (exit $ac_status); }; } &&
33265 { ac_try='test -s conftest.$ac_objext'
33266 { (case "(($ac_try" in
33267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268 *) ac_try_echo=$ac_try;;
33269 esac
33270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271 (eval "$ac_try") 2>&5
33272 ac_status=$?
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); }; }; then
33275 ac_cv_cxx_namespaces=yes
33276 else
33277 echo "$as_me: failed program was:" >&5
33278 sed 's/^/| /' conftest.$ac_ext >&5
33280 ac_cv_cxx_namespaces=no
33283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33284 ac_ext=c
33285 ac_cpp='$CPP $CPPFLAGS'
33286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33292 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33293 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33294 if test "$ac_cv_cxx_namespaces" = yes; then
33296 cat >>confdefs.h <<\_ACEOF
33297 #define HAVE_NAMESPACES
33298 _ACEOF
33302 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33303 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33304 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33305 echo $ECHO_N "(cached) $ECHO_C" >&6
33306 else
33308 ac_ext=cpp
33309 ac_cpp='$CXXCPP $CPPFLAGS'
33310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33314 cat >conftest.$ac_ext <<_ACEOF
33315 /* confdefs.h. */
33316 _ACEOF
33317 cat confdefs.h >>conftest.$ac_ext
33318 cat >>conftest.$ac_ext <<_ACEOF
33319 /* end confdefs.h. */
33320 #include <iterator>
33321 #ifdef HAVE_NAMESPACES
33322 using namespace std;
33323 #endif
33325 main ()
33327 iterator<int,int,int> t; return 0;
33329 return 0;
33331 _ACEOF
33332 rm -f conftest.$ac_objext
33333 if { (ac_try="$ac_compile"
33334 case "(($ac_try" in
33335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33336 *) ac_try_echo=$ac_try;;
33337 esac
33338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33339 (eval "$ac_compile") 2>conftest.er1
33340 ac_status=$?
33341 grep -v '^ *+' conftest.er1 >conftest.err
33342 rm -f conftest.er1
33343 cat conftest.err >&5
33344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33345 (exit $ac_status); } &&
33346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33347 { (case "(($ac_try" in
33348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33349 *) ac_try_echo=$ac_try;;
33350 esac
33351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33352 (eval "$ac_try") 2>&5
33353 ac_status=$?
33354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33355 (exit $ac_status); }; } &&
33356 { ac_try='test -s conftest.$ac_objext'
33357 { (case "(($ac_try" in
33358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33359 *) ac_try_echo=$ac_try;;
33360 esac
33361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33362 (eval "$ac_try") 2>&5
33363 ac_status=$?
33364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365 (exit $ac_status); }; }; then
33366 ac_cv_cxx_have_std_iterator=yes
33367 else
33368 echo "$as_me: failed program was:" >&5
33369 sed 's/^/| /' conftest.$ac_ext >&5
33371 ac_cv_cxx_have_std_iterator=no
33374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33375 ac_ext=c
33376 ac_cpp='$CPP $CPPFLAGS'
33377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33383 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33384 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33385 if test "$ac_cv_cxx_have_std_iterator" = yes
33386 then
33388 cat >>confdefs.h <<\_ACEOF
33389 #define HAVE_STD_ITERATOR 1
33390 _ACEOF
33392 else
33394 cat >>confdefs.h <<\_ACEOF
33395 #define HAVE_STD_ITERATOR 0
33396 _ACEOF
33400 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33401 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33402 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33403 echo $ECHO_N "(cached) $ECHO_C" >&6
33404 else
33406 ac_ext=cpp
33407 ac_cpp='$CXXCPP $CPPFLAGS'
33408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33412 cat >conftest.$ac_ext <<_ACEOF
33413 /* confdefs.h. */
33414 _ACEOF
33415 cat confdefs.h >>conftest.$ac_ext
33416 cat >>conftest.$ac_ext <<_ACEOF
33417 /* end confdefs.h. */
33418 #include <iterator>
33419 #ifdef HAVE_NAMESPACES
33420 using namespace std;
33421 #endif
33423 main ()
33425 bidirectional_iterator<int,int> t; return 0;
33427 return 0;
33429 _ACEOF
33430 rm -f conftest.$ac_objext
33431 if { (ac_try="$ac_compile"
33432 case "(($ac_try" in
33433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33434 *) ac_try_echo=$ac_try;;
33435 esac
33436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33437 (eval "$ac_compile") 2>conftest.er1
33438 ac_status=$?
33439 grep -v '^ *+' conftest.er1 >conftest.err
33440 rm -f conftest.er1
33441 cat conftest.err >&5
33442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33443 (exit $ac_status); } &&
33444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33445 { (case "(($ac_try" in
33446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33447 *) ac_try_echo=$ac_try;;
33448 esac
33449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33450 (eval "$ac_try") 2>&5
33451 ac_status=$?
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); }; } &&
33454 { ac_try='test -s conftest.$ac_objext'
33455 { (case "(($ac_try" in
33456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33457 *) ac_try_echo=$ac_try;;
33458 esac
33459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33460 (eval "$ac_try") 2>&5
33461 ac_status=$?
33462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33463 (exit $ac_status); }; }; then
33464 ac_cv_cxx_have_bi_iterator=yes
33465 else
33466 echo "$as_me: failed program was:" >&5
33467 sed 's/^/| /' conftest.$ac_ext >&5
33469 ac_cv_cxx_have_bi_iterator=no
33472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33473 ac_ext=c
33474 ac_cpp='$CPP $CPPFLAGS'
33475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33481 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33482 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33483 if test "$ac_cv_cxx_have_bi_iterator" = yes
33484 then
33486 cat >>confdefs.h <<\_ACEOF
33487 #define HAVE_BI_ITERATOR 1
33488 _ACEOF
33490 else
33492 cat >>confdefs.h <<\_ACEOF
33493 #define HAVE_BI_ITERATOR 0
33494 _ACEOF
33498 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33499 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33500 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33501 echo $ECHO_N "(cached) $ECHO_C" >&6
33502 else
33504 ac_ext=cpp
33505 ac_cpp='$CXXCPP $CPPFLAGS'
33506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33510 cat >conftest.$ac_ext <<_ACEOF
33511 /* confdefs.h. */
33512 _ACEOF
33513 cat confdefs.h >>conftest.$ac_ext
33514 cat >>conftest.$ac_ext <<_ACEOF
33515 /* end confdefs.h. */
33516 #include <iterator>
33517 #ifdef HAVE_NAMESPACES
33518 using namespace std;
33519 #endif
33521 main ()
33523 forward_iterator<int,int> t; return 0;
33525 return 0;
33527 _ACEOF
33528 rm -f conftest.$ac_objext
33529 if { (ac_try="$ac_compile"
33530 case "(($ac_try" in
33531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33532 *) ac_try_echo=$ac_try;;
33533 esac
33534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33535 (eval "$ac_compile") 2>conftest.er1
33536 ac_status=$?
33537 grep -v '^ *+' conftest.er1 >conftest.err
33538 rm -f conftest.er1
33539 cat conftest.err >&5
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); } &&
33542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33543 { (case "(($ac_try" in
33544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33545 *) ac_try_echo=$ac_try;;
33546 esac
33547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33548 (eval "$ac_try") 2>&5
33549 ac_status=$?
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); }; } &&
33552 { ac_try='test -s conftest.$ac_objext'
33553 { (case "(($ac_try" in
33554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555 *) ac_try_echo=$ac_try;;
33556 esac
33557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558 (eval "$ac_try") 2>&5
33559 ac_status=$?
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); }; }; then
33562 ac_cv_cxx_have_fwd_iterator=yes
33563 else
33564 echo "$as_me: failed program was:" >&5
33565 sed 's/^/| /' conftest.$ac_ext >&5
33567 ac_cv_cxx_have_fwd_iterator=no
33570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33571 ac_ext=c
33572 ac_cpp='$CPP $CPPFLAGS'
33573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33579 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33580 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33581 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33582 then
33584 cat >>confdefs.h <<\_ACEOF
33585 #define HAVE_FWD_ITERATOR 1
33586 _ACEOF
33588 else
33590 cat >>confdefs.h <<\_ACEOF
33591 #define HAVE_FWD_ITERATOR 0
33592 _ACEOF
33597 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33598 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33599 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33600 echo $ECHO_N "(cached) $ECHO_C" >&6
33601 else
33602 ac_ext=cpp
33603 ac_cpp='$CXXCPP $CPPFLAGS'
33604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33608 cat >conftest.$ac_ext <<_ACEOF
33609 /* confdefs.h. */
33610 _ACEOF
33611 cat confdefs.h >>conftest.$ac_ext
33612 cat >>conftest.$ac_ext <<_ACEOF
33613 /* end confdefs.h. */
33614 #include <math.h>
33616 main ()
33618 float f; isnan(f);
33620 return 0;
33622 _ACEOF
33623 rm -f conftest.$ac_objext
33624 if { (ac_try="$ac_compile"
33625 case "(($ac_try" in
33626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33627 *) ac_try_echo=$ac_try;;
33628 esac
33629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33630 (eval "$ac_compile") 2>conftest.er1
33631 ac_status=$?
33632 grep -v '^ *+' conftest.er1 >conftest.err
33633 rm -f conftest.er1
33634 cat conftest.err >&5
33635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636 (exit $ac_status); } &&
33637 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33638 { (case "(($ac_try" in
33639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33640 *) ac_try_echo=$ac_try;;
33641 esac
33642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33643 (eval "$ac_try") 2>&5
33644 ac_status=$?
33645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33646 (exit $ac_status); }; } &&
33647 { ac_try='test -s conftest.$ac_objext'
33648 { (case "(($ac_try" in
33649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33650 *) ac_try_echo=$ac_try;;
33651 esac
33652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33653 (eval "$ac_try") 2>&5
33654 ac_status=$?
33655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33656 (exit $ac_status); }; }; then
33657 ac_cv_func_isnan_in_math_h=yes
33658 else
33659 echo "$as_me: failed program was:" >&5
33660 sed 's/^/| /' conftest.$ac_ext >&5
33662 ac_cv_func_isnan_in_math_h=no
33665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33666 ac_ext=c
33667 ac_cpp='$CPP $CPPFLAGS'
33668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33673 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33674 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33677 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33679 cat >>confdefs.h <<\_ACEOF
33680 #define HAVE_ISNAN_IN_MATH_H 1
33681 _ACEOF
33685 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33686 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33687 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33688 echo $ECHO_N "(cached) $ECHO_C" >&6
33689 else
33690 ac_ext=cpp
33691 ac_cpp='$CXXCPP $CPPFLAGS'
33692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33696 cat >conftest.$ac_ext <<_ACEOF
33697 /* confdefs.h. */
33698 _ACEOF
33699 cat confdefs.h >>conftest.$ac_ext
33700 cat >>conftest.$ac_ext <<_ACEOF
33701 /* end confdefs.h. */
33702 #include <cmath>
33704 main ()
33706 float f; isnan(f);
33708 return 0;
33710 _ACEOF
33711 rm -f conftest.$ac_objext
33712 if { (ac_try="$ac_compile"
33713 case "(($ac_try" in
33714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33715 *) ac_try_echo=$ac_try;;
33716 esac
33717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33718 (eval "$ac_compile") 2>conftest.er1
33719 ac_status=$?
33720 grep -v '^ *+' conftest.er1 >conftest.err
33721 rm -f conftest.er1
33722 cat conftest.err >&5
33723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724 (exit $ac_status); } &&
33725 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33726 { (case "(($ac_try" in
33727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33728 *) ac_try_echo=$ac_try;;
33729 esac
33730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33731 (eval "$ac_try") 2>&5
33732 ac_status=$?
33733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734 (exit $ac_status); }; } &&
33735 { ac_try='test -s conftest.$ac_objext'
33736 { (case "(($ac_try" in
33737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33738 *) ac_try_echo=$ac_try;;
33739 esac
33740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33741 (eval "$ac_try") 2>&5
33742 ac_status=$?
33743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744 (exit $ac_status); }; }; then
33745 ac_cv_func_isnan_in_cmath=yes
33746 else
33747 echo "$as_me: failed program was:" >&5
33748 sed 's/^/| /' conftest.$ac_ext >&5
33750 ac_cv_func_isnan_in_cmath=no
33753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33754 ac_ext=c
33755 ac_cpp='$CPP $CPPFLAGS'
33756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33761 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33762 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33764 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33766 cat >>confdefs.h <<\_ACEOF
33767 #define HAVE_ISNAN_IN_CMATH 1
33768 _ACEOF
33772 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33773 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33774 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33775 echo $ECHO_N "(cached) $ECHO_C" >&6
33776 else
33777 ac_ext=cpp
33778 ac_cpp='$CXXCPP $CPPFLAGS'
33779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33783 cat >conftest.$ac_ext <<_ACEOF
33784 /* confdefs.h. */
33785 _ACEOF
33786 cat confdefs.h >>conftest.$ac_ext
33787 cat >>conftest.$ac_ext <<_ACEOF
33788 /* end confdefs.h. */
33789 #include <cmath>
33791 main ()
33793 float f; std::isnan(f);
33795 return 0;
33797 _ACEOF
33798 rm -f conftest.$ac_objext
33799 if { (ac_try="$ac_compile"
33800 case "(($ac_try" in
33801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33802 *) ac_try_echo=$ac_try;;
33803 esac
33804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33805 (eval "$ac_compile") 2>conftest.er1
33806 ac_status=$?
33807 grep -v '^ *+' conftest.er1 >conftest.err
33808 rm -f conftest.er1
33809 cat conftest.err >&5
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); } &&
33812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33813 { (case "(($ac_try" in
33814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33815 *) ac_try_echo=$ac_try;;
33816 esac
33817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33818 (eval "$ac_try") 2>&5
33819 ac_status=$?
33820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821 (exit $ac_status); }; } &&
33822 { ac_try='test -s conftest.$ac_objext'
33823 { (case "(($ac_try" in
33824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33825 *) ac_try_echo=$ac_try;;
33826 esac
33827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33828 (eval "$ac_try") 2>&5
33829 ac_status=$?
33830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831 (exit $ac_status); }; }; then
33832 ac_cv_func_std_isnan_in_cmath=yes
33833 else
33834 echo "$as_me: failed program was:" >&5
33835 sed 's/^/| /' conftest.$ac_ext >&5
33837 ac_cv_func_std_isnan_in_cmath=no
33840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33841 ac_ext=c
33842 ac_cpp='$CPP $CPPFLAGS'
33843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33848 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33849 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33851 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33853 cat >>confdefs.h <<\_ACEOF
33854 #define HAVE_STD_ISNAN_IN_CMATH 1
33855 _ACEOF
33860 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33861 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33862 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33863 echo $ECHO_N "(cached) $ECHO_C" >&6
33864 else
33865 ac_ext=cpp
33866 ac_cpp='$CXXCPP $CPPFLAGS'
33867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33871 cat >conftest.$ac_ext <<_ACEOF
33872 /* confdefs.h. */
33873 _ACEOF
33874 cat confdefs.h >>conftest.$ac_ext
33875 cat >>conftest.$ac_ext <<_ACEOF
33876 /* end confdefs.h. */
33877 #include <math.h>
33879 main ()
33881 float f; isinf(f);
33883 return 0;
33885 _ACEOF
33886 rm -f conftest.$ac_objext
33887 if { (ac_try="$ac_compile"
33888 case "(($ac_try" in
33889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33890 *) ac_try_echo=$ac_try;;
33891 esac
33892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33893 (eval "$ac_compile") 2>conftest.er1
33894 ac_status=$?
33895 grep -v '^ *+' conftest.er1 >conftest.err
33896 rm -f conftest.er1
33897 cat conftest.err >&5
33898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33899 (exit $ac_status); } &&
33900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33901 { (case "(($ac_try" in
33902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33903 *) ac_try_echo=$ac_try;;
33904 esac
33905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33906 (eval "$ac_try") 2>&5
33907 ac_status=$?
33908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909 (exit $ac_status); }; } &&
33910 { ac_try='test -s conftest.$ac_objext'
33911 { (case "(($ac_try" in
33912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33913 *) ac_try_echo=$ac_try;;
33914 esac
33915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33916 (eval "$ac_try") 2>&5
33917 ac_status=$?
33918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919 (exit $ac_status); }; }; then
33920 ac_cv_func_isinf_in_math_h=yes
33921 else
33922 echo "$as_me: failed program was:" >&5
33923 sed 's/^/| /' conftest.$ac_ext >&5
33925 ac_cv_func_isinf_in_math_h=no
33928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33929 ac_ext=c
33930 ac_cpp='$CPP $CPPFLAGS'
33931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33936 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33937 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33939 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33941 cat >>confdefs.h <<\_ACEOF
33942 #define HAVE_ISINF_IN_MATH_H 1
33943 _ACEOF
33947 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33948 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33949 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33950 echo $ECHO_N "(cached) $ECHO_C" >&6
33951 else
33952 ac_ext=cpp
33953 ac_cpp='$CXXCPP $CPPFLAGS'
33954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33958 cat >conftest.$ac_ext <<_ACEOF
33959 /* confdefs.h. */
33960 _ACEOF
33961 cat confdefs.h >>conftest.$ac_ext
33962 cat >>conftest.$ac_ext <<_ACEOF
33963 /* end confdefs.h. */
33964 #include <cmath>
33966 main ()
33968 float f; isinf(f);
33970 return 0;
33972 _ACEOF
33973 rm -f conftest.$ac_objext
33974 if { (ac_try="$ac_compile"
33975 case "(($ac_try" in
33976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33977 *) ac_try_echo=$ac_try;;
33978 esac
33979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33980 (eval "$ac_compile") 2>conftest.er1
33981 ac_status=$?
33982 grep -v '^ *+' conftest.er1 >conftest.err
33983 rm -f conftest.er1
33984 cat conftest.err >&5
33985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986 (exit $ac_status); } &&
33987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33988 { (case "(($ac_try" in
33989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33990 *) ac_try_echo=$ac_try;;
33991 esac
33992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33993 (eval "$ac_try") 2>&5
33994 ac_status=$?
33995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996 (exit $ac_status); }; } &&
33997 { ac_try='test -s conftest.$ac_objext'
33998 { (case "(($ac_try" in
33999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34000 *) ac_try_echo=$ac_try;;
34001 esac
34002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34003 (eval "$ac_try") 2>&5
34004 ac_status=$?
34005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006 (exit $ac_status); }; }; then
34007 ac_cv_func_isinf_in_cmath=yes
34008 else
34009 echo "$as_me: failed program was:" >&5
34010 sed 's/^/| /' conftest.$ac_ext >&5
34012 ac_cv_func_isinf_in_cmath=no
34015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34016 ac_ext=c
34017 ac_cpp='$CPP $CPPFLAGS'
34018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34023 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34024 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34026 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34028 cat >>confdefs.h <<\_ACEOF
34029 #define HAVE_ISINF_IN_CMATH 1
34030 _ACEOF
34034 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34035 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34036 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34037 echo $ECHO_N "(cached) $ECHO_C" >&6
34038 else
34039 ac_ext=cpp
34040 ac_cpp='$CXXCPP $CPPFLAGS'
34041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34045 cat >conftest.$ac_ext <<_ACEOF
34046 /* confdefs.h. */
34047 _ACEOF
34048 cat confdefs.h >>conftest.$ac_ext
34049 cat >>conftest.$ac_ext <<_ACEOF
34050 /* end confdefs.h. */
34051 #include <cmath>
34053 main ()
34055 float f; std::isinf(f)}
34057 return 0;
34059 _ACEOF
34060 rm -f conftest.$ac_objext
34061 if { (ac_try="$ac_compile"
34062 case "(($ac_try" in
34063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34064 *) ac_try_echo=$ac_try;;
34065 esac
34066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34067 (eval "$ac_compile") 2>conftest.er1
34068 ac_status=$?
34069 grep -v '^ *+' conftest.er1 >conftest.err
34070 rm -f conftest.er1
34071 cat conftest.err >&5
34072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34073 (exit $ac_status); } &&
34074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34075 { (case "(($ac_try" in
34076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34077 *) ac_try_echo=$ac_try;;
34078 esac
34079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34080 (eval "$ac_try") 2>&5
34081 ac_status=$?
34082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083 (exit $ac_status); }; } &&
34084 { ac_try='test -s conftest.$ac_objext'
34085 { (case "(($ac_try" in
34086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34087 *) ac_try_echo=$ac_try;;
34088 esac
34089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34090 (eval "$ac_try") 2>&5
34091 ac_status=$?
34092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093 (exit $ac_status); }; }; then
34094 ac_cv_func_std_isinf_in_cmath=yes
34095 else
34096 echo "$as_me: failed program was:" >&5
34097 sed 's/^/| /' conftest.$ac_ext >&5
34099 ac_cv_func_std_isinf_in_cmath=no
34102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34103 ac_ext=c
34104 ac_cpp='$CPP $CPPFLAGS'
34105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34110 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34111 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34113 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34115 cat >>confdefs.h <<\_ACEOF
34116 #define HAVE_STD_ISINF_IN_CMATH 1
34117 _ACEOF
34121 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34122 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34123 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34124 echo $ECHO_N "(cached) $ECHO_C" >&6
34125 else
34126 ac_ext=cpp
34127 ac_cpp='$CXXCPP $CPPFLAGS'
34128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34132 cat >conftest.$ac_ext <<_ACEOF
34133 /* confdefs.h. */
34134 _ACEOF
34135 cat confdefs.h >>conftest.$ac_ext
34136 cat >>conftest.$ac_ext <<_ACEOF
34137 /* end confdefs.h. */
34138 #include <ieeefp.h>
34140 main ()
34142 float f; finite(f);
34144 return 0;
34146 _ACEOF
34147 rm -f conftest.$ac_objext
34148 if { (ac_try="$ac_compile"
34149 case "(($ac_try" in
34150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34151 *) ac_try_echo=$ac_try;;
34152 esac
34153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34154 (eval "$ac_compile") 2>conftest.er1
34155 ac_status=$?
34156 grep -v '^ *+' conftest.er1 >conftest.err
34157 rm -f conftest.er1
34158 cat conftest.err >&5
34159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34160 (exit $ac_status); } &&
34161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34162 { (case "(($ac_try" in
34163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34164 *) ac_try_echo=$ac_try;;
34165 esac
34166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34167 (eval "$ac_try") 2>&5
34168 ac_status=$?
34169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34170 (exit $ac_status); }; } &&
34171 { ac_try='test -s conftest.$ac_objext'
34172 { (case "(($ac_try" in
34173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34174 *) ac_try_echo=$ac_try;;
34175 esac
34176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34177 (eval "$ac_try") 2>&5
34178 ac_status=$?
34179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34180 (exit $ac_status); }; }; then
34181 ac_cv_func_finite_in_ieeefp_h=yes
34182 else
34183 echo "$as_me: failed program was:" >&5
34184 sed 's/^/| /' conftest.$ac_ext >&5
34186 ac_cv_func_finite_in_ieeefp_h=no
34189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34190 ac_ext=c
34191 ac_cpp='$CPP $CPPFLAGS'
34192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34197 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34198 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34200 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34202 cat >>confdefs.h <<\_ACEOF
34203 #define HAVE_FINITE_IN_IEEEFP_H 1
34204 _ACEOF
34210 if test "$llvm_cv_platform_type" = "Unix" ; then
34213 for ac_header in stdlib.h unistd.h
34215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34220 echo $ECHO_N "(cached) $ECHO_C" >&6
34222 ac_res=`eval echo '${'$as_ac_Header'}'`
34223 { echo "$as_me:$LINENO: result: $ac_res" >&5
34224 echo "${ECHO_T}$ac_res" >&6; }
34225 else
34226 # Is the header compilable?
34227 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34229 cat >conftest.$ac_ext <<_ACEOF
34230 /* confdefs.h. */
34231 _ACEOF
34232 cat confdefs.h >>conftest.$ac_ext
34233 cat >>conftest.$ac_ext <<_ACEOF
34234 /* end confdefs.h. */
34235 $ac_includes_default
34236 #include <$ac_header>
34237 _ACEOF
34238 rm -f conftest.$ac_objext
34239 if { (ac_try="$ac_compile"
34240 case "(($ac_try" in
34241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34242 *) ac_try_echo=$ac_try;;
34243 esac
34244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34245 (eval "$ac_compile") 2>conftest.er1
34246 ac_status=$?
34247 grep -v '^ *+' conftest.er1 >conftest.err
34248 rm -f conftest.er1
34249 cat conftest.err >&5
34250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34251 (exit $ac_status); } &&
34252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34253 { (case "(($ac_try" in
34254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34255 *) ac_try_echo=$ac_try;;
34256 esac
34257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34258 (eval "$ac_try") 2>&5
34259 ac_status=$?
34260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261 (exit $ac_status); }; } &&
34262 { ac_try='test -s conftest.$ac_objext'
34263 { (case "(($ac_try" in
34264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34265 *) ac_try_echo=$ac_try;;
34266 esac
34267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34268 (eval "$ac_try") 2>&5
34269 ac_status=$?
34270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271 (exit $ac_status); }; }; then
34272 ac_header_compiler=yes
34273 else
34274 echo "$as_me: failed program was:" >&5
34275 sed 's/^/| /' conftest.$ac_ext >&5
34277 ac_header_compiler=no
34280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34281 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34282 echo "${ECHO_T}$ac_header_compiler" >&6; }
34284 # Is the header present?
34285 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34287 cat >conftest.$ac_ext <<_ACEOF
34288 /* confdefs.h. */
34289 _ACEOF
34290 cat confdefs.h >>conftest.$ac_ext
34291 cat >>conftest.$ac_ext <<_ACEOF
34292 /* end confdefs.h. */
34293 #include <$ac_header>
34294 _ACEOF
34295 if { (ac_try="$ac_cpp conftest.$ac_ext"
34296 case "(($ac_try" in
34297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34298 *) ac_try_echo=$ac_try;;
34299 esac
34300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34302 ac_status=$?
34303 grep -v '^ *+' conftest.er1 >conftest.err
34304 rm -f conftest.er1
34305 cat conftest.err >&5
34306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34307 (exit $ac_status); } >/dev/null; then
34308 if test -s conftest.err; then
34309 ac_cpp_err=$ac_c_preproc_warn_flag
34310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34311 else
34312 ac_cpp_err=
34314 else
34315 ac_cpp_err=yes
34317 if test -z "$ac_cpp_err"; then
34318 ac_header_preproc=yes
34319 else
34320 echo "$as_me: failed program was:" >&5
34321 sed 's/^/| /' conftest.$ac_ext >&5
34323 ac_header_preproc=no
34326 rm -f conftest.err conftest.$ac_ext
34327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34328 echo "${ECHO_T}$ac_header_preproc" >&6; }
34330 # So? What about this header?
34331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34332 yes:no: )
34333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34337 ac_header_preproc=yes
34339 no:yes:* )
34340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34352 ( cat <<\_ASBOX
34353 ## ----------------------------------- ##
34354 ## Report this to llvmbugs@cs.uiuc.edu ##
34355 ## ----------------------------------- ##
34356 _ASBOX
34357 ) | sed "s/^/$as_me: WARNING: /" >&2
34359 esac
34360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34363 echo $ECHO_N "(cached) $ECHO_C" >&6
34364 else
34365 eval "$as_ac_Header=\$ac_header_preproc"
34367 ac_res=`eval echo '${'$as_ac_Header'}'`
34368 { echo "$as_me:$LINENO: result: $ac_res" >&5
34369 echo "${ECHO_T}$ac_res" >&6; }
34372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34373 cat >>confdefs.h <<_ACEOF
34374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34375 _ACEOF
34379 done
34382 for ac_func in getpagesize
34384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34388 echo $ECHO_N "(cached) $ECHO_C" >&6
34389 else
34390 cat >conftest.$ac_ext <<_ACEOF
34391 /* confdefs.h. */
34392 _ACEOF
34393 cat confdefs.h >>conftest.$ac_ext
34394 cat >>conftest.$ac_ext <<_ACEOF
34395 /* end confdefs.h. */
34396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34398 #define $ac_func innocuous_$ac_func
34400 /* System header to define __stub macros and hopefully few prototypes,
34401 which can conflict with char $ac_func (); below.
34402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34403 <limits.h> exists even on freestanding compilers. */
34405 #ifdef __STDC__
34406 # include <limits.h>
34407 #else
34408 # include <assert.h>
34409 #endif
34411 #undef $ac_func
34413 /* Override any GCC internal prototype to avoid an error.
34414 Use char because int might match the return type of a GCC
34415 builtin and then its argument prototype would still apply. */
34416 #ifdef __cplusplus
34417 extern "C"
34418 #endif
34419 char $ac_func ();
34420 /* The GNU C library defines this for functions which it implements
34421 to always fail with ENOSYS. Some functions are actually named
34422 something starting with __ and the normal name is an alias. */
34423 #if defined __stub_$ac_func || defined __stub___$ac_func
34424 choke me
34425 #endif
34428 main ()
34430 return $ac_func ();
34432 return 0;
34434 _ACEOF
34435 rm -f conftest.$ac_objext conftest$ac_exeext
34436 if { (ac_try="$ac_link"
34437 case "(($ac_try" in
34438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34439 *) ac_try_echo=$ac_try;;
34440 esac
34441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34442 (eval "$ac_link") 2>conftest.er1
34443 ac_status=$?
34444 grep -v '^ *+' conftest.er1 >conftest.err
34445 rm -f conftest.er1
34446 cat conftest.err >&5
34447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448 (exit $ac_status); } &&
34449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34450 { (case "(($ac_try" in
34451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34452 *) ac_try_echo=$ac_try;;
34453 esac
34454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34455 (eval "$ac_try") 2>&5
34456 ac_status=$?
34457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458 (exit $ac_status); }; } &&
34459 { ac_try='test -s conftest$ac_exeext'
34460 { (case "(($ac_try" in
34461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34462 *) ac_try_echo=$ac_try;;
34463 esac
34464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34465 (eval "$ac_try") 2>&5
34466 ac_status=$?
34467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468 (exit $ac_status); }; }; then
34469 eval "$as_ac_var=yes"
34470 else
34471 echo "$as_me: failed program was:" >&5
34472 sed 's/^/| /' conftest.$ac_ext >&5
34474 eval "$as_ac_var=no"
34477 rm -f core conftest.err conftest.$ac_objext \
34478 conftest$ac_exeext conftest.$ac_ext
34480 ac_res=`eval echo '${'$as_ac_var'}'`
34481 { echo "$as_me:$LINENO: result: $ac_res" >&5
34482 echo "${ECHO_T}$ac_res" >&6; }
34483 if test `eval echo '${'$as_ac_var'}'` = yes; then
34484 cat >>confdefs.h <<_ACEOF
34485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34486 _ACEOF
34489 done
34491 { echo "$as_me:$LINENO: checking for working mmap" >&5
34492 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34493 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34494 echo $ECHO_N "(cached) $ECHO_C" >&6
34495 else
34496 if test "$cross_compiling" = yes; then
34497 ac_cv_func_mmap_fixed_mapped=no
34498 else
34499 cat >conftest.$ac_ext <<_ACEOF
34500 /* confdefs.h. */
34501 _ACEOF
34502 cat confdefs.h >>conftest.$ac_ext
34503 cat >>conftest.$ac_ext <<_ACEOF
34504 /* end confdefs.h. */
34505 $ac_includes_default
34506 /* malloc might have been renamed as rpl_malloc. */
34507 #undef malloc
34509 /* Thanks to Mike Haertel and Jim Avera for this test.
34510 Here is a matrix of mmap possibilities:
34511 mmap private not fixed
34512 mmap private fixed at somewhere currently unmapped
34513 mmap private fixed at somewhere already mapped
34514 mmap shared not fixed
34515 mmap shared fixed at somewhere currently unmapped
34516 mmap shared fixed at somewhere already mapped
34517 For private mappings, we should verify that changes cannot be read()
34518 back from the file, nor mmap's back from the file at a different
34519 address. (There have been systems where private was not correctly
34520 implemented like the infamous i386 svr4.0, and systems where the
34521 VM page cache was not coherent with the file system buffer cache
34522 like early versions of FreeBSD and possibly contemporary NetBSD.)
34523 For shared mappings, we should conversely verify that changes get
34524 propagated back to all the places they're supposed to be.
34526 Grep wants private fixed already mapped.
34527 The main things grep needs to know about mmap are:
34528 * does it exist and is it safe to write into the mmap'd area
34529 * how to use it (BSD variants) */
34531 #include <fcntl.h>
34532 #include <sys/mman.h>
34534 #if !STDC_HEADERS && !HAVE_STDLIB_H
34535 char *malloc ();
34536 #endif
34538 /* This mess was copied from the GNU getpagesize.h. */
34539 #if !HAVE_GETPAGESIZE
34540 /* Assume that all systems that can run configure have sys/param.h. */
34541 # if !HAVE_SYS_PARAM_H
34542 # define HAVE_SYS_PARAM_H 1
34543 # endif
34545 # ifdef _SC_PAGESIZE
34546 # define getpagesize() sysconf(_SC_PAGESIZE)
34547 # else /* no _SC_PAGESIZE */
34548 # if HAVE_SYS_PARAM_H
34549 # include <sys/param.h>
34550 # ifdef EXEC_PAGESIZE
34551 # define getpagesize() EXEC_PAGESIZE
34552 # else /* no EXEC_PAGESIZE */
34553 # ifdef NBPG
34554 # define getpagesize() NBPG * CLSIZE
34555 # ifndef CLSIZE
34556 # define CLSIZE 1
34557 # endif /* no CLSIZE */
34558 # else /* no NBPG */
34559 # ifdef NBPC
34560 # define getpagesize() NBPC
34561 # else /* no NBPC */
34562 # ifdef PAGESIZE
34563 # define getpagesize() PAGESIZE
34564 # endif /* PAGESIZE */
34565 # endif /* no NBPC */
34566 # endif /* no NBPG */
34567 # endif /* no EXEC_PAGESIZE */
34568 # else /* no HAVE_SYS_PARAM_H */
34569 # define getpagesize() 8192 /* punt totally */
34570 # endif /* no HAVE_SYS_PARAM_H */
34571 # endif /* no _SC_PAGESIZE */
34573 #endif /* no HAVE_GETPAGESIZE */
34576 main ()
34578 char *data, *data2, *data3;
34579 int i, pagesize;
34580 int fd;
34582 pagesize = getpagesize ();
34584 /* First, make a file with some known garbage in it. */
34585 data = (char *) malloc (pagesize);
34586 if (!data)
34587 return 1;
34588 for (i = 0; i < pagesize; ++i)
34589 *(data + i) = rand ();
34590 umask (0);
34591 fd = creat ("conftest.mmap", 0600);
34592 if (fd < 0)
34593 return 1;
34594 if (write (fd, data, pagesize) != pagesize)
34595 return 1;
34596 close (fd);
34598 /* Next, try to mmap the file at a fixed address which already has
34599 something else allocated at it. If we can, also make sure that
34600 we see the same garbage. */
34601 fd = open ("conftest.mmap", O_RDWR);
34602 if (fd < 0)
34603 return 1;
34604 data2 = (char *) malloc (2 * pagesize);
34605 if (!data2)
34606 return 1;
34607 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34608 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34609 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34610 return 1;
34611 for (i = 0; i < pagesize; ++i)
34612 if (*(data + i) != *(data2 + i))
34613 return 1;
34615 /* Finally, make sure that changes to the mapped area do not
34616 percolate back to the file as seen by read(). (This is a bug on
34617 some variants of i386 svr4.0.) */
34618 for (i = 0; i < pagesize; ++i)
34619 *(data2 + i) = *(data2 + i) + 1;
34620 data3 = (char *) malloc (pagesize);
34621 if (!data3)
34622 return 1;
34623 if (read (fd, data3, pagesize) != pagesize)
34624 return 1;
34625 for (i = 0; i < pagesize; ++i)
34626 if (*(data + i) != *(data3 + i))
34627 return 1;
34628 close (fd);
34629 return 0;
34631 _ACEOF
34632 rm -f conftest$ac_exeext
34633 if { (ac_try="$ac_link"
34634 case "(($ac_try" in
34635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34636 *) ac_try_echo=$ac_try;;
34637 esac
34638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34639 (eval "$ac_link") 2>&5
34640 ac_status=$?
34641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34643 { (case "(($ac_try" in
34644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34645 *) ac_try_echo=$ac_try;;
34646 esac
34647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34648 (eval "$ac_try") 2>&5
34649 ac_status=$?
34650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651 (exit $ac_status); }; }; then
34652 ac_cv_func_mmap_fixed_mapped=yes
34653 else
34654 echo "$as_me: program exited with status $ac_status" >&5
34655 echo "$as_me: failed program was:" >&5
34656 sed 's/^/| /' conftest.$ac_ext >&5
34658 ( exit $ac_status )
34659 ac_cv_func_mmap_fixed_mapped=no
34661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34666 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34667 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34668 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34670 cat >>confdefs.h <<\_ACEOF
34671 #define HAVE_MMAP 1
34672 _ACEOF
34675 rm -f conftest.mmap
34677 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34678 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34679 if test "${ac_cv_func_mmap_file+set}" = set; then
34680 echo $ECHO_N "(cached) $ECHO_C" >&6
34681 else
34682 ac_ext=c
34683 ac_cpp='$CPP $CPPFLAGS'
34684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34688 if test "$cross_compiling" = yes; then
34689 ac_cv_func_mmap_file=no
34690 else
34691 cat >conftest.$ac_ext <<_ACEOF
34693 /* confdefs.h. */
34694 _ACEOF
34695 cat confdefs.h >>conftest.$ac_ext
34696 cat >>conftest.$ac_ext <<_ACEOF
34697 /* end confdefs.h. */
34699 #include <sys/types.h>
34700 #include <sys/mman.h>
34701 #include <fcntl.h>
34704 main ()
34707 int fd;
34708 fd = creat ("foo",0777);
34709 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34710 unlink ("foo");
34711 return (fd != (int) MAP_FAILED);
34713 return 0;
34715 _ACEOF
34716 rm -f conftest$ac_exeext
34717 if { (ac_try="$ac_link"
34718 case "(($ac_try" in
34719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34720 *) ac_try_echo=$ac_try;;
34721 esac
34722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34723 (eval "$ac_link") 2>&5
34724 ac_status=$?
34725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34727 { (case "(($ac_try" in
34728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34729 *) ac_try_echo=$ac_try;;
34730 esac
34731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34732 (eval "$ac_try") 2>&5
34733 ac_status=$?
34734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34735 (exit $ac_status); }; }; then
34736 ac_cv_func_mmap_file=yes
34737 else
34738 echo "$as_me: program exited with status $ac_status" >&5
34739 echo "$as_me: failed program was:" >&5
34740 sed 's/^/| /' conftest.$ac_ext >&5
34742 ( exit $ac_status )
34743 ac_cv_func_mmap_file=no
34745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34749 ac_ext=c
34750 ac_cpp='$CPP $CPPFLAGS'
34751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34757 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34758 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34759 if test "$ac_cv_func_mmap_file" = yes; then
34761 cat >>confdefs.h <<\_ACEOF
34762 #define HAVE_MMAP_FILE
34763 _ACEOF
34765 MMAP_FILE=yes
34769 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34770 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34771 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34772 echo $ECHO_N "(cached) $ECHO_C" >&6
34773 else
34774 if test "$llvm_cv_os_type" = "Interix" ; then
34775 ac_cv_need_dev_zero_for_mmap=yes
34776 else
34777 ac_cv_need_dev_zero_for_mmap=no
34781 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34782 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34783 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34785 cat >>confdefs.h <<\_ACEOF
34786 #define NEED_DEV_ZERO_FOR_MMAP 1
34787 _ACEOF
34791 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34792 then
34793 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34794 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34796 if test "$ac_cv_func_mmap_file" = "no"
34797 then
34798 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34799 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34803 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34804 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34805 cat >conftest.$ac_ext <<_ACEOF
34806 /* confdefs.h. */
34807 _ACEOF
34808 cat confdefs.h >>conftest.$ac_ext
34809 cat >>conftest.$ac_ext <<_ACEOF
34810 /* end confdefs.h. */
34811 int main() {
34812 volatile unsigned long val = 1;
34813 __sync_synchronize();
34814 __sync_val_compare_and_swap(&val, 1, 0);
34815 __sync_add_and_fetch(&val, 1);
34816 __sync_sub_and_fetch(&val, 1);
34817 return 0;
34820 _ACEOF
34821 rm -f conftest.$ac_objext conftest$ac_exeext
34822 if { (ac_try="$ac_link"
34823 case "(($ac_try" in
34824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34825 *) ac_try_echo=$ac_try;;
34826 esac
34827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34828 (eval "$ac_link") 2>conftest.er1
34829 ac_status=$?
34830 grep -v '^ *+' conftest.er1 >conftest.err
34831 rm -f conftest.er1
34832 cat conftest.err >&5
34833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34834 (exit $ac_status); } &&
34835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34836 { (case "(($ac_try" in
34837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34838 *) ac_try_echo=$ac_try;;
34839 esac
34840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34841 (eval "$ac_try") 2>&5
34842 ac_status=$?
34843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844 (exit $ac_status); }; } &&
34845 { ac_try='test -s conftest$ac_exeext'
34846 { (case "(($ac_try" in
34847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34848 *) ac_try_echo=$ac_try;;
34849 esac
34850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34851 (eval "$ac_try") 2>&5
34852 ac_status=$?
34853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34854 (exit $ac_status); }; }; then
34855 { echo "$as_me:$LINENO: result: yes" >&5
34856 echo "${ECHO_T}yes" >&6; }
34858 cat >>confdefs.h <<\_ACEOF
34859 #define LLVM_MULTITHREADED 1
34860 _ACEOF
34862 else
34863 echo "$as_me: failed program was:" >&5
34864 sed 's/^/| /' conftest.$ac_ext >&5
34866 { echo "$as_me:$LINENO: result: no" >&5
34867 echo "${ECHO_T}no" >&6; }
34869 cat >>confdefs.h <<\_ACEOF
34870 #define LLVM_MULTITHREADED 0
34871 _ACEOF
34873 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34874 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34877 rm -f core conftest.err conftest.$ac_objext \
34878 conftest$ac_exeext conftest.$ac_ext
34883 for ac_func in __dso_handle
34885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34886 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34889 echo $ECHO_N "(cached) $ECHO_C" >&6
34890 else
34891 cat >conftest.$ac_ext <<_ACEOF
34892 /* confdefs.h. */
34893 _ACEOF
34894 cat confdefs.h >>conftest.$ac_ext
34895 cat >>conftest.$ac_ext <<_ACEOF
34896 /* end confdefs.h. */
34897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34899 #define $ac_func innocuous_$ac_func
34901 /* System header to define __stub macros and hopefully few prototypes,
34902 which can conflict with char $ac_func (); below.
34903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34904 <limits.h> exists even on freestanding compilers. */
34906 #ifdef __STDC__
34907 # include <limits.h>
34908 #else
34909 # include <assert.h>
34910 #endif
34912 #undef $ac_func
34914 /* Override any GCC internal prototype to avoid an error.
34915 Use char because int might match the return type of a GCC
34916 builtin and then its argument prototype would still apply. */
34917 #ifdef __cplusplus
34918 extern "C"
34919 #endif
34920 char $ac_func ();
34921 /* The GNU C library defines this for functions which it implements
34922 to always fail with ENOSYS. Some functions are actually named
34923 something starting with __ and the normal name is an alias. */
34924 #if defined __stub_$ac_func || defined __stub___$ac_func
34925 choke me
34926 #endif
34929 main ()
34931 return $ac_func ();
34933 return 0;
34935 _ACEOF
34936 rm -f conftest.$ac_objext conftest$ac_exeext
34937 if { (ac_try="$ac_link"
34938 case "(($ac_try" in
34939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34940 *) ac_try_echo=$ac_try;;
34941 esac
34942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34943 (eval "$ac_link") 2>conftest.er1
34944 ac_status=$?
34945 grep -v '^ *+' conftest.er1 >conftest.err
34946 rm -f conftest.er1
34947 cat conftest.err >&5
34948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34949 (exit $ac_status); } &&
34950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34951 { (case "(($ac_try" in
34952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34953 *) ac_try_echo=$ac_try;;
34954 esac
34955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34956 (eval "$ac_try") 2>&5
34957 ac_status=$?
34958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34959 (exit $ac_status); }; } &&
34960 { ac_try='test -s conftest$ac_exeext'
34961 { (case "(($ac_try" in
34962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34963 *) ac_try_echo=$ac_try;;
34964 esac
34965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34966 (eval "$ac_try") 2>&5
34967 ac_status=$?
34968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969 (exit $ac_status); }; }; then
34970 eval "$as_ac_var=yes"
34971 else
34972 echo "$as_me: failed program was:" >&5
34973 sed 's/^/| /' conftest.$ac_ext >&5
34975 eval "$as_ac_var=no"
34978 rm -f core conftest.err conftest.$ac_objext \
34979 conftest$ac_exeext conftest.$ac_ext
34981 ac_res=`eval echo '${'$as_ac_var'}'`
34982 { echo "$as_me:$LINENO: result: $ac_res" >&5
34983 echo "${ECHO_T}$ac_res" >&6; }
34984 if test `eval echo '${'$as_ac_var'}'` = yes; then
34985 cat >>confdefs.h <<_ACEOF
34986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34987 _ACEOF
34990 done
34993 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34994 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34995 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34996 echo $ECHO_N "(cached) $ECHO_C" >&6
34997 else
34998 llvm_cv_llvmgcc_sanity="no"
34999 if test -x "$LLVMGCC" ; then
35000 cp /dev/null conftest.c
35001 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35002 grep 'target datalayout =' > /dev/null 2>&1
35003 if test $? -eq 0 ; then
35004 llvm_cv_llvmgcc_sanity="yes"
35006 rm conftest.c
35009 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35010 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35012 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35013 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35014 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35015 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35016 LLVMCC1=$llvmcc1path
35018 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35019 LLVMCC1PLUS=$llvmcc1pluspath
35021 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35022 LLVMGCCDIR=$llvmgccdir
35024 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35025 LLVMGCCLIBEXEC=$llvmgcclibexec
35027 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35028 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35029 LLVMGCC_VERSION=$llvmgccversion
35031 LLVMGCC_MAJVERS=$llvmgccmajvers
35033 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35034 LLVMGCC_LANGS=$llvmgcclangs
35036 { echo "$as_me:$LINENO: result: ok" >&5
35037 echo "${ECHO_T}ok" >&6; }
35040 SHLIBEXT=$libltdl_cv_shlibext
35043 # Translate the various configuration directories and other basic
35044 # information into substitutions that will end up in Makefile.config.in
35045 # that these configured values can be used by the makefiles
35046 if test "${prefix}" = "NONE" ; then
35047 prefix="/usr/local"
35049 eval LLVM_PREFIX="${prefix}";
35050 eval LLVM_BINDIR="${prefix}/bin";
35051 eval LLVM_LIBDIR="${prefix}/lib";
35052 eval LLVM_DATADIR="${prefix}/share/llvm";
35053 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35054 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35055 eval LLVM_INCLUDEDIR="${prefix}/include";
35056 eval LLVM_INFODIR="${prefix}/info";
35057 eval LLVM_MANDIR="${prefix}/man";
35058 LLVM_CONFIGTIME=`date`
35070 # Place the various directores into the config.h file as #defines so that we
35071 # can know about the installation paths within LLVM.
35073 cat >>confdefs.h <<_ACEOF
35074 #define LLVM_PREFIX "$LLVM_PREFIX"
35075 _ACEOF
35078 cat >>confdefs.h <<_ACEOF
35079 #define LLVM_BINDIR "$LLVM_BINDIR"
35080 _ACEOF
35083 cat >>confdefs.h <<_ACEOF
35084 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35085 _ACEOF
35088 cat >>confdefs.h <<_ACEOF
35089 #define LLVM_DATADIR "$LLVM_DATADIR"
35090 _ACEOF
35093 cat >>confdefs.h <<_ACEOF
35094 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35095 _ACEOF
35098 cat >>confdefs.h <<_ACEOF
35099 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35100 _ACEOF
35103 cat >>confdefs.h <<_ACEOF
35104 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35105 _ACEOF
35108 cat >>confdefs.h <<_ACEOF
35109 #define LLVM_INFODIR "$LLVM_INFODIR"
35110 _ACEOF
35113 cat >>confdefs.h <<_ACEOF
35114 #define LLVM_MANDIR "$LLVM_MANDIR"
35115 _ACEOF
35118 cat >>confdefs.h <<_ACEOF
35119 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35120 _ACEOF
35123 cat >>confdefs.h <<_ACEOF
35124 #define LLVM_HOSTTRIPLE "$host"
35125 _ACEOF
35128 # Determine which bindings to build.
35129 if test "$BINDINGS_TO_BUILD" = auto ; then
35130 BINDINGS_TO_BUILD=""
35131 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35132 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35135 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35138 # This isn't really configurey, but it avoids having to repeat the list in
35139 # other files.
35140 ALL_BINDINGS=ocaml
35143 # Do any work necessary to ensure that bindings have what they need.
35144 binding_prereqs_failed=0
35145 for a_binding in $BINDINGS_TO_BUILD ; do
35146 case "$a_binding" in
35147 ocaml)
35148 if test "x$OCAMLC" = x ; then
35149 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35150 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35151 binding_prereqs_failed=1
35153 if test "x$OCAMLDEP" = x ; then
35154 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35155 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35156 binding_prereqs_failed=1
35158 if test "x$OCAMLOPT" = x ; then
35159 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35160 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35162 if test "x$with_ocaml_libdir" != xauto ; then
35163 OCAML_LIBDIR=$with_ocaml_libdir
35165 else
35166 ocaml_stdlib="`"$OCAMLC" -where`"
35167 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35168 then
35169 # ocaml stdlib is beneath our prefix; use stdlib
35170 OCAML_LIBDIR=$ocaml_stdlib
35172 else
35173 # ocaml stdlib is outside our prefix; use libdir/ocaml
35174 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35179 esac
35180 done
35181 if test "$binding_prereqs_failed" = 1 ; then
35182 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35183 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35184 { (exit 1); exit 1; }; }
35187 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35188 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35189 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35190 echo $ECHO_N "(cached) $ECHO_C" >&6
35191 else
35192 ac_ext=cpp
35193 ac_cpp='$CXXCPP $CPPFLAGS'
35194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35198 oldcxxflags="$CXXFLAGS"
35199 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35200 cat >conftest.$ac_ext <<_ACEOF
35201 /* confdefs.h. */
35202 _ACEOF
35203 cat confdefs.h >>conftest.$ac_ext
35204 cat >>conftest.$ac_ext <<_ACEOF
35205 /* end confdefs.h. */
35208 main ()
35212 return 0;
35214 _ACEOF
35215 rm -f conftest.$ac_objext
35216 if { (ac_try="$ac_compile"
35217 case "(($ac_try" in
35218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35219 *) ac_try_echo=$ac_try;;
35220 esac
35221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35222 (eval "$ac_compile") 2>conftest.er1
35223 ac_status=$?
35224 grep -v '^ *+' conftest.er1 >conftest.err
35225 rm -f conftest.er1
35226 cat conftest.err >&5
35227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228 (exit $ac_status); } &&
35229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35230 { (case "(($ac_try" in
35231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35232 *) ac_try_echo=$ac_try;;
35233 esac
35234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35235 (eval "$ac_try") 2>&5
35236 ac_status=$?
35237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238 (exit $ac_status); }; } &&
35239 { ac_try='test -s conftest.$ac_objext'
35240 { (case "(($ac_try" in
35241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35242 *) ac_try_echo=$ac_try;;
35243 esac
35244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35245 (eval "$ac_try") 2>&5
35246 ac_status=$?
35247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35248 (exit $ac_status); }; }; then
35249 llvm_cv_cxx_visibility_inlines_hidden=yes
35250 else
35251 echo "$as_me: failed program was:" >&5
35252 sed 's/^/| /' conftest.$ac_ext >&5
35254 llvm_cv_cxx_visibility_inlines_hidden=no
35257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35258 CXXFLAGS="$oldcxxflags"
35259 ac_ext=c
35260 ac_cpp='$CPP $CPPFLAGS'
35261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35267 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35268 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35269 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35270 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35272 else
35273 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35278 if test "$llvm_cv_link_use_r" = "yes" ; then
35279 RPATH="-Wl,-R"
35280 else
35281 RPATH="-Wl,-rpath"
35285 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35286 RDYNAMIC="-Wl,-export-dynamic"
35287 else
35288 RDYNAMIC=""
35293 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35295 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35297 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35299 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35301 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35304 ac_config_files="$ac_config_files Makefile.config"
35307 ac_config_files="$ac_config_files llvm.spec"
35310 ac_config_files="$ac_config_files docs/doxygen.cfg"
35313 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35316 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35319 ac_config_commands="$ac_config_commands setup"
35321 ac_config_commands="$ac_config_commands Makefile"
35324 ac_config_commands="$ac_config_commands Makefile.common"
35327 ac_config_commands="$ac_config_commands examples/Makefile"
35330 ac_config_commands="$ac_config_commands lib/Makefile"
35333 ac_config_commands="$ac_config_commands runtime/Makefile"
35336 ac_config_commands="$ac_config_commands test/Makefile"
35339 ac_config_commands="$ac_config_commands test/Makefile.tests"
35342 ac_config_commands="$ac_config_commands unittests/Makefile"
35345 ac_config_commands="$ac_config_commands tools/Makefile"
35348 ac_config_commands="$ac_config_commands utils/Makefile"
35351 ac_config_commands="$ac_config_commands projects/Makefile"
35354 ac_config_commands="$ac_config_commands bindings/Makefile"
35357 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35361 cat >confcache <<\_ACEOF
35362 # This file is a shell script that caches the results of configure
35363 # tests run on this system so they can be shared between configure
35364 # scripts and configure runs, see configure's option --config-cache.
35365 # It is not useful on other systems. If it contains results you don't
35366 # want to keep, you may remove or edit it.
35368 # config.status only pays attention to the cache file if you give it
35369 # the --recheck option to rerun configure.
35371 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35372 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35373 # following values.
35375 _ACEOF
35377 # The following way of writing the cache mishandles newlines in values,
35378 # but we know of no workaround that is simple, portable, and efficient.
35379 # So, we kill variables containing newlines.
35380 # Ultrix sh set writes to stderr and can't be redirected directly,
35381 # and sets the high bit in the cache file unless we assign to the vars.
35383 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35384 eval ac_val=\$$ac_var
35385 case $ac_val in #(
35386 *${as_nl}*)
35387 case $ac_var in #(
35388 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35389 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35390 esac
35391 case $ac_var in #(
35392 _ | IFS | as_nl) ;; #(
35393 *) $as_unset $ac_var ;;
35394 esac ;;
35395 esac
35396 done
35398 (set) 2>&1 |
35399 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35400 *${as_nl}ac_space=\ *)
35401 # `set' does not quote correctly, so add quotes (double-quote
35402 # substitution turns \\\\ into \\, and sed turns \\ into \).
35403 sed -n \
35404 "s/'/'\\\\''/g;
35405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35406 ;; #(
35408 # `set' quotes correctly as required by POSIX, so do not add quotes.
35409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35411 esac |
35412 sort
35414 sed '
35415 /^ac_cv_env_/b end
35416 t clear
35417 :clear
35418 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35419 t end
35420 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35421 :end' >>confcache
35422 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35423 if test -w "$cache_file"; then
35424 test "x$cache_file" != "x/dev/null" &&
35425 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35426 echo "$as_me: updating cache $cache_file" >&6;}
35427 cat confcache >$cache_file
35428 else
35429 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35430 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35433 rm -f confcache
35435 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35436 # Let make expand exec_prefix.
35437 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35439 DEFS=-DHAVE_CONFIG_H
35441 ac_libobjs=
35442 ac_ltlibobjs=
35443 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35444 # 1. Remove the extension, and $U if already installed.
35445 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35446 ac_i=`echo "$ac_i" | sed "$ac_script"`
35447 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35448 # will be set to the directory where LIBOBJS objects are built.
35449 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35450 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35451 done
35452 LIBOBJS=$ac_libobjs
35454 LTLIBOBJS=$ac_ltlibobjs
35457 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35458 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35459 Usually this means the macro was only invoked conditionally." >&5
35460 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35461 Usually this means the macro was only invoked conditionally." >&2;}
35462 { (exit 1); exit 1; }; }
35464 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35465 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35466 Usually this means the macro was only invoked conditionally." >&5
35467 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35468 Usually this means the macro was only invoked conditionally." >&2;}
35469 { (exit 1); exit 1; }; }
35472 : ${CONFIG_STATUS=./config.status}
35473 ac_clean_files_save=$ac_clean_files
35474 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35475 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35476 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35477 cat >$CONFIG_STATUS <<_ACEOF
35478 #! $SHELL
35479 # Generated by $as_me.
35480 # Run this file to recreate the current configuration.
35481 # Compiler output produced by configure, useful for debugging
35482 # configure, is in config.log if it exists.
35484 debug=false
35485 ac_cs_recheck=false
35486 ac_cs_silent=false
35487 SHELL=\${CONFIG_SHELL-$SHELL}
35488 _ACEOF
35490 cat >>$CONFIG_STATUS <<\_ACEOF
35491 ## --------------------- ##
35492 ## M4sh Initialization. ##
35493 ## --------------------- ##
35495 # Be Bourne compatible
35496 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35497 emulate sh
35498 NULLCMD=:
35499 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35500 # is contrary to our usage. Disable this feature.
35501 alias -g '${1+"$@"}'='"$@"'
35502 setopt NO_GLOB_SUBST
35503 else
35504 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35506 BIN_SH=xpg4; export BIN_SH # for Tru64
35507 DUALCASE=1; export DUALCASE # for MKS sh
35510 # PATH needs CR
35511 # Avoid depending upon Character Ranges.
35512 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35513 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35514 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35515 as_cr_digits='0123456789'
35516 as_cr_alnum=$as_cr_Letters$as_cr_digits
35518 # The user is always right.
35519 if test "${PATH_SEPARATOR+set}" != set; then
35520 echo "#! /bin/sh" >conf$$.sh
35521 echo "exit 0" >>conf$$.sh
35522 chmod +x conf$$.sh
35523 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35524 PATH_SEPARATOR=';'
35525 else
35526 PATH_SEPARATOR=:
35528 rm -f conf$$.sh
35531 # Support unset when possible.
35532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35533 as_unset=unset
35534 else
35535 as_unset=false
35539 # IFS
35540 # We need space, tab and new line, in precisely that order. Quoting is
35541 # there to prevent editors from complaining about space-tab.
35542 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35543 # splitting by setting IFS to empty value.)
35544 as_nl='
35546 IFS=" "" $as_nl"
35548 # Find who we are. Look in the path if we contain no directory separator.
35549 case $0 in
35550 *[\\/]* ) as_myself=$0 ;;
35551 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35552 for as_dir in $PATH
35554 IFS=$as_save_IFS
35555 test -z "$as_dir" && as_dir=.
35556 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35557 done
35558 IFS=$as_save_IFS
35561 esac
35562 # We did not find ourselves, most probably we were run as `sh COMMAND'
35563 # in which case we are not to be found in the path.
35564 if test "x$as_myself" = x; then
35565 as_myself=$0
35567 if test ! -f "$as_myself"; then
35568 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35569 { (exit 1); exit 1; }
35572 # Work around bugs in pre-3.0 UWIN ksh.
35573 for as_var in ENV MAIL MAILPATH
35574 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35575 done
35576 PS1='$ '
35577 PS2='> '
35578 PS4='+ '
35580 # NLS nuisances.
35581 for as_var in \
35582 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35583 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35584 LC_TELEPHONE LC_TIME
35586 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35587 eval $as_var=C; export $as_var
35588 else
35589 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35591 done
35593 # Required to use basename.
35594 if expr a : '\(a\)' >/dev/null 2>&1 &&
35595 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35596 as_expr=expr
35597 else
35598 as_expr=false
35601 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35602 as_basename=basename
35603 else
35604 as_basename=false
35608 # Name of the executable.
35609 as_me=`$as_basename -- "$0" ||
35610 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35611 X"$0" : 'X\(//\)$' \| \
35612 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35613 echo X/"$0" |
35614 sed '/^.*\/\([^/][^/]*\)\/*$/{
35615 s//\1/
35618 /^X\/\(\/\/\)$/{
35619 s//\1/
35622 /^X\/\(\/\).*/{
35623 s//\1/
35626 s/.*/./; q'`
35628 # CDPATH.
35629 $as_unset CDPATH
35633 as_lineno_1=$LINENO
35634 as_lineno_2=$LINENO
35635 test "x$as_lineno_1" != "x$as_lineno_2" &&
35636 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35638 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35639 # uniformly replaced by the line number. The first 'sed' inserts a
35640 # line-number line after each line using $LINENO; the second 'sed'
35641 # does the real work. The second script uses 'N' to pair each
35642 # line-number line with the line containing $LINENO, and appends
35643 # trailing '-' during substitution so that $LINENO is not a special
35644 # case at line end.
35645 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35646 # scripts with optimization help from Paolo Bonzini. Blame Lee
35647 # E. McMahon (1931-1989) for sed's syntax. :-)
35648 sed -n '
35650 /[$]LINENO/=
35651 ' <$as_myself |
35652 sed '
35653 s/[$]LINENO.*/&-/
35654 t lineno
35656 :lineno
35658 :loop
35659 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35660 t loop
35661 s/-\n.*//
35662 ' >$as_me.lineno &&
35663 chmod +x "$as_me.lineno" ||
35664 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35665 { (exit 1); exit 1; }; }
35667 # Don't try to exec as it changes $[0], causing all sort of problems
35668 # (the dirname of $[0] is not the place where we might find the
35669 # original and so on. Autoconf is especially sensitive to this).
35670 . "./$as_me.lineno"
35671 # Exit status is that of the last command.
35672 exit
35676 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35677 as_dirname=dirname
35678 else
35679 as_dirname=false
35682 ECHO_C= ECHO_N= ECHO_T=
35683 case `echo -n x` in
35684 -n*)
35685 case `echo 'x\c'` in
35686 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35687 *) ECHO_C='\c';;
35688 esac;;
35690 ECHO_N='-n';;
35691 esac
35693 if expr a : '\(a\)' >/dev/null 2>&1 &&
35694 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35695 as_expr=expr
35696 else
35697 as_expr=false
35700 rm -f conf$$ conf$$.exe conf$$.file
35701 if test -d conf$$.dir; then
35702 rm -f conf$$.dir/conf$$.file
35703 else
35704 rm -f conf$$.dir
35705 mkdir conf$$.dir
35707 echo >conf$$.file
35708 if ln -s conf$$.file conf$$ 2>/dev/null; then
35709 as_ln_s='ln -s'
35710 # ... but there are two gotchas:
35711 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35712 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35713 # In both cases, we have to default to `cp -p'.
35714 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35715 as_ln_s='cp -p'
35716 elif ln conf$$.file conf$$ 2>/dev/null; then
35717 as_ln_s=ln
35718 else
35719 as_ln_s='cp -p'
35721 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35722 rmdir conf$$.dir 2>/dev/null
35724 if mkdir -p . 2>/dev/null; then
35725 as_mkdir_p=:
35726 else
35727 test -d ./-p && rmdir ./-p
35728 as_mkdir_p=false
35731 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35732 # systems may use methods other than mode bits to determine executability.
35733 cat >conf$$.file <<_ASEOF
35734 #! /bin/sh
35735 exit 0
35736 _ASEOF
35737 chmod +x conf$$.file
35738 if test -x conf$$.file >/dev/null 2>&1; then
35739 as_executable_p="test -x"
35740 else
35741 as_executable_p=:
35743 rm -f conf$$.file
35745 # Sed expression to map a string onto a valid CPP name.
35746 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35748 # Sed expression to map a string onto a valid variable name.
35749 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35752 exec 6>&1
35754 # Save the log message, to keep $[0] and so on meaningful, and to
35755 # report actual input values of CONFIG_FILES etc. instead of their
35756 # values after options handling.
35757 ac_log="
35758 This file was extended by llvm $as_me 2.7svn, which was
35759 generated by GNU Autoconf 2.60. Invocation command line was
35761 CONFIG_FILES = $CONFIG_FILES
35762 CONFIG_HEADERS = $CONFIG_HEADERS
35763 CONFIG_LINKS = $CONFIG_LINKS
35764 CONFIG_COMMANDS = $CONFIG_COMMANDS
35765 $ $0 $@
35767 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35770 _ACEOF
35772 cat >>$CONFIG_STATUS <<_ACEOF
35773 # Files that config.status was made for.
35774 config_files="$ac_config_files"
35775 config_headers="$ac_config_headers"
35776 config_commands="$ac_config_commands"
35778 _ACEOF
35780 cat >>$CONFIG_STATUS <<\_ACEOF
35781 ac_cs_usage="\
35782 \`$as_me' instantiates files from templates according to the
35783 current configuration.
35785 Usage: $0 [OPTIONS] [FILE]...
35787 -h, --help print this help, then exit
35788 -V, --version print version number, then exit
35789 -q, --quiet do not print progress messages
35790 -d, --debug don't remove temporary files
35791 --recheck update $as_me by reconfiguring in the same conditions
35792 --file=FILE[:TEMPLATE]
35793 instantiate the configuration file FILE
35794 --header=FILE[:TEMPLATE]
35795 instantiate the configuration header FILE
35797 Configuration files:
35798 $config_files
35800 Configuration headers:
35801 $config_headers
35803 Configuration commands:
35804 $config_commands
35806 Report bugs to <bug-autoconf@gnu.org>."
35808 _ACEOF
35809 cat >>$CONFIG_STATUS <<_ACEOF
35810 ac_cs_version="\\
35811 llvm config.status 2.7svn
35812 configured by $0, generated by GNU Autoconf 2.60,
35813 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35815 Copyright (C) 2006 Free Software Foundation, Inc.
35816 This config.status script is free software; the Free Software Foundation
35817 gives unlimited permission to copy, distribute and modify it."
35819 ac_pwd='$ac_pwd'
35820 srcdir='$srcdir'
35821 INSTALL='$INSTALL'
35822 _ACEOF
35824 cat >>$CONFIG_STATUS <<\_ACEOF
35825 # If no file are specified by the user, then we need to provide default
35826 # value. By we need to know if files were specified by the user.
35827 ac_need_defaults=:
35828 while test $# != 0
35830 case $1 in
35831 --*=*)
35832 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35833 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35834 ac_shift=:
35837 ac_option=$1
35838 ac_optarg=$2
35839 ac_shift=shift
35841 esac
35843 case $ac_option in
35844 # Handling of the options.
35845 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35846 ac_cs_recheck=: ;;
35847 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35848 echo "$ac_cs_version"; exit ;;
35849 --debug | --debu | --deb | --de | --d | -d )
35850 debug=: ;;
35851 --file | --fil | --fi | --f )
35852 $ac_shift
35853 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35854 ac_need_defaults=false;;
35855 --header | --heade | --head | --hea )
35856 $ac_shift
35857 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35858 ac_need_defaults=false;;
35859 --he | --h)
35860 # Conflict between --help and --header
35861 { echo "$as_me: error: ambiguous option: $1
35862 Try \`$0 --help' for more information." >&2
35863 { (exit 1); exit 1; }; };;
35864 --help | --hel | -h )
35865 echo "$ac_cs_usage"; exit ;;
35866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35868 ac_cs_silent=: ;;
35870 # This is an error.
35871 -*) { echo "$as_me: error: unrecognized option: $1
35872 Try \`$0 --help' for more information." >&2
35873 { (exit 1); exit 1; }; } ;;
35875 *) ac_config_targets="$ac_config_targets $1"
35876 ac_need_defaults=false ;;
35878 esac
35879 shift
35880 done
35882 ac_configure_extra_args=
35884 if $ac_cs_silent; then
35885 exec 6>/dev/null
35886 ac_configure_extra_args="$ac_configure_extra_args --silent"
35889 _ACEOF
35890 cat >>$CONFIG_STATUS <<_ACEOF
35891 if \$ac_cs_recheck; then
35892 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35893 CONFIG_SHELL=$SHELL
35894 export CONFIG_SHELL
35895 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35898 _ACEOF
35899 cat >>$CONFIG_STATUS <<\_ACEOF
35900 exec 5>>config.log
35902 echo
35903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35904 ## Running $as_me. ##
35905 _ASBOX
35906 echo "$ac_log"
35907 } >&5
35909 _ACEOF
35910 cat >>$CONFIG_STATUS <<_ACEOF
35912 # INIT-COMMANDS
35914 llvm_src="${srcdir}"
35916 _ACEOF
35918 cat >>$CONFIG_STATUS <<\_ACEOF
35920 # Handling of arguments.
35921 for ac_config_target in $ac_config_targets
35923 case $ac_config_target in
35924 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35925 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35926 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35927 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35928 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35929 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35930 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35931 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35932 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35933 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35934 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35935 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35936 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35937 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35938 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35939 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35940 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35941 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35942 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35943 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35944 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35945 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35946 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35947 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35949 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35950 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35951 { (exit 1); exit 1; }; };;
35952 esac
35953 done
35956 # If the user did not use the arguments to specify the items to instantiate,
35957 # then the envvar interface is used. Set only those that are not.
35958 # We use the long form for the default assignment because of an extremely
35959 # bizarre bug on SunOS 4.1.3.
35960 if $ac_need_defaults; then
35961 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35962 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35963 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35966 # Have a temporary directory for convenience. Make it in the build tree
35967 # simply because there is no reason against having it here, and in addition,
35968 # creating and moving files from /tmp can sometimes cause problems.
35969 # Hook for its removal unless debugging.
35970 # Note that there is a small window in which the directory will not be cleaned:
35971 # after its creation but before its name has been assigned to `$tmp'.
35972 $debug ||
35974 tmp=
35975 trap 'exit_status=$?
35976 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35978 trap '{ (exit 1); exit 1; }' 1 2 13 15
35980 # Create a (secure) tmp directory for tmp files.
35983 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35984 test -n "$tmp" && test -d "$tmp"
35985 } ||
35987 tmp=./conf$$-$RANDOM
35988 (umask 077 && mkdir "$tmp")
35989 } ||
35991 echo "$me: cannot create a temporary directory in ." >&2
35992 { (exit 1); exit 1; }
35996 # Set up the sed scripts for CONFIG_FILES section.
35999 # No need to generate the scripts if there are no CONFIG_FILES.
36000 # This happens for instance when ./config.status config.h
36001 if test -n "$CONFIG_FILES"; then
36003 _ACEOF
36007 ac_delim='%!_!# '
36008 for ac_last_try in false false false false false :; do
36009 cat >conf$$subs.sed <<_ACEOF
36010 SHELL!$SHELL$ac_delim
36011 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36012 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36013 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36014 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36015 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36016 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36017 exec_prefix!$exec_prefix$ac_delim
36018 prefix!$prefix$ac_delim
36019 program_transform_name!$program_transform_name$ac_delim
36020 bindir!$bindir$ac_delim
36021 sbindir!$sbindir$ac_delim
36022 libexecdir!$libexecdir$ac_delim
36023 datarootdir!$datarootdir$ac_delim
36024 datadir!$datadir$ac_delim
36025 sysconfdir!$sysconfdir$ac_delim
36026 sharedstatedir!$sharedstatedir$ac_delim
36027 localstatedir!$localstatedir$ac_delim
36028 includedir!$includedir$ac_delim
36029 oldincludedir!$oldincludedir$ac_delim
36030 docdir!$docdir$ac_delim
36031 infodir!$infodir$ac_delim
36032 htmldir!$htmldir$ac_delim
36033 dvidir!$dvidir$ac_delim
36034 pdfdir!$pdfdir$ac_delim
36035 psdir!$psdir$ac_delim
36036 libdir!$libdir$ac_delim
36037 localedir!$localedir$ac_delim
36038 mandir!$mandir$ac_delim
36039 DEFS!$DEFS$ac_delim
36040 ECHO_C!$ECHO_C$ac_delim
36041 ECHO_N!$ECHO_N$ac_delim
36042 ECHO_T!$ECHO_T$ac_delim
36043 LIBS!$LIBS$ac_delim
36044 build_alias!$build_alias$ac_delim
36045 host_alias!$host_alias$ac_delim
36046 target_alias!$target_alias$ac_delim
36047 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36048 subdirs!$subdirs$ac_delim
36049 build!$build$ac_delim
36050 build_cpu!$build_cpu$ac_delim
36051 build_vendor!$build_vendor$ac_delim
36052 build_os!$build_os$ac_delim
36053 host!$host$ac_delim
36054 host_cpu!$host_cpu$ac_delim
36055 host_vendor!$host_vendor$ac_delim
36056 host_os!$host_os$ac_delim
36057 target!$target$ac_delim
36058 target_cpu!$target_cpu$ac_delim
36059 target_vendor!$target_vendor$ac_delim
36060 target_os!$target_os$ac_delim
36061 OS!$OS$ac_delim
36062 HOST_OS!$HOST_OS$ac_delim
36063 TARGET_OS!$TARGET_OS$ac_delim
36064 LINKALL!$LINKALL$ac_delim
36065 NOLINKALL!$NOLINKALL$ac_delim
36066 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36067 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36068 ARCH!$ARCH$ac_delim
36069 ENDIAN!$ENDIAN$ac_delim
36070 CC!$CC$ac_delim
36071 CFLAGS!$CFLAGS$ac_delim
36072 LDFLAGS!$LDFLAGS$ac_delim
36073 CPPFLAGS!$CPPFLAGS$ac_delim
36074 ac_ct_CC!$ac_ct_CC$ac_delim
36075 EXEEXT!$EXEEXT$ac_delim
36076 OBJEXT!$OBJEXT$ac_delim
36077 CPP!$CPP$ac_delim
36078 GREP!$GREP$ac_delim
36079 EGREP!$EGREP$ac_delim
36080 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36081 BUILD_CC!$BUILD_CC$ac_delim
36082 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36083 BUILD_CXX!$BUILD_CXX$ac_delim
36084 CVSBUILD!$CVSBUILD$ac_delim
36085 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36086 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36087 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36088 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36089 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36090 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36091 JIT!$JIT$ac_delim
36092 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36093 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36094 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36095 ENABLE_PIC!$ENABLE_PIC$ac_delim
36096 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36097 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36098 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36099 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36100 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36101 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36102 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36103 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36104 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36105 CXX!$CXX$ac_delim
36106 CXXFLAGS!$CXXFLAGS$ac_delim
36107 _ACEOF
36109 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36110 break
36111 elif $ac_last_try; then
36112 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36113 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36114 { (exit 1); exit 1; }; }
36115 else
36116 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36118 done
36120 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36121 if test -n "$ac_eof"; then
36122 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36123 ac_eof=`expr $ac_eof + 1`
36126 cat >>$CONFIG_STATUS <<_ACEOF
36127 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36128 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36129 _ACEOF
36130 sed '
36131 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36132 s/^/s,@/; s/!/@,|#_!!_#|/
36135 s/'"$ac_delim"'$/,g/; t
36136 s/$/\\/; p
36137 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36138 ' >>$CONFIG_STATUS <conf$$subs.sed
36139 rm -f conf$$subs.sed
36140 cat >>$CONFIG_STATUS <<_ACEOF
36141 CEOF$ac_eof
36142 _ACEOF
36145 ac_delim='%!_!# '
36146 for ac_last_try in false false false false false :; do
36147 cat >conf$$subs.sed <<_ACEOF
36148 ac_ct_CXX!$ac_ct_CXX$ac_delim
36149 NM!$NM$ac_delim
36150 ifGNUmake!$ifGNUmake$ac_delim
36151 LN_S!$LN_S$ac_delim
36152 CMP!$CMP$ac_delim
36153 CP!$CP$ac_delim
36154 DATE!$DATE$ac_delim
36155 FIND!$FIND$ac_delim
36156 MKDIR!$MKDIR$ac_delim
36157 MV!$MV$ac_delim
36158 RANLIB!$RANLIB$ac_delim
36159 RM!$RM$ac_delim
36160 SED!$SED$ac_delim
36161 TAR!$TAR$ac_delim
36162 BINPWD!$BINPWD$ac_delim
36163 GRAPHVIZ!$GRAPHVIZ$ac_delim
36164 DOT!$DOT$ac_delim
36165 FDP!$FDP$ac_delim
36166 NEATO!$NEATO$ac_delim
36167 TWOPI!$TWOPI$ac_delim
36168 CIRCO!$CIRCO$ac_delim
36169 GV!$GV$ac_delim
36170 DOTTY!$DOTTY$ac_delim
36171 PERL!$PERL$ac_delim
36172 HAVE_PERL!$HAVE_PERL$ac_delim
36173 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36174 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36175 INSTALL_DATA!$INSTALL_DATA$ac_delim
36176 BZIP2!$BZIP2$ac_delim
36177 DOXYGEN!$DOXYGEN$ac_delim
36178 GROFF!$GROFF$ac_delim
36179 GZIP!$GZIP$ac_delim
36180 POD2HTML!$POD2HTML$ac_delim
36181 POD2MAN!$POD2MAN$ac_delim
36182 RUNTEST!$RUNTEST$ac_delim
36183 TCLSH!$TCLSH$ac_delim
36184 ZIP!$ZIP$ac_delim
36185 OCAMLC!$OCAMLC$ac_delim
36186 OCAMLOPT!$OCAMLOPT$ac_delim
36187 OCAMLDEP!$OCAMLDEP$ac_delim
36188 OCAMLDOC!$OCAMLDOC$ac_delim
36189 GAS!$GAS$ac_delim
36190 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36191 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36192 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36193 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36194 LIBADD_DL!$LIBADD_DL$ac_delim
36195 ECHO!$ECHO$ac_delim
36196 AR!$AR$ac_delim
36197 STRIP!$STRIP$ac_delim
36198 CXXCPP!$CXXCPP$ac_delim
36199 F77!$F77$ac_delim
36200 FFLAGS!$FFLAGS$ac_delim
36201 ac_ct_F77!$ac_ct_F77$ac_delim
36202 LIBTOOL!$LIBTOOL$ac_delim
36203 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36204 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36205 LLVMGCC!$LLVMGCC$ac_delim
36206 LLVMGXX!$LLVMGXX$ac_delim
36207 USE_UDIS86!$USE_UDIS86$ac_delim
36208 USE_OPROFILE!$USE_OPROFILE$ac_delim
36209 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36210 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36211 ALLOCA!$ALLOCA$ac_delim
36212 MMAP_FILE!$MMAP_FILE$ac_delim
36213 LLVMCC1!$LLVMCC1$ac_delim
36214 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36215 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36216 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36217 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36218 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36219 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36220 SHLIBEXT!$SHLIBEXT$ac_delim
36221 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36222 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36223 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36224 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36225 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36226 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36227 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36228 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36229 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36230 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36231 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36232 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36233 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36234 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36235 RPATH!$RPATH$ac_delim
36236 RDYNAMIC!$RDYNAMIC$ac_delim
36237 LIBOBJS!$LIBOBJS$ac_delim
36238 LTLIBOBJS!$LTLIBOBJS$ac_delim
36239 _ACEOF
36241 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
36242 break
36243 elif $ac_last_try; then
36244 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36245 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36246 { (exit 1); exit 1; }; }
36247 else
36248 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36250 done
36252 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36253 if test -n "$ac_eof"; then
36254 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36255 ac_eof=`expr $ac_eof + 1`
36258 cat >>$CONFIG_STATUS <<_ACEOF
36259 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36260 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36261 _ACEOF
36262 sed '
36263 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36264 s/^/s,@/; s/!/@,|#_!!_#|/
36267 s/'"$ac_delim"'$/,g/; t
36268 s/$/\\/; p
36269 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36270 ' >>$CONFIG_STATUS <conf$$subs.sed
36271 rm -f conf$$subs.sed
36272 cat >>$CONFIG_STATUS <<_ACEOF
36273 :end
36274 s/|#_!!_#|//g
36275 CEOF$ac_eof
36276 _ACEOF
36279 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36280 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36281 # trailing colons and then remove the whole line if VPATH becomes empty
36282 # (actually we leave an empty line to preserve line numbers).
36283 if test "x$srcdir" = x.; then
36284 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36285 s/:*\$(srcdir):*/:/
36286 s/:*\${srcdir}:*/:/
36287 s/:*@srcdir@:*/:/
36288 s/^\([^=]*=[ ]*\):*/\1/
36289 s/:*$//
36290 s/^[^=]*=[ ]*$//
36294 cat >>$CONFIG_STATUS <<\_ACEOF
36295 fi # test -n "$CONFIG_FILES"
36298 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36300 case $ac_tag in
36301 :[FHLC]) ac_mode=$ac_tag; continue;;
36302 esac
36303 case $ac_mode$ac_tag in
36304 :[FHL]*:*);;
36305 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36306 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36307 { (exit 1); exit 1; }; };;
36308 :[FH]-) ac_tag=-:-;;
36309 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36310 esac
36311 ac_save_IFS=$IFS
36312 IFS=:
36313 set x $ac_tag
36314 IFS=$ac_save_IFS
36315 shift
36316 ac_file=$1
36317 shift
36319 case $ac_mode in
36320 :L) ac_source=$1;;
36321 :[FH])
36322 ac_file_inputs=
36323 for ac_f
36325 case $ac_f in
36326 -) ac_f="$tmp/stdin";;
36327 *) # Look for the file first in the build tree, then in the source tree
36328 # (if the path is not absolute). The absolute path cannot be DOS-style,
36329 # because $ac_f cannot contain `:'.
36330 test -f "$ac_f" ||
36331 case $ac_f in
36332 [\\/$]*) false;;
36333 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36334 esac ||
36335 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36336 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36337 { (exit 1); exit 1; }; };;
36338 esac
36339 ac_file_inputs="$ac_file_inputs $ac_f"
36340 done
36342 # Let's still pretend it is `configure' which instantiates (i.e., don't
36343 # use $as_me), people would be surprised to read:
36344 # /* config.h. Generated by config.status. */
36345 configure_input="Generated from "`IFS=:
36346 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36347 if test x"$ac_file" != x-; then
36348 configure_input="$ac_file. $configure_input"
36349 { echo "$as_me:$LINENO: creating $ac_file" >&5
36350 echo "$as_me: creating $ac_file" >&6;}
36353 case $ac_tag in
36354 *:-:* | *:-) cat >"$tmp/stdin";;
36355 esac
36357 esac
36359 ac_dir=`$as_dirname -- "$ac_file" ||
36360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36361 X"$ac_file" : 'X\(//\)[^/]' \| \
36362 X"$ac_file" : 'X\(//\)$' \| \
36363 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36364 echo X"$ac_file" |
36365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36366 s//\1/
36369 /^X\(\/\/\)[^/].*/{
36370 s//\1/
36373 /^X\(\/\/\)$/{
36374 s//\1/
36377 /^X\(\/\).*/{
36378 s//\1/
36381 s/.*/./; q'`
36382 { as_dir="$ac_dir"
36383 case $as_dir in #(
36384 -*) as_dir=./$as_dir;;
36385 esac
36386 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36387 as_dirs=
36388 while :; do
36389 case $as_dir in #(
36390 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36391 *) as_qdir=$as_dir;;
36392 esac
36393 as_dirs="'$as_qdir' $as_dirs"
36394 as_dir=`$as_dirname -- "$as_dir" ||
36395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36396 X"$as_dir" : 'X\(//\)[^/]' \| \
36397 X"$as_dir" : 'X\(//\)$' \| \
36398 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36399 echo X"$as_dir" |
36400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36401 s//\1/
36404 /^X\(\/\/\)[^/].*/{
36405 s//\1/
36408 /^X\(\/\/\)$/{
36409 s//\1/
36412 /^X\(\/\).*/{
36413 s//\1/
36416 s/.*/./; q'`
36417 test -d "$as_dir" && break
36418 done
36419 test -z "$as_dirs" || eval "mkdir $as_dirs"
36420 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36421 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36422 { (exit 1); exit 1; }; }; }
36423 ac_builddir=.
36425 case "$ac_dir" in
36426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36428 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36429 # A ".." for each directory in $ac_dir_suffix.
36430 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36431 case $ac_top_builddir_sub in
36432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36434 esac ;;
36435 esac
36436 ac_abs_top_builddir=$ac_pwd
36437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36438 # for backward compatibility:
36439 ac_top_builddir=$ac_top_build_prefix
36441 case $srcdir in
36442 .) # We are building in place.
36443 ac_srcdir=.
36444 ac_top_srcdir=$ac_top_builddir_sub
36445 ac_abs_top_srcdir=$ac_pwd ;;
36446 [\\/]* | ?:[\\/]* ) # Absolute name.
36447 ac_srcdir=$srcdir$ac_dir_suffix;
36448 ac_top_srcdir=$srcdir
36449 ac_abs_top_srcdir=$srcdir ;;
36450 *) # Relative name.
36451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36452 ac_top_srcdir=$ac_top_build_prefix$srcdir
36453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36454 esac
36455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36458 case $ac_mode in
36461 # CONFIG_FILE
36464 case $INSTALL in
36465 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36466 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36467 esac
36468 _ACEOF
36470 cat >>$CONFIG_STATUS <<\_ACEOF
36471 # If the template does not know about datarootdir, expand it.
36472 # FIXME: This hack should be removed a few years after 2.60.
36473 ac_datarootdir_hack=; ac_datarootdir_seen=
36475 case `sed -n '/datarootdir/ {
36479 /@datadir@/p
36480 /@docdir@/p
36481 /@infodir@/p
36482 /@localedir@/p
36483 /@mandir@/p
36484 ' $ac_file_inputs` in
36485 *datarootdir*) ac_datarootdir_seen=yes;;
36486 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36487 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36488 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36489 _ACEOF
36490 cat >>$CONFIG_STATUS <<_ACEOF
36491 ac_datarootdir_hack='
36492 s&@datadir@&$datadir&g
36493 s&@docdir@&$docdir&g
36494 s&@infodir@&$infodir&g
36495 s&@localedir@&$localedir&g
36496 s&@mandir@&$mandir&g
36497 s&\\\${datarootdir}&$datarootdir&g' ;;
36498 esac
36499 _ACEOF
36501 # Neutralize VPATH when `$srcdir' = `.'.
36502 # Shell code in configure.ac might set extrasub.
36503 # FIXME: do we really want to maintain this feature?
36504 cat >>$CONFIG_STATUS <<_ACEOF
36505 sed "$ac_vpsub
36506 $extrasub
36507 _ACEOF
36508 cat >>$CONFIG_STATUS <<\_ACEOF
36510 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36511 s&@configure_input@&$configure_input&;t t
36512 s&@top_builddir@&$ac_top_builddir_sub&;t t
36513 s&@srcdir@&$ac_srcdir&;t t
36514 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36515 s&@top_srcdir@&$ac_top_srcdir&;t t
36516 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36517 s&@builddir@&$ac_builddir&;t t
36518 s&@abs_builddir@&$ac_abs_builddir&;t t
36519 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36520 s&@INSTALL@&$ac_INSTALL&;t t
36521 $ac_datarootdir_hack
36522 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36524 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36525 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36526 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36527 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36528 which seems to be undefined. Please make sure it is defined." >&5
36529 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36530 which seems to be undefined. Please make sure it is defined." >&2;}
36532 rm -f "$tmp/stdin"
36533 case $ac_file in
36534 -) cat "$tmp/out"; rm -f "$tmp/out";;
36535 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36536 esac
36540 # CONFIG_HEADER
36542 _ACEOF
36544 # Transform confdefs.h into a sed script `conftest.defines', that
36545 # substitutes the proper values into config.h.in to produce config.h.
36546 rm -f conftest.defines conftest.tail
36547 # First, append a space to every undef/define line, to ease matching.
36548 echo 's/$/ /' >conftest.defines
36549 # Then, protect against being on the right side of a sed subst, or in
36550 # an unquoted here document, in config.status. If some macros were
36551 # called several times there might be several #defines for the same
36552 # symbol, which is useless. But do not sort them, since the last
36553 # AC_DEFINE must be honored.
36554 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36555 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36556 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36557 # PARAMS is the parameter list in the macro definition--in most cases, it's
36558 # just an empty string.
36559 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36560 ac_dB='\\)[ (].*,\\1define\\2'
36561 ac_dC=' '
36562 ac_dD=' ,'
36564 uniq confdefs.h |
36565 sed -n '
36566 t rset
36567 :rset
36568 s/^[ ]*#[ ]*define[ ][ ]*//
36569 t ok
36572 s/[\\&,]/\\&/g
36573 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36574 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36575 ' >>conftest.defines
36577 # Remove the space that was appended to ease matching.
36578 # Then replace #undef with comments. This is necessary, for
36579 # example, in the case of _POSIX_SOURCE, which is predefined and required
36580 # on some systems where configure will not decide to define it.
36581 # (The regexp can be short, since the line contains either #define or #undef.)
36582 echo 's/ $//
36583 s,^[ #]*u.*,/* & */,' >>conftest.defines
36585 # Break up conftest.defines:
36586 ac_max_sed_lines=50
36588 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36589 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36590 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36591 # et cetera.
36592 ac_in='$ac_file_inputs'
36593 ac_out='"$tmp/out1"'
36594 ac_nxt='"$tmp/out2"'
36596 while :
36598 # Write a here document:
36599 cat >>$CONFIG_STATUS <<_ACEOF
36600 # First, check the format of the line:
36601 cat >"\$tmp/defines.sed" <<\\CEOF
36602 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36603 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36605 :def
36606 _ACEOF
36607 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36608 echo 'CEOF
36609 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36610 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36611 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36612 grep . conftest.tail >/dev/null || break
36613 rm -f conftest.defines
36614 mv conftest.tail conftest.defines
36615 done
36616 rm -f conftest.defines conftest.tail
36618 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36619 cat >>$CONFIG_STATUS <<\_ACEOF
36620 if test x"$ac_file" != x-; then
36621 echo "/* $configure_input */" >"$tmp/config.h"
36622 cat "$ac_result" >>"$tmp/config.h"
36623 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36624 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36625 echo "$as_me: $ac_file is unchanged" >&6;}
36626 else
36627 rm -f $ac_file
36628 mv "$tmp/config.h" $ac_file
36630 else
36631 echo "/* $configure_input */"
36632 cat "$ac_result"
36634 rm -f "$tmp/out12"
36637 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36638 echo "$as_me: executing $ac_file commands" >&6;}
36640 esac
36643 case $ac_file$ac_mode in
36644 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36645 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36646 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36647 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36648 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36649 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36650 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36651 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36652 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36653 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36654 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36655 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36656 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36657 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36658 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36659 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36660 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36661 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36662 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36663 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36664 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36665 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36666 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36667 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36668 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36669 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36671 esac
36672 done # for ac_tag
36675 { (exit 0); exit 0; }
36676 _ACEOF
36677 chmod +x $CONFIG_STATUS
36678 ac_clean_files=$ac_clean_files_save
36681 # configure is writing to config.log, and then calls config.status.
36682 # config.status does its own redirection, appending to config.log.
36683 # Unfortunately, on DOS this fails, as config.log is still kept open
36684 # by configure, so config.status won't be able to write to it; its
36685 # output is simply discarded. So we exec the FD to /dev/null,
36686 # effectively closing config.log, so it can be properly (re)opened and
36687 # appended to by config.status. When coming back to configure, we
36688 # need to make the FD available again.
36689 if test "$no_create" != yes; then
36690 ac_cs_success=:
36691 ac_config_status_args=
36692 test "$silent" = yes &&
36693 ac_config_status_args="$ac_config_status_args --quiet"
36694 exec 5>/dev/null
36695 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36696 exec 5>>config.log
36697 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36698 # would make configure fail if this is the last instruction.
36699 $ac_cs_success || { (exit 1); exit 1; }
36703 # CONFIG_SUBDIRS section.
36705 if test "$no_recursion" != yes; then
36707 # Remove --cache-file and --srcdir arguments so they do not pile up.
36708 ac_sub_configure_args=
36709 ac_prev=
36710 eval "set x $ac_configure_args"
36711 shift
36712 for ac_arg
36714 if test -n "$ac_prev"; then
36715 ac_prev=
36716 continue
36718 case $ac_arg in
36719 -cache-file | --cache-file | --cache-fil | --cache-fi \
36720 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36721 ac_prev=cache_file ;;
36722 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36723 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36724 | --c=*)
36726 --config-cache | -C)
36728 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36729 ac_prev=srcdir ;;
36730 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36732 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36733 ac_prev=prefix ;;
36734 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36737 case $ac_arg in
36738 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36739 esac
36740 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36741 esac
36742 done
36744 # Always prepend --prefix to ensure using the same prefix
36745 # in subdir configurations.
36746 ac_arg="--prefix=$prefix"
36747 case $ac_arg in
36748 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36749 esac
36750 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36752 ac_popdir=`pwd`
36753 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36755 # Do not complain, so a configure script can configure whichever
36756 # parts of a large source tree are present.
36757 test -d "$srcdir/$ac_dir" || continue
36759 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36760 echo "$as_me:$LINENO: $ac_msg" >&5
36761 echo "$ac_msg" >&6
36762 { as_dir="$ac_dir"
36763 case $as_dir in #(
36764 -*) as_dir=./$as_dir;;
36765 esac
36766 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36767 as_dirs=
36768 while :; do
36769 case $as_dir in #(
36770 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36771 *) as_qdir=$as_dir;;
36772 esac
36773 as_dirs="'$as_qdir' $as_dirs"
36774 as_dir=`$as_dirname -- "$as_dir" ||
36775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36776 X"$as_dir" : 'X\(//\)[^/]' \| \
36777 X"$as_dir" : 'X\(//\)$' \| \
36778 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36779 echo X"$as_dir" |
36780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36781 s//\1/
36784 /^X\(\/\/\)[^/].*/{
36785 s//\1/
36788 /^X\(\/\/\)$/{
36789 s//\1/
36792 /^X\(\/\).*/{
36793 s//\1/
36796 s/.*/./; q'`
36797 test -d "$as_dir" && break
36798 done
36799 test -z "$as_dirs" || eval "mkdir $as_dirs"
36800 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36801 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36802 { (exit 1); exit 1; }; }; }
36803 ac_builddir=.
36805 case "$ac_dir" in
36806 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36808 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36809 # A ".." for each directory in $ac_dir_suffix.
36810 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36811 case $ac_top_builddir_sub in
36812 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36813 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36814 esac ;;
36815 esac
36816 ac_abs_top_builddir=$ac_pwd
36817 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36818 # for backward compatibility:
36819 ac_top_builddir=$ac_top_build_prefix
36821 case $srcdir in
36822 .) # We are building in place.
36823 ac_srcdir=.
36824 ac_top_srcdir=$ac_top_builddir_sub
36825 ac_abs_top_srcdir=$ac_pwd ;;
36826 [\\/]* | ?:[\\/]* ) # Absolute name.
36827 ac_srcdir=$srcdir$ac_dir_suffix;
36828 ac_top_srcdir=$srcdir
36829 ac_abs_top_srcdir=$srcdir ;;
36830 *) # Relative name.
36831 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36832 ac_top_srcdir=$ac_top_build_prefix$srcdir
36833 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36834 esac
36835 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36838 cd "$ac_dir"
36840 # Check for guested configure; otherwise get Cygnus style configure.
36841 if test -f "$ac_srcdir/configure.gnu"; then
36842 ac_sub_configure=$ac_srcdir/configure.gnu
36843 elif test -f "$ac_srcdir/configure"; then
36844 ac_sub_configure=$ac_srcdir/configure
36845 elif test -f "$ac_srcdir/configure.in"; then
36846 # This should be Cygnus configure.
36847 ac_sub_configure=$ac_aux_dir/configure
36848 else
36849 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36850 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36851 ac_sub_configure=
36854 # The recursion is here.
36855 if test -n "$ac_sub_configure"; then
36856 # Make the cache file name correct relative to the subdirectory.
36857 case $cache_file in
36858 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36859 *) # Relative name.
36860 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36861 esac
36863 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36864 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36865 # The eval makes quoting arguments work.
36866 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36867 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36868 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36869 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36870 { (exit 1); exit 1; }; }
36873 cd "$ac_popdir"
36874 done