Use a multimap rather than a map for holding the list of copies to insert, so we...
[llvm/msp430.git] / configure
blob8183959c0e918ee1bd59442a7b7719a619c60f8d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.4svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be 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.4svn'
719 PACKAGE_STRING='llvm 2.4svn'
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 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 CVSBUILD
831 ENABLE_OPTIMIZED
832 DISABLE_ASSERTIONS
833 ENABLE_EXPENSIVE_CHECKS
834 EXPENSIVE_CHECKS
835 DEBUG_RUNTIME
837 TARGET_HAS_JIT
838 ENABLE_DOXYGEN
839 ENABLE_THREADS
840 ENABLE_PIC
841 TARGETS_TO_BUILD
842 ENABLE_CBE_PRINTF_A
843 EXTRA_OPTIONS
845 CXXFLAGS
846 ac_ct_CXX
848 LEXLIB
849 LEX_OUTPUT_ROOT
850 FLEX
851 YACC
852 YFLAGS
853 BISON
855 ifGNUmake
856 LN_S
859 DATE
860 FIND
861 MKDIR
863 RANLIB
867 BINPWD
868 GRAPHVIZ
871 DOTTY
872 PERL
873 HAVE_PERL
874 INSTALL_PROGRAM
875 INSTALL_SCRIPT
876 INSTALL_DATA
877 BZIP2
878 DOXYGEN
879 GROFF
880 GZIP
881 POD2HTML
882 POD2MAN
883 RUNTEST
884 TCLSH
886 OCAMLC
887 OCAMLOPT
888 OCAMLDEP
889 OCAMLDOC
890 INSTALL_LTDL_TRUE
891 INSTALL_LTDL_FALSE
892 CONVENIENCE_LTDL_TRUE
893 CONVENIENCE_LTDL_FALSE
894 LIBADD_DL
895 ECHO
897 STRIP
898 CXXCPP
900 FFLAGS
901 ac_ct_F77
902 LIBTOOL
903 LLVMGCC
904 LLVMGXX
905 USE_UDIS86
906 HAVE_PTHREAD
907 HUGE_VAL_SANITY
908 ALLOCA
909 MMAP_FILE
910 LLVMCC1
911 LLVMCC1PLUS
912 LLVMGCCDIR
913 LLVMGCCLIBEXEC
914 LLVMGCC_VERSION
915 LLVMGCC_MAJVERS
916 LLVMGCC_LANGS
917 SHLIBEXT
918 LLVM_PREFIX
919 LLVM_BINDIR
920 LLVM_LIBDIR
921 LLVM_DATADIR
922 LLVM_DOCSDIR
923 LLVM_ETCDIR
924 LLVM_INCLUDEDIR
925 LLVM_INFODIR
926 LLVM_MANDIR
927 LLVM_CONFIGTIME
928 BINDINGS_TO_BUILD
929 ALL_BINDINGS
930 OCAML_LIBDIR
931 ENABLE_VISIBILITY_INLINES_HIDDEN
932 LIBOBJS
933 LTLIBOBJS'
934 ac_subst_files=''
935 ac_precious_vars='build_alias
936 host_alias
937 target_alias
939 CFLAGS
940 LDFLAGS
941 CPPFLAGS
944 CXXFLAGS
946 YACC
947 YFLAGS
948 CXXCPP
950 FFLAGS'
951 ac_subdirs_all='projects/sample
952 projects/privbracket
953 projects/llvm-stacker
954 projects/llvm-test
955 projects/test-suite
956 projects/llvm-reopt
957 projects/llvm-gcc
958 projects/llvm-java
959 projects/llvm-tv
960 projects/llvm-poolalloc
961 projects/poolalloc
962 projects/llvm-kernel'
964 # Initialize some variables set by options.
965 ac_init_help=
966 ac_init_version=false
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
969 cache_file=/dev/null
970 exec_prefix=NONE
971 no_create=
972 no_recursion=
973 prefix=NONE
974 program_prefix=NONE
975 program_suffix=NONE
976 program_transform_name=s,x,x,
977 silent=
978 site=
979 srcdir=
980 verbose=
981 x_includes=NONE
982 x_libraries=NONE
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 includedir='${prefix}/include'
999 oldincludedir='/usr/include'
1000 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1001 infodir='${datarootdir}/info'
1002 htmldir='${docdir}'
1003 dvidir='${docdir}'
1004 pdfdir='${docdir}'
1005 psdir='${docdir}'
1006 libdir='${exec_prefix}/lib'
1007 localedir='${datarootdir}/locale'
1008 mandir='${datarootdir}/man'
1010 ac_prev=
1011 ac_dashdash=
1012 for ac_option
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
1016 eval $ac_prev=\$ac_option
1017 ac_prev=
1018 continue
1021 case $ac_option in
1022 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 *) ac_optarg=yes ;;
1024 esac
1026 # Accept the important Cygnus configure options, so we can diagnose typos.
1028 case $ac_dashdash$ac_option in
1030 ac_dashdash=yes ;;
1032 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033 ac_prev=bindir ;;
1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035 bindir=$ac_optarg ;;
1037 -build | --build | --buil | --bui | --bu)
1038 ac_prev=build_alias ;;
1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040 build_alias=$ac_optarg ;;
1042 -cache-file | --cache-file | --cache-fil | --cache-fi \
1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044 ac_prev=cache_file ;;
1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047 cache_file=$ac_optarg ;;
1049 --config-cache | -C)
1050 cache_file=config.cache ;;
1052 -datadir | --datadir | --datadi | --datad)
1053 ac_prev=datadir ;;
1054 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055 datadir=$ac_optarg ;;
1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058 | --dataroo | --dataro | --datar)
1059 ac_prev=datarootdir ;;
1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062 datarootdir=$ac_optarg ;;
1064 -disable-* | --disable-*)
1065 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1068 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1071 eval enable_$ac_feature=no ;;
1073 -docdir | --docdir | --docdi | --doc | --do)
1074 ac_prev=docdir ;;
1075 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1076 docdir=$ac_optarg ;;
1078 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079 ac_prev=dvidir ;;
1080 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1081 dvidir=$ac_optarg ;;
1083 -enable-* | --enable-*)
1084 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1087 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1088 { (exit 1); exit 1; }; }
1089 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1090 eval enable_$ac_feature=\$ac_optarg ;;
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1103 with_gas=yes ;;
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 ac_prev=htmldir ;;
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 | --ht=*)
1121 htmldir=$ac_optarg ;;
1123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 ac_prev=infodir ;;
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1135 -libdir | --libdir | --libdi | --libd)
1136 ac_prev=libdir ;;
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1152 -localstatedir | --localstatedir | --localstatedi | --localstated \
1153 | --localstate | --localstat | --localsta | --localst | --locals)
1154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157 localstatedir=$ac_optarg ;;
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 ac_prev=mandir ;;
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1166 with_fp=no ;;
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1170 no_create=yes ;;
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 no_recursion=yes ;;
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 ac_prev=prefix ;;
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 ac_prev=pdfdir ;;
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1226 -psdir | --psdir | --psdi | --psd | --ps)
1227 ac_prev=psdir ;;
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 psdir=$ac_optarg ;;
1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1233 silent=yes ;;
1235 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 ac_prev=sbindir ;;
1237 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 | --sbi=* | --sb=*)
1239 sbindir=$ac_optarg ;;
1241 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243 | --sharedst | --shareds | --shared | --share | --shar \
1244 | --sha | --sh)
1245 ac_prev=sharedstatedir ;;
1246 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 | --sha=* | --sh=*)
1250 sharedstatedir=$ac_optarg ;;
1252 -site | --site | --sit)
1253 ac_prev=site ;;
1254 -site=* | --site=* | --sit=*)
1255 site=$ac_optarg ;;
1257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 ac_prev=srcdir ;;
1259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260 srcdir=$ac_optarg ;;
1262 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263 | --syscon | --sysco | --sysc | --sys | --sy)
1264 ac_prev=sysconfdir ;;
1265 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267 sysconfdir=$ac_optarg ;;
1269 -target | --target | --targe | --targ | --tar | --ta | --t)
1270 ac_prev=target_alias ;;
1271 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272 target_alias=$ac_optarg ;;
1274 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 verbose=yes ;;
1277 -version | --version | --versio | --versi | --vers | -V)
1278 ac_init_version=: ;;
1280 -with-* | --with-*)
1281 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1284 { echo "$as_me: error: invalid package name: $ac_package" >&2
1285 { (exit 1); exit 1; }; }
1286 ac_package=`echo $ac_package| sed 's/-/_/g'`
1287 eval with_$ac_package=\$ac_optarg ;;
1289 -without-* | --without-*)
1290 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1293 { echo "$as_me: error: invalid package name: $ac_package" >&2
1294 { (exit 1); exit 1; }; }
1295 ac_package=`echo $ac_package | sed 's/-/_/g'`
1296 eval with_$ac_package=no ;;
1298 --x)
1299 # Obsolete; use --with-x.
1300 with_x=yes ;;
1302 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303 | --x-incl | --x-inc | --x-in | --x-i)
1304 ac_prev=x_includes ;;
1305 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307 x_includes=$ac_optarg ;;
1309 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311 ac_prev=x_libraries ;;
1312 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314 x_libraries=$ac_optarg ;;
1316 -*) { echo "$as_me: error: unrecognized option: $ac_option
1317 Try \`$0 --help' for more information." >&2
1318 { (exit 1); exit 1; }; }
1321 *=*)
1322 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1325 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1326 { (exit 1); exit 1; }; }
1327 eval $ac_envvar=\$ac_optarg
1328 export $ac_envvar ;;
1331 # FIXME: should be removed in autoconf 3.0.
1332 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338 esac
1339 done
1341 if test -n "$ac_prev"; then
1342 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343 { echo "$as_me: error: missing argument to $ac_option" >&2
1344 { (exit 1); exit 1; }; }
1347 # Be sure to have absolute directory names.
1348 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1349 datadir sysconfdir sharedstatedir localstatedir includedir \
1350 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1351 libdir localedir mandir
1353 eval ac_val=\$$ac_var
1354 case $ac_val in
1355 [\\/$]* | ?:[\\/]* ) continue;;
1356 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357 esac
1358 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1359 { (exit 1); exit 1; }; }
1360 done
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1365 build=$build_alias
1366 host=$host_alias
1367 target=$target_alias
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1374 If a cross compiler is detected then cross compile mode will be used." >&2
1375 elif test "x$build_alias" != "x$host_alias"; then
1376 cross_compiling=yes
1380 ac_tool_prefix=
1381 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383 test "$silent" = yes && exec 6>/dev/null
1386 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387 ac_ls_di=`ls -di .` &&
1388 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389 { echo "$as_me: error: Working directory cannot be determined" >&2
1390 { (exit 1); exit 1; }; }
1391 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392 { echo "$as_me: error: pwd does not report name of working directory" >&2
1393 { (exit 1); exit 1; }; }
1396 # Find the source files, if location was not specified.
1397 if test -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir=`$as_dirname -- "$0" ||
1401 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$0" : 'X\(//\)[^/]' \| \
1403 X"$0" : 'X\(//\)$' \| \
1404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1405 echo X"$0" |
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 s//\1/
1410 /^X\(\/\/\)[^/].*/{
1411 s//\1/
1414 /^X\(\/\/\)$/{
1415 s//\1/
1418 /^X\(\/\).*/{
1419 s//\1/
1422 s/.*/./; q'`
1423 srcdir=$ac_confdir
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 srcdir=..
1427 else
1428 ac_srcdir_defaulted=no
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1433 { (exit 1); exit 1; }; }
1435 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 ac_abs_confdir=`(
1437 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1438 { (exit 1); exit 1; }; }
1439 pwd)`
1440 # When building in place, set srcdir=.
1441 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 srcdir=.
1444 # Remove unnecessary trailing slashes from srcdir.
1445 # Double slashes in file names in object file debugging info
1446 # mess up M-x gdb in Emacs.
1447 case $srcdir in
1448 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449 esac
1450 for ac_var in $ac_precious_vars; do
1451 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_env_${ac_var}_value=\$${ac_var}
1453 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455 done
1458 # Report the --help message.
1460 if test "$ac_init_help" = "long"; then
1461 # Omit some internal or obsolete options to make the list less imposing.
1462 # This message is too long to be a string in the A/UX 3.1 sh.
1463 cat <<_ACEOF
1464 \`configure' configures llvm 2.4svn to adapt to many kinds of systems.
1466 Usage: $0 [OPTION]... [VAR=VALUE]...
1468 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469 VAR=VALUE. See below for descriptions of some of the useful variables.
1471 Defaults for the options are specified in brackets.
1473 Configuration:
1474 -h, --help display this help and exit
1475 --help=short display options specific to this package
1476 --help=recursive display the short help of all the included packages
1477 -V, --version display version information and exit
1478 -q, --quiet, --silent do not print \`checking...' messages
1479 --cache-file=FILE cache test results in FILE [disabled]
1480 -C, --config-cache alias for \`--cache-file=config.cache'
1481 -n, --no-create do not create output files
1482 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1484 Installation directories:
1485 --prefix=PREFIX install architecture-independent files in PREFIX
1486 [$ac_default_prefix]
1487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 [PREFIX]
1490 By default, \`make install' will install all the files in
1491 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1492 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493 for instance \`--prefix=\$HOME'.
1495 For better control, use the options below.
1497 Fine tuning of the installation directories:
1498 --bindir=DIR user executables [EPREFIX/bin]
1499 --sbindir=DIR system admin executables [EPREFIX/sbin]
1500 --libexecdir=DIR program executables [EPREFIX/libexec]
1501 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1502 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1503 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1504 --libdir=DIR object code libraries [EPREFIX/lib]
1505 --includedir=DIR C header files [PREFIX/include]
1506 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1507 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1508 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1509 --infodir=DIR info documentation [DATAROOTDIR/info]
1510 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1511 --mandir=DIR man documentation [DATAROOTDIR/man]
1512 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1513 --htmldir=DIR html documentation [DOCDIR]
1514 --dvidir=DIR dvi documentation [DOCDIR]
1515 --pdfdir=DIR pdf documentation [DOCDIR]
1516 --psdir=DIR ps documentation [DOCDIR]
1517 _ACEOF
1519 cat <<\_ACEOF
1521 System types:
1522 --build=BUILD configure for building on BUILD [guessed]
1523 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1524 --target=TARGET configure for building compilers for TARGET [HOST]
1525 _ACEOF
1528 if test -n "$ac_init_help"; then
1529 case $ac_init_help in
1530 short | recursive ) echo "Configuration of llvm 2.4svn:";;
1531 esac
1532 cat <<\_ACEOF
1534 Optional Features:
1535 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1536 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1537 --enable-optimized
1538 --enable-assertions
1539 --enable-expensive-checks
1541 --enable-debug-runtime
1542 --enable-jit Enable Just In Time Compiling (default is YES)
1543 --enable-doxygen Build doxygen documentation (default is NO)
1544 --enable-threads Use threads if available (default is YES)
1545 --enable-pic Build LLVM with Position Independent Code (default
1546 is NO)
1547 --enable-targets Build specific host targets:
1548 all,host-only,{target-name} (default=all)
1549 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1550 %a (default is YES)
1551 --enable-bindings Build specific language bindings:
1552 all,auto,none,{binding-name} (default=auto)
1553 --enable-ltdl-install install libltdl
1554 --enable-shared[=PKGS] build shared libraries
1555 [default=yes]
1556 --enable-static[=PKGS] build static libraries
1557 [default=yes]
1558 --enable-fast-install[=PKGS]
1559 optimize for fast installation
1560 [default=yes]
1561 --disable-libtool-lock avoid locking (might break parallel builds)
1563 Optional Packages:
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1566 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1567 searches PATH)
1568 --with-llvmgcc Specify location of llvm-gcc driver (default
1569 searches PATH)
1570 --with-llvmgxx Specify location of llvm-g++ driver (default
1571 searches PATH)
1572 --with-extra-options Specify addtional options to compile LLVM with
1573 --with-ocaml-libdir Specify install location for ocaml bindings (default
1574 is stdlib)
1575 --with-tclinclude directory where tcl headers are
1576 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1577 --with-pic try to use only PIC/non-PIC objects [default=use
1578 both]
1579 --with-tags[=TAGS] include additional configurations [automatic]
1580 --with-udis86=<path> Use udis86 external x86 disassembler library
1582 Some influential environment variables:
1583 CC C compiler command
1584 CFLAGS C compiler flags
1585 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1586 nonstandard directory <lib dir>
1587 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1588 you have headers in a nonstandard directory <include dir>
1589 CPP C preprocessor
1590 CXX C++ compiler command
1591 CXXFLAGS C++ compiler flags
1592 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1593 the first program found out of: `bison -y', `byacc', `yacc'.
1594 YFLAGS The list of arguments that will be passed by default to $YACC.
1595 This script will default YFLAGS to the empty string to avoid a
1596 default value of `-d' given by some make applications.
1597 CXXCPP C++ preprocessor
1598 F77 Fortran 77 compiler command
1599 FFLAGS Fortran 77 compiler flags
1601 Use these variables to override the choices made by `configure' or to help
1602 it to find libraries and programs with nonstandard names/locations.
1604 Report bugs to <llvmbugs@cs.uiuc.edu>.
1605 _ACEOF
1606 ac_status=$?
1609 if test "$ac_init_help" = "recursive"; then
1610 # If there are subdirs, report their specific --help.
1611 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1612 test -d "$ac_dir" || continue
1613 ac_builddir=.
1615 case "$ac_dir" in
1616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1619 # A ".." for each directory in $ac_dir_suffix.
1620 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 esac ;;
1625 esac
1626 ac_abs_top_builddir=$ac_pwd
1627 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628 # for backward compatibility:
1629 ac_top_builddir=$ac_top_build_prefix
1631 case $srcdir in
1632 .) # We are building in place.
1633 ac_srcdir=.
1634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
1637 ac_srcdir=$srcdir$ac_dir_suffix;
1638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1640 *) # Relative name.
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644 esac
1645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure" --help=recursive
1655 else
1656 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657 fi || ac_status=$?
1658 cd "$ac_pwd" || { ac_status=$?; break; }
1659 done
1662 test -n "$ac_init_help" && exit $ac_status
1663 if $ac_init_version; then
1664 cat <<\_ACEOF
1665 llvm configure 2.4svn
1666 generated by GNU Autoconf 2.60
1668 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1669 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1670 This configure script is free software; the Free Software Foundation
1671 gives unlimited permission to copy, distribute and modify it.
1673 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1674 _ACEOF
1675 exit
1677 cat >config.log <<_ACEOF
1678 This file contains any messages produced by compilers while
1679 running configure, to aid debugging if configure makes a mistake.
1681 It was created by llvm $as_me 2.4svn, which was
1682 generated by GNU Autoconf 2.60. Invocation command line was
1684 $ $0 $@
1686 _ACEOF
1687 exec 5>>config.log
1689 cat <<_ASUNAME
1690 ## --------- ##
1691 ## Platform. ##
1692 ## --------- ##
1694 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1695 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1696 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1697 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1698 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1700 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1701 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1703 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1704 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1705 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1706 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1707 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1708 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1709 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1711 _ASUNAME
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 for as_dir in $PATH
1716 IFS=$as_save_IFS
1717 test -z "$as_dir" && as_dir=.
1718 echo "PATH: $as_dir"
1719 done
1720 IFS=$as_save_IFS
1722 } >&5
1724 cat >&5 <<_ACEOF
1727 ## ----------- ##
1728 ## Core tests. ##
1729 ## ----------- ##
1731 _ACEOF
1734 # Keep a trace of the command line.
1735 # Strip out --no-create and --no-recursion so they do not pile up.
1736 # Strip out --silent because we don't want to record it for future runs.
1737 # Also quote any args containing shell meta-characters.
1738 # Make two passes to allow for proper duplicate-argument suppression.
1739 ac_configure_args=
1740 ac_configure_args0=
1741 ac_configure_args1=
1742 ac_must_keep_next=false
1743 for ac_pass in 1 2
1745 for ac_arg
1747 case $ac_arg in
1748 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1749 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1750 | -silent | --silent | --silen | --sile | --sil)
1751 continue ;;
1752 *\'*)
1753 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1754 esac
1755 case $ac_pass in
1756 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1758 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1759 if test $ac_must_keep_next = true; then
1760 ac_must_keep_next=false # Got value, back to normal.
1761 else
1762 case $ac_arg in
1763 *=* | --config-cache | -C | -disable-* | --disable-* \
1764 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1765 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1766 | -with-* | --with-* | -without-* | --without-* | --x)
1767 case "$ac_configure_args0 " in
1768 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1769 esac
1771 -* ) ac_must_keep_next=true ;;
1772 esac
1774 ac_configure_args="$ac_configure_args '$ac_arg'"
1776 esac
1777 done
1778 done
1779 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1780 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1782 # When interrupted or exit'd, cleanup temporary files, and complete
1783 # config.log. We remove comments because anyway the quotes in there
1784 # would cause problems or look ugly.
1785 # WARNING: Use '\'' to represent an apostrophe within the trap.
1786 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1787 trap 'exit_status=$?
1788 # Save into config.log some information that might help in debugging.
1790 echo
1792 cat <<\_ASBOX
1793 ## ---------------- ##
1794 ## Cache variables. ##
1795 ## ---------------- ##
1796 _ASBOX
1797 echo
1798 # The following way of writing the cache mishandles newlines in values,
1800 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1801 eval ac_val=\$$ac_var
1802 case $ac_val in #(
1803 *${as_nl}*)
1804 case $ac_var in #(
1805 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1806 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1807 esac
1808 case $ac_var in #(
1809 _ | IFS | as_nl) ;; #(
1810 *) $as_unset $ac_var ;;
1811 esac ;;
1812 esac
1813 done
1814 (set) 2>&1 |
1815 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1816 *${as_nl}ac_space=\ *)
1817 sed -n \
1818 "s/'\''/'\''\\\\'\'''\''/g;
1819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1820 ;; #(
1822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1824 esac |
1825 sort
1827 echo
1829 cat <<\_ASBOX
1830 ## ----------------- ##
1831 ## Output variables. ##
1832 ## ----------------- ##
1833 _ASBOX
1834 echo
1835 for ac_var in $ac_subst_vars
1837 eval ac_val=\$$ac_var
1838 case $ac_val in
1839 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1840 esac
1841 echo "$ac_var='\''$ac_val'\''"
1842 done | sort
1843 echo
1845 if test -n "$ac_subst_files"; then
1846 cat <<\_ASBOX
1847 ## ------------------- ##
1848 ## File substitutions. ##
1849 ## ------------------- ##
1850 _ASBOX
1851 echo
1852 for ac_var in $ac_subst_files
1854 eval ac_val=\$$ac_var
1855 case $ac_val in
1856 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1857 esac
1858 echo "$ac_var='\''$ac_val'\''"
1859 done | sort
1860 echo
1863 if test -s confdefs.h; then
1864 cat <<\_ASBOX
1865 ## ----------- ##
1866 ## confdefs.h. ##
1867 ## ----------- ##
1868 _ASBOX
1869 echo
1870 cat confdefs.h
1871 echo
1873 test "$ac_signal" != 0 &&
1874 echo "$as_me: caught signal $ac_signal"
1875 echo "$as_me: exit $exit_status"
1876 } >&5
1877 rm -f core *.core core.conftest.* &&
1878 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1879 exit $exit_status
1881 for ac_signal in 1 2 13 15; do
1882 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1883 done
1884 ac_signal=0
1886 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1887 rm -f -r conftest* confdefs.h
1889 # Predefined preprocessor variables.
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_NAME "$PACKAGE_NAME"
1893 _ACEOF
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1898 _ACEOF
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1903 _ACEOF
1906 cat >>confdefs.h <<_ACEOF
1907 #define PACKAGE_STRING "$PACKAGE_STRING"
1908 _ACEOF
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1913 _ACEOF
1916 # Let the site file select an alternate cache file if it wants to.
1917 # Prefer explicitly selected file to automatically selected ones.
1918 if test -n "$CONFIG_SITE"; then
1919 set x "$CONFIG_SITE"
1920 elif test "x$prefix" != xNONE; then
1921 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1922 else
1923 set x "$ac_default_prefix/share/config.site" \
1924 "$ac_default_prefix/etc/config.site"
1926 shift
1927 for ac_site_file
1929 if test -r "$ac_site_file"; then
1930 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1931 echo "$as_me: loading site script $ac_site_file" >&6;}
1932 sed 's/^/| /' "$ac_site_file" >&5
1933 . "$ac_site_file"
1935 done
1937 if test -r "$cache_file"; then
1938 # Some versions of bash will fail to source /dev/null (special
1939 # files actually), so we avoid doing that.
1940 if test -f "$cache_file"; then
1941 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1942 echo "$as_me: loading cache $cache_file" >&6;}
1943 case $cache_file in
1944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1945 *) . "./$cache_file";;
1946 esac
1948 else
1949 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1950 echo "$as_me: creating cache $cache_file" >&6;}
1951 >$cache_file
1954 # Check that the precious variables saved in the cache have kept the same
1955 # value.
1956 ac_cache_corrupted=false
1957 for ac_var in $ac_precious_vars; do
1958 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1959 eval ac_new_set=\$ac_env_${ac_var}_set
1960 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1961 eval ac_new_val=\$ac_env_${ac_var}_value
1962 case $ac_old_set,$ac_new_set in
1963 set,)
1964 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1965 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1966 ac_cache_corrupted=: ;;
1967 ,set)
1968 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1969 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1970 ac_cache_corrupted=: ;;
1971 ,);;
1973 if test "x$ac_old_val" != "x$ac_new_val"; then
1974 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1975 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1976 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1977 echo "$as_me: former value: $ac_old_val" >&2;}
1978 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1979 echo "$as_me: current value: $ac_new_val" >&2;}
1980 ac_cache_corrupted=:
1981 fi;;
1982 esac
1983 # Pass precious variables to config.status.
1984 if test "$ac_new_set" = set; then
1985 case $ac_new_val in
1986 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1987 *) ac_arg=$ac_var=$ac_new_val ;;
1988 esac
1989 case " $ac_configure_args " in
1990 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1991 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1992 esac
1994 done
1995 if $ac_cache_corrupted; then
1996 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1997 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1998 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1999 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2000 { (exit 1); exit 1; }; }
2027 ac_ext=c
2028 ac_cpp='$CPP $CPPFLAGS'
2029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2035 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2043 ac_aux_dir=
2044 for ac_dir in autoconf "$srcdir"/autoconf; do
2045 if test -f "$ac_dir/install-sh"; then
2046 ac_aux_dir=$ac_dir
2047 ac_install_sh="$ac_aux_dir/install-sh -c"
2048 break
2049 elif test -f "$ac_dir/install.sh"; then
2050 ac_aux_dir=$ac_dir
2051 ac_install_sh="$ac_aux_dir/install.sh -c"
2052 break
2053 elif test -f "$ac_dir/shtool"; then
2054 ac_aux_dir=$ac_dir
2055 ac_install_sh="$ac_aux_dir/shtool install -c"
2056 break
2058 done
2059 if test -z "$ac_aux_dir"; then
2060 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2061 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2062 { (exit 1); exit 1; }; }
2065 # These three variables are undocumented and unsupported,
2066 # and are intended to be withdrawn in a future Autoconf release.
2067 # They can cause serious problems if a builder's source tree is in a directory
2068 # whose full name contains unusual characters.
2069 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2070 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2071 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2075 if test ${srcdir} != "." ; then
2076 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2077 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2078 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2079 { (exit 1); exit 1; }; }
2083 for i in `ls ${srcdir}/projects`
2085 if test -d ${srcdir}/projects/${i} ; then
2086 case ${i} in
2087 CVS) ;;
2088 sample) subdirs="$subdirs projects/sample"
2090 privbracket) subdirs="$subdirs projects/privbracket"
2092 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2094 # llvm-test is the old name of the test-suite, kept here for backwards
2095 # compatibility
2096 llvm-test) subdirs="$subdirs projects/llvm-test"
2098 test-suite) subdirs="$subdirs projects/test-suite"
2100 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2102 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2104 llvm-java) subdirs="$subdirs projects/llvm-java"
2106 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2108 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2110 poolalloc) subdirs="$subdirs projects/poolalloc"
2112 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2115 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2116 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2118 esac
2120 done
2123 # Make sure we can run config.sub.
2124 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2125 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2126 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2127 { (exit 1); exit 1; }; }
2129 { echo "$as_me:$LINENO: checking build system type" >&5
2130 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2131 if test "${ac_cv_build+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134 ac_build_alias=$build_alias
2135 test "x$ac_build_alias" = x &&
2136 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2137 test "x$ac_build_alias" = x &&
2138 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2139 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2140 { (exit 1); exit 1; }; }
2141 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2142 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2143 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2144 { (exit 1); exit 1; }; }
2147 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2148 echo "${ECHO_T}$ac_cv_build" >&6; }
2149 case $ac_cv_build in
2150 *-*-*) ;;
2151 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2152 echo "$as_me: error: invalid value of canonical build" >&2;}
2153 { (exit 1); exit 1; }; };;
2154 esac
2155 build=$ac_cv_build
2156 ac_save_IFS=$IFS; IFS='-'
2157 set x $ac_cv_build
2158 shift
2159 build_cpu=$1
2160 build_vendor=$2
2161 shift; shift
2162 # Remember, the first character of IFS is used to create $*,
2163 # except with old shells:
2164 build_os=$*
2165 IFS=$ac_save_IFS
2166 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2169 { echo "$as_me:$LINENO: checking host system type" >&5
2170 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2171 if test "${ac_cv_host+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174 if test "x$host_alias" = x; then
2175 ac_cv_host=$ac_cv_build
2176 else
2177 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2178 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2179 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2180 { (exit 1); exit 1; }; }
2184 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2185 echo "${ECHO_T}$ac_cv_host" >&6; }
2186 case $ac_cv_host in
2187 *-*-*) ;;
2188 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2189 echo "$as_me: error: invalid value of canonical host" >&2;}
2190 { (exit 1); exit 1; }; };;
2191 esac
2192 host=$ac_cv_host
2193 ac_save_IFS=$IFS; IFS='-'
2194 set x $ac_cv_host
2195 shift
2196 host_cpu=$1
2197 host_vendor=$2
2198 shift; shift
2199 # Remember, the first character of IFS is used to create $*,
2200 # except with old shells:
2201 host_os=$*
2202 IFS=$ac_save_IFS
2203 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2206 { echo "$as_me:$LINENO: checking target system type" >&5
2207 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2208 if test "${ac_cv_target+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211 if test "x$target_alias" = x; then
2212 ac_cv_target=$ac_cv_host
2213 else
2214 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2215 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2216 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2217 { (exit 1); exit 1; }; }
2221 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2222 echo "${ECHO_T}$ac_cv_target" >&6; }
2223 case $ac_cv_target in
2224 *-*-*) ;;
2225 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2226 echo "$as_me: error: invalid value of canonical target" >&2;}
2227 { (exit 1); exit 1; }; };;
2228 esac
2229 target=$ac_cv_target
2230 ac_save_IFS=$IFS; IFS='-'
2231 set x $ac_cv_target
2232 shift
2233 target_cpu=$1
2234 target_vendor=$2
2235 shift; shift
2236 # Remember, the first character of IFS is used to create $*,
2237 # except with old shells:
2238 target_os=$*
2239 IFS=$ac_save_IFS
2240 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2243 # The aliases save the names the user supplied, while $host etc.
2244 # will get canonicalized.
2245 test -n "$target_alias" &&
2246 test "$program_prefix$program_suffix$program_transform_name" = \
2247 NONENONEs,x,x, &&
2248 program_prefix=${target_alias}-
2250 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2251 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2252 if test "${llvm_cv_os_type+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255 case $host in
2256 *-*-aix*)
2257 llvm_cv_link_all_option="-Wl,--whole-archive"
2258 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2259 llvm_cv_os_type="AIX"
2260 llvm_cv_platform_type="Unix" ;;
2261 *-*-irix*)
2262 llvm_cv_link_all_option="-Wl,--whole-archive"
2263 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2264 llvm_cv_os_type="IRIX"
2265 llvm_cv_platform_type="Unix" ;;
2266 *-*-cygwin*)
2267 llvm_cv_link_all_option="-Wl,--whole-archive"
2268 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269 llvm_cv_os_type="Cygwin"
2270 llvm_cv_platform_type="Unix" ;;
2271 *-*-darwin*)
2272 llvm_cv_link_all_option="-Wl,-all_load"
2273 llvm_cv_no_link_all_option="-Wl,-noall_load"
2274 llvm_cv_os_type="Darwin"
2275 llvm_cv_platform_type="Unix" ;;
2276 *-*-freebsd*)
2277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279 llvm_cv_os_type="FreeBSD"
2280 llvm_cv_platform_type="Unix" ;;
2281 *-*-openbsd*)
2282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2284 llvm_cv_os_type="OpenBSD"
2285 llvm_cv_platform_type="Unix" ;;
2286 *-*-netbsd*)
2287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289 llvm_cv_os_type="NetBSD"
2290 llvm_cv_platform_type="Unix" ;;
2291 *-*-dragonfly*)
2292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294 llvm_cv_os_type="DragonFly"
2295 llvm_cv_platform_type="Unix" ;;
2296 *-*-hpux*)
2297 llvm_cv_link_all_option="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299 llvm_cv_os_type="HP-UX"
2300 llvm_cv_platform_type="Unix" ;;
2301 *-*-interix*)
2302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2304 llvm_cv_os_type="Interix"
2305 llvm_cv_platform_type="Unix" ;;
2306 *-*-linux*)
2307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2309 llvm_cv_os_type="Linux"
2310 llvm_cv_platform_type="Unix" ;;
2311 *-*-solaris*)
2312 llvm_cv_link_all_option="-Wl,-z,allextract"
2313 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2314 llvm_cv_os_type="SunOS"
2315 llvm_cv_platform_type="Unix" ;;
2316 *-*-win32*)
2317 llvm_cv_link_all_option="-Wl,--whole-archive"
2318 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2319 llvm_cv_os_type="Win32"
2320 llvm_cv_platform_type="Win32" ;;
2321 *-*-mingw*)
2322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2324 llvm_cv_os_type="MingW"
2325 llvm_cv_platform_type="Win32" ;;
2327 llvm_cv_link_all_option=""
2328 llvm_cv_no_link_all_option=""
2329 llvm_cv_os_type="Unknown"
2330 llvm_cv_platform_type="Unknown" ;;
2331 esac
2333 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2334 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2336 if test "$llvm_cv_os_type" = "Unknown" ; then
2337 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2338 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2339 { (exit 1); exit 1; }; }
2342 OS=$llvm_cv_os_type
2345 LINKALL=$llvm_cv_link_all_option
2347 NOLINKALL=$llvm_cv_no_link_all_option
2350 case $llvm_cv_platform_type in
2351 Unix)
2353 cat >>confdefs.h <<\_ACEOF
2354 #define LLVM_ON_UNIX 1
2355 _ACEOF
2357 LLVM_ON_UNIX=1
2359 LLVM_ON_WIN32=0
2362 Win32)
2364 cat >>confdefs.h <<\_ACEOF
2365 #define LLVM_ON_WIN32 1
2366 _ACEOF
2368 LLVM_ON_UNIX=0
2370 LLVM_ON_WIN32=1
2373 esac
2375 { echo "$as_me:$LINENO: checking target architecture" >&5
2376 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2377 if test "${llvm_cv_target_arch+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380 case $target in
2381 i?86-*) llvm_cv_target_arch="x86" ;;
2382 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2383 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2384 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2385 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2386 ia64-*) llvm_cv_target_arch="IA64" ;;
2387 arm-*) llvm_cv_target_arch="ARM" ;;
2388 mips-*) llvm_cv_target_arch="Mips" ;;
2389 pic16-*) llvm_cv_target_arch="PIC16" ;;
2390 *) llvm_cv_target_arch="Unknown" ;;
2391 esac
2393 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2394 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2396 if test "$llvm_cv_target_arch" = "Unknown" ; then
2397 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2398 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2401 ARCH=$llvm_cv_target_arch
2404 ac_ext=c
2405 ac_cpp='$CPP $CPPFLAGS'
2406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2409 if test -n "$ac_tool_prefix"; then
2410 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2411 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2414 if test "${ac_cv_prog_CC+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417 if test -n "$CC"; then
2418 ac_cv_prog_CC="$CC" # Let the user override the test.
2419 else
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2431 done
2432 done
2433 IFS=$as_save_IFS
2437 CC=$ac_cv_prog_CC
2438 if test -n "$CC"; then
2439 { echo "$as_me:$LINENO: result: $CC" >&5
2440 echo "${ECHO_T}$CC" >&6; }
2441 else
2442 { echo "$as_me:$LINENO: result: no" >&5
2443 echo "${ECHO_T}no" >&6; }
2448 if test -z "$ac_cv_prog_CC"; then
2449 ac_ct_CC=$CC
2450 # Extract the first word of "gcc", so it can be a program name with args.
2451 set dummy gcc; ac_word=$2
2452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457 if test -n "$ac_ct_CC"; then
2458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_ac_ct_CC="gcc"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2471 done
2472 done
2473 IFS=$as_save_IFS
2477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2478 if test -n "$ac_ct_CC"; then
2479 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2480 echo "${ECHO_T}$ac_ct_CC" >&6; }
2481 else
2482 { echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6; }
2486 if test "x$ac_ct_CC" = x; then
2487 CC=""
2488 else
2489 case $cross_compiling:$ac_tool_warned in
2490 yes:)
2491 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2492 whose name does not start with the host triplet. If you think this
2493 configuration is useful to you, please write to autoconf@gnu.org." >&5
2494 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2495 whose name does not start with the host triplet. If you think this
2496 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2497 ac_tool_warned=yes ;;
2498 esac
2499 CC=$ac_ct_CC
2501 else
2502 CC="$ac_cv_prog_CC"
2505 if test -z "$CC"; then
2506 if test -n "$ac_tool_prefix"; then
2507 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2508 set dummy ${ac_tool_prefix}cc; ac_word=$2
2509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2511 if test "${ac_cv_prog_CC+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514 if test -n "$CC"; then
2515 ac_cv_prog_CC="$CC" # Let the user override the test.
2516 else
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2524 ac_cv_prog_CC="${ac_tool_prefix}cc"
2525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 break 2
2528 done
2529 done
2530 IFS=$as_save_IFS
2534 CC=$ac_cv_prog_CC
2535 if test -n "$CC"; then
2536 { echo "$as_me:$LINENO: result: $CC" >&5
2537 echo "${ECHO_T}$CC" >&6; }
2538 else
2539 { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2546 if test -z "$CC"; then
2547 # Extract the first word of "cc", so it can be a program name with args.
2548 set dummy cc; ac_word=$2
2549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2551 if test "${ac_cv_prog_CC+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 else
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2556 else
2557 ac_prog_rejected=no
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2565 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2566 ac_prog_rejected=yes
2567 continue
2569 ac_cv_prog_CC="cc"
2570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2573 done
2574 done
2575 IFS=$as_save_IFS
2577 if test $ac_prog_rejected = yes; then
2578 # We found a bogon in the path, so make sure we never use it.
2579 set dummy $ac_cv_prog_CC
2580 shift
2581 if test $# != 0; then
2582 # We chose a different compiler from the bogus one.
2583 # However, it has the same basename, so the bogon will be chosen
2584 # first if we set CC to just the basename; use the full file name.
2585 shift
2586 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2591 CC=$ac_cv_prog_CC
2592 if test -n "$CC"; then
2593 { echo "$as_me:$LINENO: result: $CC" >&5
2594 echo "${ECHO_T}$CC" >&6; }
2595 else
2596 { echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6; }
2602 if test -z "$CC"; then
2603 if test -n "$ac_tool_prefix"; then
2604 for ac_prog in cl.exe
2606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2610 if test "${ac_cv_prog_CC+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 if test -n "$CC"; then
2614 ac_cv_prog_CC="$CC" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2627 done
2628 done
2629 IFS=$as_save_IFS
2633 CC=$ac_cv_prog_CC
2634 if test -n "$CC"; then
2635 { echo "$as_me:$LINENO: result: $CC" >&5
2636 echo "${ECHO_T}$CC" >&6; }
2637 else
2638 { echo "$as_me:$LINENO: result: no" >&5
2639 echo "${ECHO_T}no" >&6; }
2643 test -n "$CC" && break
2644 done
2646 if test -z "$CC"; then
2647 ac_ct_CC=$CC
2648 for ac_prog in cl.exe
2650 # Extract the first word of "$ac_prog", so it can be a program name with args.
2651 set dummy $ac_prog; ac_word=$2
2652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2654 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 else
2657 if test -n "$ac_ct_CC"; then
2658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2667 ac_cv_prog_ac_ct_CC="$ac_prog"
2668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 break 2
2671 done
2672 done
2673 IFS=$as_save_IFS
2677 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2678 if test -n "$ac_ct_CC"; then
2679 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2680 echo "${ECHO_T}$ac_ct_CC" >&6; }
2681 else
2682 { echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6; }
2687 test -n "$ac_ct_CC" && break
2688 done
2690 if test "x$ac_ct_CC" = x; then
2691 CC=""
2692 else
2693 case $cross_compiling:$ac_tool_warned in
2694 yes:)
2695 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2696 whose name does not start with the host triplet. If you think this
2697 configuration is useful to you, please write to autoconf@gnu.org." >&5
2698 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2699 whose name does not start with the host triplet. If you think this
2700 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2701 ac_tool_warned=yes ;;
2702 esac
2703 CC=$ac_ct_CC
2710 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2711 See \`config.log' for more details." >&5
2712 echo "$as_me: error: no acceptable C compiler found in \$PATH
2713 See \`config.log' for more details." >&2;}
2714 { (exit 1); exit 1; }; }
2716 # Provide some information about the compiler.
2717 echo "$as_me:$LINENO: checking for C compiler version" >&5
2718 ac_compiler=`set X $ac_compile; echo $2`
2719 { (ac_try="$ac_compiler --version >&5"
2720 case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723 esac
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_compiler --version >&5") 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }
2729 { (ac_try="$ac_compiler -v >&5"
2730 case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733 esac
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compiler -v >&5") 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }
2739 { (ac_try="$ac_compiler -V >&5"
2740 case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743 esac
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compiler -V >&5") 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }
2750 cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h. */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2758 main ()
2762 return 0;
2764 _ACEOF
2765 ac_clean_files_save=$ac_clean_files
2766 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2767 # Try to create an executable without -o first, disregard a.out.
2768 # It will help us diagnose broken compilers, and finding out an intuition
2769 # of exeext.
2770 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2771 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2772 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2774 # List of possible output files, starting from the most likely.
2775 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2776 # only as a last resort. b.out is created by i960 compilers.
2777 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2779 # The IRIX 6 linker writes into existing files which may not be
2780 # executable, retaining their permissions. Remove them first so a
2781 # subsequent execution test works.
2782 ac_rmfiles=
2783 for ac_file in $ac_files
2785 case $ac_file in
2786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2787 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2788 esac
2789 done
2790 rm -f $ac_rmfiles
2792 if { (ac_try="$ac_link_default"
2793 case "(($ac_try" in
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2796 esac
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_link_default") 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; then
2802 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2803 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2804 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2805 # so that the user can short-circuit this test for compilers unknown to
2806 # Autoconf.
2807 for ac_file in $ac_files
2809 test -f "$ac_file" || continue
2810 case $ac_file in
2811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2813 [ab].out )
2814 # We found the default executable, but exeext='' is most
2815 # certainly right.
2816 break;;
2817 *.* )
2818 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2819 then :; else
2820 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2822 # We set ac_cv_exeext here because the later test for it is not
2823 # safe: cross compilers may not add the suffix if given an `-o'
2824 # argument, so we may need to know it at that point already.
2825 # Even if this section looks crufty: it has the advantage of
2826 # actually working.
2827 break;;
2829 break;;
2830 esac
2831 done
2832 test "$ac_cv_exeext" = no && ac_cv_exeext=
2834 else
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2838 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2839 See \`config.log' for more details." >&5
2840 echo "$as_me: error: C compiler cannot create executables
2841 See \`config.log' for more details." >&2;}
2842 { (exit 77); exit 77; }; }
2845 ac_exeext=$ac_cv_exeext
2846 { echo "$as_me:$LINENO: result: $ac_file" >&5
2847 echo "${ECHO_T}$ac_file" >&6; }
2849 # Check that the compiler produces executables we can run. If not, either
2850 # the compiler is broken, or we cross compile.
2851 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2852 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2853 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2854 # If not cross compiling, check that we can run a simple program.
2855 if test "$cross_compiling" != yes; then
2856 if { ac_try='./$ac_file'
2857 { (case "(($ac_try" in
2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859 *) ac_try_echo=$ac_try;;
2860 esac
2861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2862 (eval "$ac_try") 2>&5
2863 ac_status=$?
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2866 cross_compiling=no
2867 else
2868 if test "$cross_compiling" = maybe; then
2869 cross_compiling=yes
2870 else
2871 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2872 If you meant to cross compile, use \`--host'.
2873 See \`config.log' for more details." >&5
2874 echo "$as_me: error: cannot run C compiled programs.
2875 If you meant to cross compile, use \`--host'.
2876 See \`config.log' for more details." >&2;}
2877 { (exit 1); exit 1; }; }
2881 { echo "$as_me:$LINENO: result: yes" >&5
2882 echo "${ECHO_T}yes" >&6; }
2884 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2885 ac_clean_files=$ac_clean_files_save
2886 # Check that the compiler produces executables we can run. If not, either
2887 # the compiler is broken, or we cross compile.
2888 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2889 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2890 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2891 echo "${ECHO_T}$cross_compiling" >&6; }
2893 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2894 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2895 if { (ac_try="$ac_link"
2896 case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899 esac
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_link") 2>&5
2902 ac_status=$?
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; then
2905 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2906 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2907 # work properly (i.e., refer to `conftest.exe'), while it won't with
2908 # `rm'.
2909 for ac_file in conftest.exe conftest conftest.*; do
2910 test -f "$ac_file" || continue
2911 case $ac_file in
2912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2913 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2914 break;;
2915 * ) break;;
2916 esac
2917 done
2918 else
2919 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2920 See \`config.log' for more details." >&5
2921 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2922 See \`config.log' for more details." >&2;}
2923 { (exit 1); exit 1; }; }
2926 rm -f conftest$ac_cv_exeext
2927 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2928 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2930 rm -f conftest.$ac_ext
2931 EXEEXT=$ac_cv_exeext
2932 ac_exeext=$EXEEXT
2933 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2934 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2935 if test "${ac_cv_objext+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938 cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h. */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2946 main ()
2950 return 0;
2952 _ACEOF
2953 rm -f conftest.o conftest.obj
2954 if { (ac_try="$ac_compile"
2955 case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_compile") 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; then
2964 for ac_file in conftest.o conftest.obj conftest.*; do
2965 test -f "$ac_file" || continue;
2966 case $ac_file in
2967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2968 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2969 break;;
2970 esac
2971 done
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2977 See \`config.log' for more details." >&5
2978 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2979 See \`config.log' for more details." >&2;}
2980 { (exit 1); exit 1; }; }
2983 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2985 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2986 echo "${ECHO_T}$ac_cv_objext" >&6; }
2987 OBJEXT=$ac_cv_objext
2988 ac_objext=$OBJEXT
2989 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2990 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2991 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 else
2994 cat >conftest.$ac_ext <<_ACEOF
2995 /* confdefs.h. */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3002 main ()
3004 #ifndef __GNUC__
3005 choke me
3006 #endif
3009 return 0;
3011 _ACEOF
3012 rm -f conftest.$ac_objext
3013 if { (ac_try="$ac_compile"
3014 case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017 esac
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_compile") 2>conftest.er1
3020 ac_status=$?
3021 grep -v '^ *+' conftest.er1 >conftest.err
3022 rm -f conftest.er1
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3027 { (case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_try") 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; } &&
3036 { ac_try='test -s conftest.$ac_objext'
3037 { (case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_try") 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; }; then
3046 ac_compiler_gnu=yes
3047 else
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3051 ac_compiler_gnu=no
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3058 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3060 GCC=`test $ac_compiler_gnu = yes && echo yes`
3061 ac_test_CFLAGS=${CFLAGS+set}
3062 ac_save_CFLAGS=$CFLAGS
3063 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3065 if test "${ac_cv_prog_cc_g+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 ac_save_c_werror_flag=$ac_c_werror_flag
3069 ac_c_werror_flag=yes
3070 ac_cv_prog_cc_g=no
3071 CFLAGS="-g"
3072 cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h. */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3080 main ()
3084 return 0;
3086 _ACEOF
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3095 ac_status=$?
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } &&
3101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3102 { (case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_try") 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; } &&
3111 { ac_try='test -s conftest.$ac_objext'
3112 { (case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115 esac
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_try") 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 ac_cv_prog_cc_g=yes
3122 else
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3126 CFLAGS=""
3127 cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h. */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3135 main ()
3139 return 0;
3141 _ACEOF
3142 rm -f conftest.$ac_objext
3143 if { (ac_try="$ac_compile"
3144 case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compile") 2>conftest.er1
3150 ac_status=$?
3151 grep -v '^ *+' conftest.er1 >conftest.err
3152 rm -f conftest.er1
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } &&
3156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; } &&
3166 { ac_try='test -s conftest.$ac_objext'
3167 { (case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_try") 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; }; then
3177 else
3178 echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 ac_c_werror_flag=$ac_save_c_werror_flag
3182 CFLAGS="-g"
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3191 main ()
3195 return 0;
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3200 case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } &&
3212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3213 { (case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_try") 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; } &&
3222 { ac_try='test -s conftest.$ac_objext'
3223 { (case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_try") 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3232 ac_cv_prog_cc_g=yes
3233 else
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 ac_c_werror_flag=$ac_save_c_werror_flag
3249 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3250 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3251 if test "$ac_test_CFLAGS" = set; then
3252 CFLAGS=$ac_save_CFLAGS
3253 elif test $ac_cv_prog_cc_g = yes; then
3254 if test "$GCC" = yes; then
3255 CFLAGS="-g -O2"
3256 else
3257 CFLAGS="-g"
3259 else
3260 if test "$GCC" = yes; then
3261 CFLAGS="-O2"
3262 else
3263 CFLAGS=
3266 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3267 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3268 if test "${ac_cv_prog_cc_c89+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271 ac_cv_prog_cc_c89=no
3272 ac_save_CC=$CC
3273 cat >conftest.$ac_ext <<_ACEOF
3274 /* confdefs.h. */
3275 _ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3279 #include <stdarg.h>
3280 #include <stdio.h>
3281 #include <sys/types.h>
3282 #include <sys/stat.h>
3283 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3284 struct buf { int x; };
3285 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3286 static char *e (p, i)
3287 char **p;
3288 int i;
3290 return p[i];
3292 static char *f (char * (*g) (char **, int), char **p, ...)
3294 char *s;
3295 va_list v;
3296 va_start (v,p);
3297 s = g (p, va_arg (v,int));
3298 va_end (v);
3299 return s;
3302 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3303 function prototypes and stuff, but not '\xHH' hex character constants.
3304 These don't provoke an error unfortunately, instead are silently treated
3305 as 'x'. The following induces an error, until -std is added to get
3306 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3307 array size at least. It's necessary to write '\x00'==0 to get something
3308 that's true only with -std. */
3309 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3311 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3312 inside strings and character constants. */
3313 #define FOO(x) 'x'
3314 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3316 int test (int i, double x);
3317 struct s1 {int (*f) (int a);};
3318 struct s2 {int (*f) (double a);};
3319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3320 int argc;
3321 char **argv;
3323 main ()
3325 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3327 return 0;
3329 _ACEOF
3330 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3331 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3333 CC="$ac_save_CC $ac_arg"
3334 rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3336 case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_compile") 2>conftest.er1
3342 ac_status=$?
3343 grep -v '^ *+' conftest.er1 >conftest.err
3344 rm -f conftest.er1
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } &&
3348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3349 { (case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_try") 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3362 esac
3363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364 (eval "$ac_try") 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; }; then
3368 ac_cv_prog_cc_c89=$ac_arg
3369 else
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3376 rm -f core conftest.err conftest.$ac_objext
3377 test "x$ac_cv_prog_cc_c89" != "xno" && break
3378 done
3379 rm -f conftest.$ac_ext
3380 CC=$ac_save_CC
3383 # AC_CACHE_VAL
3384 case "x$ac_cv_prog_cc_c89" in
3386 { echo "$as_me:$LINENO: result: none needed" >&5
3387 echo "${ECHO_T}none needed" >&6; } ;;
3388 xno)
3389 { echo "$as_me:$LINENO: result: unsupported" >&5
3390 echo "${ECHO_T}unsupported" >&6; } ;;
3392 CC="$CC $ac_cv_prog_cc_c89"
3393 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3394 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3395 esac
3398 ac_ext=c
3399 ac_cpp='$CPP $CPPFLAGS'
3400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 ac_ext=c
3406 ac_cpp='$CPP $CPPFLAGS'
3407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3411 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3412 # On Suns, sometimes $CPP names a directory.
3413 if test -n "$CPP" && test -d "$CPP"; then
3414 CPP=
3416 if test -z "$CPP"; then
3417 if test "${ac_cv_prog_CPP+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420 # Double quotes because CPP needs to be expanded
3421 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3423 ac_preproc_ok=false
3424 for ac_c_preproc_warn_flag in '' yes
3426 # Use a header file that comes with gcc, so configuring glibc
3427 # with a fresh cross-compiler works.
3428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429 # <limits.h> exists even on freestanding compilers.
3430 # On the NeXT, cc -E runs the code through the compiler's parser,
3431 # not just through cpp. "Syntax error" is here to catch this case.
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h. */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3438 #ifdef __STDC__
3439 # include <limits.h>
3440 #else
3441 # include <assert.h>
3442 #endif
3443 Syntax error
3444 _ACEOF
3445 if { (ac_try="$ac_cpp conftest.$ac_ext"
3446 case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449 esac
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } >/dev/null; then
3458 if test -s conftest.err; then
3459 ac_cpp_err=$ac_c_preproc_warn_flag
3460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3461 else
3462 ac_cpp_err=
3464 else
3465 ac_cpp_err=yes
3467 if test -z "$ac_cpp_err"; then
3469 else
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3473 # Broken: fails on valid input.
3474 continue
3477 rm -f conftest.err conftest.$ac_ext
3479 # OK, works on sane cases. Now check whether nonexistent headers
3480 # can be detected and how.
3481 cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h. */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3487 #include <ac_nonexistent.h>
3488 _ACEOF
3489 if { (ac_try="$ac_cpp conftest.$ac_ext"
3490 case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } >/dev/null; then
3502 if test -s conftest.err; then
3503 ac_cpp_err=$ac_c_preproc_warn_flag
3504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3505 else
3506 ac_cpp_err=
3508 else
3509 ac_cpp_err=yes
3511 if test -z "$ac_cpp_err"; then
3512 # Broken: success on invalid input.
3513 continue
3514 else
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3518 # Passes both tests.
3519 ac_preproc_ok=:
3520 break
3523 rm -f conftest.err conftest.$ac_ext
3525 done
3526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3527 rm -f conftest.err conftest.$ac_ext
3528 if $ac_preproc_ok; then
3529 break
3532 done
3533 ac_cv_prog_CPP=$CPP
3536 CPP=$ac_cv_prog_CPP
3537 else
3538 ac_cv_prog_CPP=$CPP
3540 { echo "$as_me:$LINENO: result: $CPP" >&5
3541 echo "${ECHO_T}$CPP" >&6; }
3542 ac_preproc_ok=false
3543 for ac_c_preproc_warn_flag in '' yes
3545 # Use a header file that comes with gcc, so configuring glibc
3546 # with a fresh cross-compiler works.
3547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3548 # <limits.h> exists even on freestanding compilers.
3549 # On the NeXT, cc -E runs the code through the compiler's parser,
3550 # not just through cpp. "Syntax error" is here to catch this case.
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557 #ifdef __STDC__
3558 # include <limits.h>
3559 #else
3560 # include <assert.h>
3561 #endif
3562 Syntax error
3563 _ACEOF
3564 if { (ac_try="$ac_cpp conftest.$ac_ext"
3565 case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568 esac
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } >/dev/null; then
3577 if test -s conftest.err; then
3578 ac_cpp_err=$ac_c_preproc_warn_flag
3579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3580 else
3581 ac_cpp_err=
3583 else
3584 ac_cpp_err=yes
3586 if test -z "$ac_cpp_err"; then
3588 else
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3592 # Broken: fails on valid input.
3593 continue
3596 rm -f conftest.err conftest.$ac_ext
3598 # OK, works on sane cases. Now check whether nonexistent headers
3599 # can be detected and how.
3600 cat >conftest.$ac_ext <<_ACEOF
3601 /* confdefs.h. */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 #include <ac_nonexistent.h>
3607 _ACEOF
3608 if { (ac_try="$ac_cpp conftest.$ac_ext"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } >/dev/null; then
3621 if test -s conftest.err; then
3622 ac_cpp_err=$ac_c_preproc_warn_flag
3623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3624 else
3625 ac_cpp_err=
3627 else
3628 ac_cpp_err=yes
3630 if test -z "$ac_cpp_err"; then
3631 # Broken: success on invalid input.
3632 continue
3633 else
3634 echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3637 # Passes both tests.
3638 ac_preproc_ok=:
3639 break
3642 rm -f conftest.err conftest.$ac_ext
3644 done
3645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3646 rm -f conftest.err conftest.$ac_ext
3647 if $ac_preproc_ok; then
3649 else
3650 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3651 See \`config.log' for more details." >&5
3652 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3653 See \`config.log' for more details." >&2;}
3654 { (exit 1); exit 1; }; }
3657 ac_ext=c
3658 ac_cpp='$CPP $CPPFLAGS'
3659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3665 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3666 if test "${ac_cv_path_GREP+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669 # Extract the first word of "grep ggrep" to use in msg output
3670 if test -z "$GREP"; then
3671 set dummy grep ggrep; ac_prog_name=$2
3672 if test "${ac_cv_path_GREP+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675 ac_path_GREP_found=false
3676 # Loop through the user's path and test for each of PROGNAME-LIST
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_prog in grep ggrep; do
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3685 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3686 # Check for GNU ac_path_GREP and select it if it is found.
3687 # Check for GNU $ac_path_GREP
3688 case `"$ac_path_GREP" --version 2>&1` in
3689 *GNU*)
3690 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3692 ac_count=0
3693 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3694 while :
3696 cat "conftest.in" "conftest.in" >"conftest.tmp"
3697 mv "conftest.tmp" "conftest.in"
3698 cp "conftest.in" "conftest.nl"
3699 echo 'GREP' >> "conftest.nl"
3700 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3702 ac_count=`expr $ac_count + 1`
3703 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3704 # Best one so far, save it but keep looking for a better one
3705 ac_cv_path_GREP="$ac_path_GREP"
3706 ac_path_GREP_max=$ac_count
3708 # 10*(2^10) chars as input seems more than enough
3709 test $ac_count -gt 10 && break
3710 done
3711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3712 esac
3715 $ac_path_GREP_found && break 3
3716 done
3717 done
3719 done
3720 IFS=$as_save_IFS
3725 GREP="$ac_cv_path_GREP"
3726 if test -z "$GREP"; then
3727 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3728 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3729 { (exit 1); exit 1; }; }
3732 else
3733 ac_cv_path_GREP=$GREP
3738 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3739 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3740 GREP="$ac_cv_path_GREP"
3743 { echo "$as_me:$LINENO: checking for egrep" >&5
3744 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3745 if test "${ac_cv_path_EGREP+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3749 then ac_cv_path_EGREP="$GREP -E"
3750 else
3751 # Extract the first word of "egrep" to use in msg output
3752 if test -z "$EGREP"; then
3753 set dummy egrep; ac_prog_name=$2
3754 if test "${ac_cv_path_EGREP+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757 ac_path_EGREP_found=false
3758 # Loop through the user's path and test for each of PROGNAME-LIST
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_prog in egrep; do
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3767 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3768 # Check for GNU ac_path_EGREP and select it if it is found.
3769 # Check for GNU $ac_path_EGREP
3770 case `"$ac_path_EGREP" --version 2>&1` in
3771 *GNU*)
3772 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3774 ac_count=0
3775 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3776 while :
3778 cat "conftest.in" "conftest.in" >"conftest.tmp"
3779 mv "conftest.tmp" "conftest.in"
3780 cp "conftest.in" "conftest.nl"
3781 echo 'EGREP' >> "conftest.nl"
3782 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3784 ac_count=`expr $ac_count + 1`
3785 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3786 # Best one so far, save it but keep looking for a better one
3787 ac_cv_path_EGREP="$ac_path_EGREP"
3788 ac_path_EGREP_max=$ac_count
3790 # 10*(2^10) chars as input seems more than enough
3791 test $ac_count -gt 10 && break
3792 done
3793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3794 esac
3797 $ac_path_EGREP_found && break 3
3798 done
3799 done
3801 done
3802 IFS=$as_save_IFS
3807 EGREP="$ac_cv_path_EGREP"
3808 if test -z "$EGREP"; then
3809 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3810 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3811 { (exit 1); exit 1; }; }
3814 else
3815 ac_cv_path_EGREP=$EGREP
3821 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3822 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3823 EGREP="$ac_cv_path_EGREP"
3826 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3827 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3828 if test "${ac_cv_header_stdc+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h. */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3837 #include <stdlib.h>
3838 #include <stdarg.h>
3839 #include <string.h>
3840 #include <float.h>
3843 main ()
3847 return 0;
3849 _ACEOF
3850 rm -f conftest.$ac_objext
3851 if { (ac_try="$ac_compile"
3852 case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_compile") 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
3864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3865 { (case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3868 esac
3869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3870 (eval "$ac_try") 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_try") 2>&5
3881 ac_status=$?
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
3884 ac_cv_header_stdc=yes
3885 else
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 ac_cv_header_stdc=no
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 if test $ac_cv_header_stdc = yes; then
3895 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3896 cat >conftest.$ac_ext <<_ACEOF
3897 /* confdefs.h. */
3898 _ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h. */
3902 #include <string.h>
3904 _ACEOF
3905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3906 $EGREP "memchr" >/dev/null 2>&1; then
3908 else
3909 ac_cv_header_stdc=no
3911 rm -f conftest*
3915 if test $ac_cv_header_stdc = yes; then
3916 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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>
3925 _ACEOF
3926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3927 $EGREP "free" >/dev/null 2>&1; then
3929 else
3930 ac_cv_header_stdc=no
3932 rm -f conftest*
3936 if test $ac_cv_header_stdc = yes; then
3937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3938 if test "$cross_compiling" = yes; then
3940 else
3941 cat >conftest.$ac_ext <<_ACEOF
3942 /* confdefs.h. */
3943 _ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3947 #include <ctype.h>
3948 #include <stdlib.h>
3949 #if ((' ' & 0x0FF) == 0x020)
3950 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3951 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3952 #else
3953 # define ISLOWER(c) \
3954 (('a' <= (c) && (c) <= 'i') \
3955 || ('j' <= (c) && (c) <= 'r') \
3956 || ('s' <= (c) && (c) <= 'z'))
3957 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3958 #endif
3960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3962 main ()
3964 int i;
3965 for (i = 0; i < 256; i++)
3966 if (XOR (islower (i), ISLOWER (i))
3967 || toupper (i) != TOUPPER (i))
3968 return 2;
3969 return 0;
3971 _ACEOF
3972 rm -f conftest$ac_exeext
3973 if { (ac_try="$ac_link"
3974 case "(($ac_try" in
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3977 esac
3978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3979 (eval "$ac_link") 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3983 { (case "(($ac_try" in
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3986 esac
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_try") 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3993 else
3994 echo "$as_me: program exited with status $ac_status" >&5
3995 echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3998 ( exit $ac_status )
3999 ac_cv_header_stdc=no
4001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4007 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4008 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4009 if test $ac_cv_header_stdc = yes; then
4011 cat >>confdefs.h <<\_ACEOF
4012 #define STDC_HEADERS 1
4013 _ACEOF
4017 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4027 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4028 inttypes.h stdint.h unistd.h
4030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036 cat >conftest.$ac_ext <<_ACEOF
4037 /* confdefs.h. */
4038 _ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4042 $ac_includes_default
4044 #include <$ac_header>
4045 _ACEOF
4046 rm -f conftest.$ac_objext
4047 if { (ac_try="$ac_compile"
4048 case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4051 esac
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_compile") 2>conftest.er1
4054 ac_status=$?
4055 grep -v '^ *+' conftest.er1 >conftest.err
4056 rm -f conftest.er1
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } &&
4060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4061 { (case "(($ac_try" in
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4064 esac
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_try") 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; } &&
4070 { ac_try='test -s conftest.$ac_objext'
4071 { (case "(($ac_try" in
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4074 esac
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_try") 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 eval "$as_ac_Header=yes"
4081 else
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 eval "$as_ac_Header=no"
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 ac_res=`eval echo '${'$as_ac_Header'}'`
4091 { echo "$as_me:$LINENO: result: $ac_res" >&5
4092 echo "${ECHO_T}$ac_res" >&6; }
4093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4094 cat >>confdefs.h <<_ACEOF
4095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4096 _ACEOF
4100 done
4103 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4104 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4105 if test "${ac_cv_c_bigendian+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108 # See if sys/param.h defines the BYTE_ORDER macro.
4109 cat >conftest.$ac_ext <<_ACEOF
4110 /* confdefs.h. */
4111 _ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4115 #include <sys/types.h>
4116 #include <sys/param.h>
4119 main ()
4121 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4122 bogus endian macros
4123 #endif
4126 return 0;
4128 _ACEOF
4129 rm -f conftest.$ac_objext
4130 if { (ac_try="$ac_compile"
4131 case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134 esac
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_compile") 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4144 { (case "(($ac_try" in
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4147 esac
4148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4149 (eval "$ac_try") 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; } &&
4153 { ac_try='test -s conftest.$ac_objext'
4154 { (case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4157 esac
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_try") 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; }; then
4163 # It does; now see whether it defined to BIG_ENDIAN or not.
4164 cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h. */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4170 #include <sys/types.h>
4171 #include <sys/param.h>
4174 main ()
4176 #if BYTE_ORDER != BIG_ENDIAN
4177 not big endian
4178 #endif
4181 return 0;
4183 _ACEOF
4184 rm -f conftest.$ac_objext
4185 if { (ac_try="$ac_compile"
4186 case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189 esac
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_compile") 2>conftest.er1
4192 ac_status=$?
4193 grep -v '^ *+' conftest.er1 >conftest.err
4194 rm -f conftest.er1
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } &&
4198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4199 { (case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4202 esac
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204 (eval "$ac_try") 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; } &&
4208 { ac_try='test -s conftest.$ac_objext'
4209 { (case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212 esac
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_try") 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4218 ac_cv_c_bigendian=yes
4219 else
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4223 ac_cv_c_bigendian=no
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 else
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4231 # It does not; compile a test program.
4232 if test "$cross_compiling" = yes; then
4233 # try to guess the endianness by grepping values into an object file
4234 ac_cv_c_bigendian=unknown
4235 cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h. */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4242 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4243 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4244 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4245 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4246 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4248 main ()
4250 _ascii (); _ebcdic ();
4252 return 0;
4254 _ACEOF
4255 rm -f conftest.$ac_objext
4256 if { (ac_try="$ac_compile"
4257 case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260 esac
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_compile") 2>conftest.er1
4263 ac_status=$?
4264 grep -v '^ *+' conftest.er1 >conftest.err
4265 rm -f conftest.er1
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4270 { (case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273 esac
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_try") 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; } &&
4279 { ac_try='test -s conftest.$ac_objext'
4280 { (case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4283 esac
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_try") 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4290 ac_cv_c_bigendian=yes
4292 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4293 if test "$ac_cv_c_bigendian" = unknown; then
4294 ac_cv_c_bigendian=no
4295 else
4296 # finding both strings is unlikely to happen, but who knows?
4297 ac_cv_c_bigendian=unknown
4300 else
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 else
4309 cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h. */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4315 $ac_includes_default
4317 main ()
4320 /* Are we little or big endian? From Harbison&Steele. */
4321 union
4323 long int l;
4324 char c[sizeof (long int)];
4325 } u;
4326 u.l = 1;
4327 return u.c[sizeof (long int) - 1] == 1;
4330 return 0;
4332 _ACEOF
4333 rm -f conftest$ac_exeext
4334 if { (ac_try="$ac_link"
4335 case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4338 esac
4339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4340 (eval "$ac_link") 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4344 { (case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347 esac
4348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349 (eval "$ac_try") 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; }; then
4353 ac_cv_c_bigendian=no
4354 else
4355 echo "$as_me: program exited with status $ac_status" >&5
4356 echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4359 ( exit $ac_status )
4360 ac_cv_c_bigendian=yes
4362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4371 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4372 case $ac_cv_c_bigendian in
4373 yes)
4374 ENDIAN=big
4377 ENDIAN=little
4380 { { echo "$as_me:$LINENO: error: unknown endianness
4381 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4382 echo "$as_me: error: unknown endianness
4383 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4384 { (exit 1); exit 1; }; } ;;
4385 esac
4388 if test "$cross_compiling" = yes; then
4389 LLVM_CROSS_COMPILING=1
4392 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4393 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4394 if test "${ac_cv_build_exeext+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4398 ac_cv_build_exeext=.exe
4399 else
4400 ac_build_prefix=${build_alias}-
4402 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4403 set dummy ${ac_build_prefix}gcc; ac_word=$2
4404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4406 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 else
4409 if test -n "$BUILD_CC"; then
4410 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4423 done
4424 done
4425 IFS=$as_save_IFS
4429 BUILD_CC=$ac_cv_prog_BUILD_CC
4430 if test -n "$BUILD_CC"; then
4431 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4432 echo "${ECHO_T}$BUILD_CC" >&6; }
4433 else
4434 { echo "$as_me:$LINENO: result: no" >&5
4435 echo "${ECHO_T}no" >&6; }
4439 if test -z "$BUILD_CC"; then
4440 # Extract the first word of "gcc", so it can be a program name with args.
4441 set dummy gcc; ac_word=$2
4442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4444 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447 if test -n "$BUILD_CC"; then
4448 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4449 else
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4457 ac_cv_prog_BUILD_CC="gcc"
4458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
4461 done
4462 done
4463 IFS=$as_save_IFS
4467 BUILD_CC=$ac_cv_prog_BUILD_CC
4468 if test -n "$BUILD_CC"; then
4469 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4470 echo "${ECHO_T}$BUILD_CC" >&6; }
4471 else
4472 { echo "$as_me:$LINENO: result: no" >&5
4473 echo "${ECHO_T}no" >&6; }
4477 if test -z "$BUILD_CC"; then
4478 # Extract the first word of "cc", so it can be a program name with args.
4479 set dummy cc; ac_word=$2
4480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4482 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485 if test -n "$BUILD_CC"; then
4486 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4487 else
4488 ac_prog_rejected=no
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH
4492 IFS=$as_save_IFS
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4497 ac_prog_rejected=yes
4498 continue
4500 ac_cv_prog_BUILD_CC="cc"
4501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 break 2
4504 done
4505 done
4506 IFS=$as_save_IFS
4508 if test $ac_prog_rejected = yes; then
4509 # We found a bogon in the path, so make sure we never use it.
4510 set dummy $ac_cv_prog_BUILD_CC
4511 shift
4512 if test $# != 0; then
4513 # We chose a different compiler from the bogus one.
4514 # However, it has the same basename, so the bogon will be chosen
4515 # first if we set BUILD_CC to just the basename; use the full file name.
4516 shift
4517 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4522 BUILD_CC=$ac_cv_prog_BUILD_CC
4523 if test -n "$BUILD_CC"; then
4524 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4525 echo "${ECHO_T}$BUILD_CC" >&6; }
4526 else
4527 { echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6; }
4534 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4535 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4536 { (exit 1); exit 1; }; }
4537 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4538 rm -f conftest*
4539 echo 'int main () { return 0; }' > conftest.$ac_ext
4540 ac_cv_build_exeext=
4541 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4542 (eval $ac_build_link) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; then
4546 for file in conftest.*; do
4547 case $file in
4548 *.c | *.o | *.obj | *.dSYM) ;;
4549 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4550 esac
4551 done
4552 else
4553 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4554 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4555 { (exit 1); exit 1; }; }
4557 rm -f conftest*
4558 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4562 BUILD_EXEEXT=""
4563 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4564 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4565 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4566 ac_build_exeext=$BUILD_EXEEXT
4568 else
4569 LLVM_CROSS_COMPILING=0
4573 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4574 cvsbuild="yes"
4575 optimize="no"
4576 CVSBUILD=CVSBUILD=1
4578 else
4579 cvsbuild="no"
4580 optimize="yes"
4584 # Check whether --enable-optimized was given.
4585 if test "${enable_optimized+set}" = set; then
4586 enableval=$enable_optimized;
4587 else
4588 enableval=$optimize
4591 if test ${enableval} = "no" ; then
4592 ENABLE_OPTIMIZED=
4594 else
4595 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4599 # Check whether --enable-assertions was given.
4600 if test "${enable_assertions+set}" = set; then
4601 enableval=$enable_assertions;
4602 else
4603 enableval="yes"
4606 if test ${enableval} = "yes" ; then
4607 DISABLE_ASSERTIONS=
4609 else
4610 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4614 # Check whether --enable-expensive-checks was given.
4615 if test "${enable_expensive_checks+set}" = set; then
4616 enableval=$enable_expensive_checks;
4617 else
4618 enableval="no"
4621 if test ${enableval} = "yes" ; then
4622 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4624 EXPENSIVE_CHECKS=yes
4626 else
4627 ENABLE_EXPENSIVE_CHECKS=
4629 EXPENSIVE_CHECKS=no
4633 # Check whether --enable-debug-runtime was given.
4634 if test "${enable_debug_runtime+set}" = set; then
4635 enableval=$enable_debug_runtime;
4636 else
4637 enableval=no
4640 if test ${enableval} = "no" ; then
4641 DEBUG_RUNTIME=
4643 else
4644 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4648 # Check whether --enable-jit was given.
4649 if test "${enable_jit+set}" = set; then
4650 enableval=$enable_jit;
4651 else
4652 enableval=default
4655 if test ${enableval} = "no"
4656 then
4657 JIT=
4659 else
4660 case "$llvm_cv_target_arch" in
4661 x86) TARGET_HAS_JIT=1
4663 Sparc) TARGET_HAS_JIT=0
4665 PowerPC) TARGET_HAS_JIT=1
4667 x86_64) TARGET_HAS_JIT=1
4669 Alpha) TARGET_HAS_JIT=1
4671 IA64) TARGET_HAS_JIT=0
4673 ARM) TARGET_HAS_JIT=0
4675 Mips) TARGET_HAS_JIT=0
4677 PIC16) TARGET_HAS_JIT=0
4679 *) TARGET_HAS_JIT=0
4681 esac
4684 # Check whether --enable-doxygen was given.
4685 if test "${enable_doxygen+set}" = set; then
4686 enableval=$enable_doxygen;
4687 else
4688 enableval=default
4691 case "$enableval" in
4692 yes) ENABLE_DOXYGEN=1
4694 no) ENABLE_DOXYGEN=0
4696 default) ENABLE_DOXYGEN=0
4698 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4699 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4700 { (exit 1); exit 1; }; } ;;
4701 esac
4703 # Check whether --enable-threads was given.
4704 if test "${enable_threads+set}" = set; then
4705 enableval=$enable_threads;
4706 else
4707 enableval=default
4710 case "$enableval" in
4711 yes) ENABLE_THREADS=1
4713 no) ENABLE_THREADS=0
4715 default) ENABLE_THREADS=1
4717 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4718 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4719 { (exit 1); exit 1; }; } ;;
4720 esac
4722 cat >>confdefs.h <<_ACEOF
4723 #define ENABLE_THREADS $ENABLE_THREADS
4724 _ACEOF
4727 # Check whether --enable-pic was given.
4728 if test "${enable_pic+set}" = set; then
4729 enableval=$enable_pic;
4730 else
4731 enableval=default
4734 case "$enableval" in
4735 yes) ENABLE_PIC=1
4737 no) ENABLE_PIC=0
4739 default) ENABLE_PIC=0
4741 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4742 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4743 { (exit 1); exit 1; }; } ;;
4744 esac
4746 cat >>confdefs.h <<_ACEOF
4747 #define ENABLE_PIC $ENABLE_PIC
4748 _ACEOF
4751 TARGETS_TO_BUILD=""
4752 # Check whether --enable-targets was given.
4753 if test "${enable_targets+set}" = set; then
4754 enableval=$enable_targets;
4755 else
4756 enableval=all
4759 case "$enableval" in
4760 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
4761 host-only)
4762 case "$llvm_cv_target_arch" in
4763 x86) TARGETS_TO_BUILD="X86" ;;
4764 x86_64) TARGETS_TO_BUILD="X86" ;;
4765 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4766 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4767 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4768 IA64) TARGETS_TO_BUILD="IA64" ;;
4769 ARM) TARGETS_TO_BUILD="ARM" ;;
4770 Mips) TARGETS_TO_BUILD="Mips" ;;
4771 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4772 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4773 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4774 echo "$as_me: error: Can not set target to build" >&2;}
4775 { (exit 1); exit 1; }; } ;;
4776 esac
4778 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4779 case "$a_target" in
4780 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4781 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4782 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4783 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4784 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4785 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4786 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4787 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4788 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4789 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4790 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4791 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4792 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4793 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4794 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4795 { (exit 1); exit 1; }; } ;;
4796 esac
4797 done
4799 esac
4800 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4803 # Check whether --enable-cbe-printf-a was given.
4804 if test "${enable_cbe_printf_a+set}" = set; then
4805 enableval=$enable_cbe_printf_a;
4806 else
4807 enableval=default
4810 case "$enableval" in
4811 yes) ENABLE_CBE_PRINTF_A=1
4813 no) ENABLE_CBE_PRINTF_A=0
4815 default) ENABLE_CBE_PRINTF_A=1
4817 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4818 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4819 { (exit 1); exit 1; }; } ;;
4820 esac
4822 cat >>confdefs.h <<_ACEOF
4823 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4824 _ACEOF
4828 # Check whether --with-llvmgccdir was given.
4829 if test "${with_llvmgccdir+set}" = set; then
4830 withval=$with_llvmgccdir;
4831 else
4832 withval=default
4835 case "$withval" in
4836 default) WITH_LLVMGCCDIR=default ;;
4837 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4838 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4839 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4840 { (exit 1); exit 1; }; } ;;
4841 esac
4844 # Check whether --with-llvmgcc was given.
4845 if test "${with_llvmgcc+set}" = set; then
4846 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4847 WITH_LLVMGCCDIR=""
4852 # Check whether --with-llvmgxx was given.
4853 if test "${with_llvmgxx+set}" = set; then
4854 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4855 WITH_LLVMGCCDIR=""
4859 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4860 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4861 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4862 { (exit 1); exit 1; }; };
4865 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4866 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4867 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4868 { (exit 1); exit 1; }; };
4872 # Check whether --with-extra-options was given.
4873 if test "${with_extra_options+set}" = set; then
4874 withval=$with_extra_options;
4875 else
4876 withval=default
4879 case "$withval" in
4880 default) EXTRA_OPTIONS= ;;
4881 *) EXTRA_OPTIONS=$withval ;;
4882 esac
4883 EXTRA_OPTIONS=$EXTRA_OPTIONS
4886 # Check whether --enable-bindings was given.
4887 if test "${enable_bindings+set}" = set; then
4888 enableval=$enable_bindings;
4889 else
4890 enableval=default
4893 BINDINGS_TO_BUILD=""
4894 case "$enableval" in
4895 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4896 all ) BINDINGS_TO_BUILD="ocaml" ;;
4897 none | no) BINDINGS_TO_BUILD="" ;;
4898 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4899 case "$a_binding" in
4900 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4901 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4902 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4903 { (exit 1); exit 1; }; } ;;
4904 esac
4905 done
4907 esac
4910 # Check whether --with-ocaml-libdir was given.
4911 if test "${with_ocaml_libdir+set}" = set; then
4912 withval=$with_ocaml_libdir;
4913 else
4914 withval=auto
4917 case "$withval" in
4918 auto) with_ocaml_libdir="$withval" ;;
4919 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4920 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4921 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4922 { (exit 1); exit 1; }; } ;;
4923 esac
4926 ac_ext=c
4927 ac_cpp='$CPP $CPPFLAGS'
4928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4932 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4933 # On Suns, sometimes $CPP names a directory.
4934 if test -n "$CPP" && test -d "$CPP"; then
4935 CPP=
4937 if test -z "$CPP"; then
4938 if test "${ac_cv_prog_CPP+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941 # Double quotes because CPP needs to be expanded
4942 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4944 ac_preproc_ok=false
4945 for ac_c_preproc_warn_flag in '' yes
4947 # Use a header file that comes with gcc, so configuring glibc
4948 # with a fresh cross-compiler works.
4949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4950 # <limits.h> exists even on freestanding compilers.
4951 # On the NeXT, cc -E runs the code through the compiler's parser,
4952 # not just through cpp. "Syntax error" is here to catch this case.
4953 cat >conftest.$ac_ext <<_ACEOF
4954 /* confdefs.h. */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 #ifdef __STDC__
4960 # include <limits.h>
4961 #else
4962 # include <assert.h>
4963 #endif
4964 Syntax error
4965 _ACEOF
4966 if { (ac_try="$ac_cpp conftest.$ac_ext"
4967 case "(($ac_try" in
4968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969 *) ac_try_echo=$ac_try;;
4970 esac
4971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4973 ac_status=$?
4974 grep -v '^ *+' conftest.er1 >conftest.err
4975 rm -f conftest.er1
4976 cat conftest.err >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } >/dev/null; then
4979 if test -s conftest.err; then
4980 ac_cpp_err=$ac_c_preproc_warn_flag
4981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4982 else
4983 ac_cpp_err=
4985 else
4986 ac_cpp_err=yes
4988 if test -z "$ac_cpp_err"; then
4990 else
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4994 # Broken: fails on valid input.
4995 continue
4998 rm -f conftest.err conftest.$ac_ext
5000 # OK, works on sane cases. Now check whether nonexistent headers
5001 # can be detected and how.
5002 cat >conftest.$ac_ext <<_ACEOF
5003 /* confdefs.h. */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5008 #include <ac_nonexistent.h>
5009 _ACEOF
5010 if { (ac_try="$ac_cpp conftest.$ac_ext"
5011 case "(($ac_try" in
5012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013 *) ac_try_echo=$ac_try;;
5014 esac
5015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5017 ac_status=$?
5018 grep -v '^ *+' conftest.er1 >conftest.err
5019 rm -f conftest.er1
5020 cat conftest.err >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } >/dev/null; then
5023 if test -s conftest.err; then
5024 ac_cpp_err=$ac_c_preproc_warn_flag
5025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5026 else
5027 ac_cpp_err=
5029 else
5030 ac_cpp_err=yes
5032 if test -z "$ac_cpp_err"; then
5033 # Broken: success on invalid input.
5034 continue
5035 else
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.$ac_ext >&5
5039 # Passes both tests.
5040 ac_preproc_ok=:
5041 break
5044 rm -f conftest.err conftest.$ac_ext
5046 done
5047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5048 rm -f conftest.err conftest.$ac_ext
5049 if $ac_preproc_ok; then
5050 break
5053 done
5054 ac_cv_prog_CPP=$CPP
5057 CPP=$ac_cv_prog_CPP
5058 else
5059 ac_cv_prog_CPP=$CPP
5061 { echo "$as_me:$LINENO: result: $CPP" >&5
5062 echo "${ECHO_T}$CPP" >&6; }
5063 ac_preproc_ok=false
5064 for ac_c_preproc_warn_flag in '' yes
5066 # Use a header file that comes with gcc, so configuring glibc
5067 # with a fresh cross-compiler works.
5068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5069 # <limits.h> exists even on freestanding compilers.
5070 # On the NeXT, cc -E runs the code through the compiler's parser,
5071 # not just through cpp. "Syntax error" is here to catch this case.
5072 cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h. */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078 #ifdef __STDC__
5079 # include <limits.h>
5080 #else
5081 # include <assert.h>
5082 #endif
5083 Syntax error
5084 _ACEOF
5085 if { (ac_try="$ac_cpp conftest.$ac_ext"
5086 case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089 esac
5090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } >/dev/null; then
5098 if test -s conftest.err; then
5099 ac_cpp_err=$ac_c_preproc_warn_flag
5100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5101 else
5102 ac_cpp_err=
5104 else
5105 ac_cpp_err=yes
5107 if test -z "$ac_cpp_err"; then
5109 else
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5113 # Broken: fails on valid input.
5114 continue
5117 rm -f conftest.err conftest.$ac_ext
5119 # OK, works on sane cases. Now check whether nonexistent headers
5120 # can be detected and how.
5121 cat >conftest.$ac_ext <<_ACEOF
5122 /* confdefs.h. */
5123 _ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h. */
5127 #include <ac_nonexistent.h>
5128 _ACEOF
5129 if { (ac_try="$ac_cpp conftest.$ac_ext"
5130 case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133 esac
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5136 ac_status=$?
5137 grep -v '^ *+' conftest.er1 >conftest.err
5138 rm -f conftest.er1
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } >/dev/null; then
5142 if test -s conftest.err; then
5143 ac_cpp_err=$ac_c_preproc_warn_flag
5144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5145 else
5146 ac_cpp_err=
5148 else
5149 ac_cpp_err=yes
5151 if test -z "$ac_cpp_err"; then
5152 # Broken: success on invalid input.
5153 continue
5154 else
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5158 # Passes both tests.
5159 ac_preproc_ok=:
5160 break
5163 rm -f conftest.err conftest.$ac_ext
5165 done
5166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5167 rm -f conftest.err conftest.$ac_ext
5168 if $ac_preproc_ok; then
5170 else
5171 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5172 See \`config.log' for more details." >&5
5173 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5174 See \`config.log' for more details." >&2;}
5175 { (exit 1); exit 1; }; }
5178 ac_ext=c
5179 ac_cpp='$CPP $CPPFLAGS'
5180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5184 ac_ext=c
5185 ac_cpp='$CPP $CPPFLAGS'
5186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5189 if test -n "$ac_tool_prefix"; then
5190 for ac_prog in gcc
5192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5196 if test "${ac_cv_prog_CC+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199 if test -n "$CC"; then
5200 ac_cv_prog_CC="$CC" # Let the user override the test.
5201 else
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5209 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5213 done
5214 done
5215 IFS=$as_save_IFS
5219 CC=$ac_cv_prog_CC
5220 if test -n "$CC"; then
5221 { echo "$as_me:$LINENO: result: $CC" >&5
5222 echo "${ECHO_T}$CC" >&6; }
5223 else
5224 { echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6; }
5229 test -n "$CC" && break
5230 done
5232 if test -z "$CC"; then
5233 ac_ct_CC=$CC
5234 for ac_prog in gcc
5236 # Extract the first word of "$ac_prog", so it can be a program name with args.
5237 set dummy $ac_prog; ac_word=$2
5238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 if test -n "$ac_ct_CC"; then
5244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_prog_ac_ct_CC="$ac_prog"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5257 done
5258 done
5259 IFS=$as_save_IFS
5263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5264 if test -n "$ac_ct_CC"; then
5265 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5266 echo "${ECHO_T}$ac_ct_CC" >&6; }
5267 else
5268 { echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6; }
5273 test -n "$ac_ct_CC" && break
5274 done
5276 if test "x$ac_ct_CC" = x; then
5277 CC=""
5278 else
5279 case $cross_compiling:$ac_tool_warned in
5280 yes:)
5281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5282 whose name does not start with the host triplet. If you think this
5283 configuration is useful to you, please write to autoconf@gnu.org." >&5
5284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5285 whose name does not start with the host triplet. If you think this
5286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5287 ac_tool_warned=yes ;;
5288 esac
5289 CC=$ac_ct_CC
5294 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5295 See \`config.log' for more details." >&5
5296 echo "$as_me: error: no acceptable C compiler found in \$PATH
5297 See \`config.log' for more details." >&2;}
5298 { (exit 1); exit 1; }; }
5300 # Provide some information about the compiler.
5301 echo "$as_me:$LINENO: checking for C compiler version" >&5
5302 ac_compiler=`set X $ac_compile; echo $2`
5303 { (ac_try="$ac_compiler --version >&5"
5304 case "(($ac_try" in
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5307 esac
5308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309 (eval "$ac_compiler --version >&5") 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }
5313 { (ac_try="$ac_compiler -v >&5"
5314 case "(($ac_try" in
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5317 esac
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_compiler -v >&5") 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }
5323 { (ac_try="$ac_compiler -V >&5"
5324 case "(($ac_try" in
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5327 esac
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329 (eval "$ac_compiler -V >&5") 2>&5
5330 ac_status=$?
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }
5334 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5335 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5336 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339 cat >conftest.$ac_ext <<_ACEOF
5340 /* confdefs.h. */
5341 _ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5347 main ()
5349 #ifndef __GNUC__
5350 choke me
5351 #endif
5354 return 0;
5356 _ACEOF
5357 rm -f conftest.$ac_objext
5358 if { (ac_try="$ac_compile"
5359 case "(($ac_try" in
5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361 *) ac_try_echo=$ac_try;;
5362 esac
5363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364 (eval "$ac_compile") 2>conftest.er1
5365 ac_status=$?
5366 grep -v '^ *+' conftest.er1 >conftest.err
5367 rm -f conftest.er1
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } &&
5371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5372 { (case "(($ac_try" in
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5375 esac
5376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377 (eval "$ac_try") 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; } &&
5381 { ac_try='test -s conftest.$ac_objext'
5382 { (case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_try") 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5391 ac_compiler_gnu=yes
5392 else
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5396 ac_compiler_gnu=no
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5403 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5404 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5405 GCC=`test $ac_compiler_gnu = yes && echo yes`
5406 ac_test_CFLAGS=${CFLAGS+set}
5407 ac_save_CFLAGS=$CFLAGS
5408 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5409 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5410 if test "${ac_cv_prog_cc_g+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413 ac_save_c_werror_flag=$ac_c_werror_flag
5414 ac_c_werror_flag=yes
5415 ac_cv_prog_cc_g=no
5416 CFLAGS="-g"
5417 cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h. */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5425 main ()
5429 return 0;
5431 _ACEOF
5432 rm -f conftest.$ac_objext
5433 if { (ac_try="$ac_compile"
5434 case "(($ac_try" in
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5437 esac
5438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 (eval "$ac_compile") 2>conftest.er1
5440 ac_status=$?
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5447 { (case "(($ac_try" in
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5450 esac
5451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452 (eval "$ac_try") 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; } &&
5456 { ac_try='test -s conftest.$ac_objext'
5457 { (case "(($ac_try" in
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5460 esac
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_try") 2>&5
5463 ac_status=$?
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; }; then
5466 ac_cv_prog_cc_g=yes
5467 else
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5471 CFLAGS=""
5472 cat >conftest.$ac_ext <<_ACEOF
5473 /* confdefs.h. */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5480 main ()
5484 return 0;
5486 _ACEOF
5487 rm -f conftest.$ac_objext
5488 if { (ac_try="$ac_compile"
5489 case "(($ac_try" in
5490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491 *) ac_try_echo=$ac_try;;
5492 esac
5493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494 (eval "$ac_compile") 2>conftest.er1
5495 ac_status=$?
5496 grep -v '^ *+' conftest.er1 >conftest.err
5497 rm -f conftest.er1
5498 cat conftest.err >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } &&
5501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5502 { (case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505 esac
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_try") 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; } &&
5511 { ac_try='test -s conftest.$ac_objext'
5512 { (case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515 esac
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_try") 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5522 else
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5526 ac_c_werror_flag=$ac_save_c_werror_flag
5527 CFLAGS="-g"
5528 cat >conftest.$ac_ext <<_ACEOF
5529 /* confdefs.h. */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5536 main ()
5540 return 0;
5542 _ACEOF
5543 rm -f conftest.$ac_objext
5544 if { (ac_try="$ac_compile"
5545 case "(($ac_try" in
5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5548 esac
5549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550 (eval "$ac_compile") 2>conftest.er1
5551 ac_status=$?
5552 grep -v '^ *+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } &&
5557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5558 { (case "(($ac_try" in
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5561 esac
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_try") 2>&5
5564 ac_status=$?
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; } &&
5567 { ac_try='test -s conftest.$ac_objext'
5568 { (case "(($ac_try" in
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5571 esac
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_try") 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 ac_cv_prog_cc_g=yes
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 ac_c_werror_flag=$ac_save_c_werror_flag
5594 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5595 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5596 if test "$ac_test_CFLAGS" = set; then
5597 CFLAGS=$ac_save_CFLAGS
5598 elif test $ac_cv_prog_cc_g = yes; then
5599 if test "$GCC" = yes; then
5600 CFLAGS="-g -O2"
5601 else
5602 CFLAGS="-g"
5604 else
5605 if test "$GCC" = yes; then
5606 CFLAGS="-O2"
5607 else
5608 CFLAGS=
5611 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5612 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5613 if test "${ac_cv_prog_cc_c89+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616 ac_cv_prog_cc_c89=no
5617 ac_save_CC=$CC
5618 cat >conftest.$ac_ext <<_ACEOF
5619 /* confdefs.h. */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 #include <stdarg.h>
5625 #include <stdio.h>
5626 #include <sys/types.h>
5627 #include <sys/stat.h>
5628 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5629 struct buf { int x; };
5630 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5631 static char *e (p, i)
5632 char **p;
5633 int i;
5635 return p[i];
5637 static char *f (char * (*g) (char **, int), char **p, ...)
5639 char *s;
5640 va_list v;
5641 va_start (v,p);
5642 s = g (p, va_arg (v,int));
5643 va_end (v);
5644 return s;
5647 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5648 function prototypes and stuff, but not '\xHH' hex character constants.
5649 These don't provoke an error unfortunately, instead are silently treated
5650 as 'x'. The following induces an error, until -std is added to get
5651 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5652 array size at least. It's necessary to write '\x00'==0 to get something
5653 that's true only with -std. */
5654 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5656 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5657 inside strings and character constants. */
5658 #define FOO(x) 'x'
5659 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5661 int test (int i, double x);
5662 struct s1 {int (*f) (int a);};
5663 struct s2 {int (*f) (double a);};
5664 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5665 int argc;
5666 char **argv;
5668 main ()
5670 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5672 return 0;
5674 _ACEOF
5675 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5676 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5678 CC="$ac_save_CC $ac_arg"
5679 rm -f conftest.$ac_objext
5680 if { (ac_try="$ac_compile"
5681 case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684 esac
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5694 { (case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697 esac
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_try") 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; } &&
5703 { ac_try='test -s conftest.$ac_objext'
5704 { (case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707 esac
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_try") 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }; then
5713 ac_cv_prog_cc_c89=$ac_arg
5714 else
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5721 rm -f core conftest.err conftest.$ac_objext
5722 test "x$ac_cv_prog_cc_c89" != "xno" && break
5723 done
5724 rm -f conftest.$ac_ext
5725 CC=$ac_save_CC
5728 # AC_CACHE_VAL
5729 case "x$ac_cv_prog_cc_c89" in
5731 { echo "$as_me:$LINENO: result: none needed" >&5
5732 echo "${ECHO_T}none needed" >&6; } ;;
5733 xno)
5734 { echo "$as_me:$LINENO: result: unsupported" >&5
5735 echo "${ECHO_T}unsupported" >&6; } ;;
5737 CC="$CC $ac_cv_prog_cc_c89"
5738 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5739 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5740 esac
5743 ac_ext=c
5744 ac_cpp='$CPP $CPPFLAGS'
5745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5749 ac_ext=cpp
5750 ac_cpp='$CXXCPP $CPPFLAGS'
5751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5754 if test -z "$CXX"; then
5755 if test -n "$CCC"; then
5756 CXX=$CCC
5757 else
5758 if test -n "$ac_tool_prefix"; then
5759 for ac_prog in g++
5761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5765 if test "${ac_cv_prog_CXX+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768 if test -n "$CXX"; then
5769 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5770 else
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5778 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 break 2
5782 done
5783 done
5784 IFS=$as_save_IFS
5788 CXX=$ac_cv_prog_CXX
5789 if test -n "$CXX"; then
5790 { echo "$as_me:$LINENO: result: $CXX" >&5
5791 echo "${ECHO_T}$CXX" >&6; }
5792 else
5793 { echo "$as_me:$LINENO: result: no" >&5
5794 echo "${ECHO_T}no" >&6; }
5798 test -n "$CXX" && break
5799 done
5801 if test -z "$CXX"; then
5802 ac_ct_CXX=$CXX
5803 for ac_prog in g++
5805 # Extract the first word of "$ac_prog", so it can be a program name with args.
5806 set dummy $ac_prog; ac_word=$2
5807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5809 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812 if test -n "$ac_ct_CXX"; then
5813 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5818 IFS=$as_save_IFS
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5822 ac_cv_prog_ac_ct_CXX="$ac_prog"
5823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 break 2
5826 done
5827 done
5828 IFS=$as_save_IFS
5832 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5833 if test -n "$ac_ct_CXX"; then
5834 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5835 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5836 else
5837 { echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6; }
5842 test -n "$ac_ct_CXX" && break
5843 done
5845 if test "x$ac_ct_CXX" = x; then
5846 CXX="g++"
5847 else
5848 case $cross_compiling:$ac_tool_warned in
5849 yes:)
5850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5851 whose name does not start with the host triplet. If you think this
5852 configuration is useful to you, please write to autoconf@gnu.org." >&5
5853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5854 whose name does not start with the host triplet. If you think this
5855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5856 ac_tool_warned=yes ;;
5857 esac
5858 CXX=$ac_ct_CXX
5864 # Provide some information about the compiler.
5865 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5866 ac_compiler=`set X $ac_compile; echo $2`
5867 { (ac_try="$ac_compiler --version >&5"
5868 case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5871 esac
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_compiler --version >&5") 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }
5877 { (ac_try="$ac_compiler -v >&5"
5878 case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5881 esac
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_compiler -v >&5") 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }
5887 { (ac_try="$ac_compiler -V >&5"
5888 case "(($ac_try" in
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5891 esac
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_compiler -V >&5") 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }
5898 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5899 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5900 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903 cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h. */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5911 main ()
5913 #ifndef __GNUC__
5914 choke me
5915 #endif
5918 return 0;
5920 _ACEOF
5921 rm -f conftest.$ac_objext
5922 if { (ac_try="$ac_compile"
5923 case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926 esac
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_compile") 2>conftest.er1
5929 ac_status=$?
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5936 { (case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939 esac
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_try") 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949 esac
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_try") 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 ac_compiler_gnu=yes
5956 else
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5960 ac_compiler_gnu=no
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5967 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5968 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5969 GXX=`test $ac_compiler_gnu = yes && echo yes`
5970 ac_test_CXXFLAGS=${CXXFLAGS+set}
5971 ac_save_CXXFLAGS=$CXXFLAGS
5972 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5973 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5974 if test "${ac_cv_prog_cxx_g+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5978 ac_cxx_werror_flag=yes
5979 ac_cv_prog_cxx_g=no
5980 CXXFLAGS="-g"
5981 cat >conftest.$ac_ext <<_ACEOF
5982 /* confdefs.h. */
5983 _ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5989 main ()
5993 return 0;
5995 _ACEOF
5996 rm -f conftest.$ac_objext
5997 if { (ac_try="$ac_compile"
5998 case "(($ac_try" in
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6001 esac
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_compile") 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
6010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6011 { (case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014 esac
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_try") 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; } &&
6020 { ac_try='test -s conftest.$ac_objext'
6021 { (case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024 esac
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_try") 2>&5
6027 ac_status=$?
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; }; then
6030 ac_cv_prog_cxx_g=yes
6031 else
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6035 CXXFLAGS=""
6036 cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h. */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6044 main ()
6048 return 0;
6050 _ACEOF
6051 rm -f conftest.$ac_objext
6052 if { (ac_try="$ac_compile"
6053 case "(($ac_try" in
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6056 esac
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_compile") 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6075 { ac_try='test -s conftest.$ac_objext'
6076 { (case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079 esac
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_try") 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6086 else
6087 echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6090 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6091 CXXFLAGS="-g"
6092 cat >conftest.$ac_ext <<_ACEOF
6093 /* confdefs.h. */
6094 _ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6100 main ()
6104 return 0;
6106 _ACEOF
6107 rm -f conftest.$ac_objext
6108 if { (ac_try="$ac_compile"
6109 case "(($ac_try" in
6110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111 *) ac_try_echo=$ac_try;;
6112 esac
6113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114 (eval "$ac_compile") 2>conftest.er1
6115 ac_status=$?
6116 grep -v '^ *+' conftest.er1 >conftest.err
6117 rm -f conftest.er1
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6122 { (case "(($ac_try" in
6123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124 *) ac_try_echo=$ac_try;;
6125 esac
6126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6127 (eval "$ac_try") 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest.$ac_objext'
6132 { (case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135 esac
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_try") 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_cv_prog_cxx_g=yes
6142 else
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6158 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6159 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6160 if test "$ac_test_CXXFLAGS" = set; then
6161 CXXFLAGS=$ac_save_CXXFLAGS
6162 elif test $ac_cv_prog_cxx_g = yes; then
6163 if test "$GXX" = yes; then
6164 CXXFLAGS="-g -O2"
6165 else
6166 CXXFLAGS="-g"
6168 else
6169 if test "$GXX" = yes; then
6170 CXXFLAGS="-O2"
6171 else
6172 CXXFLAGS=
6175 ac_ext=c
6176 ac_cpp='$CPP $CPPFLAGS'
6177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6181 { echo "$as_me:$LINENO: checking " >&5
6182 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6183 if test "${ac_cv_has_flex+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186 for ac_prog in flex lex
6188 # Extract the first word of "$ac_prog", so it can be a program name with args.
6189 set dummy $ac_prog; ac_word=$2
6190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192 if test "${ac_cv_prog_LEX+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195 if test -n "$LEX"; then
6196 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6197 else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6205 ac_cv_prog_LEX="$ac_prog"
6206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6209 done
6210 done
6211 IFS=$as_save_IFS
6215 LEX=$ac_cv_prog_LEX
6216 if test -n "$LEX"; then
6217 { echo "$as_me:$LINENO: result: $LEX" >&5
6218 echo "${ECHO_T}$LEX" >&6; }
6219 else
6220 { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6225 test -n "$LEX" && break
6226 done
6227 test -n "$LEX" || LEX=":"
6229 if test -z "$LEXLIB"
6230 then
6231 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6232 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6233 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236 ac_check_lib_save_LIBS=$LIBS
6237 LIBS="-lfl $LIBS"
6238 cat >conftest.$ac_ext <<_ACEOF
6239 /* confdefs.h. */
6240 _ACEOF
6241 cat confdefs.h >>conftest.$ac_ext
6242 cat >>conftest.$ac_ext <<_ACEOF
6243 /* end confdefs.h. */
6245 /* Override any GCC internal prototype to avoid an error.
6246 Use char because int might match the return type of a GCC
6247 builtin and then its argument prototype would still apply. */
6248 #ifdef __cplusplus
6249 extern "C"
6250 #endif
6251 char yywrap ();
6253 main ()
6255 return yywrap ();
6257 return 0;
6259 _ACEOF
6260 rm -f conftest.$ac_objext conftest$ac_exeext
6261 if { (ac_try="$ac_link"
6262 case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6265 esac
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_link") 2>conftest.er1
6268 ac_status=$?
6269 grep -v '^ *+' conftest.er1 >conftest.err
6270 rm -f conftest.er1
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } &&
6274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6275 { (case "(($ac_try" in
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6278 esac
6279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6280 (eval "$ac_try") 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; } &&
6284 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_cv_lib_fl_yywrap=yes
6295 else
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6299 ac_cv_lib_fl_yywrap=no
6302 rm -f core conftest.err conftest.$ac_objext \
6303 conftest$ac_exeext conftest.$ac_ext
6304 LIBS=$ac_check_lib_save_LIBS
6306 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6307 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6308 if test $ac_cv_lib_fl_yywrap = yes; then
6309 LEXLIB="-lfl"
6310 else
6311 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6312 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6313 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316 ac_check_lib_save_LIBS=$LIBS
6317 LIBS="-ll $LIBS"
6318 cat >conftest.$ac_ext <<_ACEOF
6319 /* confdefs.h. */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6325 /* Override any GCC internal prototype to avoid an error.
6326 Use char because int might match the return type of a GCC
6327 builtin and then its argument prototype would still apply. */
6328 #ifdef __cplusplus
6329 extern "C"
6330 #endif
6331 char yywrap ();
6333 main ()
6335 return yywrap ();
6337 return 0;
6339 _ACEOF
6340 rm -f conftest.$ac_objext conftest$ac_exeext
6341 if { (ac_try="$ac_link"
6342 case "(($ac_try" in
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6345 esac
6346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347 (eval "$ac_link") 2>conftest.er1
6348 ac_status=$?
6349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6355 { (case "(($ac_try" in
6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6358 esac
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_try") 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; } &&
6364 { ac_try='test -s conftest$ac_exeext'
6365 { (case "(($ac_try" in
6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367 *) ac_try_echo=$ac_try;;
6368 esac
6369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370 (eval "$ac_try") 2>&5
6371 ac_status=$?
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }; then
6374 ac_cv_lib_l_yywrap=yes
6375 else
6376 echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6379 ac_cv_lib_l_yywrap=no
6382 rm -f core conftest.err conftest.$ac_objext \
6383 conftest$ac_exeext conftest.$ac_ext
6384 LIBS=$ac_check_lib_save_LIBS
6386 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6387 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6388 if test $ac_cv_lib_l_yywrap = yes; then
6389 LEXLIB="-ll"
6396 if test "x$LEX" != "x:"; then
6397 { echo "$as_me:$LINENO: checking lex output file root" >&5
6398 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6399 if test "${ac_cv_prog_lex_root+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402 # The minimal lex program is just a single line: %%. But some broken lexes
6403 # (Solaris, I think it was) want two %% lines, so accommodate them.
6404 cat >conftest.l <<_ACEOF
6407 _ACEOF
6408 { (ac_try="$LEX conftest.l"
6409 case "(($ac_try" in
6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6412 esac
6413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414 (eval "$LEX conftest.l") 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }
6418 if test -f lex.yy.c; then
6419 ac_cv_prog_lex_root=lex.yy
6420 elif test -f lexyy.c; then
6421 ac_cv_prog_lex_root=lexyy
6422 else
6423 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6424 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6425 { (exit 1); exit 1; }; }
6428 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6429 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6430 rm -f conftest.l
6431 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6433 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6434 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6435 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438 # POSIX says lex can declare yytext either as a pointer or an array; the
6439 # default is implementation-dependent. Figure out which it is, since
6440 # not all implementations provide the %pointer and %array declarations.
6441 ac_cv_prog_lex_yytext_pointer=no
6442 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6443 ac_save_LIBS=$LIBS
6444 LIBS="$LIBS $LEXLIB"
6445 cat >conftest.$ac_ext <<_ACEOF
6446 `cat $LEX_OUTPUT_ROOT.c`
6447 _ACEOF
6448 rm -f conftest.$ac_objext conftest$ac_exeext
6449 if { (ac_try="$ac_link"
6450 case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6453 esac
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_link") 2>conftest.er1
6456 ac_status=$?
6457 grep -v '^ *+' conftest.er1 >conftest.err
6458 rm -f conftest.er1
6459 cat conftest.err >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } &&
6462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6463 { (case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6466 esac
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_try") 2>&5
6469 ac_status=$?
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; } &&
6472 { ac_try='test -s conftest$ac_exeext'
6473 { (case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6476 esac
6477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_try") 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 ac_cv_prog_lex_yytext_pointer=yes
6483 else
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6490 rm -f core conftest.err conftest.$ac_objext \
6491 conftest$ac_exeext conftest.$ac_ext
6492 LIBS=$ac_save_LIBS
6493 rm -f "${LEX_OUTPUT_ROOT}.c"
6496 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6497 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6498 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6500 cat >>confdefs.h <<\_ACEOF
6501 #define YYTEXT_POINTER 1
6502 _ACEOF
6509 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6510 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6511 if test "$LEX" != "flex"; then
6512 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6513 echo "$as_me: error: flex not found but required" >&2;}
6514 { (exit 1); exit 1; }; }
6515 else
6516 FLEX=flex
6520 { echo "$as_me:$LINENO: checking " >&5
6521 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6522 if test "${llvm_cv_has_bison+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525 for ac_prog in 'bison -y' byacc
6527 # Extract the first word of "$ac_prog", so it can be a program name with args.
6528 set dummy $ac_prog; ac_word=$2
6529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531 if test "${ac_cv_prog_YACC+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534 if test -n "$YACC"; then
6535 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6536 else
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6540 IFS=$as_save_IFS
6541 test -z "$as_dir" && as_dir=.
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6544 ac_cv_prog_YACC="$ac_prog"
6545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 break 2
6548 done
6549 done
6550 IFS=$as_save_IFS
6554 YACC=$ac_cv_prog_YACC
6555 if test -n "$YACC"; then
6556 { echo "$as_me:$LINENO: result: $YACC" >&5
6557 echo "${ECHO_T}$YACC" >&6; }
6558 else
6559 { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6564 test -n "$YACC" && break
6565 done
6566 test -n "$YACC" || YACC="yacc"
6569 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6570 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6571 if test "$YACC" != "bison -y"; then
6573 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6574 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6575 else
6576 BISON=bison
6580 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6581 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6582 if test "${lt_cv_path_NM+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585 if test -n "$NM"; then
6586 # Let the user override the test.
6587 lt_cv_path_NM="$NM"
6588 else
6589 lt_nm_to_check="${ac_tool_prefix}nm"
6590 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6591 lt_nm_to_check="$lt_nm_to_check nm"
6593 for lt_tmp_nm in $lt_nm_to_check; do
6594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6595 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6596 IFS="$lt_save_ifs"
6597 test -z "$ac_dir" && ac_dir=.
6598 tmp_nm="$ac_dir/$lt_tmp_nm"
6599 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6600 # Check to see if the nm accepts a BSD-compat flag.
6601 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6602 # nm: unknown option "B" ignored
6603 # Tru64's nm complains that /dev/null is an invalid object file
6604 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6605 */dev/null* | *'Invalid file or object type'*)
6606 lt_cv_path_NM="$tmp_nm -B"
6607 break
6610 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6611 */dev/null*)
6612 lt_cv_path_NM="$tmp_nm -p"
6613 break
6616 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6617 continue # so that we can try to find one that supports BSD flags
6619 esac
6621 esac
6623 done
6624 IFS="$lt_save_ifs"
6625 done
6626 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6629 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6630 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6631 NM="$lt_cv_path_NM"
6635 { echo "$as_me:$LINENO: checking for GNU make" >&5
6636 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6637 if test "${llvm_cv_gnu_make_command+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640 llvm_cv_gnu_make_command=''
6641 for a in "$MAKE" make gmake gnumake ; do
6642 if test -z "$a" ; then continue ; fi ;
6643 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6644 then
6645 llvm_cv_gnu_make_command=$a ;
6646 break;
6648 done
6650 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6651 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6652 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6653 ifGNUmake='' ;
6654 else
6655 ifGNUmake='#' ;
6656 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6657 echo "${ECHO_T}\"Not found\"" >&6; };
6661 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6662 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6663 LN_S=$as_ln_s
6664 if test "$LN_S" = "ln -s"; then
6665 { echo "$as_me:$LINENO: result: yes" >&5
6666 echo "${ECHO_T}yes" >&6; }
6667 else
6668 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6669 echo "${ECHO_T}no, using $LN_S" >&6; }
6672 # Extract the first word of "cmp", so it can be a program name with args.
6673 set dummy cmp; ac_word=$2
6674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6676 if test "${ac_cv_path_CMP+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679 case $CMP in
6680 [\\/]* | ?:[\\/]*)
6681 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6691 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 break 2
6695 done
6696 done
6697 IFS=$as_save_IFS
6699 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6701 esac
6703 CMP=$ac_cv_path_CMP
6704 if test -n "$CMP"; then
6705 { echo "$as_me:$LINENO: result: $CMP" >&5
6706 echo "${ECHO_T}$CMP" >&6; }
6707 else
6708 { echo "$as_me:$LINENO: result: no" >&5
6709 echo "${ECHO_T}no" >&6; }
6713 # Extract the first word of "cp", so it can be a program name with args.
6714 set dummy cp; ac_word=$2
6715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717 if test "${ac_cv_path_CP+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720 case $CP in
6721 [\\/]* | ?:[\\/]*)
6722 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6732 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 break 2
6736 done
6737 done
6738 IFS=$as_save_IFS
6740 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6742 esac
6744 CP=$ac_cv_path_CP
6745 if test -n "$CP"; then
6746 { echo "$as_me:$LINENO: result: $CP" >&5
6747 echo "${ECHO_T}$CP" >&6; }
6748 else
6749 { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6754 # Extract the first word of "date", so it can be a program name with args.
6755 set dummy date; ac_word=$2
6756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758 if test "${ac_cv_path_DATE+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761 case $DATE in
6762 [\\/]* | ?:[\\/]*)
6763 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6777 done
6778 done
6779 IFS=$as_save_IFS
6781 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6783 esac
6785 DATE=$ac_cv_path_DATE
6786 if test -n "$DATE"; then
6787 { echo "$as_me:$LINENO: result: $DATE" >&5
6788 echo "${ECHO_T}$DATE" >&6; }
6789 else
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6795 # Extract the first word of "find", so it can be a program name with args.
6796 set dummy find; ac_word=$2
6797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799 if test "${ac_cv_path_FIND+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802 case $FIND in
6803 [\\/]* | ?:[\\/]*)
6804 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6818 done
6819 done
6820 IFS=$as_save_IFS
6822 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6824 esac
6826 FIND=$ac_cv_path_FIND
6827 if test -n "$FIND"; then
6828 { echo "$as_me:$LINENO: result: $FIND" >&5
6829 echo "${ECHO_T}$FIND" >&6; }
6830 else
6831 { echo "$as_me:$LINENO: result: no" >&5
6832 echo "${ECHO_T}no" >&6; }
6836 # Extract the first word of "grep", so it can be a program name with args.
6837 set dummy grep; ac_word=$2
6838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6840 if test "${ac_cv_path_GREP+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6842 else
6843 case $GREP in
6844 [\\/]* | ?:[\\/]*)
6845 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6855 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6859 done
6860 done
6861 IFS=$as_save_IFS
6863 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6865 esac
6867 GREP=$ac_cv_path_GREP
6868 if test -n "$GREP"; then
6869 { echo "$as_me:$LINENO: result: $GREP" >&5
6870 echo "${ECHO_T}$GREP" >&6; }
6871 else
6872 { echo "$as_me:$LINENO: result: no" >&5
6873 echo "${ECHO_T}no" >&6; }
6877 # Extract the first word of "mkdir", so it can be a program name with args.
6878 set dummy mkdir; ac_word=$2
6879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881 if test "${ac_cv_path_MKDIR+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884 case $MKDIR in
6885 [\\/]* | ?:[\\/]*)
6886 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6900 done
6901 done
6902 IFS=$as_save_IFS
6904 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6906 esac
6908 MKDIR=$ac_cv_path_MKDIR
6909 if test -n "$MKDIR"; then
6910 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6911 echo "${ECHO_T}$MKDIR" >&6; }
6912 else
6913 { echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6; }
6918 # Extract the first word of "mv", so it can be a program name with args.
6919 set dummy mv; ac_word=$2
6920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6922 if test "${ac_cv_path_MV+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 else
6925 case $MV in
6926 [\\/]* | ?:[\\/]*)
6927 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6933 IFS=$as_save_IFS
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6937 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 break 2
6941 done
6942 done
6943 IFS=$as_save_IFS
6945 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6947 esac
6949 MV=$ac_cv_path_MV
6950 if test -n "$MV"; then
6951 { echo "$as_me:$LINENO: result: $MV" >&5
6952 echo "${ECHO_T}$MV" >&6; }
6953 else
6954 { echo "$as_me:$LINENO: result: no" >&5
6955 echo "${ECHO_T}no" >&6; }
6959 if test -n "$ac_tool_prefix"; then
6960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6961 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_prog_RANLIB+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967 if test -n "$RANLIB"; then
6968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6969 else
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 break 2
6981 done
6982 done
6983 IFS=$as_save_IFS
6987 RANLIB=$ac_cv_prog_RANLIB
6988 if test -n "$RANLIB"; then
6989 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6990 echo "${ECHO_T}$RANLIB" >&6; }
6991 else
6992 { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6998 if test -z "$ac_cv_prog_RANLIB"; then
6999 ac_ct_RANLIB=$RANLIB
7000 # Extract the first word of "ranlib", so it can be a program name with args.
7001 set dummy ranlib; ac_word=$2
7002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007 if test -n "$ac_ct_RANLIB"; then
7008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7009 else
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_prog_ac_ct_RANLIB="ranlib"
7018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7021 done
7022 done
7023 IFS=$as_save_IFS
7027 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7028 if test -n "$ac_ct_RANLIB"; then
7029 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7030 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7031 else
7032 { echo "$as_me:$LINENO: result: no" >&5
7033 echo "${ECHO_T}no" >&6; }
7036 if test "x$ac_ct_RANLIB" = x; then
7037 RANLIB=":"
7038 else
7039 case $cross_compiling:$ac_tool_warned in
7040 yes:)
7041 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7042 whose name does not start with the host triplet. If you think this
7043 configuration is useful to you, please write to autoconf@gnu.org." >&5
7044 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7045 whose name does not start with the host triplet. If you think this
7046 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7047 ac_tool_warned=yes ;;
7048 esac
7049 RANLIB=$ac_ct_RANLIB
7051 else
7052 RANLIB="$ac_cv_prog_RANLIB"
7055 # Extract the first word of "rm", so it can be a program name with args.
7056 set dummy rm; ac_word=$2
7057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7059 if test "${ac_cv_path_RM+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062 case $RM in
7063 [\\/]* | ?:[\\/]*)
7064 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH
7070 IFS=$as_save_IFS
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 break 2
7078 done
7079 done
7080 IFS=$as_save_IFS
7082 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7084 esac
7086 RM=$ac_cv_path_RM
7087 if test -n "$RM"; then
7088 { echo "$as_me:$LINENO: result: $RM" >&5
7089 echo "${ECHO_T}$RM" >&6; }
7090 else
7091 { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7096 # Extract the first word of "sed", so it can be a program name with args.
7097 set dummy sed; ac_word=$2
7098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100 if test "${ac_cv_path_SED+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103 case $SED in
7104 [\\/]* | ?:[\\/]*)
7105 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7119 done
7120 done
7121 IFS=$as_save_IFS
7123 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7125 esac
7127 SED=$ac_cv_path_SED
7128 if test -n "$SED"; then
7129 { echo "$as_me:$LINENO: result: $SED" >&5
7130 echo "${ECHO_T}$SED" >&6; }
7131 else
7132 { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7137 # Extract the first word of "tar", so it can be a program name with args.
7138 set dummy tar; ac_word=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_path_TAR+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144 case $TAR in
7145 [\\/]* | ?:[\\/]*)
7146 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7156 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7160 done
7161 done
7162 IFS=$as_save_IFS
7164 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7166 esac
7168 TAR=$ac_cv_path_TAR
7169 if test -n "$TAR"; then
7170 { echo "$as_me:$LINENO: result: $TAR" >&5
7171 echo "${ECHO_T}$TAR" >&6; }
7172 else
7173 { echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6; }
7178 # Extract the first word of "pwd", so it can be a program name with args.
7179 set dummy pwd; ac_word=$2
7180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182 if test "${ac_cv_path_BINPWD+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185 case $BINPWD in
7186 [\\/]* | ?:[\\/]*)
7187 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7197 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7201 done
7202 done
7203 IFS=$as_save_IFS
7205 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7207 esac
7209 BINPWD=$ac_cv_path_BINPWD
7210 if test -n "$BINPWD"; then
7211 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7212 echo "${ECHO_T}$BINPWD" >&6; }
7213 else
7214 { echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6; }
7220 # Extract the first word of "Graphviz", so it can be a program name with args.
7221 set dummy Graphviz; ac_word=$2
7222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227 case $GRAPHVIZ in
7228 [\\/]* | ?:[\\/]*)
7229 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7243 done
7244 done
7245 IFS=$as_save_IFS
7247 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7249 esac
7251 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7252 if test -n "$GRAPHVIZ"; then
7253 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7254 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7255 else
7256 { echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6; }
7261 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7263 cat >>confdefs.h <<\_ACEOF
7264 #define HAVE_GRAPHVIZ 1
7265 _ACEOF
7267 if test "$llvm_cv_os_type" = "MingW" ; then
7268 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7271 cat >>confdefs.h <<_ACEOF
7272 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7273 _ACEOF
7276 # Extract the first word of "dot", so it can be a program name with args.
7277 set dummy dot; ac_word=$2
7278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7280 if test "${ac_cv_path_DOT+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283 case $DOT in
7284 [\\/]* | ?:[\\/]*)
7285 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7299 done
7300 done
7301 IFS=$as_save_IFS
7303 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7305 esac
7307 DOT=$ac_cv_path_DOT
7308 if test -n "$DOT"; then
7309 { echo "$as_me:$LINENO: result: $DOT" >&5
7310 echo "${ECHO_T}$DOT" >&6; }
7311 else
7312 { echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6; }
7317 if test "$DOT" != "echo dot" ; then
7319 cat >>confdefs.h <<\_ACEOF
7320 #define HAVE_DOT 1
7321 _ACEOF
7323 if test "$llvm_cv_os_type" = "MingW" ; then
7324 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7327 cat >>confdefs.h <<_ACEOF
7328 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7329 _ACEOF
7332 for ac_prog in gv gsview32
7334 # Extract the first word of "$ac_prog", so it can be a program name with args.
7335 set dummy $ac_prog; ac_word=$2
7336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7338 if test "${ac_cv_path_GV+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341 case $GV in
7342 [\\/]* | ?:[\\/]*)
7343 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 for as_dir in $PATH
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
7351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7353 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 break 2
7357 done
7358 done
7359 IFS=$as_save_IFS
7362 esac
7364 GV=$ac_cv_path_GV
7365 if test -n "$GV"; then
7366 { echo "$as_me:$LINENO: result: $GV" >&5
7367 echo "${ECHO_T}$GV" >&6; }
7368 else
7369 { echo "$as_me:$LINENO: result: no" >&5
7370 echo "${ECHO_T}no" >&6; }
7374 test -n "$GV" && break
7375 done
7376 test -n "$GV" || GV="echo gv"
7378 if test "$GV" != "echo gv" ; then
7380 cat >>confdefs.h <<\_ACEOF
7381 #define HAVE_GV 1
7382 _ACEOF
7384 if test "$llvm_cv_os_type" = "MingW" ; then
7385 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7388 cat >>confdefs.h <<_ACEOF
7389 #define LLVM_PATH_GV "$GV${EXEEXT}"
7390 _ACEOF
7393 # Extract the first word of "dotty", so it can be a program name with args.
7394 set dummy dotty; ac_word=$2
7395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7397 if test "${ac_cv_path_DOTTY+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 else
7400 case $DOTTY in
7401 [\\/]* | ?:[\\/]*)
7402 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7412 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 break 2
7416 done
7417 done
7418 IFS=$as_save_IFS
7420 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7422 esac
7424 DOTTY=$ac_cv_path_DOTTY
7425 if test -n "$DOTTY"; then
7426 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7427 echo "${ECHO_T}$DOTTY" >&6; }
7428 else
7429 { echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6; }
7434 if test "$DOTTY" != "echo dotty" ; then
7436 cat >>confdefs.h <<\_ACEOF
7437 #define HAVE_DOTTY 1
7438 _ACEOF
7440 if test "$llvm_cv_os_type" = "MingW" ; then
7441 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7444 cat >>confdefs.h <<_ACEOF
7445 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7446 _ACEOF
7451 # Extract the first word of "perl", so it can be a program name with args.
7452 set dummy perl; ac_word=$2
7453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7455 if test "${ac_cv_path_PERL+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458 case $PERL in
7459 [\\/]* | ?:[\\/]*)
7460 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7466 IFS=$as_save_IFS
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7470 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 break 2
7474 done
7475 done
7476 IFS=$as_save_IFS
7478 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7480 esac
7482 PERL=$ac_cv_path_PERL
7483 if test -n "$PERL"; then
7484 { echo "$as_me:$LINENO: result: $PERL" >&5
7485 echo "${ECHO_T}$PERL" >&6; }
7486 else
7487 { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7492 if test "$PERL" != "none"; then
7493 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7494 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7495 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7496 { echo "$as_me:$LINENO: result: yes" >&5
7497 echo "${ECHO_T}yes" >&6; }
7498 else
7499 PERL=none
7500 { echo "$as_me:$LINENO: result: not found" >&5
7501 echo "${ECHO_T}not found" >&6; }
7506 if test x"$PERL" = xnone; then
7507 HAVE_PERL=0
7509 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7510 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7511 { (exit 1); exit 1; }; }
7512 else
7513 HAVE_PERL=1
7517 # Find a good install program. We prefer a C program (faster),
7518 # so one script is as good as another. But avoid the broken or
7519 # incompatible versions:
7520 # SysV /etc/install, /usr/sbin/install
7521 # SunOS /usr/etc/install
7522 # IRIX /sbin/install
7523 # AIX /bin/install
7524 # AmigaOS /C/install, which installs bootblocks on floppy discs
7525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7528 # OS/2's system install, which has a completely different semantic
7529 # ./install, which can be erroneously created by make from ./install.sh.
7530 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7531 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7532 if test -z "$INSTALL"; then
7533 if test "${ac_cv_path_install+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
7541 # Account for people who put trailing slashes in PATH elements.
7542 case $as_dir/ in
7543 ./ | .// | /cC/* | \
7544 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7545 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7546 /usr/ucb/* ) ;;
7548 # OSF1 and SCO ODT 3.0 have their own names for install.
7549 # Don't use installbsd from OSF since it installs stuff as root
7550 # by default.
7551 for ac_prog in ginstall scoinst install; do
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7554 if test $ac_prog = install &&
7555 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7556 # AIX install. It has an incompatible calling convention.
7558 elif test $ac_prog = install &&
7559 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7560 # program-specific install script used by HP pwplus--don't use.
7562 else
7563 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7564 break 3
7567 done
7568 done
7570 esac
7571 done
7572 IFS=$as_save_IFS
7576 if test "${ac_cv_path_install+set}" = set; then
7577 INSTALL=$ac_cv_path_install
7578 else
7579 # As a last resort, use the slow shell script. Don't cache a
7580 # value for INSTALL within a source directory, because that will
7581 # break other packages using the cache if that directory is
7582 # removed, or if the value is a relative name.
7583 INSTALL=$ac_install_sh
7586 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7587 echo "${ECHO_T}$INSTALL" >&6; }
7589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7590 # It thinks the first close brace ends the variable substitution.
7591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7595 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7598 # Extract the first word of "bzip2", so it can be a program name with args.
7599 set dummy bzip2; ac_word=$2
7600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7602 if test "${ac_cv_path_BZIP2+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 else
7605 case $BZIP2 in
7606 [\\/]* | ?:[\\/]*)
7607 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7613 IFS=$as_save_IFS
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7617 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 break 2
7621 done
7622 done
7623 IFS=$as_save_IFS
7626 esac
7628 BZIP2=$ac_cv_path_BZIP2
7629 if test -n "$BZIP2"; then
7630 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7631 echo "${ECHO_T}$BZIP2" >&6; }
7632 else
7633 { echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6; }
7638 # Extract the first word of "doxygen", so it can be a program name with args.
7639 set dummy doxygen; ac_word=$2
7640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7642 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645 case $DOXYGEN in
7646 [\\/]* | ?:[\\/]*)
7647 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7657 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 break 2
7661 done
7662 done
7663 IFS=$as_save_IFS
7666 esac
7668 DOXYGEN=$ac_cv_path_DOXYGEN
7669 if test -n "$DOXYGEN"; then
7670 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7671 echo "${ECHO_T}$DOXYGEN" >&6; }
7672 else
7673 { echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6; }
7678 # Extract the first word of "groff", so it can be a program name with args.
7679 set dummy groff; ac_word=$2
7680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7682 if test "${ac_cv_path_GROFF+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685 case $GROFF in
7686 [\\/]* | ?:[\\/]*)
7687 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 break 2
7701 done
7702 done
7703 IFS=$as_save_IFS
7706 esac
7708 GROFF=$ac_cv_path_GROFF
7709 if test -n "$GROFF"; then
7710 { echo "$as_me:$LINENO: result: $GROFF" >&5
7711 echo "${ECHO_T}$GROFF" >&6; }
7712 else
7713 { echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6; }
7718 # Extract the first word of "gzip", so it can be a program name with args.
7719 set dummy gzip; ac_word=$2
7720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7722 if test "${ac_cv_path_GZIP+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725 case $GZIP in
7726 [\\/]* | ?:[\\/]*)
7727 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7733 IFS=$as_save_IFS
7734 test -z "$as_dir" && as_dir=.
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7737 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7739 break 2
7741 done
7742 done
7743 IFS=$as_save_IFS
7746 esac
7748 GZIP=$ac_cv_path_GZIP
7749 if test -n "$GZIP"; then
7750 { echo "$as_me:$LINENO: result: $GZIP" >&5
7751 echo "${ECHO_T}$GZIP" >&6; }
7752 else
7753 { echo "$as_me:$LINENO: result: no" >&5
7754 echo "${ECHO_T}no" >&6; }
7758 # Extract the first word of "pod2html", so it can be a program name with args.
7759 set dummy pod2html; ac_word=$2
7760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7762 if test "${ac_cv_path_POD2HTML+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765 case $POD2HTML in
7766 [\\/]* | ?:[\\/]*)
7767 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 for as_dir in $PATH
7773 IFS=$as_save_IFS
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7777 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 break 2
7781 done
7782 done
7783 IFS=$as_save_IFS
7786 esac
7788 POD2HTML=$ac_cv_path_POD2HTML
7789 if test -n "$POD2HTML"; then
7790 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7791 echo "${ECHO_T}$POD2HTML" >&6; }
7792 else
7793 { echo "$as_me:$LINENO: result: no" >&5
7794 echo "${ECHO_T}no" >&6; }
7798 # Extract the first word of "pod2man", so it can be a program name with args.
7799 set dummy pod2man; ac_word=$2
7800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7802 if test "${ac_cv_path_POD2MAN+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805 case $POD2MAN in
7806 [\\/]* | ?:[\\/]*)
7807 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7813 IFS=$as_save_IFS
7814 test -z "$as_dir" && as_dir=.
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7817 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 break 2
7821 done
7822 done
7823 IFS=$as_save_IFS
7826 esac
7828 POD2MAN=$ac_cv_path_POD2MAN
7829 if test -n "$POD2MAN"; then
7830 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7831 echo "${ECHO_T}$POD2MAN" >&6; }
7832 else
7833 { echo "$as_me:$LINENO: result: no" >&5
7834 echo "${ECHO_T}no" >&6; }
7838 # Extract the first word of "runtest", so it can be a program name with args.
7839 set dummy runtest; ac_word=$2
7840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7842 if test "${ac_cv_path_RUNTEST+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845 case $RUNTEST in
7846 [\\/]* | ?:[\\/]*)
7847 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $PATH
7853 IFS=$as_save_IFS
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859 break 2
7861 done
7862 done
7863 IFS=$as_save_IFS
7866 esac
7868 RUNTEST=$ac_cv_path_RUNTEST
7869 if test -n "$RUNTEST"; then
7870 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7871 echo "${ECHO_T}$RUNTEST" >&6; }
7872 else
7873 { echo "$as_me:$LINENO: result: no" >&5
7874 echo "${ECHO_T}no" >&6; }
7879 no_itcl=true
7880 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7881 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7883 # Check whether --with-tclinclude was given.
7884 if test "${with_tclinclude+set}" = set; then
7885 withval=$with_tclinclude; with_tclinclude=${withval}
7886 else
7887 with_tclinclude=''
7890 if test "${ac_cv_path_tclsh+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7894 if test x"${with_tclinclude}" != x ; then
7895 if test -f ${with_tclinclude}/tclsh ; then
7896 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7897 elif test -f ${with_tclinclude}/src/tclsh ; then
7898 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7899 else
7900 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7901 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7902 { (exit 1); exit 1; }; }
7906 if test x"${ac_cv_path_tclsh}" = x ; then
7907 { echo "$as_me:$LINENO: result: none" >&5
7908 echo "${ECHO_T}none" >&6; }
7909 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
7911 # Extract the first word of "$ac_prog", so it can be a program name with args.
7912 set dummy $ac_prog; ac_word=$2
7913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7915 if test "${ac_cv_path_TCLSH+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918 case $TCLSH in
7919 [\\/]* | ?:[\\/]*)
7920 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 for as_dir in $PATH
7926 IFS=$as_save_IFS
7927 test -z "$as_dir" && as_dir=.
7928 for ac_exec_ext in '' $ac_executable_extensions; do
7929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7930 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7932 break 2
7934 done
7935 done
7936 IFS=$as_save_IFS
7939 esac
7941 TCLSH=$ac_cv_path_TCLSH
7942 if test -n "$TCLSH"; then
7943 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7944 echo "${ECHO_T}$TCLSH" >&6; }
7945 else
7946 { echo "$as_me:$LINENO: result: no" >&5
7947 echo "${ECHO_T}no" >&6; }
7951 test -n "$TCLSH" && break
7952 done
7954 if test x"${TCLSH}" = x ; then
7955 ac_cv_path_tclsh='';
7956 else
7957 ac_cv_path_tclsh="${TCLSH}";
7959 else
7960 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7961 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7962 TCLSH="${ac_cv_path_tclsh}"
7968 # Extract the first word of "zip", so it can be a program name with args.
7969 set dummy zip; ac_word=$2
7970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7972 if test "${ac_cv_path_ZIP+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 else
7975 case $ZIP in
7976 [\\/]* | ?:[\\/]*)
7977 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7987 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7991 done
7992 done
7993 IFS=$as_save_IFS
7996 esac
7998 ZIP=$ac_cv_path_ZIP
7999 if test -n "$ZIP"; then
8000 { echo "$as_me:$LINENO: result: $ZIP" >&5
8001 echo "${ECHO_T}$ZIP" >&6; }
8002 else
8003 { echo "$as_me:$LINENO: result: no" >&5
8004 echo "${ECHO_T}no" >&6; }
8008 for ac_prog in ocamlc.opt ocamlc
8010 # Extract the first word of "$ac_prog", so it can be a program name with args.
8011 set dummy $ac_prog; ac_word=$2
8012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8014 if test "${ac_cv_path_OCAMLC+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8017 case $OCAMLC in
8018 [\\/]* | ?:[\\/]*)
8019 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 for as_dir in $PATH
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8029 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 break 2
8033 done
8034 done
8035 IFS=$as_save_IFS
8038 esac
8040 OCAMLC=$ac_cv_path_OCAMLC
8041 if test -n "$OCAMLC"; then
8042 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8043 echo "${ECHO_T}$OCAMLC" >&6; }
8044 else
8045 { echo "$as_me:$LINENO: result: no" >&5
8046 echo "${ECHO_T}no" >&6; }
8050 test -n "$OCAMLC" && break
8051 done
8053 for ac_prog in ocamlopt.opt ocamlopt
8055 # Extract the first word of "$ac_prog", so it can be a program name with args.
8056 set dummy $ac_prog; ac_word=$2
8057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8059 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 else
8062 case $OCAMLOPT in
8063 [\\/]* | ?:[\\/]*)
8064 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8070 IFS=$as_save_IFS
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8074 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 break 2
8078 done
8079 done
8080 IFS=$as_save_IFS
8083 esac
8085 OCAMLOPT=$ac_cv_path_OCAMLOPT
8086 if test -n "$OCAMLOPT"; then
8087 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8088 echo "${ECHO_T}$OCAMLOPT" >&6; }
8089 else
8090 { echo "$as_me:$LINENO: result: no" >&5
8091 echo "${ECHO_T}no" >&6; }
8095 test -n "$OCAMLOPT" && break
8096 done
8098 for ac_prog in ocamldep.opt ocamldep
8100 # Extract the first word of "$ac_prog", so it can be a program name with args.
8101 set dummy $ac_prog; ac_word=$2
8102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8104 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107 case $OCAMLDEP in
8108 [\\/]* | ?:[\\/]*)
8109 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 for as_dir in $PATH
8115 IFS=$as_save_IFS
8116 test -z "$as_dir" && as_dir=.
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8119 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8121 break 2
8123 done
8124 done
8125 IFS=$as_save_IFS
8128 esac
8130 OCAMLDEP=$ac_cv_path_OCAMLDEP
8131 if test -n "$OCAMLDEP"; then
8132 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8133 echo "${ECHO_T}$OCAMLDEP" >&6; }
8134 else
8135 { echo "$as_me:$LINENO: result: no" >&5
8136 echo "${ECHO_T}no" >&6; }
8140 test -n "$OCAMLDEP" && break
8141 done
8143 for ac_prog in ocamldoc.opt ocamldoc
8145 # Extract the first word of "$ac_prog", so it can be a program name with args.
8146 set dummy $ac_prog; ac_word=$2
8147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8149 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152 case $OCAMLDOC in
8153 [\\/]* | ?:[\\/]*)
8154 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 for as_dir in $PATH
8160 IFS=$as_save_IFS
8161 test -z "$as_dir" && as_dir=.
8162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8164 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8166 break 2
8168 done
8169 done
8170 IFS=$as_save_IFS
8173 esac
8175 OCAMLDOC=$ac_cv_path_OCAMLDOC
8176 if test -n "$OCAMLDOC"; then
8177 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8178 echo "${ECHO_T}$OCAMLDOC" >&6; }
8179 else
8180 { echo "$as_me:$LINENO: result: no" >&5
8181 echo "${ECHO_T}no" >&6; }
8185 test -n "$OCAMLDOC" && break
8186 done
8189 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8190 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8191 if test "${llvm_cv_link_use_r+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 else
8194 ac_ext=c
8195 ac_cpp='$CPP $CPPFLAGS'
8196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8200 oldcflags="$CFLAGS"
8201 CFLAGS="$CFLAGS -Wl,-R."
8202 cat >conftest.$ac_ext <<_ACEOF
8203 /* confdefs.h. */
8204 _ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8210 main ()
8212 int main() { return 0; }
8214 return 0;
8216 _ACEOF
8217 rm -f conftest.$ac_objext conftest$ac_exeext
8218 if { (ac_try="$ac_link"
8219 case "(($ac_try" in
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8222 esac
8223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_link") 2>conftest.er1
8225 ac_status=$?
8226 grep -v '^ *+' conftest.er1 >conftest.err
8227 rm -f conftest.er1
8228 cat conftest.err >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } &&
8231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8232 { (case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8235 esac
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_try") 2>&5
8238 ac_status=$?
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; } &&
8241 { ac_try='test -s conftest$ac_exeext'
8242 { (case "(($ac_try" in
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8245 esac
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_try") 2>&5
8248 ac_status=$?
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); }; }; then
8251 llvm_cv_link_use_r=yes
8252 else
8253 echo "$as_me: failed program was:" >&5
8254 sed 's/^/| /' conftest.$ac_ext >&5
8256 llvm_cv_link_use_r=no
8259 rm -f core conftest.err conftest.$ac_objext \
8260 conftest$ac_exeext conftest.$ac_ext
8261 CFLAGS="$oldcflags"
8262 ac_ext=c
8263 ac_cpp='$CPP $CPPFLAGS'
8264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8270 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8271 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8272 if test "$llvm_cv_link_use_r" = yes ; then
8274 cat >>confdefs.h <<\_ACEOF
8275 #define HAVE_LINK_R 1
8276 _ACEOF
8283 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8284 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8285 if test "${ac_cv_c_const+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288 cat >conftest.$ac_ext <<_ACEOF
8289 /* confdefs.h. */
8290 _ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8296 main ()
8298 /* FIXME: Include the comments suggested by Paul. */
8299 #ifndef __cplusplus
8300 /* Ultrix mips cc rejects this. */
8301 typedef int charset[2];
8302 const charset x;
8303 /* SunOS 4.1.1 cc rejects this. */
8304 char const *const *ccp;
8305 char **p;
8306 /* NEC SVR4.0.2 mips cc rejects this. */
8307 struct point {int x, y;};
8308 static struct point const zero = {0,0};
8309 /* AIX XL C 1.02.0.0 rejects this.
8310 It does not let you subtract one const X* pointer from another in
8311 an arm of an if-expression whose if-part is not a constant
8312 expression */
8313 const char *g = "string";
8314 ccp = &g + (g ? g-g : 0);
8315 /* HPUX 7.0 cc rejects these. */
8316 ++ccp;
8317 p = (char**) ccp;
8318 ccp = (char const *const *) p;
8319 { /* SCO 3.2v4 cc rejects this. */
8320 char *t;
8321 char const *s = 0 ? (char *) 0 : (char const *) 0;
8323 *t++ = 0;
8324 if (s) return 0;
8326 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8327 int x[] = {25, 17};
8328 const int *foo = &x[0];
8329 ++foo;
8331 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8332 typedef const int *iptr;
8333 iptr p = 0;
8334 ++p;
8336 { /* AIX XL C 1.02.0.0 rejects this saying
8337 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8338 struct s { int j; const int *ap[3]; };
8339 struct s *b; b->j = 5;
8341 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8342 const int foo = 10;
8343 if (!foo) return 0;
8345 return !x[0] && !zero.x;
8346 #endif
8349 return 0;
8351 _ACEOF
8352 rm -f conftest.$ac_objext
8353 if { (ac_try="$ac_compile"
8354 case "(($ac_try" in
8355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356 *) ac_try_echo=$ac_try;;
8357 esac
8358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8359 (eval "$ac_compile") 2>conftest.er1
8360 ac_status=$?
8361 grep -v '^ *+' conftest.er1 >conftest.err
8362 rm -f conftest.er1
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } &&
8366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8367 { (case "(($ac_try" in
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8370 esac
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_try") 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest.$ac_objext'
8377 { (case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380 esac
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_try") 2>&5
8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; }; then
8386 ac_cv_c_const=yes
8387 else
8388 echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8391 ac_cv_c_const=no
8394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8397 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8398 if test $ac_cv_c_const = no; then
8400 cat >>confdefs.h <<\_ACEOF
8401 #define const
8402 _ACEOF
8411 ac_header_dirent=no
8412 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8413 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8414 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8415 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 else
8419 cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h. */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8425 #include <sys/types.h>
8426 #include <$ac_hdr>
8429 main ()
8431 if ((DIR *) 0)
8432 return 0;
8434 return 0;
8436 _ACEOF
8437 rm -f conftest.$ac_objext
8438 if { (ac_try="$ac_compile"
8439 case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8442 esac
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_compile") 2>conftest.er1
8445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } &&
8451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try='test -s conftest.$ac_objext'
8462 { (case "(($ac_try" in
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8465 esac
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_try") 2>&5
8468 ac_status=$?
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
8471 eval "$as_ac_Header=yes"
8472 else
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8476 eval "$as_ac_Header=no"
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 ac_res=`eval echo '${'$as_ac_Header'}'`
8482 { echo "$as_me:$LINENO: result: $ac_res" >&5
8483 echo "${ECHO_T}$ac_res" >&6; }
8484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8485 cat >>confdefs.h <<_ACEOF
8486 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8487 _ACEOF
8489 ac_header_dirent=$ac_hdr; break
8492 done
8493 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8494 if test $ac_header_dirent = dirent.h; then
8495 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8496 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8497 if test "${ac_cv_search_opendir+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500 ac_func_search_save_LIBS=$LIBS
8501 cat >conftest.$ac_ext <<_ACEOF
8502 /* confdefs.h. */
8503 _ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8508 /* Override any GCC internal prototype to avoid an error.
8509 Use char because int might match the return type of a GCC
8510 builtin and then its argument prototype would still apply. */
8511 #ifdef __cplusplus
8512 extern "C"
8513 #endif
8514 char opendir ();
8516 main ()
8518 return opendir ();
8520 return 0;
8522 _ACEOF
8523 for ac_lib in '' dir; do
8524 if test -z "$ac_lib"; then
8525 ac_res="none required"
8526 else
8527 ac_res=-l$ac_lib
8528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8530 rm -f conftest.$ac_objext conftest$ac_exeext
8531 if { (ac_try="$ac_link"
8532 case "(($ac_try" in
8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534 *) ac_try_echo=$ac_try;;
8535 esac
8536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537 (eval "$ac_link") 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } &&
8544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8545 { (case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8548 esac
8549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550 (eval "$ac_try") 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try='test -s conftest$ac_exeext'
8555 { (case "(($ac_try" in
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8558 esac
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_try") 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 ac_cv_search_opendir=$ac_res
8565 else
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8572 rm -f core conftest.err conftest.$ac_objext \
8573 conftest$ac_exeext
8574 if test "${ac_cv_search_opendir+set}" = set; then
8575 break
8577 done
8578 if test "${ac_cv_search_opendir+set}" = set; then
8580 else
8581 ac_cv_search_opendir=no
8583 rm conftest.$ac_ext
8584 LIBS=$ac_func_search_save_LIBS
8586 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8587 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8588 ac_res=$ac_cv_search_opendir
8589 if test "$ac_res" != no; then
8590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8594 else
8595 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8596 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8597 if test "${ac_cv_search_opendir+set}" = set; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 else
8600 ac_func_search_save_LIBS=$LIBS
8601 cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h. */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8608 /* Override any GCC internal prototype to avoid an error.
8609 Use char because int might match the return type of a GCC
8610 builtin and then its argument prototype would still apply. */
8611 #ifdef __cplusplus
8612 extern "C"
8613 #endif
8614 char opendir ();
8616 main ()
8618 return opendir ();
8620 return 0;
8622 _ACEOF
8623 for ac_lib in '' x; do
8624 if test -z "$ac_lib"; then
8625 ac_res="none required"
8626 else
8627 ac_res=-l$ac_lib
8628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8630 rm -f conftest.$ac_objext conftest$ac_exeext
8631 if { (ac_try="$ac_link"
8632 case "(($ac_try" in
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8635 esac
8636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_link") 2>conftest.er1
8638 ac_status=$?
8639 grep -v '^ *+' conftest.er1 >conftest.err
8640 rm -f conftest.er1
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } &&
8644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8645 { (case "(($ac_try" in
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8648 esac
8649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8650 (eval "$ac_try") 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; } &&
8654 { ac_try='test -s conftest$ac_exeext'
8655 { (case "(($ac_try" in
8656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8657 *) ac_try_echo=$ac_try;;
8658 esac
8659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8660 (eval "$ac_try") 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 ac_cv_search_opendir=$ac_res
8665 else
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8672 rm -f core conftest.err conftest.$ac_objext \
8673 conftest$ac_exeext
8674 if test "${ac_cv_search_opendir+set}" = set; then
8675 break
8677 done
8678 if test "${ac_cv_search_opendir+set}" = set; then
8680 else
8681 ac_cv_search_opendir=no
8683 rm conftest.$ac_ext
8684 LIBS=$ac_func_search_save_LIBS
8686 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8687 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8688 ac_res=$ac_cv_search_opendir
8689 if test "$ac_res" != no; then
8690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8697 for ac_header in dlfcn.h
8699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 ac_res=`eval echo '${'$as_ac_Header'}'`
8707 { echo "$as_me:$LINENO: result: $ac_res" >&5
8708 echo "${ECHO_T}$ac_res" >&6; }
8709 else
8710 # Is the header compilable?
8711 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8713 cat >conftest.$ac_ext <<_ACEOF
8714 /* confdefs.h. */
8715 _ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 $ac_includes_default
8720 #include <$ac_header>
8721 _ACEOF
8722 rm -f conftest.$ac_objext
8723 if { (ac_try="$ac_compile"
8724 case "(($ac_try" in
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8727 esac
8728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729 (eval "$ac_compile") 2>conftest.er1
8730 ac_status=$?
8731 grep -v '^ *+' conftest.er1 >conftest.err
8732 rm -f conftest.er1
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } &&
8736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8737 { (case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740 esac
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_try") 2>&5
8743 ac_status=$?
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; } &&
8746 { ac_try='test -s conftest.$ac_objext'
8747 { (case "(($ac_try" in
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8750 esac
8751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8752 (eval "$ac_try") 2>&5
8753 ac_status=$?
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); }; }; then
8756 ac_header_compiler=yes
8757 else
8758 echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8761 ac_header_compiler=no
8764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8766 echo "${ECHO_T}$ac_header_compiler" >&6; }
8768 # Is the header present?
8769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8771 cat >conftest.$ac_ext <<_ACEOF
8772 /* confdefs.h. */
8773 _ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8777 #include <$ac_header>
8778 _ACEOF
8779 if { (ac_try="$ac_cpp conftest.$ac_ext"
8780 case "(($ac_try" in
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8783 esac
8784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8786 ac_status=$?
8787 grep -v '^ *+' conftest.er1 >conftest.err
8788 rm -f conftest.er1
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } >/dev/null; then
8792 if test -s conftest.err; then
8793 ac_cpp_err=$ac_c_preproc_warn_flag
8794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8795 else
8796 ac_cpp_err=
8798 else
8799 ac_cpp_err=yes
8801 if test -z "$ac_cpp_err"; then
8802 ac_header_preproc=yes
8803 else
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8807 ac_header_preproc=no
8810 rm -f conftest.err conftest.$ac_ext
8811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8812 echo "${ECHO_T}$ac_header_preproc" >&6; }
8814 # So? What about this header?
8815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8816 yes:no: )
8817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8821 ac_header_preproc=yes
8823 no:yes:* )
8824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8836 ( cat <<\_ASBOX
8837 ## ----------------------------------- ##
8838 ## Report this to llvmbugs@cs.uiuc.edu ##
8839 ## ----------------------------------- ##
8840 _ASBOX
8841 ) | sed "s/^/$as_me: WARNING: /" >&2
8843 esac
8844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8847 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 else
8849 eval "$as_ac_Header=\$ac_header_preproc"
8851 ac_res=`eval echo '${'$as_ac_Header'}'`
8852 { echo "$as_me:$LINENO: result: $ac_res" >&5
8853 echo "${ECHO_T}$ac_res" >&6; }
8856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8857 cat >>confdefs.h <<_ACEOF
8858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8859 _ACEOF
8863 done
8865 # Check whether --enable-ltdl-install was given.
8866 if test "${enable_ltdl_install+set}" = set; then
8867 enableval=$enable_ltdl_install;
8873 if test x"${enable_ltdl_install-no}" != xno; then
8874 INSTALL_LTDL_TRUE=
8875 INSTALL_LTDL_FALSE='#'
8876 else
8877 INSTALL_LTDL_TRUE='#'
8878 INSTALL_LTDL_FALSE=
8883 if test x"${enable_ltdl_convenience-no}" != xno; then
8884 CONVENIENCE_LTDL_TRUE=
8885 CONVENIENCE_LTDL_FALSE='#'
8886 else
8887 CONVENIENCE_LTDL_TRUE='#'
8888 CONVENIENCE_LTDL_FALSE=
8892 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8893 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8894 library_names_spec=
8895 libname_spec='lib$name'
8896 soname_spec=
8897 shrext_cmds=".so"
8898 postinstall_cmds=
8899 postuninstall_cmds=
8900 finish_cmds=
8901 finish_eval=
8902 shlibpath_var=
8903 shlibpath_overrides_runpath=unknown
8904 version_type=none
8905 dynamic_linker="$host_os ld.so"
8906 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8907 if test "$GCC" = yes; then
8908 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8909 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8910 # if the path contains ";" then we assume it to be the separator
8911 # otherwise default to the standard path separator (i.e. ":") - it is
8912 # assumed that no part of a normal pathname contains ";" but that should
8913 # okay in the real world where ";" in dirpaths is itself problematic.
8914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8915 else
8916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8918 else
8919 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8921 need_lib_prefix=unknown
8922 hardcode_into_libs=no
8924 # when you set need_version to no, make sure it does not cause -set_version
8925 # flags to be left without arguments
8926 need_version=unknown
8928 case $host_os in
8929 aix3*)
8930 version_type=linux
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8932 shlibpath_var=LIBPATH
8934 # AIX 3 has no versioning support, so we append a major version to the name.
8935 soname_spec='${libname}${release}${shared_ext}$major'
8938 aix4* | aix5*)
8939 version_type=linux
8940 need_lib_prefix=no
8941 need_version=no
8942 hardcode_into_libs=yes
8943 if test "$host_cpu" = ia64; then
8944 # AIX 5 supports IA64
8945 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8946 shlibpath_var=LD_LIBRARY_PATH
8947 else
8948 # With GCC up to 2.95.x, collect2 would create an import file
8949 # for dependence libraries. The import file would start with
8950 # the line `#! .'. This would cause the generated library to
8951 # depend on `.', always an invalid library. This was fixed in
8952 # development snapshots of GCC prior to 3.0.
8953 case $host_os in
8954 aix4 | aix4.[01] | aix4.[01].*)
8955 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8956 echo ' yes '
8957 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8959 else
8960 can_build_shared=no
8963 esac
8964 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8965 # soname into executable. Probably we can add versioning support to
8966 # collect2, so additional links can be useful in future.
8967 if test "$aix_use_runtimelinking" = yes; then
8968 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8969 # instead of lib<name>.a to let people know that these are not
8970 # typical AIX shared libraries.
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972 else
8973 # We preserve .a as extension for shared libraries through AIX4.2
8974 # and later when we are not doing run time linking.
8975 library_names_spec='${libname}${release}.a $libname.a'
8976 soname_spec='${libname}${release}${shared_ext}$major'
8978 shlibpath_var=LIBPATH
8982 amigaos*)
8983 library_names_spec='$libname.ixlibrary $libname.a'
8984 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8985 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'
8988 beos*)
8989 library_names_spec='${libname}${shared_ext}'
8990 dynamic_linker="$host_os ld.so"
8991 shlibpath_var=LIBRARY_PATH
8994 bsdi[45]*)
8995 version_type=linux
8996 need_version=no
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9000 shlibpath_var=LD_LIBRARY_PATH
9001 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9002 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9003 # the default ld.so.conf also contains /usr/contrib/lib and
9004 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9005 # libtool to hard-code these into programs
9008 cygwin* | mingw* | pw32*)
9009 version_type=windows
9010 shrext_cmds=".dll"
9011 need_version=no
9012 need_lib_prefix=no
9014 case $GCC,$host_os in
9015 yes,cygwin* | yes,mingw* | yes,pw32*)
9016 library_names_spec='$libname.dll.a'
9017 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9018 postinstall_cmds='base_file=`basename \${file}`~
9019 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9020 dldir=$destdir/`dirname \$dlpath`~
9021 test -d \$dldir || mkdir -p \$dldir~
9022 $install_prog $dir/$dlname \$dldir/$dlname~
9023 chmod a+x \$dldir/$dlname'
9024 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9025 dlpath=$dir/\$dldll~
9026 $rm \$dlpath'
9027 shlibpath_overrides_runpath=yes
9029 case $host_os in
9030 cygwin*)
9031 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9032 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9033 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9035 mingw*)
9036 # MinGW DLLs use traditional 'lib' prefix
9037 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9038 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9039 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9040 # It is most probably a Windows format PATH printed by
9041 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9042 # path with ; separators, and with drive letters. We can handle the
9043 # drive letters (cygwin fileutils understands them), so leave them,
9044 # especially as we might pass files found there to a mingw objdump,
9045 # which wouldn't understand a cygwinified path. Ahh.
9046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9047 else
9048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9051 pw32*)
9052 # pw32 DLLs use 'pw' prefix rather than 'lib'
9053 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9055 esac
9059 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9061 esac
9062 dynamic_linker='Win32 ld.exe'
9063 # FIXME: first we should search . and the directory the executable is in
9064 shlibpath_var=PATH
9067 darwin* | rhapsody*)
9068 dynamic_linker="$host_os dyld"
9069 version_type=darwin
9070 need_lib_prefix=no
9071 need_version=no
9072 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9073 soname_spec='${libname}${release}${major}$shared_ext'
9074 shlibpath_overrides_runpath=yes
9075 shlibpath_var=DYLD_LIBRARY_PATH
9076 shrext_cmds='.dylib'
9077 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9078 if test "$GCC" = yes; then
9079 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"`
9080 else
9081 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9083 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9086 dgux*)
9087 version_type=linux
9088 need_lib_prefix=no
9089 need_version=no
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9091 soname_spec='${libname}${release}${shared_ext}$major'
9092 shlibpath_var=LD_LIBRARY_PATH
9095 freebsd1*)
9096 dynamic_linker=no
9099 kfreebsd*-gnu)
9100 version_type=linux
9101 need_lib_prefix=no
9102 need_version=no
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 shlibpath_overrides_runpath=no
9107 hardcode_into_libs=yes
9108 dynamic_linker='GNU ld.so'
9111 freebsd* | dragonfly*)
9112 # DragonFly does not have aout. When/if they implement a new
9113 # versioning mechanism, adjust this.
9114 if test -x /usr/bin/objformat; then
9115 objformat=`/usr/bin/objformat`
9116 else
9117 case $host_os in
9118 freebsd[123]*) objformat=aout ;;
9119 *) objformat=elf ;;
9120 esac
9122 version_type=freebsd-$objformat
9123 case $version_type in
9124 freebsd-elf*)
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9126 need_version=no
9127 need_lib_prefix=no
9129 freebsd-*)
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9131 need_version=yes
9133 esac
9134 shlibpath_var=LD_LIBRARY_PATH
9135 case $host_os in
9136 freebsd2*)
9137 shlibpath_overrides_runpath=yes
9139 freebsd3.[01]* | freebsdelf3.[01]*)
9140 shlibpath_overrides_runpath=yes
9141 hardcode_into_libs=yes
9143 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9144 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9145 shlibpath_overrides_runpath=no
9146 hardcode_into_libs=yes
9148 freebsd*) # from 4.6 on
9149 shlibpath_overrides_runpath=yes
9150 hardcode_into_libs=yes
9152 esac
9155 gnu*)
9156 version_type=linux
9157 need_lib_prefix=no
9158 need_version=no
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9161 shlibpath_var=LD_LIBRARY_PATH
9162 hardcode_into_libs=yes
9165 hpux9* | hpux10* | hpux11*)
9166 # Give a soname corresponding to the major version so that dld.sl refuses to
9167 # link against other versions.
9168 version_type=sunos
9169 need_lib_prefix=no
9170 need_version=no
9171 case $host_cpu in
9172 ia64*)
9173 shrext_cmds='.so'
9174 hardcode_into_libs=yes
9175 dynamic_linker="$host_os dld.so"
9176 shlibpath_var=LD_LIBRARY_PATH
9177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 if test "X$HPUX_IA64_MODE" = X32; then
9181 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9182 else
9183 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9187 hppa*64*)
9188 shrext_cmds='.sl'
9189 hardcode_into_libs=yes
9190 dynamic_linker="$host_os dld.sl"
9191 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9199 shrext_cmds='.sl'
9200 dynamic_linker="$host_os dld.sl"
9201 shlibpath_var=SHLIB_PATH
9202 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204 soname_spec='${libname}${release}${shared_ext}$major'
9206 esac
9207 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9208 postinstall_cmds='chmod 555 $lib'
9211 interix3*)
9212 version_type=linux
9213 need_lib_prefix=no
9214 need_version=no
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=no
9220 hardcode_into_libs=yes
9223 irix5* | irix6* | nonstopux*)
9224 case $host_os in
9225 nonstopux*) version_type=nonstopux ;;
9227 if test "$lt_cv_prog_gnu_ld" = yes; then
9228 version_type=linux
9229 else
9230 version_type=irix
9231 fi ;;
9232 esac
9233 need_lib_prefix=no
9234 need_version=no
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9237 case $host_os in
9238 irix5* | nonstopux*)
9239 libsuff= shlibsuff=
9242 case $LD in # libtool.m4 will add one of these switches to LD
9243 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9244 libsuff= shlibsuff= libmagic=32-bit;;
9245 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9246 libsuff=32 shlibsuff=N32 libmagic=N32;;
9247 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9248 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9249 *) libsuff= shlibsuff= libmagic=never-match;;
9250 esac
9252 esac
9253 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9254 shlibpath_overrides_runpath=no
9255 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9256 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9257 hardcode_into_libs=yes
9260 # No shared lib support for Linux oldld, aout, or coff.
9261 linux*oldld* | linux*aout* | linux*coff*)
9262 dynamic_linker=no
9265 # This must be Linux ELF.
9266 linux*)
9267 version_type=linux
9268 need_lib_prefix=no
9269 need_version=no
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271 soname_spec='${libname}${release}${shared_ext}$major'
9272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9273 shlibpath_var=LD_LIBRARY_PATH
9274 shlibpath_overrides_runpath=no
9275 # This implies no fast_install, which is unacceptable.
9276 # Some rework will be needed to allow for fast_install
9277 # before this can be enabled.
9278 hardcode_into_libs=yes
9280 # Append ld.so.conf contents to the search path
9281 if test -f /etc/ld.so.conf; then
9282 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' ' '`
9283 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9286 # We used to test for /lib/ld.so.1 and disable shared libraries on
9287 # powerpc, because MkLinux only supported shared libraries with the
9288 # GNU dynamic linker. Since this was broken with cross compilers,
9289 # most powerpc-linux boxes support dynamic linking these days and
9290 # people can always --disable-shared, the test was removed, and we
9291 # assume the GNU/Linux dynamic linker is in use.
9292 dynamic_linker='GNU/Linux ld.so'
9295 knetbsd*-gnu)
9296 version_type=linux
9297 need_lib_prefix=no
9298 need_version=no
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9300 soname_spec='${libname}${release}${shared_ext}$major'
9301 shlibpath_var=LD_LIBRARY_PATH
9302 shlibpath_overrides_runpath=no
9303 hardcode_into_libs=yes
9304 dynamic_linker='GNU ld.so'
9307 netbsd*)
9308 version_type=sunos
9309 need_lib_prefix=no
9310 need_version=no
9311 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9314 dynamic_linker='NetBSD (a.out) ld.so'
9315 else
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 dynamic_linker='NetBSD ld.elf_so'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 shlibpath_overrides_runpath=yes
9322 hardcode_into_libs=yes
9325 newsos6)
9326 version_type=linux
9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 shlibpath_overrides_runpath=yes
9332 nto-qnx*)
9333 version_type=linux
9334 need_lib_prefix=no
9335 need_version=no
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9337 soname_spec='${libname}${release}${shared_ext}$major'
9338 shlibpath_var=LD_LIBRARY_PATH
9339 shlibpath_overrides_runpath=yes
9342 openbsd*)
9343 version_type=sunos
9344 sys_lib_dlsearch_path_spec="/usr/lib"
9345 need_lib_prefix=no
9346 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9347 case $host_os in
9348 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9349 *) need_version=no ;;
9350 esac
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9353 shlibpath_var=LD_LIBRARY_PATH
9354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9355 case $host_os in
9356 openbsd2.[89] | openbsd2.[89].*)
9357 shlibpath_overrides_runpath=no
9360 shlibpath_overrides_runpath=yes
9362 esac
9363 else
9364 shlibpath_overrides_runpath=yes
9368 os2*)
9369 libname_spec='$name'
9370 shrext_cmds=".dll"
9371 need_lib_prefix=no
9372 library_names_spec='$libname${shared_ext} $libname.a'
9373 dynamic_linker='OS/2 ld.exe'
9374 shlibpath_var=LIBPATH
9377 osf3* | osf4* | osf5*)
9378 version_type=osf
9379 need_lib_prefix=no
9380 need_version=no
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9385 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9388 solaris*)
9389 version_type=linux
9390 need_lib_prefix=no
9391 need_version=no
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393 soname_spec='${libname}${release}${shared_ext}$major'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 shlibpath_overrides_runpath=yes
9396 hardcode_into_libs=yes
9397 # ldd complains unless libraries are executable
9398 postinstall_cmds='chmod +x $lib'
9401 sunos4*)
9402 version_type=sunos
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9404 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9405 shlibpath_var=LD_LIBRARY_PATH
9406 shlibpath_overrides_runpath=yes
9407 if test "$with_gnu_ld" = yes; then
9408 need_lib_prefix=no
9410 need_version=yes
9413 sysv4 | sysv4.3*)
9414 version_type=linux
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
9418 case $host_vendor in
9419 sni)
9420 shlibpath_overrides_runpath=no
9421 need_lib_prefix=no
9422 export_dynamic_flag_spec='${wl}-Blargedynsym'
9423 runpath_var=LD_RUN_PATH
9425 siemens)
9426 need_lib_prefix=no
9428 motorola)
9429 need_lib_prefix=no
9430 need_version=no
9431 shlibpath_overrides_runpath=no
9432 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9434 esac
9437 sysv4*MP*)
9438 if test -d /usr/nec ;then
9439 version_type=linux
9440 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9441 soname_spec='$libname${shared_ext}.$major'
9442 shlibpath_var=LD_LIBRARY_PATH
9446 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9447 version_type=freebsd-elf
9448 need_lib_prefix=no
9449 need_version=no
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 shlibpath_var=LD_LIBRARY_PATH
9453 hardcode_into_libs=yes
9454 if test "$with_gnu_ld" = yes; then
9455 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9456 shlibpath_overrides_runpath=no
9457 else
9458 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9459 shlibpath_overrides_runpath=yes
9460 case $host_os in
9461 sco3.2v5*)
9462 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9464 esac
9466 sys_lib_dlsearch_path_spec='/usr/lib'
9469 uts4*)
9470 version_type=linux
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472 soname_spec='${libname}${release}${shared_ext}$major'
9473 shlibpath_var=LD_LIBRARY_PATH
9477 dynamic_linker=no
9479 esac
9480 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9481 echo "${ECHO_T}$dynamic_linker" >&6; }
9482 test "$dynamic_linker" = no && can_build_shared=no
9484 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9485 if test "$GCC" = yes; then
9486 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9490 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9491 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9492 if test "${libltdl_cv_shlibext+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 else
9496 module=yes
9497 eval libltdl_cv_shlibext=$shrext_cmds
9500 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9501 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9502 if test -n "$libltdl_cv_shlibext"; then
9504 cat >>confdefs.h <<_ACEOF
9505 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9506 _ACEOF
9511 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9512 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9513 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516 libltdl_cv_shlibpath_var="$shlibpath_var"
9518 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9519 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9520 if test -n "$libltdl_cv_shlibpath_var"; then
9522 cat >>confdefs.h <<_ACEOF
9523 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9524 _ACEOF
9529 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9530 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9531 if test "${libltdl_cv_sys_search_path+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9536 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9537 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9538 if test -n "$libltdl_cv_sys_search_path"; then
9539 sys_search_path=
9540 for dir in $libltdl_cv_sys_search_path; do
9541 if test -z "$sys_search_path"; then
9542 sys_search_path="$dir"
9543 else
9544 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9546 done
9548 cat >>confdefs.h <<_ACEOF
9549 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9550 _ACEOF
9554 { echo "$as_me:$LINENO: checking for objdir" >&5
9555 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9556 if test "${libltdl_cv_objdir+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559 libltdl_cv_objdir="$objdir"
9560 if test -n "$objdir"; then
9562 else
9563 rm -f .libs 2>/dev/null
9564 mkdir .libs 2>/dev/null
9565 if test -d .libs; then
9566 libltdl_cv_objdir=.libs
9567 else
9568 # MS-DOS does not allow filenames that begin with a dot.
9569 libltdl_cv_objdir=_libs
9571 rmdir .libs 2>/dev/null
9575 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9576 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9578 cat >>confdefs.h <<_ACEOF
9579 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9580 _ACEOF
9587 # Check for command to grab the raw symbol name followed by C symbol from nm.
9588 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9589 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9590 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 else
9594 # These are sane defaults that work on at least a few old systems.
9595 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9597 # Character class describing NM global symbol codes.
9598 symcode='[BCDEGRST]'
9600 # Regexp to match symbols that can be accessed directly from C.
9601 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9603 # Transform an extracted symbol line into a proper C declaration
9604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9606 # Transform an extracted symbol line into symbol name and symbol address
9607 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9609 # Define system-specific variables.
9610 case $host_os in
9611 aix*)
9612 symcode='[BCDT]'
9614 cygwin* | mingw* | pw32*)
9615 symcode='[ABCDGISTW]'
9617 hpux*) # Its linker distinguishes data from code symbols
9618 if test "$host_cpu" = ia64; then
9619 symcode='[ABCDEGRST]'
9621 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9622 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9624 linux*)
9625 if test "$host_cpu" = ia64; then
9626 symcode='[ABCDGIRSTW]'
9627 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9628 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'"
9631 irix* | nonstopux*)
9632 symcode='[BCDEGRST]'
9634 osf*)
9635 symcode='[BCDEGQRST]'
9637 solaris*)
9638 symcode='[BDRT]'
9640 sco3.2v5*)
9641 symcode='[DT]'
9643 sysv4.2uw2*)
9644 symcode='[DT]'
9646 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9647 symcode='[ABDT]'
9649 sysv4)
9650 symcode='[DFNSTU]'
9652 esac
9654 # Handle CRLF in mingw tool chain
9655 opt_cr=
9656 case $build_os in
9657 mingw*)
9658 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9660 esac
9662 # If we're using GNU nm, then use its standard symbol codes.
9663 case `$NM -V 2>&1` in
9664 *GNU* | *'with BFD'*)
9665 symcode='[ABCDGIRSTW]' ;;
9666 esac
9668 # Try without a prefix undercore, then with it.
9669 for ac_symprfx in "" "_"; do
9671 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9672 symxfrm="\\1 $ac_symprfx\\2 \\2"
9674 # Write the raw and C identifiers.
9675 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9677 # Check to see that the pipe works correctly.
9678 pipe_works=no
9680 rm -f conftest*
9681 cat > conftest.$ac_ext <<EOF
9682 #ifdef __cplusplus
9683 extern "C" {
9684 #endif
9685 char nm_test_var;
9686 void nm_test_func(){}
9687 #ifdef __cplusplus
9689 #endif
9690 int main(){nm_test_var='a';nm_test_func();return(0);}
9693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9694 (eval $ac_compile) 2>&5
9695 ac_status=$?
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; then
9698 # Now try to grab the symbols.
9699 nlist=conftest.nm
9700 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9701 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } && test -s "$nlist"; then
9705 # Try sorting and uniquifying the output.
9706 if sort "$nlist" | uniq > "$nlist"T; then
9707 mv -f "$nlist"T "$nlist"
9708 else
9709 rm -f "$nlist"T
9712 # Make sure that we snagged all the symbols we need.
9713 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9714 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9715 cat <<EOF > conftest.$ac_ext
9716 #ifdef __cplusplus
9717 extern "C" {
9718 #endif
9721 # Now generate the symbol file.
9722 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9724 cat <<EOF >> conftest.$ac_ext
9725 #if defined (__STDC__) && __STDC__
9726 # define lt_ptr_t void *
9727 #else
9728 # define lt_ptr_t char *
9729 # define const
9730 #endif
9732 /* The mapping between symbol names and symbols. */
9733 const struct {
9734 const char *name;
9735 lt_ptr_t address;
9737 lt_preloaded_symbols[] =
9740 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9741 cat <<\EOF >> conftest.$ac_ext
9742 {0, (lt_ptr_t) 0}
9745 #ifdef __cplusplus
9747 #endif
9749 # Now try linking the two files.
9750 mv conftest.$ac_objext conftstm.$ac_objext
9751 lt_save_LIBS="$LIBS"
9752 lt_save_CFLAGS="$CFLAGS"
9753 LIBS="conftstm.$ac_objext"
9754 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756 (eval $ac_link) 2>&5
9757 ac_status=$?
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9760 pipe_works=yes
9762 LIBS="$lt_save_LIBS"
9763 CFLAGS="$lt_save_CFLAGS"
9764 else
9765 echo "cannot find nm_test_func in $nlist" >&5
9767 else
9768 echo "cannot find nm_test_var in $nlist" >&5
9770 else
9771 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9773 else
9774 echo "$progname: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9777 rm -f conftest* conftst*
9779 # Do not use the global_symbol_pipe unless it works.
9780 if test "$pipe_works" = yes; then
9781 break
9782 else
9783 lt_cv_sys_global_symbol_pipe=
9785 done
9789 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9790 lt_cv_sys_global_symbol_to_cdecl=
9792 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9793 { echo "$as_me:$LINENO: result: failed" >&5
9794 echo "${ECHO_T}failed" >&6; }
9795 else
9796 { echo "$as_me:$LINENO: result: ok" >&5
9797 echo "${ECHO_T}ok" >&6; }
9801 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9802 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9803 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9807 libltdl_cv_preloaded_symbols=yes
9808 else
9809 libltdl_cv_preloaded_symbols=no
9813 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9814 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9815 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9817 cat >>confdefs.h <<\_ACEOF
9818 #define HAVE_PRELOADED_SYMBOLS 1
9819 _ACEOF
9823 LIBADD_DL=
9825 ac_ext=c
9826 ac_cpp='$CPP $CPPFLAGS'
9827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9832 { echo "$as_me:$LINENO: checking for shl_load" >&5
9833 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9834 if test "${ac_cv_func_shl_load+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 else
9837 cat >conftest.$ac_ext <<_ACEOF
9838 /* confdefs.h. */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9845 #define shl_load innocuous_shl_load
9847 /* System header to define __stub macros and hopefully few prototypes,
9848 which can conflict with char shl_load (); below.
9849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9850 <limits.h> exists even on freestanding compilers. */
9852 #ifdef __STDC__
9853 # include <limits.h>
9854 #else
9855 # include <assert.h>
9856 #endif
9858 #undef shl_load
9860 /* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
9863 #ifdef __cplusplus
9864 extern "C"
9865 #endif
9866 char shl_load ();
9867 /* The GNU C library defines this for functions which it implements
9868 to always fail with ENOSYS. Some functions are actually named
9869 something starting with __ and the normal name is an alias. */
9870 #if defined __stub_shl_load || defined __stub___shl_load
9871 choke me
9872 #endif
9875 main ()
9877 return shl_load ();
9879 return 0;
9881 _ACEOF
9882 rm -f conftest.$ac_objext conftest$ac_exeext
9883 if { (ac_try="$ac_link"
9884 case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_link") 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9897 { (case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9900 esac
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_try") 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9910 esac
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_cv_func_shl_load=yes
9917 else
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9921 ac_cv_func_shl_load=no
9924 rm -f core conftest.err conftest.$ac_objext \
9925 conftest$ac_exeext conftest.$ac_ext
9927 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9928 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9929 if test $ac_cv_func_shl_load = yes; then
9931 cat >>confdefs.h <<\_ACEOF
9932 #define HAVE_SHL_LOAD 1
9933 _ACEOF
9935 else
9936 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9937 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9938 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 else
9941 ac_check_lib_save_LIBS=$LIBS
9942 LIBS="-ldld $LIBS"
9943 cat >conftest.$ac_ext <<_ACEOF
9944 /* confdefs.h. */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9950 /* Override any GCC internal prototype to avoid an error.
9951 Use char because int might match the return type of a GCC
9952 builtin and then its argument prototype would still apply. */
9953 #ifdef __cplusplus
9954 extern "C"
9955 #endif
9956 char shl_load ();
9958 main ()
9960 return shl_load ();
9962 return 0;
9964 _ACEOF
9965 rm -f conftest.$ac_objext conftest$ac_exeext
9966 if { (ac_try="$ac_link"
9967 case "(($ac_try" in
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9970 esac
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_link") 2>conftest.er1
9973 ac_status=$?
9974 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } &&
9979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9980 { (case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9983 esac
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_try") 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try='test -s conftest$ac_exeext'
9990 { (case "(($ac_try" in
9991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992 *) ac_try_echo=$ac_try;;
9993 esac
9994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9995 (eval "$ac_try") 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; }; then
9999 ac_cv_lib_dld_shl_load=yes
10000 else
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10004 ac_cv_lib_dld_shl_load=no
10007 rm -f core conftest.err conftest.$ac_objext \
10008 conftest$ac_exeext conftest.$ac_ext
10009 LIBS=$ac_check_lib_save_LIBS
10011 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10012 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10013 if test $ac_cv_lib_dld_shl_load = yes; then
10015 cat >>confdefs.h <<\_ACEOF
10016 #define HAVE_SHL_LOAD 1
10017 _ACEOF
10019 LIBADD_DL="$LIBADD_DL -ldld"
10020 else
10021 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10022 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10023 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 else
10026 ac_check_lib_save_LIBS=$LIBS
10027 LIBS="-ldl $LIBS"
10028 cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h. */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10035 /* Override any GCC internal prototype to avoid an error.
10036 Use char because int might match the return type of a GCC
10037 builtin and then its argument prototype would still apply. */
10038 #ifdef __cplusplus
10039 extern "C"
10040 #endif
10041 char dlopen ();
10043 main ()
10045 return dlopen ();
10047 return 0;
10049 _ACEOF
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (ac_try="$ac_link"
10052 case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_link") 2>conftest.er1
10058 ac_status=$?
10059 grep -v '^ *+' conftest.er1 >conftest.err
10060 rm -f conftest.er1
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } &&
10064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10065 { (case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10068 esac
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_try") 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; } &&
10074 { ac_try='test -s conftest$ac_exeext'
10075 { (case "(($ac_try" in
10076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077 *) ac_try_echo=$ac_try;;
10078 esac
10079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080 (eval "$ac_try") 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_cv_lib_dl_dlopen=yes
10085 else
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10089 ac_cv_lib_dl_dlopen=no
10092 rm -f core conftest.err conftest.$ac_objext \
10093 conftest$ac_exeext conftest.$ac_ext
10094 LIBS=$ac_check_lib_save_LIBS
10096 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10097 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10098 if test $ac_cv_lib_dl_dlopen = yes; then
10100 cat >>confdefs.h <<\_ACEOF
10101 #define HAVE_LIBDL 1
10102 _ACEOF
10104 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10105 else
10106 cat >conftest.$ac_ext <<_ACEOF
10107 /* confdefs.h. */
10108 _ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10112 #if HAVE_DLFCN_H
10113 # include <dlfcn.h>
10114 #endif
10117 main ()
10119 dlopen(0, 0);
10121 return 0;
10123 _ACEOF
10124 rm -f conftest.$ac_objext conftest$ac_exeext
10125 if { (ac_try="$ac_link"
10126 case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10129 esac
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_link") 2>conftest.er1
10132 ac_status=$?
10133 grep -v '^ *+' conftest.er1 >conftest.err
10134 rm -f conftest.er1
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } &&
10138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10139 { (case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10142 esac
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_try") 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (case "(($ac_try" in
10150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151 *) ac_try_echo=$ac_try;;
10152 esac
10153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154 (eval "$ac_try") 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; }; then
10159 cat >>confdefs.h <<\_ACEOF
10160 #define HAVE_LIBDL 1
10161 _ACEOF
10162 libltdl_cv_func_dlopen="yes"
10163 else
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10167 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10168 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10169 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 else
10172 ac_check_lib_save_LIBS=$LIBS
10173 LIBS="-lsvld $LIBS"
10174 cat >conftest.$ac_ext <<_ACEOF
10175 /* confdefs.h. */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10181 /* Override any GCC internal prototype to avoid an error.
10182 Use char because int might match the return type of a GCC
10183 builtin and then its argument prototype would still apply. */
10184 #ifdef __cplusplus
10185 extern "C"
10186 #endif
10187 char dlopen ();
10189 main ()
10191 return dlopen ();
10193 return 0;
10195 _ACEOF
10196 rm -f conftest.$ac_objext conftest$ac_exeext
10197 if { (ac_try="$ac_link"
10198 case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10201 esac
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203 (eval "$ac_link") 2>conftest.er1
10204 ac_status=$?
10205 grep -v '^ *+' conftest.er1 >conftest.err
10206 rm -f conftest.er1
10207 cat conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } &&
10210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10211 { (case "(($ac_try" in
10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10214 esac
10215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_try") 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; } &&
10220 { ac_try='test -s conftest$ac_exeext'
10221 { (case "(($ac_try" in
10222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223 *) ac_try_echo=$ac_try;;
10224 esac
10225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226 (eval "$ac_try") 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 ac_cv_lib_svld_dlopen=yes
10231 else
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10235 ac_cv_lib_svld_dlopen=no
10238 rm -f core conftest.err conftest.$ac_objext \
10239 conftest$ac_exeext conftest.$ac_ext
10240 LIBS=$ac_check_lib_save_LIBS
10242 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10243 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10244 if test $ac_cv_lib_svld_dlopen = yes; then
10246 cat >>confdefs.h <<\_ACEOF
10247 #define HAVE_LIBDL 1
10248 _ACEOF
10250 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10251 else
10252 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10253 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10254 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 else
10257 ac_check_lib_save_LIBS=$LIBS
10258 LIBS="-ldld $LIBS"
10259 cat >conftest.$ac_ext <<_ACEOF
10260 /* confdefs.h. */
10261 _ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10266 /* Override any GCC internal prototype to avoid an error.
10267 Use char because int might match the return type of a GCC
10268 builtin and then its argument prototype would still apply. */
10269 #ifdef __cplusplus
10270 extern "C"
10271 #endif
10272 char dld_link ();
10274 main ()
10276 return dld_link ();
10278 return 0;
10280 _ACEOF
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (ac_try="$ac_link"
10283 case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_link") 2>conftest.er1
10289 ac_status=$?
10290 grep -v '^ *+' conftest.er1 >conftest.err
10291 rm -f conftest.er1
10292 cat conftest.err >&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } &&
10295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10296 { (case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10299 esac
10300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301 (eval "$ac_try") 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; } &&
10305 { ac_try='test -s conftest$ac_exeext'
10306 { (case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10309 esac
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_try") 2>&5
10312 ac_status=$?
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; }; then
10315 ac_cv_lib_dld_dld_link=yes
10316 else
10317 echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10320 ac_cv_lib_dld_dld_link=no
10323 rm -f core conftest.err conftest.$ac_objext \
10324 conftest$ac_exeext conftest.$ac_ext
10325 LIBS=$ac_check_lib_save_LIBS
10327 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10328 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10329 if test $ac_cv_lib_dld_dld_link = yes; then
10331 cat >>confdefs.h <<\_ACEOF
10332 #define HAVE_DLD 1
10333 _ACEOF
10335 LIBADD_DL="$LIBADD_DL -ldld"
10336 else
10337 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10338 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10339 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 else
10342 cat >conftest.$ac_ext <<_ACEOF
10343 /* confdefs.h. */
10344 _ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h. */
10348 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10350 #define _dyld_func_lookup innocuous__dyld_func_lookup
10352 /* System header to define __stub macros and hopefully few prototypes,
10353 which can conflict with char _dyld_func_lookup (); below.
10354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10355 <limits.h> exists even on freestanding compilers. */
10357 #ifdef __STDC__
10358 # include <limits.h>
10359 #else
10360 # include <assert.h>
10361 #endif
10363 #undef _dyld_func_lookup
10365 /* Override any GCC internal prototype to avoid an error.
10366 Use char because int might match the return type of a GCC
10367 builtin and then its argument prototype would still apply. */
10368 #ifdef __cplusplus
10369 extern "C"
10370 #endif
10371 char _dyld_func_lookup ();
10372 /* The GNU C library defines this for functions which it implements
10373 to always fail with ENOSYS. Some functions are actually named
10374 something starting with __ and the normal name is an alias. */
10375 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10376 choke me
10377 #endif
10380 main ()
10382 return _dyld_func_lookup ();
10384 return 0;
10386 _ACEOF
10387 rm -f conftest.$ac_objext conftest$ac_exeext
10388 if { (ac_try="$ac_link"
10389 case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10392 esac
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_link") 2>conftest.er1
10395 ac_status=$?
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } &&
10401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10402 { (case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10405 esac
10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_try") 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; } &&
10411 { ac_try='test -s conftest$ac_exeext'
10412 { (case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10415 esac
10416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_try") 2>&5
10418 ac_status=$?
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; }; then
10421 ac_cv_func__dyld_func_lookup=yes
10422 else
10423 echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10426 ac_cv_func__dyld_func_lookup=no
10429 rm -f core conftest.err conftest.$ac_objext \
10430 conftest$ac_exeext conftest.$ac_ext
10432 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10433 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10434 if test $ac_cv_func__dyld_func_lookup = yes; then
10436 cat >>confdefs.h <<\_ACEOF
10437 #define HAVE_DYLD 1
10438 _ACEOF
10451 rm -f core conftest.err conftest.$ac_objext \
10452 conftest$ac_exeext conftest.$ac_ext
10463 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10464 then
10465 lt_save_LIBS="$LIBS"
10466 LIBS="$LIBS $LIBADD_DL"
10468 for ac_func in dlerror
10470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476 cat >conftest.$ac_ext <<_ACEOF
10477 /* confdefs.h. */
10478 _ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10484 #define $ac_func innocuous_$ac_func
10486 /* System header to define __stub macros and hopefully few prototypes,
10487 which can conflict with char $ac_func (); below.
10488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10489 <limits.h> exists even on freestanding compilers. */
10491 #ifdef __STDC__
10492 # include <limits.h>
10493 #else
10494 # include <assert.h>
10495 #endif
10497 #undef $ac_func
10499 /* Override any GCC internal prototype to avoid an error.
10500 Use char because int might match the return type of a GCC
10501 builtin and then its argument prototype would still apply. */
10502 #ifdef __cplusplus
10503 extern "C"
10504 #endif
10505 char $ac_func ();
10506 /* The GNU C library defines this for functions which it implements
10507 to always fail with ENOSYS. Some functions are actually named
10508 something starting with __ and the normal name is an alias. */
10509 #if defined __stub_$ac_func || defined __stub___$ac_func
10510 choke me
10511 #endif
10514 main ()
10516 return $ac_func ();
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 eval "$as_ac_var=yes"
10556 else
10557 echo "$as_me: failed program was:" >&5
10558 sed 's/^/| /' conftest.$ac_ext >&5
10560 eval "$as_ac_var=no"
10563 rm -f core conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext conftest.$ac_ext
10566 ac_res=`eval echo '${'$as_ac_var'}'`
10567 { echo "$as_me:$LINENO: result: $ac_res" >&5
10568 echo "${ECHO_T}$ac_res" >&6; }
10569 if test `eval echo '${'$as_ac_var'}'` = yes; then
10570 cat >>confdefs.h <<_ACEOF
10571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10572 _ACEOF
10575 done
10577 LIBS="$lt_save_LIBS"
10579 ac_ext=c
10580 ac_cpp='$CPP $CPPFLAGS'
10581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10587 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10588 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10589 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 else
10592 ac_cv_sys_symbol_underscore=no
10593 cat > conftest.$ac_ext <<EOF
10594 void nm_test_func(){}
10595 int main(){nm_test_func;return 0;}
10597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10598 (eval $ac_compile) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; then
10602 # Now try to grab the symbols.
10603 ac_nlist=conftest.nm
10604 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10605 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } && test -s "$ac_nlist"; then
10609 # See whether the symbols have a leading underscore.
10610 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10611 ac_cv_sys_symbol_underscore=yes
10612 else
10613 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10615 else
10616 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10619 else
10620 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10622 else
10623 echo "configure: failed program was:" >&5
10624 cat conftest.c >&5
10626 rm -rf conftest*
10629 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10630 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10633 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10634 if test x"$libltdl_cv_func_dlopen" = xyes ||
10635 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10636 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10637 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10638 if test "${libltdl_cv_need_uscore+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641 libltdl_cv_need_uscore=unknown
10642 save_LIBS="$LIBS"
10643 LIBS="$LIBS $LIBADD_DL"
10644 if test "$cross_compiling" = yes; then :
10645 libltdl_cv_need_uscore=cross
10646 else
10647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10648 lt_status=$lt_dlunknown
10649 cat > conftest.$ac_ext <<EOF
10650 #line 10650 "configure"
10651 #include "confdefs.h"
10653 #if HAVE_DLFCN_H
10654 #include <dlfcn.h>
10655 #endif
10657 #include <stdio.h>
10659 #ifdef RTLD_GLOBAL
10660 # define LT_DLGLOBAL RTLD_GLOBAL
10661 #else
10662 # ifdef DL_GLOBAL
10663 # define LT_DLGLOBAL DL_GLOBAL
10664 # else
10665 # define LT_DLGLOBAL 0
10666 # endif
10667 #endif
10669 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10670 find out it does not work in some platform. */
10671 #ifndef LT_DLLAZY_OR_NOW
10672 # ifdef RTLD_LAZY
10673 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10674 # else
10675 # ifdef DL_LAZY
10676 # define LT_DLLAZY_OR_NOW DL_LAZY
10677 # else
10678 # ifdef RTLD_NOW
10679 # define LT_DLLAZY_OR_NOW RTLD_NOW
10680 # else
10681 # ifdef DL_NOW
10682 # define LT_DLLAZY_OR_NOW DL_NOW
10683 # else
10684 # define LT_DLLAZY_OR_NOW 0
10685 # endif
10686 # endif
10687 # endif
10688 # endif
10689 #endif
10691 #ifdef __cplusplus
10692 extern "C" void exit (int);
10693 #endif
10695 void fnord() { int i=42;}
10696 int main ()
10698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10699 int status = $lt_dlunknown;
10701 if (self)
10703 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10704 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10705 /* dlclose (self); */
10707 else
10708 puts (dlerror ());
10710 exit (status);
10713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10714 (eval $ac_link) 2>&5
10715 ac_status=$?
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10718 (./conftest; exit; ) >&5 2>/dev/null
10719 lt_status=$?
10720 case x$lt_status in
10721 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10722 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10723 x$lt_dlunknown|x*) ;;
10724 esac
10725 else :
10726 # compilation failed
10730 rm -fr conftest*
10732 LIBS="$save_LIBS"
10735 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10736 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10740 if test x"$libltdl_cv_need_uscore" = xyes; then
10742 cat >>confdefs.h <<\_ACEOF
10743 #define NEED_USCORE 1
10744 _ACEOF
10749 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10750 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10751 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754 # PORTME does your system automatically load deplibs for dlopen?
10755 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10756 # For now, we just catch OSes we know something about -- in the
10757 # future, we'll try test this programmatically.
10758 libltdl_cv_sys_dlopen_deplibs=unknown
10759 case "$host_os" in
10760 aix3*|aix4.1.*|aix4.2.*)
10761 # Unknown whether this is true for these versions of AIX, but
10762 # we want this `case' here to explicitly catch those versions.
10763 libltdl_cv_sys_dlopen_deplibs=unknown
10765 aix[45]*)
10766 libltdl_cv_sys_dlopen_deplibs=yes
10768 darwin*)
10769 # Assuming the user has installed a libdl from somewhere, this is true
10770 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10771 libltdl_cv_sys_dlopen_deplibs=yes
10773 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10774 # GNU and its variants, using gnu ld.so (Glibc)
10775 libltdl_cv_sys_dlopen_deplibs=yes
10777 hpux10*|hpux11*)
10778 libltdl_cv_sys_dlopen_deplibs=yes
10780 interix*)
10781 libltdl_cv_sys_dlopen_deplibs=yes
10783 irix[12345]*|irix6.[01]*)
10784 # Catch all versions of IRIX before 6.2, and indicate that we don't
10785 # know how it worked for any of those versions.
10786 libltdl_cv_sys_dlopen_deplibs=unknown
10788 irix*)
10789 # The case above catches anything before 6.2, and it's known that
10790 # at 6.2 and later dlopen does load deplibs.
10791 libltdl_cv_sys_dlopen_deplibs=yes
10793 netbsd*)
10794 libltdl_cv_sys_dlopen_deplibs=yes
10796 openbsd*)
10797 libltdl_cv_sys_dlopen_deplibs=yes
10799 osf[1234]*)
10800 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10801 # it did *not* use an RPATH in a shared library to find objects the
10802 # library depends on, so we explictly say `no'.
10803 libltdl_cv_sys_dlopen_deplibs=no
10805 osf5.0|osf5.0a|osf5.1)
10806 # dlopen *does* load deplibs and with the right loader patch applied
10807 # it even uses RPATH in a shared library to search for shared objects
10808 # that the library depends on, but there's no easy way to know if that
10809 # patch is installed. Since this is the case, all we can really
10810 # say is unknown -- it depends on the patch being installed. If
10811 # it is, this changes to `yes'. Without it, it would be `no'.
10812 libltdl_cv_sys_dlopen_deplibs=unknown
10814 osf*)
10815 # the two cases above should catch all versions of osf <= 5.1. Read
10816 # the comments above for what we know about them.
10817 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10818 # is used to find them so we can finally say `yes'.
10819 libltdl_cv_sys_dlopen_deplibs=yes
10821 solaris*)
10822 libltdl_cv_sys_dlopen_deplibs=yes
10824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10825 libltdl_cv_sys_dlopen_deplibs=yes
10827 esac
10830 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10831 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10832 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10834 cat >>confdefs.h <<\_ACEOF
10835 #define LTDL_DLOPEN_DEPLIBS 1
10836 _ACEOF
10841 for ac_header in argz.h
10843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 ac_res=`eval echo '${'$as_ac_Header'}'`
10851 { echo "$as_me:$LINENO: result: $ac_res" >&5
10852 echo "${ECHO_T}$ac_res" >&6; }
10853 else
10854 # Is the header compilable?
10855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10857 cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h. */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863 $ac_includes_default
10864 #include <$ac_header>
10865 _ACEOF
10866 rm -f conftest.$ac_objext
10867 if { (ac_try="$ac_compile"
10868 case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871 esac
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_compile") 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } &&
10880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10881 { (case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884 esac
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_try") 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest.$ac_objext'
10891 { (case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894 esac
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_try") 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10900 ac_header_compiler=yes
10901 else
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10905 ac_header_compiler=no
10908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10910 echo "${ECHO_T}$ac_header_compiler" >&6; }
10912 # Is the header present?
10913 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10915 cat >conftest.$ac_ext <<_ACEOF
10916 /* confdefs.h. */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 #include <$ac_header>
10922 _ACEOF
10923 if { (ac_try="$ac_cpp conftest.$ac_ext"
10924 case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10927 esac
10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10930 ac_status=$?
10931 grep -v '^ *+' conftest.er1 >conftest.err
10932 rm -f conftest.er1
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } >/dev/null; then
10936 if test -s conftest.err; then
10937 ac_cpp_err=$ac_c_preproc_warn_flag
10938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10939 else
10940 ac_cpp_err=
10942 else
10943 ac_cpp_err=yes
10945 if test -z "$ac_cpp_err"; then
10946 ac_header_preproc=yes
10947 else
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10951 ac_header_preproc=no
10954 rm -f conftest.err conftest.$ac_ext
10955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10956 echo "${ECHO_T}$ac_header_preproc" >&6; }
10958 # So? What about this header?
10959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10960 yes:no: )
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10965 ac_header_preproc=yes
10967 no:yes:* )
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10980 ( cat <<\_ASBOX
10981 ## ----------------------------------- ##
10982 ## Report this to llvmbugs@cs.uiuc.edu ##
10983 ## ----------------------------------- ##
10984 _ASBOX
10985 ) | sed "s/^/$as_me: WARNING: /" >&2
10987 esac
10988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993 eval "$as_ac_Header=\$ac_header_preproc"
10995 ac_res=`eval echo '${'$as_ac_Header'}'`
10996 { echo "$as_me:$LINENO: result: $ac_res" >&5
10997 echo "${ECHO_T}$ac_res" >&6; }
11000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11001 cat >>confdefs.h <<_ACEOF
11002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11003 _ACEOF
11007 done
11010 { echo "$as_me:$LINENO: checking for error_t" >&5
11011 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11012 if test "${ac_cv_type_error_t+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 else
11015 cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h. */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 #if HAVE_ARGZ_H
11022 # include <argz.h>
11023 #endif
11025 typedef error_t ac__type_new_;
11027 main ()
11029 if ((ac__type_new_ *) 0)
11030 return 0;
11031 if (sizeof (ac__type_new_))
11032 return 0;
11034 return 0;
11036 _ACEOF
11037 rm -f conftest.$ac_objext
11038 if { (ac_try="$ac_compile"
11039 case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042 esac
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_compile") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } &&
11051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11052 { (case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055 esac
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_try") 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; } &&
11061 { ac_try='test -s conftest.$ac_objext'
11062 { (case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_try") 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; }; then
11071 ac_cv_type_error_t=yes
11072 else
11073 echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11076 ac_cv_type_error_t=no
11079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11081 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11082 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11083 if test $ac_cv_type_error_t = yes; then
11085 cat >>confdefs.h <<_ACEOF
11086 #define HAVE_ERROR_T 1
11087 _ACEOF
11090 else
11092 cat >>confdefs.h <<\_ACEOF
11093 #define error_t int
11094 _ACEOF
11104 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 else
11112 cat >conftest.$ac_ext <<_ACEOF
11113 /* confdefs.h. */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11120 #define $ac_func innocuous_$ac_func
11122 /* System header to define __stub macros and hopefully few prototypes,
11123 which can conflict with char $ac_func (); below.
11124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11125 <limits.h> exists even on freestanding compilers. */
11127 #ifdef __STDC__
11128 # include <limits.h>
11129 #else
11130 # include <assert.h>
11131 #endif
11133 #undef $ac_func
11135 /* Override any GCC internal prototype to avoid an error.
11136 Use char because int might match the return type of a GCC
11137 builtin and then its argument prototype would still apply. */
11138 #ifdef __cplusplus
11139 extern "C"
11140 #endif
11141 char $ac_func ();
11142 /* The GNU C library defines this for functions which it implements
11143 to always fail with ENOSYS. Some functions are actually named
11144 something starting with __ and the normal name is an alias. */
11145 #if defined __stub_$ac_func || defined __stub___$ac_func
11146 choke me
11147 #endif
11150 main ()
11152 return $ac_func ();
11154 return 0;
11156 _ACEOF
11157 rm -f conftest.$ac_objext conftest$ac_exeext
11158 if { (ac_try="$ac_link"
11159 case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11162 esac
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_link") 2>conftest.er1
11165 ac_status=$?
11166 grep -v '^ *+' conftest.er1 >conftest.err
11167 rm -f conftest.er1
11168 cat conftest.err >&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } &&
11171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11172 { (case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11175 esac
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_try") 2>&5
11178 ac_status=$?
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; } &&
11181 { ac_try='test -s conftest$ac_exeext'
11182 { (case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11185 esac
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_try") 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 eval "$as_ac_var=yes"
11192 else
11193 echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11196 eval "$as_ac_var=no"
11199 rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11202 ac_res=`eval echo '${'$as_ac_var'}'`
11203 { echo "$as_me:$LINENO: result: $ac_res" >&5
11204 echo "${ECHO_T}$ac_res" >&6; }
11205 if test `eval echo '${'$as_ac_var'}'` = yes; then
11206 cat >>confdefs.h <<_ACEOF
11207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11208 _ACEOF
11211 done
11240 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11241 stdio.h unistd.h
11243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11248 echo $ECHO_N "(cached) $ECHO_C" >&6
11250 ac_res=`eval echo '${'$as_ac_Header'}'`
11251 { echo "$as_me:$LINENO: result: $ac_res" >&5
11252 echo "${ECHO_T}$ac_res" >&6; }
11253 else
11254 # Is the header compilable?
11255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11257 cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h. */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 $ac_includes_default
11264 #include <$ac_header>
11265 _ACEOF
11266 rm -f conftest.$ac_objext
11267 if { (ac_try="$ac_compile"
11268 case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11271 esac
11272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_compile") 2>conftest.er1
11274 ac_status=$?
11275 grep -v '^ *+' conftest.er1 >conftest.err
11276 rm -f conftest.er1
11277 cat conftest.err >&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } &&
11280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11281 { (case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11284 esac
11285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286 (eval "$ac_try") 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; } &&
11290 { ac_try='test -s conftest.$ac_objext'
11291 { (case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11294 esac
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_try") 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; }; then
11300 ac_header_compiler=yes
11301 else
11302 echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11305 ac_header_compiler=no
11308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11309 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11310 echo "${ECHO_T}$ac_header_compiler" >&6; }
11312 # Is the header present?
11313 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11315 cat >conftest.$ac_ext <<_ACEOF
11316 /* confdefs.h. */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 #include <$ac_header>
11322 _ACEOF
11323 if { (ac_try="$ac_cpp conftest.$ac_ext"
11324 case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11327 esac
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } >/dev/null; then
11336 if test -s conftest.err; then
11337 ac_cpp_err=$ac_c_preproc_warn_flag
11338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11339 else
11340 ac_cpp_err=
11342 else
11343 ac_cpp_err=yes
11345 if test -z "$ac_cpp_err"; then
11346 ac_header_preproc=yes
11347 else
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11351 ac_header_preproc=no
11354 rm -f conftest.err conftest.$ac_ext
11355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11356 echo "${ECHO_T}$ac_header_preproc" >&6; }
11358 # So? What about this header?
11359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11360 yes:no: )
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11365 ac_header_preproc=yes
11367 no:yes:* )
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11380 ( cat <<\_ASBOX
11381 ## ----------------------------------- ##
11382 ## Report this to llvmbugs@cs.uiuc.edu ##
11383 ## ----------------------------------- ##
11384 _ASBOX
11385 ) | sed "s/^/$as_me: WARNING: /" >&2
11387 esac
11388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393 eval "$as_ac_Header=\$ac_header_preproc"
11395 ac_res=`eval echo '${'$as_ac_Header'}'`
11396 { echo "$as_me:$LINENO: result: $ac_res" >&5
11397 echo "${ECHO_T}$ac_res" >&6; }
11400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11401 cat >>confdefs.h <<_ACEOF
11402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11403 _ACEOF
11407 done
11413 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11420 echo $ECHO_N "(cached) $ECHO_C" >&6
11422 ac_res=`eval echo '${'$as_ac_Header'}'`
11423 { echo "$as_me:$LINENO: result: $ac_res" >&5
11424 echo "${ECHO_T}$ac_res" >&6; }
11425 else
11426 # Is the header compilable?
11427 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11429 cat >conftest.$ac_ext <<_ACEOF
11430 /* confdefs.h. */
11431 _ACEOF
11432 cat confdefs.h >>conftest.$ac_ext
11433 cat >>conftest.$ac_ext <<_ACEOF
11434 /* end confdefs.h. */
11435 $ac_includes_default
11436 #include <$ac_header>
11437 _ACEOF
11438 rm -f conftest.$ac_objext
11439 if { (ac_try="$ac_compile"
11440 case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11443 esac
11444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_compile") 2>conftest.er1
11446 ac_status=$?
11447 grep -v '^ *+' conftest.er1 >conftest.err
11448 rm -f conftest.er1
11449 cat conftest.err >&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } &&
11452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11453 { (case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11456 esac
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_try") 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; } &&
11462 { ac_try='test -s conftest.$ac_objext'
11463 { (case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11466 esac
11467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468 (eval "$ac_try") 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; }; then
11472 ac_header_compiler=yes
11473 else
11474 echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11477 ac_header_compiler=no
11480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11482 echo "${ECHO_T}$ac_header_compiler" >&6; }
11484 # Is the header present?
11485 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11487 cat >conftest.$ac_ext <<_ACEOF
11488 /* confdefs.h. */
11489 _ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11493 #include <$ac_header>
11494 _ACEOF
11495 if { (ac_try="$ac_cpp conftest.$ac_ext"
11496 case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11499 esac
11500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11502 ac_status=$?
11503 grep -v '^ *+' conftest.er1 >conftest.err
11504 rm -f conftest.er1
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } >/dev/null; then
11508 if test -s conftest.err; then
11509 ac_cpp_err=$ac_c_preproc_warn_flag
11510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11511 else
11512 ac_cpp_err=
11514 else
11515 ac_cpp_err=yes
11517 if test -z "$ac_cpp_err"; then
11518 ac_header_preproc=yes
11519 else
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11523 ac_header_preproc=no
11526 rm -f conftest.err conftest.$ac_ext
11527 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11528 echo "${ECHO_T}$ac_header_preproc" >&6; }
11530 # So? What about this header?
11531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11532 yes:no: )
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11537 ac_header_preproc=yes
11539 no:yes:* )
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11547 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11552 ( cat <<\_ASBOX
11553 ## ----------------------------------- ##
11554 ## Report this to llvmbugs@cs.uiuc.edu ##
11555 ## ----------------------------------- ##
11556 _ASBOX
11557 ) | sed "s/^/$as_me: WARNING: /" >&2
11559 esac
11560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565 eval "$as_ac_Header=\$ac_header_preproc"
11567 ac_res=`eval echo '${'$as_ac_Header'}'`
11568 { echo "$as_me:$LINENO: result: $ac_res" >&5
11569 echo "${ECHO_T}$ac_res" >&6; }
11572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11573 cat >>confdefs.h <<_ACEOF
11574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11575 _ACEOF
11579 done
11583 for ac_header in string.h strings.h
11585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 ac_res=`eval echo '${'$as_ac_Header'}'`
11593 { echo "$as_me:$LINENO: result: $ac_res" >&5
11594 echo "${ECHO_T}$ac_res" >&6; }
11595 else
11596 # Is the header compilable?
11597 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11599 cat >conftest.$ac_ext <<_ACEOF
11600 /* confdefs.h. */
11601 _ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11605 $ac_includes_default
11606 #include <$ac_header>
11607 _ACEOF
11608 rm -f conftest.$ac_objext
11609 if { (ac_try="$ac_compile"
11610 case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11613 esac
11614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615 (eval "$ac_compile") 2>conftest.er1
11616 ac_status=$?
11617 grep -v '^ *+' conftest.er1 >conftest.err
11618 rm -f conftest.er1
11619 cat conftest.err >&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } &&
11622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11623 { (case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626 esac
11627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_try") 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; } &&
11632 { ac_try='test -s conftest.$ac_objext'
11633 { (case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11636 esac
11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_try") 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 ac_header_compiler=yes
11643 else
11644 echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11647 ac_header_compiler=no
11650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11651 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11652 echo "${ECHO_T}$ac_header_compiler" >&6; }
11654 # Is the header present?
11655 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11657 cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h. */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 #include <$ac_header>
11664 _ACEOF
11665 if { (ac_try="$ac_cpp conftest.$ac_ext"
11666 case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11669 esac
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11672 ac_status=$?
11673 grep -v '^ *+' conftest.er1 >conftest.err
11674 rm -f conftest.er1
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } >/dev/null; then
11678 if test -s conftest.err; then
11679 ac_cpp_err=$ac_c_preproc_warn_flag
11680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11681 else
11682 ac_cpp_err=
11684 else
11685 ac_cpp_err=yes
11687 if test -z "$ac_cpp_err"; then
11688 ac_header_preproc=yes
11689 else
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 ac_header_preproc=no
11696 rm -f conftest.err conftest.$ac_ext
11697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11698 echo "${ECHO_T}$ac_header_preproc" >&6; }
11700 # So? What about this header?
11701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11702 yes:no: )
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11707 ac_header_preproc=yes
11709 no:yes:* )
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11722 ( cat <<\_ASBOX
11723 ## ----------------------------------- ##
11724 ## Report this to llvmbugs@cs.uiuc.edu ##
11725 ## ----------------------------------- ##
11726 _ASBOX
11727 ) | sed "s/^/$as_me: WARNING: /" >&2
11729 esac
11730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735 eval "$as_ac_Header=\$ac_header_preproc"
11737 ac_res=`eval echo '${'$as_ac_Header'}'`
11738 { echo "$as_me:$LINENO: result: $ac_res" >&5
11739 echo "${ECHO_T}$ac_res" >&6; }
11742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11743 cat >>confdefs.h <<_ACEOF
11744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11745 _ACEOF
11746 break
11749 done
11754 for ac_func in strchr index
11756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 else
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h. */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11770 #define $ac_func innocuous_$ac_func
11772 /* System header to define __stub macros and hopefully few prototypes,
11773 which can conflict with char $ac_func (); below.
11774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11775 <limits.h> exists even on freestanding compilers. */
11777 #ifdef __STDC__
11778 # include <limits.h>
11779 #else
11780 # include <assert.h>
11781 #endif
11783 #undef $ac_func
11785 /* Override any GCC internal prototype to avoid an error.
11786 Use char because int might match the return type of a GCC
11787 builtin and then its argument prototype would still apply. */
11788 #ifdef __cplusplus
11789 extern "C"
11790 #endif
11791 char $ac_func ();
11792 /* The GNU C library defines this for functions which it implements
11793 to always fail with ENOSYS. Some functions are actually named
11794 something starting with __ and the normal name is an alias. */
11795 #if defined __stub_$ac_func || defined __stub___$ac_func
11796 choke me
11797 #endif
11800 main ()
11802 return $ac_func ();
11804 return 0;
11806 _ACEOF
11807 rm -f conftest.$ac_objext conftest$ac_exeext
11808 if { (ac_try="$ac_link"
11809 case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11812 esac
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_link") 2>conftest.er1
11815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11822 { (case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11825 esac
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_try") 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest$ac_exeext'
11832 { (case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11835 esac
11836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837 (eval "$ac_try") 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 eval "$as_ac_var=yes"
11842 else
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11846 eval "$as_ac_var=no"
11849 rm -f core conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11852 ac_res=`eval echo '${'$as_ac_var'}'`
11853 { echo "$as_me:$LINENO: result: $ac_res" >&5
11854 echo "${ECHO_T}$ac_res" >&6; }
11855 if test `eval echo '${'$as_ac_var'}'` = yes; then
11856 cat >>confdefs.h <<_ACEOF
11857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11858 _ACEOF
11859 break
11861 done
11865 for ac_func in strrchr rindex
11867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873 cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h. */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11881 #define $ac_func innocuous_$ac_func
11883 /* System header to define __stub macros and hopefully few prototypes,
11884 which can conflict with char $ac_func (); below.
11885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886 <limits.h> exists even on freestanding compilers. */
11888 #ifdef __STDC__
11889 # include <limits.h>
11890 #else
11891 # include <assert.h>
11892 #endif
11894 #undef $ac_func
11896 /* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11899 #ifdef __cplusplus
11900 extern "C"
11901 #endif
11902 char $ac_func ();
11903 /* The GNU C library defines this for functions which it implements
11904 to always fail with ENOSYS. Some functions are actually named
11905 something starting with __ and the normal name is an alias. */
11906 #if defined __stub_$ac_func || defined __stub___$ac_func
11907 choke me
11908 #endif
11911 main ()
11913 return $ac_func ();
11915 return 0;
11917 _ACEOF
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (ac_try="$ac_link"
11920 case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11923 esac
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_link") 2>conftest.er1
11926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest$ac_exeext'
11943 { (case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11946 esac
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_try") 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 eval "$as_ac_var=yes"
11953 else
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 eval "$as_ac_var=no"
11960 rm -f core conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11963 ac_res=`eval echo '${'$as_ac_var'}'`
11964 { echo "$as_me:$LINENO: result: $ac_res" >&5
11965 echo "${ECHO_T}$ac_res" >&6; }
11966 if test `eval echo '${'$as_ac_var'}'` = yes; then
11967 cat >>confdefs.h <<_ACEOF
11968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11969 _ACEOF
11970 break
11972 done
11976 for ac_func in memcpy bcopy
11978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 else
11984 cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h. */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11992 #define $ac_func innocuous_$ac_func
11994 /* System header to define __stub macros and hopefully few prototypes,
11995 which can conflict with char $ac_func (); below.
11996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11997 <limits.h> exists even on freestanding compilers. */
11999 #ifdef __STDC__
12000 # include <limits.h>
12001 #else
12002 # include <assert.h>
12003 #endif
12005 #undef $ac_func
12007 /* Override any GCC internal prototype to avoid an error.
12008 Use char because int might match the return type of a GCC
12009 builtin and then its argument prototype would still apply. */
12010 #ifdef __cplusplus
12011 extern "C"
12012 #endif
12013 char $ac_func ();
12014 /* The GNU C library defines this for functions which it implements
12015 to always fail with ENOSYS. Some functions are actually named
12016 something starting with __ and the normal name is an alias. */
12017 #if defined __stub_$ac_func || defined __stub___$ac_func
12018 choke me
12019 #endif
12022 main ()
12024 return $ac_func ();
12026 return 0;
12028 _ACEOF
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (ac_try="$ac_link"
12031 case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12034 esac
12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_link") 2>conftest.er1
12037 ac_status=$?
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12044 { (case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_try") 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest$ac_exeext'
12054 { (case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_try") 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 eval "$as_ac_var=yes"
12064 else
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12068 eval "$as_ac_var=no"
12071 rm -f core conftest.err conftest.$ac_objext \
12072 conftest$ac_exeext conftest.$ac_ext
12074 ac_res=`eval echo '${'$as_ac_var'}'`
12075 { echo "$as_me:$LINENO: result: $ac_res" >&5
12076 echo "${ECHO_T}$ac_res" >&6; }
12077 if test `eval echo '${'$as_ac_var'}'` = yes; then
12078 cat >>confdefs.h <<_ACEOF
12079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12080 _ACEOF
12081 break
12083 done
12087 for ac_func in memmove strcmp
12089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095 cat >conftest.$ac_ext <<_ACEOF
12096 /* confdefs.h. */
12097 _ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12103 #define $ac_func innocuous_$ac_func
12105 /* System header to define __stub macros and hopefully few prototypes,
12106 which can conflict with char $ac_func (); below.
12107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12108 <limits.h> exists even on freestanding compilers. */
12110 #ifdef __STDC__
12111 # include <limits.h>
12112 #else
12113 # include <assert.h>
12114 #endif
12116 #undef $ac_func
12118 /* Override any GCC internal prototype to avoid an error.
12119 Use char because int might match the return type of a GCC
12120 builtin and then its argument prototype would still apply. */
12121 #ifdef __cplusplus
12122 extern "C"
12123 #endif
12124 char $ac_func ();
12125 /* The GNU C library defines this for functions which it implements
12126 to always fail with ENOSYS. Some functions are actually named
12127 something starting with __ and the normal name is an alias. */
12128 #if defined __stub_$ac_func || defined __stub___$ac_func
12129 choke me
12130 #endif
12133 main ()
12135 return $ac_func ();
12137 return 0;
12139 _ACEOF
12140 rm -f conftest.$ac_objext conftest$ac_exeext
12141 if { (ac_try="$ac_link"
12142 case "(($ac_try" in
12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144 *) ac_try_echo=$ac_try;;
12145 esac
12146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12147 (eval "$ac_link") 2>conftest.er1
12148 ac_status=$?
12149 grep -v '^ *+' conftest.er1 >conftest.err
12150 rm -f conftest.er1
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } &&
12154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12155 { (case "(($ac_try" in
12156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157 *) ac_try_echo=$ac_try;;
12158 esac
12159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12160 (eval "$ac_try") 2>&5
12161 ac_status=$?
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }; } &&
12164 { ac_try='test -s conftest$ac_exeext'
12165 { (case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12168 esac
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_try") 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; }; then
12174 eval "$as_ac_var=yes"
12175 else
12176 echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12179 eval "$as_ac_var=no"
12182 rm -f core conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
12185 ac_res=`eval echo '${'$as_ac_var'}'`
12186 { echo "$as_me:$LINENO: result: $ac_res" >&5
12187 echo "${ECHO_T}$ac_res" >&6; }
12188 if test `eval echo '${'$as_ac_var'}'` = yes; then
12189 cat >>confdefs.h <<_ACEOF
12190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12191 _ACEOF
12194 done
12199 for ac_func in closedir opendir readdir
12201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 else
12207 cat >conftest.$ac_ext <<_ACEOF
12208 /* confdefs.h. */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12215 #define $ac_func innocuous_$ac_func
12217 /* System header to define __stub macros and hopefully few prototypes,
12218 which can conflict with char $ac_func (); below.
12219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12220 <limits.h> exists even on freestanding compilers. */
12222 #ifdef __STDC__
12223 # include <limits.h>
12224 #else
12225 # include <assert.h>
12226 #endif
12228 #undef $ac_func
12230 /* Override any GCC internal prototype to avoid an error.
12231 Use char because int might match the return type of a GCC
12232 builtin and then its argument prototype would still apply. */
12233 #ifdef __cplusplus
12234 extern "C"
12235 #endif
12236 char $ac_func ();
12237 /* The GNU C library defines this for functions which it implements
12238 to always fail with ENOSYS. Some functions are actually named
12239 something starting with __ and the normal name is an alias. */
12240 #if defined __stub_$ac_func || defined __stub___$ac_func
12241 choke me
12242 #endif
12245 main ()
12247 return $ac_func ();
12249 return 0;
12251 _ACEOF
12252 rm -f conftest.$ac_objext conftest$ac_exeext
12253 if { (ac_try="$ac_link"
12254 case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12257 esac
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_link") 2>conftest.er1
12260 ac_status=$?
12261 grep -v '^ *+' conftest.er1 >conftest.err
12262 rm -f conftest.er1
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } &&
12266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12267 { (case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270 esac
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_try") 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; } &&
12276 { ac_try='test -s conftest$ac_exeext'
12277 { (case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12280 esac
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_try") 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; }; then
12286 eval "$as_ac_var=yes"
12287 else
12288 echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12291 eval "$as_ac_var=no"
12294 rm -f core conftest.err conftest.$ac_objext \
12295 conftest$ac_exeext conftest.$ac_ext
12297 ac_res=`eval echo '${'$as_ac_var'}'`
12298 { echo "$as_me:$LINENO: result: $ac_res" >&5
12299 echo "${ECHO_T}$ac_res" >&6; }
12300 if test `eval echo '${'$as_ac_var'}'` = yes; then
12301 cat >>confdefs.h <<_ACEOF
12302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12303 _ACEOF
12306 done
12309 # Check whether --enable-shared was given.
12310 if test "${enable_shared+set}" = set; then
12311 enableval=$enable_shared; p=${PACKAGE-default}
12312 case $enableval in
12313 yes) enable_shared=yes ;;
12314 no) enable_shared=no ;;
12316 enable_shared=no
12317 # Look at the argument we got. We use all the common list separators.
12318 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12319 for pkg in $enableval; do
12320 IFS="$lt_save_ifs"
12321 if test "X$pkg" = "X$p"; then
12322 enable_shared=yes
12324 done
12325 IFS="$lt_save_ifs"
12327 esac
12328 else
12329 enable_shared=yes
12333 # Check whether --enable-static was given.
12334 if test "${enable_static+set}" = set; then
12335 enableval=$enable_static; p=${PACKAGE-default}
12336 case $enableval in
12337 yes) enable_static=yes ;;
12338 no) enable_static=no ;;
12340 enable_static=no
12341 # Look at the argument we got. We use all the common list separators.
12342 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12343 for pkg in $enableval; do
12344 IFS="$lt_save_ifs"
12345 if test "X$pkg" = "X$p"; then
12346 enable_static=yes
12348 done
12349 IFS="$lt_save_ifs"
12351 esac
12352 else
12353 enable_static=yes
12357 # Check whether --enable-fast-install was given.
12358 if test "${enable_fast_install+set}" = set; then
12359 enableval=$enable_fast_install; p=${PACKAGE-default}
12360 case $enableval in
12361 yes) enable_fast_install=yes ;;
12362 no) enable_fast_install=no ;;
12364 enable_fast_install=no
12365 # Look at the argument we got. We use all the common list separators.
12366 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12367 for pkg in $enableval; do
12368 IFS="$lt_save_ifs"
12369 if test "X$pkg" = "X$p"; then
12370 enable_fast_install=yes
12372 done
12373 IFS="$lt_save_ifs"
12375 esac
12376 else
12377 enable_fast_install=yes
12381 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12382 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12383 if test "${lt_cv_path_SED+set}" = set; then
12384 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 else
12386 # Loop through the user's path and test for sed and gsed.
12387 # Then use that list of sed's as ones to test for truncation.
12388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389 for as_dir in $PATH
12391 IFS=$as_save_IFS
12392 test -z "$as_dir" && as_dir=.
12393 for lt_ac_prog in sed gsed; do
12394 for ac_exec_ext in '' $ac_executable_extensions; do
12395 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12396 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12398 done
12399 done
12400 done
12401 lt_ac_max=0
12402 lt_ac_count=0
12403 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12404 # along with /bin/sed that truncates output.
12405 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12406 test ! -f $lt_ac_sed && continue
12407 cat /dev/null > conftest.in
12408 lt_ac_count=0
12409 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12410 # Check for GNU sed and select it if it is found.
12411 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12412 lt_cv_path_SED=$lt_ac_sed
12413 break
12415 while true; do
12416 cat conftest.in conftest.in >conftest.tmp
12417 mv conftest.tmp conftest.in
12418 cp conftest.in conftest.nl
12419 echo >>conftest.nl
12420 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12421 cmp -s conftest.out conftest.nl || break
12422 # 10000 chars as input seems more than enough
12423 test $lt_ac_count -gt 10 && break
12424 lt_ac_count=`expr $lt_ac_count + 1`
12425 if test $lt_ac_count -gt $lt_ac_max; then
12426 lt_ac_max=$lt_ac_count
12427 lt_cv_path_SED=$lt_ac_sed
12429 done
12430 done
12434 SED=$lt_cv_path_SED
12435 { echo "$as_me:$LINENO: result: $SED" >&5
12436 echo "${ECHO_T}$SED" >&6; }
12439 # Check whether --with-gnu-ld was given.
12440 if test "${with_gnu_ld+set}" = set; then
12441 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12442 else
12443 with_gnu_ld=no
12446 ac_prog=ld
12447 if test "$GCC" = yes; then
12448 # Check if gcc -print-prog-name=ld gives a path.
12449 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12450 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12451 case $host in
12452 *-*-mingw*)
12453 # gcc leaves a trailing carriage return which upsets mingw
12454 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12456 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12457 esac
12458 case $ac_prog in
12459 # Accept absolute paths.
12460 [\\/]* | ?:[\\/]*)
12461 re_direlt='/[^/][^/]*/\.\./'
12462 # Canonicalize the pathname of ld
12463 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12464 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12465 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12466 done
12467 test -z "$LD" && LD="$ac_prog"
12470 # If it fails, then pretend we aren't using GCC.
12471 ac_prog=ld
12474 # If it is relative, then search for the first ld in PATH.
12475 with_gnu_ld=unknown
12477 esac
12478 elif test "$with_gnu_ld" = yes; then
12479 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12480 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12481 else
12482 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12483 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12485 if test "${lt_cv_path_LD+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488 if test -z "$LD"; then
12489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12490 for ac_dir in $PATH; do
12491 IFS="$lt_save_ifs"
12492 test -z "$ac_dir" && ac_dir=.
12493 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12494 lt_cv_path_LD="$ac_dir/$ac_prog"
12495 # Check to see if the program is GNU ld. I'd rather use --version,
12496 # but apparently some variants of GNU ld only accept -v.
12497 # Break only if it was the GNU/non-GNU ld that we prefer.
12498 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12499 *GNU* | *'with BFD'*)
12500 test "$with_gnu_ld" != no && break
12503 test "$with_gnu_ld" != yes && break
12505 esac
12507 done
12508 IFS="$lt_save_ifs"
12509 else
12510 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12514 LD="$lt_cv_path_LD"
12515 if test -n "$LD"; then
12516 { echo "$as_me:$LINENO: result: $LD" >&5
12517 echo "${ECHO_T}$LD" >&6; }
12518 else
12519 { echo "$as_me:$LINENO: result: no" >&5
12520 echo "${ECHO_T}no" >&6; }
12522 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12523 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12524 { (exit 1); exit 1; }; }
12525 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12526 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12527 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12529 else
12530 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12531 case `$LD -v 2>&1 </dev/null` in
12532 *GNU* | *'with BFD'*)
12533 lt_cv_prog_gnu_ld=yes
12536 lt_cv_prog_gnu_ld=no
12538 esac
12540 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12541 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12542 with_gnu_ld=$lt_cv_prog_gnu_ld
12545 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12546 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12547 if test "${lt_cv_ld_reload_flag+set}" = set; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 else
12550 lt_cv_ld_reload_flag='-r'
12552 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12553 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12554 reload_flag=$lt_cv_ld_reload_flag
12555 case $reload_flag in
12556 "" | " "*) ;;
12557 *) reload_flag=" $reload_flag" ;;
12558 esac
12559 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12560 case $host_os in
12561 darwin*)
12562 if test "$GCC" = yes; then
12563 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12564 else
12565 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12568 esac
12570 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12571 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12572 if test "${lt_cv_deplibs_check_method+set}" = set; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12574 else
12575 lt_cv_file_magic_cmd='$MAGIC_CMD'
12576 lt_cv_file_magic_test_file=
12577 lt_cv_deplibs_check_method='unknown'
12578 # Need to set the preceding variable on all platforms that support
12579 # interlibrary dependencies.
12580 # 'none' -- dependencies not supported.
12581 # `unknown' -- same as none, but documents that we really don't know.
12582 # 'pass_all' -- all dependencies passed with no checks.
12583 # 'test_compile' -- check by making test program.
12584 # 'file_magic [[regex]]' -- check by looking for files in library path
12585 # which responds to the $file_magic_cmd with a given extended regex.
12586 # If you have `file' or equivalent on your system and you're not sure
12587 # whether `pass_all' will *always* work, you probably want this one.
12589 case $host_os in
12590 aix4* | aix5*)
12591 lt_cv_deplibs_check_method=pass_all
12594 beos*)
12595 lt_cv_deplibs_check_method=pass_all
12598 bsdi[45]*)
12599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12600 lt_cv_file_magic_cmd='/usr/bin/file -L'
12601 lt_cv_file_magic_test_file=/shlib/libc.so
12604 cygwin*)
12605 # func_win32_libid is a shell function defined in ltmain.sh
12606 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12607 lt_cv_file_magic_cmd='func_win32_libid'
12610 mingw* | pw32*)
12611 # Base MSYS/MinGW do not provide the 'file' command needed by
12612 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12613 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12614 lt_cv_file_magic_cmd='$OBJDUMP -f'
12617 darwin* | rhapsody*)
12618 lt_cv_deplibs_check_method=pass_all
12621 freebsd* | kfreebsd*-gnu | dragonfly*)
12622 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12623 case $host_cpu in
12624 i*86 )
12625 # Not sure whether the presence of OpenBSD here was a mistake.
12626 # Let's accept both of them until this is cleared up.
12627 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12628 lt_cv_file_magic_cmd=/usr/bin/file
12629 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12631 esac
12632 else
12633 lt_cv_deplibs_check_method=pass_all
12637 gnu*)
12638 lt_cv_deplibs_check_method=pass_all
12641 hpux10.20* | hpux11*)
12642 lt_cv_file_magic_cmd=/usr/bin/file
12643 case $host_cpu in
12644 ia64*)
12645 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12646 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12648 hppa*64*)
12649 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]'
12650 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12653 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12654 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12656 esac
12659 interix3*)
12660 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12664 irix5* | irix6* | nonstopux*)
12665 case $LD in
12666 *-32|*"-32 ") libmagic=32-bit;;
12667 *-n32|*"-n32 ") libmagic=N32;;
12668 *-64|*"-64 ") libmagic=64-bit;;
12669 *) libmagic=never-match;;
12670 esac
12671 lt_cv_deplibs_check_method=pass_all
12674 # This must be Linux ELF.
12675 linux*)
12676 lt_cv_deplibs_check_method=pass_all
12679 netbsd*)
12680 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12682 else
12683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12687 newos6*)
12688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12689 lt_cv_file_magic_cmd=/usr/bin/file
12690 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12693 nto-qnx*)
12694 lt_cv_deplibs_check_method=unknown
12697 openbsd*)
12698 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12700 else
12701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12705 osf3* | osf4* | osf5*)
12706 lt_cv_deplibs_check_method=pass_all
12709 solaris*)
12710 lt_cv_deplibs_check_method=pass_all
12713 sysv4 | sysv4.3*)
12714 case $host_vendor in
12715 motorola)
12716 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]'
12717 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12719 ncr)
12720 lt_cv_deplibs_check_method=pass_all
12722 sequent)
12723 lt_cv_file_magic_cmd='/bin/file'
12724 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12726 sni)
12727 lt_cv_file_magic_cmd='/bin/file'
12728 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12729 lt_cv_file_magic_test_file=/lib/libc.so
12731 siemens)
12732 lt_cv_deplibs_check_method=pass_all
12735 lt_cv_deplibs_check_method=pass_all
12737 esac
12740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12741 lt_cv_deplibs_check_method=pass_all
12743 esac
12746 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12747 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12748 file_magic_cmd=$lt_cv_file_magic_cmd
12749 deplibs_check_method=$lt_cv_deplibs_check_method
12750 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12754 # If no C compiler was specified, use CC.
12755 LTCC=${LTCC-"$CC"}
12757 # If no C compiler flags were specified, use CFLAGS.
12758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12760 # Allow CC to be a program name with arguments.
12761 compiler=$CC
12763 # Check whether --enable-libtool-lock was given.
12764 if test "${enable_libtool_lock+set}" = set; then
12765 enableval=$enable_libtool_lock;
12768 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12770 # Some flags need to be propagated to the compiler or linker for good
12771 # libtool support.
12772 case $host in
12773 ia64-*-hpux*)
12774 # Find out which ABI we are using.
12775 echo 'int i;' > conftest.$ac_ext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777 (eval $ac_compile) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; then
12781 case `/usr/bin/file conftest.$ac_objext` in
12782 *ELF-32*)
12783 HPUX_IA64_MODE="32"
12785 *ELF-64*)
12786 HPUX_IA64_MODE="64"
12788 esac
12790 rm -rf conftest*
12792 *-*-irix6*)
12793 # Find out which ABI we are using.
12794 echo '#line 12794 "configure"' > conftest.$ac_ext
12795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12796 (eval $ac_compile) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; then
12800 if test "$lt_cv_prog_gnu_ld" = yes; then
12801 case `/usr/bin/file conftest.$ac_objext` in
12802 *32-bit*)
12803 LD="${LD-ld} -melf32bsmip"
12805 *N32*)
12806 LD="${LD-ld} -melf32bmipn32"
12808 *64-bit*)
12809 LD="${LD-ld} -melf64bmip"
12811 esac
12812 else
12813 case `/usr/bin/file conftest.$ac_objext` in
12814 *32-bit*)
12815 LD="${LD-ld} -32"
12817 *N32*)
12818 LD="${LD-ld} -n32"
12820 *64-bit*)
12821 LD="${LD-ld} -64"
12823 esac
12826 rm -rf conftest*
12829 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12830 # Find out which ABI we are using.
12831 echo 'int i;' > conftest.$ac_ext
12832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12833 (eval $ac_compile) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; then
12837 case `/usr/bin/file conftest.o` in
12838 *32-bit*)
12839 case $host in
12840 x86_64-*linux*)
12841 LD="${LD-ld} -m elf_i386"
12843 ppc64-*linux*|powerpc64-*linux*)
12844 LD="${LD-ld} -m elf32ppclinux"
12846 s390x-*linux*)
12847 LD="${LD-ld} -m elf_s390"
12849 sparc64-*linux*)
12850 LD="${LD-ld} -m elf32_sparc"
12852 esac
12854 *64-bit*)
12855 case $host in
12856 x86_64-*linux*)
12857 LD="${LD-ld} -m elf_x86_64"
12859 ppc*-*linux*|powerpc*-*linux*)
12860 LD="${LD-ld} -m elf64ppc"
12862 s390*-*linux*)
12863 LD="${LD-ld} -m elf64_s390"
12865 sparc*-*linux*)
12866 LD="${LD-ld} -m elf64_sparc"
12868 esac
12870 esac
12872 rm -rf conftest*
12875 *-*-sco3.2v5*)
12876 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12877 SAVE_CFLAGS="$CFLAGS"
12878 CFLAGS="$CFLAGS -belf"
12879 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12880 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12881 if test "${lt_cv_cc_needs_belf+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12884 ac_ext=c
12885 ac_cpp='$CPP $CPPFLAGS'
12886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12890 cat >conftest.$ac_ext <<_ACEOF
12891 /* confdefs.h. */
12892 _ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12898 main ()
12902 return 0;
12904 _ACEOF
12905 rm -f conftest.$ac_objext conftest$ac_exeext
12906 if { (ac_try="$ac_link"
12907 case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12910 esac
12911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_link") 2>conftest.er1
12913 ac_status=$?
12914 grep -v '^ *+' conftest.er1 >conftest.err
12915 rm -f conftest.er1
12916 cat conftest.err >&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } &&
12919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12920 { (case "(($ac_try" in
12921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922 *) ac_try_echo=$ac_try;;
12923 esac
12924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925 (eval "$ac_try") 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; } &&
12929 { ac_try='test -s conftest$ac_exeext'
12930 { (case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12933 esac
12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_try") 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 lt_cv_cc_needs_belf=yes
12940 else
12941 echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12944 lt_cv_cc_needs_belf=no
12947 rm -f core conftest.err conftest.$ac_objext \
12948 conftest$ac_exeext conftest.$ac_ext
12949 ac_ext=c
12950 ac_cpp='$CPP $CPPFLAGS'
12951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12956 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12957 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12958 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12959 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12960 CFLAGS="$SAVE_CFLAGS"
12963 sparc*-*solaris*)
12964 # Find out which ABI we are using.
12965 echo 'int i;' > conftest.$ac_ext
12966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12967 (eval $ac_compile) 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; then
12971 case `/usr/bin/file conftest.o` in
12972 *64-bit*)
12973 case $lt_cv_prog_gnu_ld in
12974 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12975 *) LD="${LD-ld} -64" ;;
12976 esac
12978 esac
12980 rm -rf conftest*
12984 esac
12986 need_locks="$enable_libtool_lock"
12991 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12992 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12993 (test "X$CXX" != "Xg++"))) ; then
12994 ac_ext=cpp
12995 ac_cpp='$CXXCPP $CPPFLAGS'
12996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12999 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13000 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13001 if test -z "$CXXCPP"; then
13002 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13004 else
13005 # Double quotes because CXXCPP needs to be expanded
13006 for CXXCPP in "$CXX -E" "/lib/cpp"
13008 ac_preproc_ok=false
13009 for ac_cxx_preproc_warn_flag in '' yes
13011 # Use a header file that comes with gcc, so configuring glibc
13012 # with a fresh cross-compiler works.
13013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13014 # <limits.h> exists even on freestanding compilers.
13015 # On the NeXT, cc -E runs the code through the compiler's parser,
13016 # not just through cpp. "Syntax error" is here to catch this case.
13017 cat >conftest.$ac_ext <<_ACEOF
13018 /* confdefs.h. */
13019 _ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13023 #ifdef __STDC__
13024 # include <limits.h>
13025 #else
13026 # include <assert.h>
13027 #endif
13028 Syntax error
13029 _ACEOF
13030 if { (ac_try="$ac_cpp conftest.$ac_ext"
13031 case "(($ac_try" in
13032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033 *) ac_try_echo=$ac_try;;
13034 esac
13035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13037 ac_status=$?
13038 grep -v '^ *+' conftest.er1 >conftest.err
13039 rm -f conftest.er1
13040 cat conftest.err >&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } >/dev/null; then
13043 if test -s conftest.err; then
13044 ac_cpp_err=$ac_cxx_preproc_warn_flag
13045 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13046 else
13047 ac_cpp_err=
13049 else
13050 ac_cpp_err=yes
13052 if test -z "$ac_cpp_err"; then
13054 else
13055 echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13058 # Broken: fails on valid input.
13059 continue
13062 rm -f conftest.err conftest.$ac_ext
13064 # OK, works on sane cases. Now check whether nonexistent headers
13065 # can be detected and how.
13066 cat >conftest.$ac_ext <<_ACEOF
13067 /* confdefs.h. */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 #include <ac_nonexistent.h>
13073 _ACEOF
13074 if { (ac_try="$ac_cpp conftest.$ac_ext"
13075 case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13078 esac
13079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13081 ac_status=$?
13082 grep -v '^ *+' conftest.er1 >conftest.err
13083 rm -f conftest.er1
13084 cat conftest.err >&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); } >/dev/null; then
13087 if test -s conftest.err; then
13088 ac_cpp_err=$ac_cxx_preproc_warn_flag
13089 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13090 else
13091 ac_cpp_err=
13093 else
13094 ac_cpp_err=yes
13096 if test -z "$ac_cpp_err"; then
13097 # Broken: success on invalid input.
13098 continue
13099 else
13100 echo "$as_me: failed program was:" >&5
13101 sed 's/^/| /' conftest.$ac_ext >&5
13103 # Passes both tests.
13104 ac_preproc_ok=:
13105 break
13108 rm -f conftest.err conftest.$ac_ext
13110 done
13111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13112 rm -f conftest.err conftest.$ac_ext
13113 if $ac_preproc_ok; then
13114 break
13117 done
13118 ac_cv_prog_CXXCPP=$CXXCPP
13121 CXXCPP=$ac_cv_prog_CXXCPP
13122 else
13123 ac_cv_prog_CXXCPP=$CXXCPP
13125 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13126 echo "${ECHO_T}$CXXCPP" >&6; }
13127 ac_preproc_ok=false
13128 for ac_cxx_preproc_warn_flag in '' yes
13130 # Use a header file that comes with gcc, so configuring glibc
13131 # with a fresh cross-compiler works.
13132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13133 # <limits.h> exists even on freestanding compilers.
13134 # On the NeXT, cc -E runs the code through the compiler's parser,
13135 # not just through cpp. "Syntax error" is here to catch this case.
13136 cat >conftest.$ac_ext <<_ACEOF
13137 /* confdefs.h. */
13138 _ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13142 #ifdef __STDC__
13143 # include <limits.h>
13144 #else
13145 # include <assert.h>
13146 #endif
13147 Syntax error
13148 _ACEOF
13149 if { (ac_try="$ac_cpp conftest.$ac_ext"
13150 case "(($ac_try" in
13151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152 *) ac_try_echo=$ac_try;;
13153 esac
13154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13156 ac_status=$?
13157 grep -v '^ *+' conftest.er1 >conftest.err
13158 rm -f conftest.er1
13159 cat conftest.err >&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } >/dev/null; then
13162 if test -s conftest.err; then
13163 ac_cpp_err=$ac_cxx_preproc_warn_flag
13164 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13165 else
13166 ac_cpp_err=
13168 else
13169 ac_cpp_err=yes
13171 if test -z "$ac_cpp_err"; then
13173 else
13174 echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13177 # Broken: fails on valid input.
13178 continue
13181 rm -f conftest.err conftest.$ac_ext
13183 # OK, works on sane cases. Now check whether nonexistent headers
13184 # can be detected and how.
13185 cat >conftest.$ac_ext <<_ACEOF
13186 /* confdefs.h. */
13187 _ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 #include <ac_nonexistent.h>
13192 _ACEOF
13193 if { (ac_try="$ac_cpp conftest.$ac_ext"
13194 case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13197 esac
13198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } >/dev/null; then
13206 if test -s conftest.err; then
13207 ac_cpp_err=$ac_cxx_preproc_warn_flag
13208 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13209 else
13210 ac_cpp_err=
13212 else
13213 ac_cpp_err=yes
13215 if test -z "$ac_cpp_err"; then
13216 # Broken: success on invalid input.
13217 continue
13218 else
13219 echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13222 # Passes both tests.
13223 ac_preproc_ok=:
13224 break
13227 rm -f conftest.err conftest.$ac_ext
13229 done
13230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13231 rm -f conftest.err conftest.$ac_ext
13232 if $ac_preproc_ok; then
13234 else
13235 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13236 See \`config.log' for more details." >&5
13237 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13238 See \`config.log' for more details." >&2;}
13239 { (exit 1); exit 1; }; }
13242 ac_ext=cpp
13243 ac_cpp='$CXXCPP $CPPFLAGS'
13244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13251 ac_ext=f
13252 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13253 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13254 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13255 if test -n "$ac_tool_prefix"; then
13256 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
13258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13262 if test "${ac_cv_prog_F77+set}" = set; then
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
13264 else
13265 if test -n "$F77"; then
13266 ac_cv_prog_F77="$F77" # Let the user override the test.
13267 else
13268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269 for as_dir in $PATH
13271 IFS=$as_save_IFS
13272 test -z "$as_dir" && as_dir=.
13273 for ac_exec_ext in '' $ac_executable_extensions; do
13274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13275 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13277 break 2
13279 done
13280 done
13281 IFS=$as_save_IFS
13285 F77=$ac_cv_prog_F77
13286 if test -n "$F77"; then
13287 { echo "$as_me:$LINENO: result: $F77" >&5
13288 echo "${ECHO_T}$F77" >&6; }
13289 else
13290 { echo "$as_me:$LINENO: result: no" >&5
13291 echo "${ECHO_T}no" >&6; }
13295 test -n "$F77" && break
13296 done
13298 if test -z "$F77"; then
13299 ac_ct_F77=$F77
13300 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
13302 # Extract the first word of "$ac_prog", so it can be a program name with args.
13303 set dummy $ac_prog; ac_word=$2
13304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13306 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 else
13309 if test -n "$ac_ct_F77"; then
13310 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13311 else
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13319 ac_cv_prog_ac_ct_F77="$ac_prog"
13320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13323 done
13324 done
13325 IFS=$as_save_IFS
13329 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13330 if test -n "$ac_ct_F77"; then
13331 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13332 echo "${ECHO_T}$ac_ct_F77" >&6; }
13333 else
13334 { echo "$as_me:$LINENO: result: no" >&5
13335 echo "${ECHO_T}no" >&6; }
13339 test -n "$ac_ct_F77" && break
13340 done
13342 if test "x$ac_ct_F77" = x; then
13343 F77=""
13344 else
13345 case $cross_compiling:$ac_tool_warned in
13346 yes:)
13347 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13348 whose name does not start with the host triplet. If you think this
13349 configuration is useful to you, please write to autoconf@gnu.org." >&5
13350 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13351 whose name does not start with the host triplet. If you think this
13352 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13353 ac_tool_warned=yes ;;
13354 esac
13355 F77=$ac_ct_F77
13360 # Provide some information about the compiler.
13361 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13362 ac_compiler=`set X $ac_compile; echo $2`
13363 { (ac_try="$ac_compiler --version >&5"
13364 case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13367 esac
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_compiler --version >&5") 2>&5
13370 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }
13373 { (ac_try="$ac_compiler -v >&5"
13374 case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13377 esac
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_compiler -v >&5") 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }
13383 { (ac_try="$ac_compiler -V >&5"
13384 case "(($ac_try" in
13385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386 *) ac_try_echo=$ac_try;;
13387 esac
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_compiler -V >&5") 2>&5
13390 ac_status=$?
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }
13393 rm -f a.out
13395 # If we don't use `.F' as extension, the preprocessor is not run on the
13396 # input file. (Note that this only needs to work for GNU compilers.)
13397 ac_save_ext=$ac_ext
13398 ac_ext=F
13399 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13400 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13401 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404 cat >conftest.$ac_ext <<_ACEOF
13405 program main
13406 #ifndef __GNUC__
13407 choke me
13408 #endif
13411 _ACEOF
13412 rm -f conftest.$ac_objext
13413 if { (ac_try="$ac_compile"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_compile") 2>conftest.er1
13420 ac_status=$?
13421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest.$ac_objext'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13446 ac_compiler_gnu=yes
13447 else
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13451 ac_compiler_gnu=no
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13458 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13459 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13460 ac_ext=$ac_save_ext
13461 ac_test_FFLAGS=${FFLAGS+set}
13462 ac_save_FFLAGS=$FFLAGS
13463 FFLAGS=
13464 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13465 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13466 if test "${ac_cv_prog_f77_g+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 else
13469 FFLAGS=-g
13470 cat >conftest.$ac_ext <<_ACEOF
13471 program main
13474 _ACEOF
13475 rm -f conftest.$ac_objext
13476 if { (ac_try="$ac_compile"
13477 case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13480 esac
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_compile") 2>conftest.er1
13483 ac_status=$?
13484 grep -v '^ *+' conftest.er1 >conftest.err
13485 rm -f conftest.er1
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } &&
13489 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13490 { (case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13493 esac
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_try") 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; } &&
13499 { ac_try='test -s conftest.$ac_objext'
13500 { (case "(($ac_try" in
13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13503 esac
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_try") 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_cv_prog_f77_g=yes
13510 else
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13514 ac_cv_prog_f77_g=no
13517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13521 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13522 if test "$ac_test_FFLAGS" = set; then
13523 FFLAGS=$ac_save_FFLAGS
13524 elif test $ac_cv_prog_f77_g = yes; then
13525 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13526 FFLAGS="-g -O2"
13527 else
13528 FFLAGS="-g"
13530 else
13531 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13532 FFLAGS="-O2"
13533 else
13534 FFLAGS=
13538 G77=`test $ac_compiler_gnu = yes && echo yes`
13539 ac_ext=c
13540 ac_cpp='$CPP $CPPFLAGS'
13541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13547 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13549 # find the maximum length of command line arguments
13550 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13551 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13552 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 else
13556 teststring="ABCD"
13558 case $build_os in
13559 msdosdjgpp*)
13560 # On DJGPP, this test can blow up pretty badly due to problems in libc
13561 # (any single argument exceeding 2000 bytes causes a buffer overrun
13562 # during glob expansion). Even if it were fixed, the result of this
13563 # check would be larger than it should be.
13564 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13567 gnu*)
13568 # Under GNU Hurd, this test is not required because there is
13569 # no limit to the length of command line arguments.
13570 # Libtool will interpret -1 as no limit whatsoever
13571 lt_cv_sys_max_cmd_len=-1;
13574 cygwin* | mingw*)
13575 # On Win9x/ME, this test blows up -- it succeeds, but takes
13576 # about 5 minutes as the teststring grows exponentially.
13577 # Worse, since 9x/ME are not pre-emptively multitasking,
13578 # you end up with a "frozen" computer, even though with patience
13579 # the test eventually succeeds (with a max line length of 256k).
13580 # Instead, let's just punt: use the minimum linelength reported by
13581 # all of the supported platforms: 8192 (on NT/2K/XP).
13582 lt_cv_sys_max_cmd_len=8192;
13585 amigaos*)
13586 # On AmigaOS with pdksh, this test takes hours, literally.
13587 # So we just punt and use a minimum line length of 8192.
13588 lt_cv_sys_max_cmd_len=8192;
13591 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13592 # This has been around since 386BSD, at least. Likely further.
13593 if test -x /sbin/sysctl; then
13594 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13595 elif test -x /usr/sbin/sysctl; then
13596 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13597 else
13598 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13600 # And add a safety zone
13601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13605 interix*)
13606 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13607 lt_cv_sys_max_cmd_len=196608
13610 osf*)
13611 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13612 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13613 # nice to cause kernel panics so lets avoid the loop below.
13614 # First set a reasonable default.
13615 lt_cv_sys_max_cmd_len=16384
13617 if test -x /sbin/sysconfig; then
13618 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13619 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13620 esac
13623 sco3.2v5*)
13624 lt_cv_sys_max_cmd_len=102400
13626 sysv5* | sco5v6* | sysv4.2uw2*)
13627 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13628 if test -n "$kargmax"; then
13629 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13630 else
13631 lt_cv_sys_max_cmd_len=32768
13635 # If test is not a shell built-in, we'll probably end up computing a
13636 # maximum length that is only half of the actual maximum length, but
13637 # we can't tell.
13638 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13639 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13640 = "XX$teststring") >/dev/null 2>&1 &&
13641 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13642 lt_cv_sys_max_cmd_len=$new_result &&
13643 test $i != 17 # 1/2 MB should be enough
13645 i=`expr $i + 1`
13646 teststring=$teststring$teststring
13647 done
13648 teststring=
13649 # Add a significant safety factor because C++ compilers can tack on massive
13650 # amounts of additional arguments before passing them to the linker.
13651 # It appears as though 1/2 is a usable value.
13652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13654 esac
13658 if test -n $lt_cv_sys_max_cmd_len ; then
13659 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13660 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13661 else
13662 { echo "$as_me:$LINENO: result: none" >&5
13663 echo "${ECHO_T}none" >&6; }
13669 # Check for command to grab the raw symbol name followed by C symbol from nm.
13670 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13671 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13672 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 else
13676 # These are sane defaults that work on at least a few old systems.
13677 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13679 # Character class describing NM global symbol codes.
13680 symcode='[BCDEGRST]'
13682 # Regexp to match symbols that can be accessed directly from C.
13683 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13685 # Transform an extracted symbol line into a proper C declaration
13686 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13688 # Transform an extracted symbol line into symbol name and symbol address
13689 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
13691 # Define system-specific variables.
13692 case $host_os in
13693 aix*)
13694 symcode='[BCDT]'
13696 cygwin* | mingw* | pw32*)
13697 symcode='[ABCDGISTW]'
13699 hpux*) # Its linker distinguishes data from code symbols
13700 if test "$host_cpu" = ia64; then
13701 symcode='[ABCDEGRST]'
13703 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13704 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
13706 linux*)
13707 if test "$host_cpu" = ia64; then
13708 symcode='[ABCDGIRSTW]'
13709 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13710 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'"
13713 irix* | nonstopux*)
13714 symcode='[BCDEGRST]'
13716 osf*)
13717 symcode='[BCDEGQRST]'
13719 solaris*)
13720 symcode='[BDRT]'
13722 sco3.2v5*)
13723 symcode='[DT]'
13725 sysv4.2uw2*)
13726 symcode='[DT]'
13728 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13729 symcode='[ABDT]'
13731 sysv4)
13732 symcode='[DFNSTU]'
13734 esac
13736 # Handle CRLF in mingw tool chain
13737 opt_cr=
13738 case $build_os in
13739 mingw*)
13740 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13742 esac
13744 # If we're using GNU nm, then use its standard symbol codes.
13745 case `$NM -V 2>&1` in
13746 *GNU* | *'with BFD'*)
13747 symcode='[ABCDGIRSTW]' ;;
13748 esac
13750 # Try without a prefix undercore, then with it.
13751 for ac_symprfx in "" "_"; do
13753 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13754 symxfrm="\\1 $ac_symprfx\\2 \\2"
13756 # Write the raw and C identifiers.
13757 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13759 # Check to see that the pipe works correctly.
13760 pipe_works=no
13762 rm -f conftest*
13763 cat > conftest.$ac_ext <<EOF
13764 #ifdef __cplusplus
13765 extern "C" {
13766 #endif
13767 char nm_test_var;
13768 void nm_test_func(){}
13769 #ifdef __cplusplus
13771 #endif
13772 int main(){nm_test_var='a';nm_test_func();return(0);}
13775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; then
13780 # Now try to grab the symbols.
13781 nlist=conftest.nm
13782 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13783 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } && test -s "$nlist"; then
13787 # Try sorting and uniquifying the output.
13788 if sort "$nlist" | uniq > "$nlist"T; then
13789 mv -f "$nlist"T "$nlist"
13790 else
13791 rm -f "$nlist"T
13794 # Make sure that we snagged all the symbols we need.
13795 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13796 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13797 cat <<EOF > conftest.$ac_ext
13798 #ifdef __cplusplus
13799 extern "C" {
13800 #endif
13803 # Now generate the symbol file.
13804 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13806 cat <<EOF >> conftest.$ac_ext
13807 #if defined (__STDC__) && __STDC__
13808 # define lt_ptr_t void *
13809 #else
13810 # define lt_ptr_t char *
13811 # define const
13812 #endif
13814 /* The mapping between symbol names and symbols. */
13815 const struct {
13816 const char *name;
13817 lt_ptr_t address;
13819 lt_preloaded_symbols[] =
13822 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13823 cat <<\EOF >> conftest.$ac_ext
13824 {0, (lt_ptr_t) 0}
13827 #ifdef __cplusplus
13829 #endif
13831 # Now try linking the two files.
13832 mv conftest.$ac_objext conftstm.$ac_objext
13833 lt_save_LIBS="$LIBS"
13834 lt_save_CFLAGS="$CFLAGS"
13835 LIBS="conftstm.$ac_objext"
13836 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13838 (eval $ac_link) 2>&5
13839 ac_status=$?
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13842 pipe_works=yes
13844 LIBS="$lt_save_LIBS"
13845 CFLAGS="$lt_save_CFLAGS"
13846 else
13847 echo "cannot find nm_test_func in $nlist" >&5
13849 else
13850 echo "cannot find nm_test_var in $nlist" >&5
13852 else
13853 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13855 else
13856 echo "$progname: failed program was:" >&5
13857 cat conftest.$ac_ext >&5
13859 rm -f conftest* conftst*
13861 # Do not use the global_symbol_pipe unless it works.
13862 if test "$pipe_works" = yes; then
13863 break
13864 else
13865 lt_cv_sys_global_symbol_pipe=
13867 done
13871 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13872 lt_cv_sys_global_symbol_to_cdecl=
13874 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13875 { echo "$as_me:$LINENO: result: failed" >&5
13876 echo "${ECHO_T}failed" >&6; }
13877 else
13878 { echo "$as_me:$LINENO: result: ok" >&5
13879 echo "${ECHO_T}ok" >&6; }
13882 { echo "$as_me:$LINENO: checking for objdir" >&5
13883 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13884 if test "${lt_cv_objdir+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 else
13887 rm -f .libs 2>/dev/null
13888 mkdir .libs 2>/dev/null
13889 if test -d .libs; then
13890 lt_cv_objdir=.libs
13891 else
13892 # MS-DOS does not allow filenames that begin with a dot.
13893 lt_cv_objdir=_libs
13895 rmdir .libs 2>/dev/null
13897 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13898 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13899 objdir=$lt_cv_objdir
13905 case $host_os in
13906 aix3*)
13907 # AIX sometimes has problems with the GCC collect2 program. For some
13908 # reason, if we set the COLLECT_NAMES environment variable, the problems
13909 # vanish in a puff of smoke.
13910 if test "X${COLLECT_NAMES+set}" != Xset; then
13911 COLLECT_NAMES=
13912 export COLLECT_NAMES
13915 esac
13917 # Sed substitution that helps us do robust quoting. It backslashifies
13918 # metacharacters that are still active within double-quoted strings.
13919 Xsed='sed -e 1s/^X//'
13920 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13922 # Same as above, but do not quote variable references.
13923 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13925 # Sed substitution to delay expansion of an escaped shell variable in a
13926 # double_quote_subst'ed string.
13927 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13929 # Sed substitution to avoid accidental globbing in evaled expressions
13930 no_glob_subst='s/\*/\\\*/g'
13932 # Constants:
13933 rm="rm -f"
13935 # Global variables:
13936 default_ofile=mklib
13937 can_build_shared=yes
13939 # All known linkers require a `.a' archive for static linking (except MSVC,
13940 # which needs '.lib').
13941 libext=a
13942 ltmain="$ac_aux_dir/ltmain.sh"
13943 ofile="$default_ofile"
13944 with_gnu_ld="$lt_cv_prog_gnu_ld"
13946 if test -n "$ac_tool_prefix"; then
13947 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13948 set dummy ${ac_tool_prefix}ar; ac_word=$2
13949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13951 if test "${ac_cv_prog_AR+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 else
13954 if test -n "$AR"; then
13955 ac_cv_prog_AR="$AR" # Let the user override the test.
13956 else
13957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13958 for as_dir in $PATH
13960 IFS=$as_save_IFS
13961 test -z "$as_dir" && as_dir=.
13962 for ac_exec_ext in '' $ac_executable_extensions; do
13963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13964 ac_cv_prog_AR="${ac_tool_prefix}ar"
13965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13966 break 2
13968 done
13969 done
13970 IFS=$as_save_IFS
13974 AR=$ac_cv_prog_AR
13975 if test -n "$AR"; then
13976 { echo "$as_me:$LINENO: result: $AR" >&5
13977 echo "${ECHO_T}$AR" >&6; }
13978 else
13979 { echo "$as_me:$LINENO: result: no" >&5
13980 echo "${ECHO_T}no" >&6; }
13985 if test -z "$ac_cv_prog_AR"; then
13986 ac_ct_AR=$AR
13987 # Extract the first word of "ar", so it can be a program name with args.
13988 set dummy ar; ac_word=$2
13989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13991 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 else
13994 if test -n "$ac_ct_AR"; then
13995 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13996 else
13997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13998 for as_dir in $PATH
14000 IFS=$as_save_IFS
14001 test -z "$as_dir" && as_dir=.
14002 for ac_exec_ext in '' $ac_executable_extensions; do
14003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14004 ac_cv_prog_ac_ct_AR="ar"
14005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14006 break 2
14008 done
14009 done
14010 IFS=$as_save_IFS
14014 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14015 if test -n "$ac_ct_AR"; then
14016 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14017 echo "${ECHO_T}$ac_ct_AR" >&6; }
14018 else
14019 { echo "$as_me:$LINENO: result: no" >&5
14020 echo "${ECHO_T}no" >&6; }
14023 if test "x$ac_ct_AR" = x; then
14024 AR="false"
14025 else
14026 case $cross_compiling:$ac_tool_warned in
14027 yes:)
14028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14029 whose name does not start with the host triplet. If you think this
14030 configuration is useful to you, please write to autoconf@gnu.org." >&5
14031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14032 whose name does not start with the host triplet. If you think this
14033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14034 ac_tool_warned=yes ;;
14035 esac
14036 AR=$ac_ct_AR
14038 else
14039 AR="$ac_cv_prog_AR"
14042 if test -n "$ac_tool_prefix"; then
14043 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14044 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14047 if test "${ac_cv_prog_RANLIB+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 else
14050 if test -n "$RANLIB"; then
14051 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14052 else
14053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054 for as_dir in $PATH
14056 IFS=$as_save_IFS
14057 test -z "$as_dir" && as_dir=.
14058 for ac_exec_ext in '' $ac_executable_extensions; do
14059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14060 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14062 break 2
14064 done
14065 done
14066 IFS=$as_save_IFS
14070 RANLIB=$ac_cv_prog_RANLIB
14071 if test -n "$RANLIB"; then
14072 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14073 echo "${ECHO_T}$RANLIB" >&6; }
14074 else
14075 { echo "$as_me:$LINENO: result: no" >&5
14076 echo "${ECHO_T}no" >&6; }
14081 if test -z "$ac_cv_prog_RANLIB"; then
14082 ac_ct_RANLIB=$RANLIB
14083 # Extract the first word of "ranlib", so it can be a program name with args.
14084 set dummy ranlib; ac_word=$2
14085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14087 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 else
14090 if test -n "$ac_ct_RANLIB"; then
14091 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14092 else
14093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14094 for as_dir in $PATH
14096 IFS=$as_save_IFS
14097 test -z "$as_dir" && as_dir=.
14098 for ac_exec_ext in '' $ac_executable_extensions; do
14099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14100 ac_cv_prog_ac_ct_RANLIB="ranlib"
14101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14102 break 2
14104 done
14105 done
14106 IFS=$as_save_IFS
14110 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14111 if test -n "$ac_ct_RANLIB"; then
14112 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14113 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14114 else
14115 { echo "$as_me:$LINENO: result: no" >&5
14116 echo "${ECHO_T}no" >&6; }
14119 if test "x$ac_ct_RANLIB" = x; then
14120 RANLIB=":"
14121 else
14122 case $cross_compiling:$ac_tool_warned in
14123 yes:)
14124 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14125 whose name does not start with the host triplet. If you think this
14126 configuration is useful to you, please write to autoconf@gnu.org." >&5
14127 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14128 whose name does not start with the host triplet. If you think this
14129 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14130 ac_tool_warned=yes ;;
14131 esac
14132 RANLIB=$ac_ct_RANLIB
14134 else
14135 RANLIB="$ac_cv_prog_RANLIB"
14138 if test -n "$ac_tool_prefix"; then
14139 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14140 set dummy ${ac_tool_prefix}strip; ac_word=$2
14141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14143 if test "${ac_cv_prog_STRIP+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 else
14146 if test -n "$STRIP"; then
14147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14148 else
14149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150 for as_dir in $PATH
14152 IFS=$as_save_IFS
14153 test -z "$as_dir" && as_dir=.
14154 for ac_exec_ext in '' $ac_executable_extensions; do
14155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14156 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14158 break 2
14160 done
14161 done
14162 IFS=$as_save_IFS
14166 STRIP=$ac_cv_prog_STRIP
14167 if test -n "$STRIP"; then
14168 { echo "$as_me:$LINENO: result: $STRIP" >&5
14169 echo "${ECHO_T}$STRIP" >&6; }
14170 else
14171 { echo "$as_me:$LINENO: result: no" >&5
14172 echo "${ECHO_T}no" >&6; }
14177 if test -z "$ac_cv_prog_STRIP"; then
14178 ac_ct_STRIP=$STRIP
14179 # Extract the first word of "strip", so it can be a program name with args.
14180 set dummy strip; ac_word=$2
14181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14183 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14185 else
14186 if test -n "$ac_ct_STRIP"; then
14187 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14188 else
14189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14190 for as_dir in $PATH
14192 IFS=$as_save_IFS
14193 test -z "$as_dir" && as_dir=.
14194 for ac_exec_ext in '' $ac_executable_extensions; do
14195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14196 ac_cv_prog_ac_ct_STRIP="strip"
14197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14198 break 2
14200 done
14201 done
14202 IFS=$as_save_IFS
14206 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14207 if test -n "$ac_ct_STRIP"; then
14208 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14209 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14210 else
14211 { echo "$as_me:$LINENO: result: no" >&5
14212 echo "${ECHO_T}no" >&6; }
14215 if test "x$ac_ct_STRIP" = x; then
14216 STRIP=":"
14217 else
14218 case $cross_compiling:$ac_tool_warned in
14219 yes:)
14220 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14221 whose name does not start with the host triplet. If you think this
14222 configuration is useful to you, please write to autoconf@gnu.org." >&5
14223 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14224 whose name does not start with the host triplet. If you think this
14225 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14226 ac_tool_warned=yes ;;
14227 esac
14228 STRIP=$ac_ct_STRIP
14230 else
14231 STRIP="$ac_cv_prog_STRIP"
14235 old_CC="$CC"
14236 old_CFLAGS="$CFLAGS"
14238 # Set sane defaults for various variables
14239 test -z "$AR" && AR=ar
14240 test -z "$AR_FLAGS" && AR_FLAGS=cru
14241 test -z "$AS" && AS=as
14242 test -z "$CC" && CC=cc
14243 test -z "$LTCC" && LTCC=$CC
14244 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14245 test -z "$DLLTOOL" && DLLTOOL=dlltool
14246 test -z "$LD" && LD=ld
14247 test -z "$LN_S" && LN_S="ln -s"
14248 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14249 test -z "$NM" && NM=nm
14250 test -z "$SED" && SED=sed
14251 test -z "$OBJDUMP" && OBJDUMP=objdump
14252 test -z "$RANLIB" && RANLIB=:
14253 test -z "$STRIP" && STRIP=:
14254 test -z "$ac_objext" && ac_objext=o
14256 # Determine commands to create old-style static archives.
14257 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14258 old_postinstall_cmds='chmod 644 $oldlib'
14259 old_postuninstall_cmds=
14261 if test -n "$RANLIB"; then
14262 case $host_os in
14263 openbsd*)
14264 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14267 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14269 esac
14270 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14273 for cc_temp in $compiler""; do
14274 case $cc_temp in
14275 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14276 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14277 \-*) ;;
14278 *) break;;
14279 esac
14280 done
14281 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14284 # Only perform the check for file, if the check method requires it
14285 case $deplibs_check_method in
14286 file_magic*)
14287 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14288 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14289 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14290 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14292 else
14293 case $MAGIC_CMD in
14294 [\\/*] | ?:[\\/]*)
14295 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14298 lt_save_MAGIC_CMD="$MAGIC_CMD"
14299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14300 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14301 for ac_dir in $ac_dummy; do
14302 IFS="$lt_save_ifs"
14303 test -z "$ac_dir" && ac_dir=.
14304 if test -f $ac_dir/${ac_tool_prefix}file; then
14305 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14306 if test -n "$file_magic_test_file"; then
14307 case $deplibs_check_method in
14308 "file_magic "*)
14309 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14310 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14311 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14312 $EGREP "$file_magic_regex" > /dev/null; then
14314 else
14315 cat <<EOF 1>&2
14317 *** Warning: the command libtool uses to detect shared libraries,
14318 *** $file_magic_cmd, produces output that libtool cannot recognize.
14319 *** The result is that libtool may fail to recognize shared libraries
14320 *** as such. This will affect the creation of libtool libraries that
14321 *** depend on shared libraries, but programs linked with such libtool
14322 *** libraries will work regardless of this problem. Nevertheless, you
14323 *** may want to report the problem to your system manager and/or to
14324 *** bug-libtool@gnu.org
14327 fi ;;
14328 esac
14330 break
14332 done
14333 IFS="$lt_save_ifs"
14334 MAGIC_CMD="$lt_save_MAGIC_CMD"
14336 esac
14339 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14340 if test -n "$MAGIC_CMD"; then
14341 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14342 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14343 else
14344 { echo "$as_me:$LINENO: result: no" >&5
14345 echo "${ECHO_T}no" >&6; }
14348 if test -z "$lt_cv_path_MAGIC_CMD"; then
14349 if test -n "$ac_tool_prefix"; then
14350 { echo "$as_me:$LINENO: checking for file" >&5
14351 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14352 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14354 else
14355 case $MAGIC_CMD in
14356 [\\/*] | ?:[\\/]*)
14357 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14360 lt_save_MAGIC_CMD="$MAGIC_CMD"
14361 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14362 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14363 for ac_dir in $ac_dummy; do
14364 IFS="$lt_save_ifs"
14365 test -z "$ac_dir" && ac_dir=.
14366 if test -f $ac_dir/file; then
14367 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14368 if test -n "$file_magic_test_file"; then
14369 case $deplibs_check_method in
14370 "file_magic "*)
14371 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14372 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14373 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14374 $EGREP "$file_magic_regex" > /dev/null; then
14376 else
14377 cat <<EOF 1>&2
14379 *** Warning: the command libtool uses to detect shared libraries,
14380 *** $file_magic_cmd, produces output that libtool cannot recognize.
14381 *** The result is that libtool may fail to recognize shared libraries
14382 *** as such. This will affect the creation of libtool libraries that
14383 *** depend on shared libraries, but programs linked with such libtool
14384 *** libraries will work regardless of this problem. Nevertheless, you
14385 *** may want to report the problem to your system manager and/or to
14386 *** bug-libtool@gnu.org
14389 fi ;;
14390 esac
14392 break
14394 done
14395 IFS="$lt_save_ifs"
14396 MAGIC_CMD="$lt_save_MAGIC_CMD"
14398 esac
14401 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14402 if test -n "$MAGIC_CMD"; then
14403 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14404 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14405 else
14406 { echo "$as_me:$LINENO: result: no" >&5
14407 echo "${ECHO_T}no" >&6; }
14410 else
14411 MAGIC_CMD=:
14417 esac
14419 enable_dlopen=yes
14420 enable_win32_dll=no
14422 # Check whether --enable-libtool-lock was given.
14423 if test "${enable_libtool_lock+set}" = set; then
14424 enableval=$enable_libtool_lock;
14427 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14430 # Check whether --with-pic was given.
14431 if test "${with_pic+set}" = set; then
14432 withval=$with_pic; pic_mode="$withval"
14433 else
14434 pic_mode=default
14437 test -z "$pic_mode" && pic_mode=default
14439 # Use C for the default configuration in the libtool script
14440 tagname=
14441 lt_save_CC="$CC"
14442 ac_ext=c
14443 ac_cpp='$CPP $CPPFLAGS'
14444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14449 # Source file extension for C test sources.
14450 ac_ext=c
14452 # Object file extension for compiled C test sources.
14453 objext=o
14454 objext=$objext
14456 # Code to be used in simple compile tests
14457 lt_simple_compile_test_code="int some_variable = 0;\n"
14459 # Code to be used in simple link tests
14460 lt_simple_link_test_code='int main(){return(0);}\n'
14463 # If no C compiler was specified, use CC.
14464 LTCC=${LTCC-"$CC"}
14466 # If no C compiler flags were specified, use CFLAGS.
14467 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14469 # Allow CC to be a program name with arguments.
14470 compiler=$CC
14473 # save warnings/boilerplate of simple test code
14474 ac_outfile=conftest.$ac_objext
14475 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14476 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14477 _lt_compiler_boilerplate=`cat conftest.err`
14478 $rm conftest*
14480 ac_outfile=conftest.$ac_objext
14481 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14482 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14483 _lt_linker_boilerplate=`cat conftest.err`
14484 $rm conftest*
14488 lt_prog_compiler_no_builtin_flag=
14490 if test "$GCC" = yes; then
14491 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14494 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14495 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14496 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14498 else
14499 lt_cv_prog_compiler_rtti_exceptions=no
14500 ac_outfile=conftest.$ac_objext
14501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14502 lt_compiler_flag="-fno-rtti -fno-exceptions"
14503 # Insert the option either (1) after the last *FLAGS variable, or
14504 # (2) before a word containing "conftest.", or (3) at the end.
14505 # Note that $ac_compile itself does not contain backslashes and begins
14506 # with a dollar sign (not a hyphen), so the echo should work correctly.
14507 # The option is referenced via a variable to avoid confusing sed.
14508 lt_compile=`echo "$ac_compile" | $SED \
14509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14511 -e 's:$: $lt_compiler_flag:'`
14512 (eval echo "\"\$as_me:14512: $lt_compile\"" >&5)
14513 (eval "$lt_compile" 2>conftest.err)
14514 ac_status=$?
14515 cat conftest.err >&5
14516 echo "$as_me:14516: \$? = $ac_status" >&5
14517 if (exit $ac_status) && test -s "$ac_outfile"; then
14518 # The compiler can only warn and ignore the option if not recognized
14519 # So say no if there are warnings other than the usual output.
14520 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14522 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14523 lt_cv_prog_compiler_rtti_exceptions=yes
14526 $rm conftest*
14529 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14530 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14532 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14533 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14534 else
14540 lt_prog_compiler_wl=
14541 lt_prog_compiler_pic=
14542 lt_prog_compiler_static=
14544 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14545 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14547 if test "$GCC" = yes; then
14548 lt_prog_compiler_wl='-Wl,'
14549 lt_prog_compiler_static='-static'
14551 case $host_os in
14552 aix*)
14553 # All AIX code is PIC.
14554 if test "$host_cpu" = ia64; then
14555 # AIX 5 now supports IA64 processor
14556 lt_prog_compiler_static='-Bstatic'
14560 amigaos*)
14561 # FIXME: we need at least 68020 code to build shared libraries, but
14562 # adding the `-m68020' flag to GCC prevents building anything better,
14563 # like `-m68040'.
14564 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14567 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14568 # PIC is the default for these OSes.
14571 mingw* | pw32* | os2*)
14572 # This hack is so that the source file can tell whether it is being
14573 # built for inclusion in a dll (and should export symbols for example).
14574 lt_prog_compiler_pic='-DDLL_EXPORT'
14577 darwin* | rhapsody*)
14578 # PIC is the default on this platform
14579 # Common symbols not allowed in MH_DYLIB files
14580 lt_prog_compiler_pic='-fno-common'
14583 interix3*)
14584 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14585 # Instead, we relocate shared libraries at runtime.
14588 msdosdjgpp*)
14589 # Just because we use GCC doesn't mean we suddenly get shared libraries
14590 # on systems that don't support them.
14591 lt_prog_compiler_can_build_shared=no
14592 enable_shared=no
14595 sysv4*MP*)
14596 if test -d /usr/nec; then
14597 lt_prog_compiler_pic=-Kconform_pic
14601 hpux*)
14602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14603 # not for PA HP-UX.
14604 case $host_cpu in
14605 hppa*64*|ia64*)
14606 # +Z the default
14609 lt_prog_compiler_pic='-fPIC'
14611 esac
14615 lt_prog_compiler_pic='-fPIC'
14617 esac
14618 else
14619 # PORTME Check for flag to pass linker flags through the system compiler.
14620 case $host_os in
14621 aix*)
14622 lt_prog_compiler_wl='-Wl,'
14623 if test "$host_cpu" = ia64; then
14624 # AIX 5 now supports IA64 processor
14625 lt_prog_compiler_static='-Bstatic'
14626 else
14627 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14630 darwin*)
14631 # PIC is the default on this platform
14632 # Common symbols not allowed in MH_DYLIB files
14633 case $cc_basename in
14634 xlc*)
14635 lt_prog_compiler_pic='-qnocommon'
14636 lt_prog_compiler_wl='-Wl,'
14638 esac
14641 mingw* | pw32* | os2*)
14642 # This hack is so that the source file can tell whether it is being
14643 # built for inclusion in a dll (and should export symbols for example).
14644 lt_prog_compiler_pic='-DDLL_EXPORT'
14647 hpux9* | hpux10* | hpux11*)
14648 lt_prog_compiler_wl='-Wl,'
14649 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14650 # not for PA HP-UX.
14651 case $host_cpu in
14652 hppa*64*|ia64*)
14653 # +Z the default
14656 lt_prog_compiler_pic='+Z'
14658 esac
14659 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14660 lt_prog_compiler_static='${wl}-a ${wl}archive'
14663 irix5* | irix6* | nonstopux*)
14664 lt_prog_compiler_wl='-Wl,'
14665 # PIC (with -KPIC) is the default.
14666 lt_prog_compiler_static='-non_shared'
14669 newsos6)
14670 lt_prog_compiler_pic='-KPIC'
14671 lt_prog_compiler_static='-Bstatic'
14674 linux*)
14675 case $cc_basename in
14676 icc* | ecc*)
14677 lt_prog_compiler_wl='-Wl,'
14678 lt_prog_compiler_pic='-KPIC'
14679 lt_prog_compiler_static='-static'
14681 pgcc* | pgf77* | pgf90* | pgf95*)
14682 # Portland Group compilers (*not* the Pentium gcc compiler,
14683 # which looks to be a dead project)
14684 lt_prog_compiler_wl='-Wl,'
14685 lt_prog_compiler_pic='-fpic'
14686 lt_prog_compiler_static='-Bstatic'
14688 ccc*)
14689 lt_prog_compiler_wl='-Wl,'
14690 # All Alpha code is PIC.
14691 lt_prog_compiler_static='-non_shared'
14693 esac
14696 osf3* | osf4* | osf5*)
14697 lt_prog_compiler_wl='-Wl,'
14698 # All OSF/1 code is PIC.
14699 lt_prog_compiler_static='-non_shared'
14702 solaris*)
14703 lt_prog_compiler_pic='-KPIC'
14704 lt_prog_compiler_static='-Bstatic'
14705 case $cc_basename in
14706 f77* | f90* | f95*)
14707 lt_prog_compiler_wl='-Qoption ld ';;
14709 lt_prog_compiler_wl='-Wl,';;
14710 esac
14713 sunos4*)
14714 lt_prog_compiler_wl='-Qoption ld '
14715 lt_prog_compiler_pic='-PIC'
14716 lt_prog_compiler_static='-Bstatic'
14719 sysv4 | sysv4.2uw2* | sysv4.3*)
14720 lt_prog_compiler_wl='-Wl,'
14721 lt_prog_compiler_pic='-KPIC'
14722 lt_prog_compiler_static='-Bstatic'
14725 sysv4*MP*)
14726 if test -d /usr/nec ;then
14727 lt_prog_compiler_pic='-Kconform_pic'
14728 lt_prog_compiler_static='-Bstatic'
14732 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14733 lt_prog_compiler_wl='-Wl,'
14734 lt_prog_compiler_pic='-KPIC'
14735 lt_prog_compiler_static='-Bstatic'
14738 unicos*)
14739 lt_prog_compiler_wl='-Wl,'
14740 lt_prog_compiler_can_build_shared=no
14743 uts4*)
14744 lt_prog_compiler_pic='-pic'
14745 lt_prog_compiler_static='-Bstatic'
14749 lt_prog_compiler_can_build_shared=no
14751 esac
14754 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14755 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14758 # Check to make sure the PIC flag actually works.
14760 if test -n "$lt_prog_compiler_pic"; then
14762 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14763 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14764 if test "${lt_prog_compiler_pic_works+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 else
14767 lt_prog_compiler_pic_works=no
14768 ac_outfile=conftest.$ac_objext
14769 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14770 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14771 # Insert the option either (1) after the last *FLAGS variable, or
14772 # (2) before a word containing "conftest.", or (3) at the end.
14773 # Note that $ac_compile itself does not contain backslashes and begins
14774 # with a dollar sign (not a hyphen), so the echo should work correctly.
14775 # The option is referenced via a variable to avoid confusing sed.
14776 lt_compile=`echo "$ac_compile" | $SED \
14777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14779 -e 's:$: $lt_compiler_flag:'`
14780 (eval echo "\"\$as_me:14780: $lt_compile\"" >&5)
14781 (eval "$lt_compile" 2>conftest.err)
14782 ac_status=$?
14783 cat conftest.err >&5
14784 echo "$as_me:14784: \$? = $ac_status" >&5
14785 if (exit $ac_status) && test -s "$ac_outfile"; then
14786 # The compiler can only warn and ignore the option if not recognized
14787 # So say no if there are warnings other than the usual output.
14788 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14790 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14791 lt_prog_compiler_pic_works=yes
14794 $rm conftest*
14797 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14798 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14800 if test x"$lt_prog_compiler_pic_works" = xyes; then
14801 case $lt_prog_compiler_pic in
14802 "" | " "*) ;;
14803 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14804 esac
14805 else
14806 lt_prog_compiler_pic=
14807 lt_prog_compiler_can_build_shared=no
14811 case $host_os in
14812 # For platforms which do not support PIC, -DPIC is meaningless:
14813 *djgpp*)
14814 lt_prog_compiler_pic=
14817 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14819 esac
14822 # Check to make sure the static flag actually works.
14824 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14825 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14826 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14827 if test "${lt_prog_compiler_static_works+set}" = set; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 else
14830 lt_prog_compiler_static_works=no
14831 save_LDFLAGS="$LDFLAGS"
14832 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14833 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14834 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14835 # The linker can only warn and ignore the option if not recognized
14836 # So say no if there are warnings
14837 if test -s conftest.err; then
14838 # Append any errors to the config.log.
14839 cat conftest.err 1>&5
14840 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14842 if diff conftest.exp conftest.er2 >/dev/null; then
14843 lt_prog_compiler_static_works=yes
14845 else
14846 lt_prog_compiler_static_works=yes
14849 $rm conftest*
14850 LDFLAGS="$save_LDFLAGS"
14853 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14854 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14856 if test x"$lt_prog_compiler_static_works" = xyes; then
14858 else
14859 lt_prog_compiler_static=
14863 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14864 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14865 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14866 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 else
14868 lt_cv_prog_compiler_c_o=no
14869 $rm -r conftest 2>/dev/null
14870 mkdir conftest
14871 cd conftest
14872 mkdir out
14873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14875 lt_compiler_flag="-o out/conftest2.$ac_objext"
14876 # Insert the option either (1) after the last *FLAGS variable, or
14877 # (2) before a word containing "conftest.", or (3) at the end.
14878 # Note that $ac_compile itself does not contain backslashes and begins
14879 # with a dollar sign (not a hyphen), so the echo should work correctly.
14880 lt_compile=`echo "$ac_compile" | $SED \
14881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14883 -e 's:$: $lt_compiler_flag:'`
14884 (eval echo "\"\$as_me:14884: $lt_compile\"" >&5)
14885 (eval "$lt_compile" 2>out/conftest.err)
14886 ac_status=$?
14887 cat out/conftest.err >&5
14888 echo "$as_me:14888: \$? = $ac_status" >&5
14889 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14890 then
14891 # The compiler can only warn and ignore the option if not recognized
14892 # So say no if there are warnings
14893 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14894 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14895 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14896 lt_cv_prog_compiler_c_o=yes
14899 chmod u+w . 2>&5
14900 $rm conftest*
14901 # SGI C++ compiler will create directory out/ii_files/ for
14902 # template instantiation
14903 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14904 $rm out/* && rmdir out
14905 cd ..
14906 rmdir conftest
14907 $rm conftest*
14910 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14911 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14914 hard_links="nottested"
14915 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14916 # do not overwrite the value of need_locks provided by the user
14917 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14918 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14919 hard_links=yes
14920 $rm conftest*
14921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14922 touch conftest.a
14923 ln conftest.a conftest.b 2>&5 || hard_links=no
14924 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14925 { echo "$as_me:$LINENO: result: $hard_links" >&5
14926 echo "${ECHO_T}$hard_links" >&6; }
14927 if test "$hard_links" = no; then
14928 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14929 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14930 need_locks=warn
14932 else
14933 need_locks=no
14936 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14937 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14939 runpath_var=
14940 allow_undefined_flag=
14941 enable_shared_with_static_runtimes=no
14942 archive_cmds=
14943 archive_expsym_cmds=
14944 old_archive_From_new_cmds=
14945 old_archive_from_expsyms_cmds=
14946 export_dynamic_flag_spec=
14947 whole_archive_flag_spec=
14948 thread_safe_flag_spec=
14949 hardcode_libdir_flag_spec=
14950 hardcode_libdir_flag_spec_ld=
14951 hardcode_libdir_separator=
14952 hardcode_direct=no
14953 hardcode_minus_L=no
14954 hardcode_shlibpath_var=unsupported
14955 link_all_deplibs=unknown
14956 hardcode_automatic=no
14957 module_cmds=
14958 module_expsym_cmds=
14959 always_export_symbols=no
14960 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14961 # include_expsyms should be a list of space-separated symbols to be *always*
14962 # included in the symbol list
14963 include_expsyms=
14964 # exclude_expsyms can be an extended regexp of symbols to exclude
14965 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14966 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14967 # as well as any symbol that contains `d'.
14968 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14969 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14970 # platforms (ab)use it in PIC code, but their linkers get confused if
14971 # the symbol is explicitly referenced. Since portable code cannot
14972 # rely on this symbol name, it's probably fine to never include it in
14973 # preloaded symbol tables.
14974 extract_expsyms_cmds=
14975 # Just being paranoid about ensuring that cc_basename is set.
14976 for cc_temp in $compiler""; do
14977 case $cc_temp in
14978 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14979 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14980 \-*) ;;
14981 *) break;;
14982 esac
14983 done
14984 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14986 case $host_os in
14987 cygwin* | mingw* | pw32*)
14988 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14989 # When not using gcc, we currently assume that we are using
14990 # Microsoft Visual C++.
14991 if test "$GCC" != yes; then
14992 with_gnu_ld=no
14995 interix*)
14996 # we just hope/assume this is gcc and not c89 (= MSVC++)
14997 with_gnu_ld=yes
14999 openbsd*)
15000 with_gnu_ld=no
15002 esac
15004 ld_shlibs=yes
15005 if test "$with_gnu_ld" = yes; then
15006 # If archive_cmds runs LD, not CC, wlarc should be empty
15007 wlarc='${wl}'
15009 # Set some defaults for GNU ld with shared library support. These
15010 # are reset later if shared libraries are not supported. Putting them
15011 # here allows them to be overridden if necessary.
15012 runpath_var=LD_RUN_PATH
15013 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15014 export_dynamic_flag_spec='${wl}--export-dynamic'
15015 # ancient GNU ld didn't support --whole-archive et. al.
15016 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15017 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15018 else
15019 whole_archive_flag_spec=
15021 supports_anon_versioning=no
15022 case `$LD -v 2>/dev/null` in
15023 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15024 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15025 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15026 *\ 2.11.*) ;; # other 2.11 versions
15027 *) supports_anon_versioning=yes ;;
15028 esac
15030 # See if GNU ld supports shared libraries.
15031 case $host_os in
15032 aix3* | aix4* | aix5*)
15033 # On AIX/PPC, the GNU linker is very broken
15034 if test "$host_cpu" != ia64; then
15035 ld_shlibs=no
15036 cat <<EOF 1>&2
15038 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15039 *** to be unable to reliably create shared libraries on AIX.
15040 *** Therefore, libtool is disabling shared libraries support. If you
15041 *** really care for shared libraries, you may want to modify your PATH
15042 *** so that a non-GNU linker is found, and then restart.
15048 amigaos*)
15049 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)'
15050 hardcode_libdir_flag_spec='-L$libdir'
15051 hardcode_minus_L=yes
15053 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15054 # that the semantics of dynamic libraries on AmigaOS, at least up
15055 # to version 4, is to share data among multiple programs linked
15056 # with the same dynamic library. Since this doesn't match the
15057 # behavior of shared libraries on other platforms, we can't use
15058 # them.
15059 ld_shlibs=no
15062 beos*)
15063 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15064 allow_undefined_flag=unsupported
15065 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15066 # support --undefined. This deserves some investigation. FIXME
15067 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15068 else
15069 ld_shlibs=no
15073 cygwin* | mingw* | pw32*)
15074 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15075 # as there is no search path for DLLs.
15076 hardcode_libdir_flag_spec='-L$libdir'
15077 allow_undefined_flag=unsupported
15078 always_export_symbols=no
15079 enable_shared_with_static_runtimes=yes
15080 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15082 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15083 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15084 # If the export-symbols file already is a .def file (1st line
15085 # is EXPORTS), use it as is; otherwise, prepend...
15086 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15087 cp $export_symbols $output_objdir/$soname.def;
15088 else
15089 echo EXPORTS > $output_objdir/$soname.def;
15090 cat $export_symbols >> $output_objdir/$soname.def;
15092 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15093 else
15094 ld_shlibs=no
15098 interix3*)
15099 hardcode_direct=no
15100 hardcode_shlibpath_var=no
15101 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15102 export_dynamic_flag_spec='${wl}-E'
15103 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15104 # Instead, shared libraries are loaded at an image base (0x10000000 by
15105 # default) and relocated if they conflict, which is a slow very memory
15106 # consuming and fragmenting process. To avoid this, we pick a random,
15107 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15108 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15109 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15110 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'
15113 linux*)
15114 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15115 tmp_addflag=
15116 case $cc_basename,$host_cpu in
15117 pgcc*) # Portland Group C compiler
15118 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'
15119 tmp_addflag=' $pic_flag'
15121 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15122 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'
15123 tmp_addflag=' $pic_flag -Mnomain' ;;
15124 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15125 tmp_addflag=' -i_dynamic' ;;
15126 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15127 tmp_addflag=' -i_dynamic -nofor_main' ;;
15128 ifc* | ifort*) # Intel Fortran compiler
15129 tmp_addflag=' -nofor_main' ;;
15130 esac
15131 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15133 if test $supports_anon_versioning = yes; then
15134 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15135 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15136 $echo "local: *; };" >> $output_objdir/$libname.ver~
15137 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15139 else
15140 ld_shlibs=no
15144 netbsd*)
15145 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15146 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15147 wlarc=
15148 else
15149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15150 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15154 solaris*)
15155 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15156 ld_shlibs=no
15157 cat <<EOF 1>&2
15159 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15160 *** create shared libraries on Solaris systems. Therefore, libtool
15161 *** is disabling shared libraries support. We urge you to upgrade GNU
15162 *** binutils to release 2.9.1 or newer. Another option is to modify
15163 *** your PATH or compiler configuration so that the native linker is
15164 *** used, and then restart.
15167 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15169 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15170 else
15171 ld_shlibs=no
15175 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15176 case `$LD -v 2>&1` in
15177 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15178 ld_shlibs=no
15179 cat <<_LT_EOF 1>&2
15181 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15182 *** reliably create shared libraries on SCO systems. Therefore, libtool
15183 *** is disabling shared libraries support. We urge you to upgrade GNU
15184 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15185 *** your PATH or compiler configuration so that the native linker is
15186 *** used, and then restart.
15188 _LT_EOF
15191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15192 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15195 else
15196 ld_shlibs=no
15199 esac
15202 sunos4*)
15203 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15204 wlarc=
15205 hardcode_direct=yes
15206 hardcode_shlibpath_var=no
15210 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15212 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15213 else
15214 ld_shlibs=no
15217 esac
15219 if test "$ld_shlibs" = no; then
15220 runpath_var=
15221 hardcode_libdir_flag_spec=
15222 export_dynamic_flag_spec=
15223 whole_archive_flag_spec=
15225 else
15226 # PORTME fill in a description of your system's linker (not GNU ld)
15227 case $host_os in
15228 aix3*)
15229 allow_undefined_flag=unsupported
15230 always_export_symbols=yes
15231 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'
15232 # Note: this linker hardcodes the directories in LIBPATH if there
15233 # are no directories specified by -L.
15234 hardcode_minus_L=yes
15235 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15236 # Neither direct hardcoding nor static linking is supported with a
15237 # broken collect2.
15238 hardcode_direct=unsupported
15242 aix4* | aix5*)
15243 if test "$host_cpu" = ia64; then
15244 # On IA64, the linker does run time linking by default, so we don't
15245 # have to do anything special.
15246 aix_use_runtimelinking=no
15247 exp_sym_flag='-Bexport'
15248 no_entry_flag=""
15249 else
15250 # If we're using GNU nm, then we don't want the "-C" option.
15251 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15252 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15253 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'
15254 else
15255 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'
15257 aix_use_runtimelinking=no
15259 # Test if we are trying to use run time linking or normal
15260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15261 # need to do runtime linking.
15262 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15263 for ld_flag in $LDFLAGS; do
15264 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15265 aix_use_runtimelinking=yes
15266 break
15268 done
15270 esac
15272 exp_sym_flag='-bexport'
15273 no_entry_flag='-bnoentry'
15276 # When large executables or shared objects are built, AIX ld can
15277 # have problems creating the table of contents. If linking a library
15278 # or program results in "error TOC overflow" add -mminimal-toc to
15279 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15280 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15282 archive_cmds=''
15283 hardcode_direct=yes
15284 hardcode_libdir_separator=':'
15285 link_all_deplibs=yes
15287 if test "$GCC" = yes; then
15288 case $host_os in aix4.[012]|aix4.[012].*)
15289 # We only want to do this on AIX 4.2 and lower, the check
15290 # below for broken collect2 doesn't work under 4.3+
15291 collect2name=`${CC} -print-prog-name=collect2`
15292 if test -f "$collect2name" && \
15293 strings "$collect2name" | grep resolve_lib_name >/dev/null
15294 then
15295 # We have reworked collect2
15296 hardcode_direct=yes
15297 else
15298 # We have old collect2
15299 hardcode_direct=unsupported
15300 # It fails to find uninstalled libraries when the uninstalled
15301 # path is not listed in the libpath. Setting hardcode_minus_L
15302 # to unsupported forces relinking
15303 hardcode_minus_L=yes
15304 hardcode_libdir_flag_spec='-L$libdir'
15305 hardcode_libdir_separator=
15308 esac
15309 shared_flag='-shared'
15310 if test "$aix_use_runtimelinking" = yes; then
15311 shared_flag="$shared_flag "'${wl}-G'
15313 else
15314 # not using gcc
15315 if test "$host_cpu" = ia64; then
15316 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15317 # chokes on -Wl,-G. The following line is correct:
15318 shared_flag='-G'
15319 else
15320 if test "$aix_use_runtimelinking" = yes; then
15321 shared_flag='${wl}-G'
15322 else
15323 shared_flag='${wl}-bM:SRE'
15328 # It seems that -bexpall does not export symbols beginning with
15329 # underscore (_), so it is better to generate a list of symbols to export.
15330 always_export_symbols=yes
15331 if test "$aix_use_runtimelinking" = yes; then
15332 # Warning - without using the other runtime loading flags (-brtl),
15333 # -berok will link without error, but may produce a broken library.
15334 allow_undefined_flag='-berok'
15335 # Determine the default libpath from the value encoded in an empty executable.
15336 cat >conftest.$ac_ext <<_ACEOF
15337 /* confdefs.h. */
15338 _ACEOF
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h. */
15344 main ()
15348 return 0;
15350 _ACEOF
15351 rm -f conftest.$ac_objext conftest$ac_exeext
15352 if { (ac_try="$ac_link"
15353 case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15356 esac
15357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358 (eval "$ac_link") 2>conftest.er1
15359 ac_status=$?
15360 grep -v '^ *+' conftest.er1 >conftest.err
15361 rm -f conftest.er1
15362 cat conftest.err >&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } &&
15365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15366 { (case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15369 esac
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_try") 2>&5
15372 ac_status=$?
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; } &&
15375 { ac_try='test -s conftest$ac_exeext'
15376 { (case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15379 esac
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381 (eval "$ac_try") 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15388 # Check for a 64-bit object if we didn't find anything.
15389 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; }
15390 }'`; fi
15391 else
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15398 rm -f core conftest.err conftest.$ac_objext \
15399 conftest$ac_exeext conftest.$ac_ext
15400 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15402 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15403 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"
15404 else
15405 if test "$host_cpu" = ia64; then
15406 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15407 allow_undefined_flag="-z nodefs"
15408 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"
15409 else
15410 # Determine the default libpath from the value encoded in an empty executable.
15411 cat >conftest.$ac_ext <<_ACEOF
15412 /* confdefs.h. */
15413 _ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15419 main ()
15423 return 0;
15425 _ACEOF
15426 rm -f conftest.$ac_objext conftest$ac_exeext
15427 if { (ac_try="$ac_link"
15428 case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15431 esac
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_link") 2>conftest.er1
15434 ac_status=$?
15435 grep -v '^ *+' conftest.er1 >conftest.err
15436 rm -f conftest.er1
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } &&
15440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15441 { (case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15444 esac
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_try") 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; } &&
15450 { ac_try='test -s conftest$ac_exeext'
15451 { (case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15454 esac
15455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_try") 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15461 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15463 # Check for a 64-bit object if we didn't find anything.
15464 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; }
15465 }'`; fi
15466 else
15467 echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15473 rm -f core conftest.err conftest.$ac_objext \
15474 conftest$ac_exeext conftest.$ac_ext
15475 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15477 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15478 # Warning - without using the other run time loading flags,
15479 # -berok will link without error, but may produce a broken library.
15480 no_undefined_flag=' ${wl}-bernotok'
15481 allow_undefined_flag=' ${wl}-berok'
15482 # Exported symbols can be pulled into shared objects from archives
15483 whole_archive_flag_spec='$convenience'
15484 archive_cmds_need_lc=yes
15485 # This is similar to how AIX traditionally builds its shared libraries.
15486 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'
15491 amigaos*)
15492 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)'
15493 hardcode_libdir_flag_spec='-L$libdir'
15494 hardcode_minus_L=yes
15495 # see comment about different semantics on the GNU ld section
15496 ld_shlibs=no
15499 bsdi[45]*)
15500 export_dynamic_flag_spec=-rdynamic
15503 cygwin* | mingw* | pw32*)
15504 # When not using gcc, we currently assume that we are using
15505 # Microsoft Visual C++.
15506 # hardcode_libdir_flag_spec is actually meaningless, as there is
15507 # no search path for DLLs.
15508 hardcode_libdir_flag_spec=' '
15509 allow_undefined_flag=unsupported
15510 # Tell ltmain to make .lib files, not .a files.
15511 libext=lib
15512 # Tell ltmain to make .dll files, not .so files.
15513 shrext_cmds=".dll"
15514 # FIXME: Setting linknames here is a bad hack.
15515 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15516 # The linker will automatically build a .lib file if we build a DLL.
15517 old_archive_From_new_cmds='true'
15518 # FIXME: Should let the user specify the lib program.
15519 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15520 fix_srcfile_path='`cygpath -w "$srcfile"`'
15521 enable_shared_with_static_runtimes=yes
15524 darwin* | rhapsody*)
15525 case $host_os in
15526 rhapsody* | darwin1.[012])
15527 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15529 *) # Darwin 1.3 on
15530 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15531 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15532 else
15533 case ${MACOSX_DEPLOYMENT_TARGET} in
15534 10.[012])
15535 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15537 10.*)
15538 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15540 esac
15543 esac
15544 archive_cmds_need_lc=no
15545 hardcode_direct=no
15546 hardcode_automatic=yes
15547 hardcode_shlibpath_var=unsupported
15548 whole_archive_flag_spec=''
15549 link_all_deplibs=yes
15550 if test "$GCC" = yes ; then
15551 output_verbose_link_cmd='echo'
15552 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15553 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15554 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15555 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}'
15556 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}'
15557 else
15558 case $cc_basename in
15559 xlc*)
15560 output_verbose_link_cmd='echo'
15561 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15562 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15563 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15564 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}'
15565 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}'
15568 ld_shlibs=no
15570 esac
15574 dgux*)
15575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15576 hardcode_libdir_flag_spec='-L$libdir'
15577 hardcode_shlibpath_var=no
15580 freebsd1*)
15581 ld_shlibs=no
15584 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15585 # support. Future versions do this automatically, but an explicit c++rt0.o
15586 # does not break anything, and helps significantly (at the cost of a little
15587 # extra space).
15588 freebsd2.2*)
15589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15590 hardcode_libdir_flag_spec='-R$libdir'
15591 hardcode_direct=yes
15592 hardcode_shlibpath_var=no
15595 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15596 freebsd2*)
15597 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15598 hardcode_direct=yes
15599 hardcode_minus_L=yes
15600 hardcode_shlibpath_var=no
15603 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15604 freebsd* | kfreebsd*-gnu | dragonfly*)
15605 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15606 hardcode_libdir_flag_spec='-R$libdir'
15607 hardcode_direct=yes
15608 hardcode_shlibpath_var=no
15611 hpux9*)
15612 if test "$GCC" = yes; then
15613 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'
15614 else
15615 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'
15617 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15618 hardcode_libdir_separator=:
15619 hardcode_direct=yes
15621 # hardcode_minus_L: Not really in the search PATH,
15622 # but as the default location of the library.
15623 hardcode_minus_L=yes
15624 export_dynamic_flag_spec='${wl}-E'
15627 hpux10*)
15628 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15629 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15630 else
15631 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15633 if test "$with_gnu_ld" = no; then
15634 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15635 hardcode_libdir_separator=:
15637 hardcode_direct=yes
15638 export_dynamic_flag_spec='${wl}-E'
15640 # hardcode_minus_L: Not really in the search PATH,
15641 # but as the default location of the library.
15642 hardcode_minus_L=yes
15646 hpux11*)
15647 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15648 case $host_cpu in
15649 hppa*64*)
15650 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15652 ia64*)
15653 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15656 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15658 esac
15659 else
15660 case $host_cpu in
15661 hppa*64*)
15662 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15664 ia64*)
15665 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15668 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15670 esac
15672 if test "$with_gnu_ld" = no; then
15673 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15674 hardcode_libdir_separator=:
15676 case $host_cpu in
15677 hppa*64*|ia64*)
15678 hardcode_libdir_flag_spec_ld='+b $libdir'
15679 hardcode_direct=no
15680 hardcode_shlibpath_var=no
15683 hardcode_direct=yes
15684 export_dynamic_flag_spec='${wl}-E'
15686 # hardcode_minus_L: Not really in the search PATH,
15687 # but as the default location of the library.
15688 hardcode_minus_L=yes
15690 esac
15694 irix5* | irix6* | nonstopux*)
15695 if test "$GCC" = yes; then
15696 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'
15697 else
15698 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'
15699 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15702 hardcode_libdir_separator=:
15703 link_all_deplibs=yes
15706 netbsd*)
15707 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15709 else
15710 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15712 hardcode_libdir_flag_spec='-R$libdir'
15713 hardcode_direct=yes
15714 hardcode_shlibpath_var=no
15717 newsos6)
15718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15719 hardcode_direct=yes
15720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15721 hardcode_libdir_separator=:
15722 hardcode_shlibpath_var=no
15725 openbsd*)
15726 hardcode_direct=yes
15727 hardcode_shlibpath_var=no
15728 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15729 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15730 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15731 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15732 export_dynamic_flag_spec='${wl}-E'
15733 else
15734 case $host_os in
15735 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15737 hardcode_libdir_flag_spec='-R$libdir'
15740 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15741 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15743 esac
15747 os2*)
15748 hardcode_libdir_flag_spec='-L$libdir'
15749 hardcode_minus_L=yes
15750 allow_undefined_flag=unsupported
15751 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'
15752 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15755 osf3*)
15756 if test "$GCC" = yes; then
15757 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15758 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'
15759 else
15760 allow_undefined_flag=' -expect_unresolved \*'
15761 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'
15763 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15764 hardcode_libdir_separator=:
15767 osf4* | osf5*) # as osf3* with the addition of -msym flag
15768 if test "$GCC" = yes; then
15769 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15770 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'
15771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15772 else
15773 allow_undefined_flag=' -expect_unresolved \*'
15774 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'
15775 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15776 $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'
15778 # Both c and cxx compiler support -rpath directly
15779 hardcode_libdir_flag_spec='-rpath $libdir'
15781 hardcode_libdir_separator=:
15784 solaris*)
15785 no_undefined_flag=' -z text'
15786 if test "$GCC" = yes; then
15787 wlarc='${wl}'
15788 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15789 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15790 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15791 else
15792 wlarc=''
15793 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15794 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15795 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15797 hardcode_libdir_flag_spec='-R$libdir'
15798 hardcode_shlibpath_var=no
15799 case $host_os in
15800 solaris2.[0-5] | solaris2.[0-5].*) ;;
15802 # The compiler driver will combine linker options so we
15803 # cannot just pass the convience library names through
15804 # without $wl, iff we do not link with $LD.
15805 # Luckily, gcc supports the same syntax we need for Sun Studio.
15806 # Supported since Solaris 2.6 (maybe 2.5.1?)
15807 case $wlarc in
15809 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15811 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' ;;
15812 esac ;;
15813 esac
15814 link_all_deplibs=yes
15817 sunos4*)
15818 if test "x$host_vendor" = xsequent; then
15819 # Use $CC to link under sequent, because it throws in some extra .o
15820 # files that make .init and .fini sections work.
15821 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15822 else
15823 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15825 hardcode_libdir_flag_spec='-L$libdir'
15826 hardcode_direct=yes
15827 hardcode_minus_L=yes
15828 hardcode_shlibpath_var=no
15831 sysv4)
15832 case $host_vendor in
15833 sni)
15834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15835 hardcode_direct=yes # is this really true???
15837 siemens)
15838 ## LD is ld it makes a PLAMLIB
15839 ## CC just makes a GrossModule.
15840 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15841 reload_cmds='$CC -r -o $output$reload_objs'
15842 hardcode_direct=no
15844 motorola)
15845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15846 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15848 esac
15849 runpath_var='LD_RUN_PATH'
15850 hardcode_shlibpath_var=no
15853 sysv4.3*)
15854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15855 hardcode_shlibpath_var=no
15856 export_dynamic_flag_spec='-Bexport'
15859 sysv4*MP*)
15860 if test -d /usr/nec; then
15861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15862 hardcode_shlibpath_var=no
15863 runpath_var=LD_RUN_PATH
15864 hardcode_runpath_var=yes
15865 ld_shlibs=yes
15869 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15870 no_undefined_flag='${wl}-z,text'
15871 archive_cmds_need_lc=no
15872 hardcode_shlibpath_var=no
15873 runpath_var='LD_RUN_PATH'
15875 if test "$GCC" = yes; then
15876 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15877 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15878 else
15879 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15880 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15884 sysv5* | sco3.2v5* | sco5v6*)
15885 # Note: We can NOT use -z defs as we might desire, because we do not
15886 # link with -lc, and that would cause any symbols used from libc to
15887 # always be unresolved, which means just about no library would
15888 # ever link correctly. If we're not using GNU ld we use -z text
15889 # though, which does catch some bad symbols but isn't as heavy-handed
15890 # as -z defs.
15891 no_undefined_flag='${wl}-z,text'
15892 allow_undefined_flag='${wl}-z,nodefs'
15893 archive_cmds_need_lc=no
15894 hardcode_shlibpath_var=no
15895 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15896 hardcode_libdir_separator=':'
15897 link_all_deplibs=yes
15898 export_dynamic_flag_spec='${wl}-Bexport'
15899 runpath_var='LD_RUN_PATH'
15901 if test "$GCC" = yes; then
15902 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15903 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15904 else
15905 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15906 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15910 uts4*)
15911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15912 hardcode_libdir_flag_spec='-L$libdir'
15913 hardcode_shlibpath_var=no
15917 ld_shlibs=no
15919 esac
15922 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15923 echo "${ECHO_T}$ld_shlibs" >&6; }
15924 test "$ld_shlibs" = no && can_build_shared=no
15927 # Do we need to explicitly link libc?
15929 case "x$archive_cmds_need_lc" in
15930 x|xyes)
15931 # Assume -lc should be added
15932 archive_cmds_need_lc=yes
15934 if test "$enable_shared" = yes && test "$GCC" = yes; then
15935 case $archive_cmds in
15936 *'~'*)
15937 # FIXME: we may have to deal with multi-command sequences.
15939 '$CC '*)
15940 # Test whether the compiler implicitly links with -lc since on some
15941 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15942 # to ld, don't add -lc before -lgcc.
15943 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15944 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15945 $rm conftest*
15946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15949 (eval $ac_compile) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } 2>conftest.err; then
15953 soname=conftest
15954 lib=conftest
15955 libobjs=conftest.$ac_objext
15956 deplibs=
15957 wl=$lt_prog_compiler_wl
15958 pic_flag=$lt_prog_compiler_pic
15959 compiler_flags=-v
15960 linker_flags=-v
15961 verstring=
15962 output_objdir=.
15963 libname=conftest
15964 lt_save_allow_undefined_flag=$allow_undefined_flag
15965 allow_undefined_flag=
15966 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15967 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15968 ac_status=$?
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }
15971 then
15972 archive_cmds_need_lc=no
15973 else
15974 archive_cmds_need_lc=yes
15976 allow_undefined_flag=$lt_save_allow_undefined_flag
15977 else
15978 cat conftest.err 1>&5
15980 $rm conftest*
15981 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15982 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15984 esac
15987 esac
15989 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15990 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15991 library_names_spec=
15992 libname_spec='lib$name'
15993 soname_spec=
15994 shrext_cmds=".so"
15995 postinstall_cmds=
15996 postuninstall_cmds=
15997 finish_cmds=
15998 finish_eval=
15999 shlibpath_var=
16000 shlibpath_overrides_runpath=unknown
16001 version_type=none
16002 dynamic_linker="$host_os ld.so"
16003 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16004 if test "$GCC" = yes; then
16005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16006 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16007 # if the path contains ";" then we assume it to be the separator
16008 # otherwise default to the standard path separator (i.e. ":") - it is
16009 # assumed that no part of a normal pathname contains ";" but that should
16010 # okay in the real world where ";" in dirpaths is itself problematic.
16011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16012 else
16013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16015 else
16016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16018 need_lib_prefix=unknown
16019 hardcode_into_libs=no
16021 # when you set need_version to no, make sure it does not cause -set_version
16022 # flags to be left without arguments
16023 need_version=unknown
16025 case $host_os in
16026 aix3*)
16027 version_type=linux
16028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16029 shlibpath_var=LIBPATH
16031 # AIX 3 has no versioning support, so we append a major version to the name.
16032 soname_spec='${libname}${release}${shared_ext}$major'
16035 aix4* | aix5*)
16036 version_type=linux
16037 need_lib_prefix=no
16038 need_version=no
16039 hardcode_into_libs=yes
16040 if test "$host_cpu" = ia64; then
16041 # AIX 5 supports IA64
16042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16043 shlibpath_var=LD_LIBRARY_PATH
16044 else
16045 # With GCC up to 2.95.x, collect2 would create an import file
16046 # for dependence libraries. The import file would start with
16047 # the line `#! .'. This would cause the generated library to
16048 # depend on `.', always an invalid library. This was fixed in
16049 # development snapshots of GCC prior to 3.0.
16050 case $host_os in
16051 aix4 | aix4.[01] | aix4.[01].*)
16052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16053 echo ' yes '
16054 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16056 else
16057 can_build_shared=no
16060 esac
16061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16062 # soname into executable. Probably we can add versioning support to
16063 # collect2, so additional links can be useful in future.
16064 if test "$aix_use_runtimelinking" = yes; then
16065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16066 # instead of lib<name>.a to let people know that these are not
16067 # typical AIX shared libraries.
16068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16069 else
16070 # We preserve .a as extension for shared libraries through AIX4.2
16071 # and later when we are not doing run time linking.
16072 library_names_spec='${libname}${release}.a $libname.a'
16073 soname_spec='${libname}${release}${shared_ext}$major'
16075 shlibpath_var=LIBPATH
16079 amigaos*)
16080 library_names_spec='$libname.ixlibrary $libname.a'
16081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16082 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'
16085 beos*)
16086 library_names_spec='${libname}${shared_ext}'
16087 dynamic_linker="$host_os ld.so"
16088 shlibpath_var=LIBRARY_PATH
16091 bsdi[45]*)
16092 version_type=linux
16093 need_version=no
16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095 soname_spec='${libname}${release}${shared_ext}$major'
16096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16097 shlibpath_var=LD_LIBRARY_PATH
16098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16100 # the default ld.so.conf also contains /usr/contrib/lib and
16101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16102 # libtool to hard-code these into programs
16105 cygwin* | mingw* | pw32*)
16106 version_type=windows
16107 shrext_cmds=".dll"
16108 need_version=no
16109 need_lib_prefix=no
16111 case $GCC,$host_os in
16112 yes,cygwin* | yes,mingw* | yes,pw32*)
16113 library_names_spec='$libname.dll.a'
16114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16115 postinstall_cmds='base_file=`basename \${file}`~
16116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16117 dldir=$destdir/`dirname \$dlpath`~
16118 test -d \$dldir || mkdir -p \$dldir~
16119 $install_prog $dir/$dlname \$dldir/$dlname~
16120 chmod a+x \$dldir/$dlname'
16121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16122 dlpath=$dir/\$dldll~
16123 $rm \$dlpath'
16124 shlibpath_overrides_runpath=yes
16126 case $host_os in
16127 cygwin*)
16128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16129 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16130 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16132 mingw*)
16133 # MinGW DLLs use traditional 'lib' prefix
16134 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16135 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16136 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16137 # It is most probably a Windows format PATH printed by
16138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16139 # path with ; separators, and with drive letters. We can handle the
16140 # drive letters (cygwin fileutils understands them), so leave them,
16141 # especially as we might pass files found there to a mingw objdump,
16142 # which wouldn't understand a cygwinified path. Ahh.
16143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16144 else
16145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16148 pw32*)
16149 # pw32 DLLs use 'pw' prefix rather than 'lib'
16150 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16152 esac
16156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16158 esac
16159 dynamic_linker='Win32 ld.exe'
16160 # FIXME: first we should search . and the directory the executable is in
16161 shlibpath_var=PATH
16164 darwin* | rhapsody*)
16165 dynamic_linker="$host_os dyld"
16166 version_type=darwin
16167 need_lib_prefix=no
16168 need_version=no
16169 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16170 soname_spec='${libname}${release}${major}$shared_ext'
16171 shlibpath_overrides_runpath=yes
16172 shlibpath_var=DYLD_LIBRARY_PATH
16173 shrext_cmds='.dylib'
16174 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16175 if test "$GCC" = yes; then
16176 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"`
16177 else
16178 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16180 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16183 dgux*)
16184 version_type=linux
16185 need_lib_prefix=no
16186 need_version=no
16187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16188 soname_spec='${libname}${release}${shared_ext}$major'
16189 shlibpath_var=LD_LIBRARY_PATH
16192 freebsd1*)
16193 dynamic_linker=no
16196 kfreebsd*-gnu)
16197 version_type=linux
16198 need_lib_prefix=no
16199 need_version=no
16200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16201 soname_spec='${libname}${release}${shared_ext}$major'
16202 shlibpath_var=LD_LIBRARY_PATH
16203 shlibpath_overrides_runpath=no
16204 hardcode_into_libs=yes
16205 dynamic_linker='GNU ld.so'
16208 freebsd* | dragonfly*)
16209 # DragonFly does not have aout. When/if they implement a new
16210 # versioning mechanism, adjust this.
16211 if test -x /usr/bin/objformat; then
16212 objformat=`/usr/bin/objformat`
16213 else
16214 case $host_os in
16215 freebsd[123]*) objformat=aout ;;
16216 *) objformat=elf ;;
16217 esac
16219 version_type=freebsd-$objformat
16220 case $version_type in
16221 freebsd-elf*)
16222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16223 need_version=no
16224 need_lib_prefix=no
16226 freebsd-*)
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16228 need_version=yes
16230 esac
16231 shlibpath_var=LD_LIBRARY_PATH
16232 case $host_os in
16233 freebsd2*)
16234 shlibpath_overrides_runpath=yes
16236 freebsd3.[01]* | freebsdelf3.[01]*)
16237 shlibpath_overrides_runpath=yes
16238 hardcode_into_libs=yes
16240 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16241 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16242 shlibpath_overrides_runpath=no
16243 hardcode_into_libs=yes
16245 freebsd*) # from 4.6 on
16246 shlibpath_overrides_runpath=yes
16247 hardcode_into_libs=yes
16249 esac
16252 gnu*)
16253 version_type=linux
16254 need_lib_prefix=no
16255 need_version=no
16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16257 soname_spec='${libname}${release}${shared_ext}$major'
16258 shlibpath_var=LD_LIBRARY_PATH
16259 hardcode_into_libs=yes
16262 hpux9* | hpux10* | hpux11*)
16263 # Give a soname corresponding to the major version so that dld.sl refuses to
16264 # link against other versions.
16265 version_type=sunos
16266 need_lib_prefix=no
16267 need_version=no
16268 case $host_cpu in
16269 ia64*)
16270 shrext_cmds='.so'
16271 hardcode_into_libs=yes
16272 dynamic_linker="$host_os dld.so"
16273 shlibpath_var=LD_LIBRARY_PATH
16274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16276 soname_spec='${libname}${release}${shared_ext}$major'
16277 if test "X$HPUX_IA64_MODE" = X32; then
16278 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16279 else
16280 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16284 hppa*64*)
16285 shrext_cmds='.sl'
16286 hardcode_into_libs=yes
16287 dynamic_linker="$host_os dld.sl"
16288 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16291 soname_spec='${libname}${release}${shared_ext}$major'
16292 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16296 shrext_cmds='.sl'
16297 dynamic_linker="$host_os dld.sl"
16298 shlibpath_var=SHLIB_PATH
16299 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16301 soname_spec='${libname}${release}${shared_ext}$major'
16303 esac
16304 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16305 postinstall_cmds='chmod 555 $lib'
16308 interix3*)
16309 version_type=linux
16310 need_lib_prefix=no
16311 need_version=no
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16313 soname_spec='${libname}${release}${shared_ext}$major'
16314 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16315 shlibpath_var=LD_LIBRARY_PATH
16316 shlibpath_overrides_runpath=no
16317 hardcode_into_libs=yes
16320 irix5* | irix6* | nonstopux*)
16321 case $host_os in
16322 nonstopux*) version_type=nonstopux ;;
16324 if test "$lt_cv_prog_gnu_ld" = yes; then
16325 version_type=linux
16326 else
16327 version_type=irix
16328 fi ;;
16329 esac
16330 need_lib_prefix=no
16331 need_version=no
16332 soname_spec='${libname}${release}${shared_ext}$major'
16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16334 case $host_os in
16335 irix5* | nonstopux*)
16336 libsuff= shlibsuff=
16339 case $LD in # libtool.m4 will add one of these switches to LD
16340 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16341 libsuff= shlibsuff= libmagic=32-bit;;
16342 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16343 libsuff=32 shlibsuff=N32 libmagic=N32;;
16344 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16345 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16346 *) libsuff= shlibsuff= libmagic=never-match;;
16347 esac
16349 esac
16350 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16351 shlibpath_overrides_runpath=no
16352 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16353 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16354 hardcode_into_libs=yes
16357 # No shared lib support for Linux oldld, aout, or coff.
16358 linux*oldld* | linux*aout* | linux*coff*)
16359 dynamic_linker=no
16362 # This must be Linux ELF.
16363 linux*)
16364 version_type=linux
16365 need_lib_prefix=no
16366 need_version=no
16367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16368 soname_spec='${libname}${release}${shared_ext}$major'
16369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16370 shlibpath_var=LD_LIBRARY_PATH
16371 shlibpath_overrides_runpath=no
16372 # This implies no fast_install, which is unacceptable.
16373 # Some rework will be needed to allow for fast_install
16374 # before this can be enabled.
16375 hardcode_into_libs=yes
16377 # Append ld.so.conf contents to the search path
16378 if test -f /etc/ld.so.conf; then
16379 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' ' '`
16380 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16383 # We used to test for /lib/ld.so.1 and disable shared libraries on
16384 # powerpc, because MkLinux only supported shared libraries with the
16385 # GNU dynamic linker. Since this was broken with cross compilers,
16386 # most powerpc-linux boxes support dynamic linking these days and
16387 # people can always --disable-shared, the test was removed, and we
16388 # assume the GNU/Linux dynamic linker is in use.
16389 dynamic_linker='GNU/Linux ld.so'
16392 knetbsd*-gnu)
16393 version_type=linux
16394 need_lib_prefix=no
16395 need_version=no
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16397 soname_spec='${libname}${release}${shared_ext}$major'
16398 shlibpath_var=LD_LIBRARY_PATH
16399 shlibpath_overrides_runpath=no
16400 hardcode_into_libs=yes
16401 dynamic_linker='GNU ld.so'
16404 netbsd*)
16405 version_type=sunos
16406 need_lib_prefix=no
16407 need_version=no
16408 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16411 dynamic_linker='NetBSD (a.out) ld.so'
16412 else
16413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16414 soname_spec='${libname}${release}${shared_ext}$major'
16415 dynamic_linker='NetBSD ld.elf_so'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 shlibpath_overrides_runpath=yes
16419 hardcode_into_libs=yes
16422 newsos6)
16423 version_type=linux
16424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16425 shlibpath_var=LD_LIBRARY_PATH
16426 shlibpath_overrides_runpath=yes
16429 nto-qnx*)
16430 version_type=linux
16431 need_lib_prefix=no
16432 need_version=no
16433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16434 soname_spec='${libname}${release}${shared_ext}$major'
16435 shlibpath_var=LD_LIBRARY_PATH
16436 shlibpath_overrides_runpath=yes
16439 openbsd*)
16440 version_type=sunos
16441 sys_lib_dlsearch_path_spec="/usr/lib"
16442 need_lib_prefix=no
16443 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16444 case $host_os in
16445 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16446 *) need_version=no ;;
16447 esac
16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16450 shlibpath_var=LD_LIBRARY_PATH
16451 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16452 case $host_os in
16453 openbsd2.[89] | openbsd2.[89].*)
16454 shlibpath_overrides_runpath=no
16457 shlibpath_overrides_runpath=yes
16459 esac
16460 else
16461 shlibpath_overrides_runpath=yes
16465 os2*)
16466 libname_spec='$name'
16467 shrext_cmds=".dll"
16468 need_lib_prefix=no
16469 library_names_spec='$libname${shared_ext} $libname.a'
16470 dynamic_linker='OS/2 ld.exe'
16471 shlibpath_var=LIBPATH
16474 osf3* | osf4* | osf5*)
16475 version_type=osf
16476 need_lib_prefix=no
16477 need_version=no
16478 soname_spec='${libname}${release}${shared_ext}$major'
16479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16480 shlibpath_var=LD_LIBRARY_PATH
16481 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16482 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16485 solaris*)
16486 version_type=linux
16487 need_lib_prefix=no
16488 need_version=no
16489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16490 soname_spec='${libname}${release}${shared_ext}$major'
16491 shlibpath_var=LD_LIBRARY_PATH
16492 shlibpath_overrides_runpath=yes
16493 hardcode_into_libs=yes
16494 # ldd complains unless libraries are executable
16495 postinstall_cmds='chmod +x $lib'
16498 sunos4*)
16499 version_type=sunos
16500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16501 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16502 shlibpath_var=LD_LIBRARY_PATH
16503 shlibpath_overrides_runpath=yes
16504 if test "$with_gnu_ld" = yes; then
16505 need_lib_prefix=no
16507 need_version=yes
16510 sysv4 | sysv4.3*)
16511 version_type=linux
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
16515 case $host_vendor in
16516 sni)
16517 shlibpath_overrides_runpath=no
16518 need_lib_prefix=no
16519 export_dynamic_flag_spec='${wl}-Blargedynsym'
16520 runpath_var=LD_RUN_PATH
16522 siemens)
16523 need_lib_prefix=no
16525 motorola)
16526 need_lib_prefix=no
16527 need_version=no
16528 shlibpath_overrides_runpath=no
16529 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16531 esac
16534 sysv4*MP*)
16535 if test -d /usr/nec ;then
16536 version_type=linux
16537 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16538 soname_spec='$libname${shared_ext}.$major'
16539 shlibpath_var=LD_LIBRARY_PATH
16543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16544 version_type=freebsd-elf
16545 need_lib_prefix=no
16546 need_version=no
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16548 soname_spec='${libname}${release}${shared_ext}$major'
16549 shlibpath_var=LD_LIBRARY_PATH
16550 hardcode_into_libs=yes
16551 if test "$with_gnu_ld" = yes; then
16552 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16553 shlibpath_overrides_runpath=no
16554 else
16555 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16556 shlibpath_overrides_runpath=yes
16557 case $host_os in
16558 sco3.2v5*)
16559 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16561 esac
16563 sys_lib_dlsearch_path_spec='/usr/lib'
16566 uts4*)
16567 version_type=linux
16568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16569 soname_spec='${libname}${release}${shared_ext}$major'
16570 shlibpath_var=LD_LIBRARY_PATH
16574 dynamic_linker=no
16576 esac
16577 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16578 echo "${ECHO_T}$dynamic_linker" >&6; }
16579 test "$dynamic_linker" = no && can_build_shared=no
16581 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16582 if test "$GCC" = yes; then
16583 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16586 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16587 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16588 hardcode_action=
16589 if test -n "$hardcode_libdir_flag_spec" || \
16590 test -n "$runpath_var" || \
16591 test "X$hardcode_automatic" = "Xyes" ; then
16593 # We can hardcode non-existant directories.
16594 if test "$hardcode_direct" != no &&
16595 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16596 # have to relink, otherwise we might link with an installed library
16597 # when we should be linking with a yet-to-be-installed one
16598 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16599 test "$hardcode_minus_L" != no; then
16600 # Linking always hardcodes the temporary library directory.
16601 hardcode_action=relink
16602 else
16603 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16604 hardcode_action=immediate
16606 else
16607 # We cannot hardcode anything, or else we can only hardcode existing
16608 # directories.
16609 hardcode_action=unsupported
16611 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16612 echo "${ECHO_T}$hardcode_action" >&6; }
16614 if test "$hardcode_action" = relink; then
16615 # Fast installation is not supported
16616 enable_fast_install=no
16617 elif test "$shlibpath_overrides_runpath" = yes ||
16618 test "$enable_shared" = no; then
16619 # Fast installation is not necessary
16620 enable_fast_install=needless
16623 striplib=
16624 old_striplib=
16625 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16626 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16627 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16628 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16629 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16630 { echo "$as_me:$LINENO: result: yes" >&5
16631 echo "${ECHO_T}yes" >&6; }
16632 else
16633 # FIXME - insert some real tests, host_os isn't really good enough
16634 case $host_os in
16635 darwin*)
16636 if test -n "$STRIP" ; then
16637 striplib="$STRIP -x"
16638 { echo "$as_me:$LINENO: result: yes" >&5
16639 echo "${ECHO_T}yes" >&6; }
16640 else
16641 { echo "$as_me:$LINENO: result: no" >&5
16642 echo "${ECHO_T}no" >&6; }
16646 { echo "$as_me:$LINENO: result: no" >&5
16647 echo "${ECHO_T}no" >&6; }
16649 esac
16652 if test "x$enable_dlopen" != xyes; then
16653 enable_dlopen=unknown
16654 enable_dlopen_self=unknown
16655 enable_dlopen_self_static=unknown
16656 else
16657 lt_cv_dlopen=no
16658 lt_cv_dlopen_libs=
16660 case $host_os in
16661 beos*)
16662 lt_cv_dlopen="load_add_on"
16663 lt_cv_dlopen_libs=
16664 lt_cv_dlopen_self=yes
16667 mingw* | pw32*)
16668 lt_cv_dlopen="LoadLibrary"
16669 lt_cv_dlopen_libs=
16672 cygwin*)
16673 lt_cv_dlopen="dlopen"
16674 lt_cv_dlopen_libs=
16677 darwin*)
16678 # if libdl is installed we need to link against it
16679 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16680 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16681 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16683 else
16684 ac_check_lib_save_LIBS=$LIBS
16685 LIBS="-ldl $LIBS"
16686 cat >conftest.$ac_ext <<_ACEOF
16687 /* confdefs.h. */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16693 /* Override any GCC internal prototype to avoid an error.
16694 Use char because int might match the return type of a GCC
16695 builtin and then its argument prototype would still apply. */
16696 #ifdef __cplusplus
16697 extern "C"
16698 #endif
16699 char dlopen ();
16701 main ()
16703 return dlopen ();
16705 return 0;
16707 _ACEOF
16708 rm -f conftest.$ac_objext conftest$ac_exeext
16709 if { (ac_try="$ac_link"
16710 case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16713 esac
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_link") 2>conftest.er1
16716 ac_status=$?
16717 grep -v '^ *+' conftest.er1 >conftest.err
16718 rm -f conftest.er1
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } &&
16722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16723 { (case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16726 esac
16727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728 (eval "$ac_try") 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; } &&
16732 { ac_try='test -s conftest$ac_exeext'
16733 { (case "(($ac_try" in
16734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735 *) ac_try_echo=$ac_try;;
16736 esac
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738 (eval "$ac_try") 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 ac_cv_lib_dl_dlopen=yes
16743 else
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16747 ac_cv_lib_dl_dlopen=no
16750 rm -f core conftest.err conftest.$ac_objext \
16751 conftest$ac_exeext conftest.$ac_ext
16752 LIBS=$ac_check_lib_save_LIBS
16754 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16755 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16756 if test $ac_cv_lib_dl_dlopen = yes; then
16757 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16758 else
16760 lt_cv_dlopen="dyld"
16761 lt_cv_dlopen_libs=
16762 lt_cv_dlopen_self=yes
16769 { echo "$as_me:$LINENO: checking for shl_load" >&5
16770 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16771 if test "${ac_cv_func_shl_load+set}" = set; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16773 else
16774 cat >conftest.$ac_ext <<_ACEOF
16775 /* confdefs.h. */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16782 #define shl_load innocuous_shl_load
16784 /* System header to define __stub macros and hopefully few prototypes,
16785 which can conflict with char shl_load (); below.
16786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16787 <limits.h> exists even on freestanding compilers. */
16789 #ifdef __STDC__
16790 # include <limits.h>
16791 #else
16792 # include <assert.h>
16793 #endif
16795 #undef shl_load
16797 /* Override any GCC internal prototype to avoid an error.
16798 Use char because int might match the return type of a GCC
16799 builtin and then its argument prototype would still apply. */
16800 #ifdef __cplusplus
16801 extern "C"
16802 #endif
16803 char shl_load ();
16804 /* The GNU C library defines this for functions which it implements
16805 to always fail with ENOSYS. Some functions are actually named
16806 something starting with __ and the normal name is an alias. */
16807 #if defined __stub_shl_load || defined __stub___shl_load
16808 choke me
16809 #endif
16812 main ()
16814 return shl_load ();
16816 return 0;
16818 _ACEOF
16819 rm -f conftest.$ac_objext conftest$ac_exeext
16820 if { (ac_try="$ac_link"
16821 case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824 esac
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_link") 2>conftest.er1
16827 ac_status=$?
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } &&
16833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16837 esac
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest$ac_exeext'
16844 { (case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16847 esac
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_try") 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853 ac_cv_func_shl_load=yes
16854 else
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16858 ac_cv_func_shl_load=no
16861 rm -f core conftest.err conftest.$ac_objext \
16862 conftest$ac_exeext conftest.$ac_ext
16864 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16865 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16866 if test $ac_cv_func_shl_load = yes; then
16867 lt_cv_dlopen="shl_load"
16868 else
16869 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16870 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16871 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16872 echo $ECHO_N "(cached) $ECHO_C" >&6
16873 else
16874 ac_check_lib_save_LIBS=$LIBS
16875 LIBS="-ldld $LIBS"
16876 cat >conftest.$ac_ext <<_ACEOF
16877 /* confdefs.h. */
16878 _ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16883 /* Override any GCC internal prototype to avoid an error.
16884 Use char because int might match the return type of a GCC
16885 builtin and then its argument prototype would still apply. */
16886 #ifdef __cplusplus
16887 extern "C"
16888 #endif
16889 char shl_load ();
16891 main ()
16893 return shl_load ();
16895 return 0;
16897 _ACEOF
16898 rm -f conftest.$ac_objext conftest$ac_exeext
16899 if { (ac_try="$ac_link"
16900 case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16903 esac
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_link") 2>conftest.er1
16906 ac_status=$?
16907 grep -v '^ *+' conftest.er1 >conftest.err
16908 rm -f conftest.er1
16909 cat conftest.err >&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } &&
16912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16913 { (case "(($ac_try" in
16914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915 *) ac_try_echo=$ac_try;;
16916 esac
16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918 (eval "$ac_try") 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; } &&
16922 { ac_try='test -s conftest$ac_exeext'
16923 { (case "(($ac_try" in
16924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16926 esac
16927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16928 (eval "$ac_try") 2>&5
16929 ac_status=$?
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_cv_lib_dld_shl_load=yes
16933 else
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_cv_lib_dld_shl_load=no
16940 rm -f core conftest.err conftest.$ac_objext \
16941 conftest$ac_exeext conftest.$ac_ext
16942 LIBS=$ac_check_lib_save_LIBS
16944 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16945 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16946 if test $ac_cv_lib_dld_shl_load = yes; then
16947 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16948 else
16949 { echo "$as_me:$LINENO: checking for dlopen" >&5
16950 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16951 if test "${ac_cv_func_dlopen+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 else
16954 cat >conftest.$ac_ext <<_ACEOF
16955 /* confdefs.h. */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16960 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16962 #define dlopen innocuous_dlopen
16964 /* System header to define __stub macros and hopefully few prototypes,
16965 which can conflict with char dlopen (); below.
16966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16967 <limits.h> exists even on freestanding compilers. */
16969 #ifdef __STDC__
16970 # include <limits.h>
16971 #else
16972 # include <assert.h>
16973 #endif
16975 #undef dlopen
16977 /* Override any GCC internal prototype to avoid an error.
16978 Use char because int might match the return type of a GCC
16979 builtin and then its argument prototype would still apply. */
16980 #ifdef __cplusplus
16981 extern "C"
16982 #endif
16983 char dlopen ();
16984 /* The GNU C library defines this for functions which it implements
16985 to always fail with ENOSYS. Some functions are actually named
16986 something starting with __ and the normal name is an alias. */
16987 #if defined __stub_dlopen || defined __stub___dlopen
16988 choke me
16989 #endif
16992 main ()
16994 return dlopen ();
16996 return 0;
16998 _ACEOF
16999 rm -f conftest.$ac_objext conftest$ac_exeext
17000 if { (ac_try="$ac_link"
17001 case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17004 esac
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_link") 2>conftest.er1
17007 ac_status=$?
17008 grep -v '^ *+' conftest.er1 >conftest.err
17009 rm -f conftest.er1
17010 cat conftest.err >&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } &&
17013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17014 { (case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17017 esac
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019 (eval "$ac_try") 2>&5
17020 ac_status=$?
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; } &&
17023 { ac_try='test -s conftest$ac_exeext'
17024 { (case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17027 esac
17028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029 (eval "$ac_try") 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 ac_cv_func_dlopen=yes
17034 else
17035 echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17038 ac_cv_func_dlopen=no
17041 rm -f core conftest.err conftest.$ac_objext \
17042 conftest$ac_exeext conftest.$ac_ext
17044 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17045 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17046 if test $ac_cv_func_dlopen = yes; then
17047 lt_cv_dlopen="dlopen"
17048 else
17049 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17050 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17051 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17053 else
17054 ac_check_lib_save_LIBS=$LIBS
17055 LIBS="-ldl $LIBS"
17056 cat >conftest.$ac_ext <<_ACEOF
17057 /* confdefs.h. */
17058 _ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h. */
17063 /* Override any GCC internal prototype to avoid an error.
17064 Use char because int might match the return type of a GCC
17065 builtin and then its argument prototype would still apply. */
17066 #ifdef __cplusplus
17067 extern "C"
17068 #endif
17069 char dlopen ();
17071 main ()
17073 return dlopen ();
17075 return 0;
17077 _ACEOF
17078 rm -f conftest.$ac_objext conftest$ac_exeext
17079 if { (ac_try="$ac_link"
17080 case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17083 esac
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_link") 2>conftest.er1
17086 ac_status=$?
17087 grep -v '^ *+' conftest.er1 >conftest.err
17088 rm -f conftest.er1
17089 cat conftest.err >&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } &&
17092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17093 { (case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17096 esac
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_try") 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; } &&
17102 { ac_try='test -s conftest$ac_exeext'
17103 { (case "(($ac_try" in
17104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105 *) ac_try_echo=$ac_try;;
17106 esac
17107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108 (eval "$ac_try") 2>&5
17109 ac_status=$?
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; }; then
17112 ac_cv_lib_dl_dlopen=yes
17113 else
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17117 ac_cv_lib_dl_dlopen=no
17120 rm -f core conftest.err conftest.$ac_objext \
17121 conftest$ac_exeext conftest.$ac_ext
17122 LIBS=$ac_check_lib_save_LIBS
17124 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17125 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17126 if test $ac_cv_lib_dl_dlopen = yes; then
17127 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17128 else
17129 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17130 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17131 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 else
17134 ac_check_lib_save_LIBS=$LIBS
17135 LIBS="-lsvld $LIBS"
17136 cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h. */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17143 /* Override any GCC internal prototype to avoid an error.
17144 Use char because int might match the return type of a GCC
17145 builtin and then its argument prototype would still apply. */
17146 #ifdef __cplusplus
17147 extern "C"
17148 #endif
17149 char dlopen ();
17151 main ()
17153 return dlopen ();
17155 return 0;
17157 _ACEOF
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (ac_try="$ac_link"
17160 case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163 esac
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
17166 ac_status=$?
17167 grep -v '^ *+' conftest.er1 >conftest.err
17168 rm -f conftest.er1
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17176 esac
17177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17179 ac_status=$?
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; } &&
17182 { ac_try='test -s conftest$ac_exeext'
17183 { (case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186 esac
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 ac_cv_lib_svld_dlopen=yes
17193 else
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17197 ac_cv_lib_svld_dlopen=no
17200 rm -f core conftest.err conftest.$ac_objext \
17201 conftest$ac_exeext conftest.$ac_ext
17202 LIBS=$ac_check_lib_save_LIBS
17204 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17205 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17206 if test $ac_cv_lib_svld_dlopen = yes; then
17207 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17208 else
17209 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17210 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17211 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17212 echo $ECHO_N "(cached) $ECHO_C" >&6
17213 else
17214 ac_check_lib_save_LIBS=$LIBS
17215 LIBS="-ldld $LIBS"
17216 cat >conftest.$ac_ext <<_ACEOF
17217 /* confdefs.h. */
17218 _ACEOF
17219 cat confdefs.h >>conftest.$ac_ext
17220 cat >>conftest.$ac_ext <<_ACEOF
17221 /* end confdefs.h. */
17223 /* Override any GCC internal prototype to avoid an error.
17224 Use char because int might match the return type of a GCC
17225 builtin and then its argument prototype would still apply. */
17226 #ifdef __cplusplus
17227 extern "C"
17228 #endif
17229 char dld_link ();
17231 main ()
17233 return dld_link ();
17235 return 0;
17237 _ACEOF
17238 rm -f conftest.$ac_objext conftest$ac_exeext
17239 if { (ac_try="$ac_link"
17240 case "(($ac_try" in
17241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242 *) ac_try_echo=$ac_try;;
17243 esac
17244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245 (eval "$ac_link") 2>conftest.er1
17246 ac_status=$?
17247 grep -v '^ *+' conftest.er1 >conftest.err
17248 rm -f conftest.er1
17249 cat conftest.err >&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } &&
17252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17253 { (case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17256 esac
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258 (eval "$ac_try") 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; } &&
17262 { ac_try='test -s conftest$ac_exeext'
17263 { (case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17266 esac
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_try") 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; }; then
17272 ac_cv_lib_dld_dld_link=yes
17273 else
17274 echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17277 ac_cv_lib_dld_dld_link=no
17280 rm -f core conftest.err conftest.$ac_objext \
17281 conftest$ac_exeext conftest.$ac_ext
17282 LIBS=$ac_check_lib_save_LIBS
17284 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17285 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17286 if test $ac_cv_lib_dld_dld_link = yes; then
17287 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17306 esac
17308 if test "x$lt_cv_dlopen" != xno; then
17309 enable_dlopen=yes
17310 else
17311 enable_dlopen=no
17314 case $lt_cv_dlopen in
17315 dlopen)
17316 save_CPPFLAGS="$CPPFLAGS"
17317 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17319 save_LDFLAGS="$LDFLAGS"
17320 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17322 save_LIBS="$LIBS"
17323 LIBS="$lt_cv_dlopen_libs $LIBS"
17325 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17326 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17327 if test "${lt_cv_dlopen_self+set}" = set; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17329 else
17330 if test "$cross_compiling" = yes; then :
17331 lt_cv_dlopen_self=cross
17332 else
17333 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17334 lt_status=$lt_dlunknown
17335 cat > conftest.$ac_ext <<EOF
17336 #line 17336 "configure"
17337 #include "confdefs.h"
17339 #if HAVE_DLFCN_H
17340 #include <dlfcn.h>
17341 #endif
17343 #include <stdio.h>
17345 #ifdef RTLD_GLOBAL
17346 # define LT_DLGLOBAL RTLD_GLOBAL
17347 #else
17348 # ifdef DL_GLOBAL
17349 # define LT_DLGLOBAL DL_GLOBAL
17350 # else
17351 # define LT_DLGLOBAL 0
17352 # endif
17353 #endif
17355 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17356 find out it does not work in some platform. */
17357 #ifndef LT_DLLAZY_OR_NOW
17358 # ifdef RTLD_LAZY
17359 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17360 # else
17361 # ifdef DL_LAZY
17362 # define LT_DLLAZY_OR_NOW DL_LAZY
17363 # else
17364 # ifdef RTLD_NOW
17365 # define LT_DLLAZY_OR_NOW RTLD_NOW
17366 # else
17367 # ifdef DL_NOW
17368 # define LT_DLLAZY_OR_NOW DL_NOW
17369 # else
17370 # define LT_DLLAZY_OR_NOW 0
17371 # endif
17372 # endif
17373 # endif
17374 # endif
17375 #endif
17377 #ifdef __cplusplus
17378 extern "C" void exit (int);
17379 #endif
17381 void fnord() { int i=42;}
17382 int main ()
17384 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17385 int status = $lt_dlunknown;
17387 if (self)
17389 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17390 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17391 /* dlclose (self); */
17393 else
17394 puts (dlerror ());
17396 exit (status);
17399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17400 (eval $ac_link) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17404 (./conftest; exit; ) >&5 2>/dev/null
17405 lt_status=$?
17406 case x$lt_status in
17407 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17408 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17409 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17410 esac
17411 else :
17412 # compilation failed
17413 lt_cv_dlopen_self=no
17416 rm -fr conftest*
17420 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17421 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17423 if test "x$lt_cv_dlopen_self" = xyes; then
17424 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17425 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17426 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17427 if test "${lt_cv_dlopen_self_static+set}" = set; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17429 else
17430 if test "$cross_compiling" = yes; then :
17431 lt_cv_dlopen_self_static=cross
17432 else
17433 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17434 lt_status=$lt_dlunknown
17435 cat > conftest.$ac_ext <<EOF
17436 #line 17436 "configure"
17437 #include "confdefs.h"
17439 #if HAVE_DLFCN_H
17440 #include <dlfcn.h>
17441 #endif
17443 #include <stdio.h>
17445 #ifdef RTLD_GLOBAL
17446 # define LT_DLGLOBAL RTLD_GLOBAL
17447 #else
17448 # ifdef DL_GLOBAL
17449 # define LT_DLGLOBAL DL_GLOBAL
17450 # else
17451 # define LT_DLGLOBAL 0
17452 # endif
17453 #endif
17455 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17456 find out it does not work in some platform. */
17457 #ifndef LT_DLLAZY_OR_NOW
17458 # ifdef RTLD_LAZY
17459 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17460 # else
17461 # ifdef DL_LAZY
17462 # define LT_DLLAZY_OR_NOW DL_LAZY
17463 # else
17464 # ifdef RTLD_NOW
17465 # define LT_DLLAZY_OR_NOW RTLD_NOW
17466 # else
17467 # ifdef DL_NOW
17468 # define LT_DLLAZY_OR_NOW DL_NOW
17469 # else
17470 # define LT_DLLAZY_OR_NOW 0
17471 # endif
17472 # endif
17473 # endif
17474 # endif
17475 #endif
17477 #ifdef __cplusplus
17478 extern "C" void exit (int);
17479 #endif
17481 void fnord() { int i=42;}
17482 int main ()
17484 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17485 int status = $lt_dlunknown;
17487 if (self)
17489 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17490 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17491 /* dlclose (self); */
17493 else
17494 puts (dlerror ());
17496 exit (status);
17499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17500 (eval $ac_link) 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17504 (./conftest; exit; ) >&5 2>/dev/null
17505 lt_status=$?
17506 case x$lt_status in
17507 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17508 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17509 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17510 esac
17511 else :
17512 # compilation failed
17513 lt_cv_dlopen_self_static=no
17516 rm -fr conftest*
17520 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17521 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17524 CPPFLAGS="$save_CPPFLAGS"
17525 LDFLAGS="$save_LDFLAGS"
17526 LIBS="$save_LIBS"
17528 esac
17530 case $lt_cv_dlopen_self in
17531 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17532 *) enable_dlopen_self=unknown ;;
17533 esac
17535 case $lt_cv_dlopen_self_static in
17536 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17537 *) enable_dlopen_self_static=unknown ;;
17538 esac
17542 # Report which library types will actually be built
17543 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17544 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17545 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17546 echo "${ECHO_T}$can_build_shared" >&6; }
17548 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17549 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17550 test "$can_build_shared" = "no" && enable_shared=no
17552 # On AIX, shared libraries and static libraries use the same namespace, and
17553 # are all built from PIC.
17554 case $host_os in
17555 aix3*)
17556 test "$enable_shared" = yes && enable_static=no
17557 if test -n "$RANLIB"; then
17558 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17559 postinstall_cmds='$RANLIB $lib'
17563 aix4* | aix5*)
17564 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17565 test "$enable_shared" = yes && enable_static=no
17568 esac
17569 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17570 echo "${ECHO_T}$enable_shared" >&6; }
17572 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17573 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17574 # Make sure either enable_shared or enable_static is yes.
17575 test "$enable_shared" = yes || enable_static=yes
17576 { echo "$as_me:$LINENO: result: $enable_static" >&5
17577 echo "${ECHO_T}$enable_static" >&6; }
17579 # The else clause should only fire when bootstrapping the
17580 # libtool distribution, otherwise you forgot to ship ltmain.sh
17581 # with your package, and you will get complaints that there are
17582 # no rules to generate ltmain.sh.
17583 if test -f "$ltmain"; then
17584 # See if we are running on zsh, and set the options which allow our commands through
17585 # without removal of \ escapes.
17586 if test -n "${ZSH_VERSION+set}" ; then
17587 setopt NO_GLOB_SUBST
17589 # Now quote all the things that may contain metacharacters while being
17590 # careful not to overquote the AC_SUBSTed values. We take copies of the
17591 # variables and quote the copies for generation of the libtool script.
17592 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17593 SED SHELL STRIP \
17594 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17595 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17596 deplibs_check_method reload_flag reload_cmds need_locks \
17597 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17598 lt_cv_sys_global_symbol_to_c_name_address \
17599 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17600 old_postinstall_cmds old_postuninstall_cmds \
17601 compiler \
17602 CC \
17603 LD \
17604 lt_prog_compiler_wl \
17605 lt_prog_compiler_pic \
17606 lt_prog_compiler_static \
17607 lt_prog_compiler_no_builtin_flag \
17608 export_dynamic_flag_spec \
17609 thread_safe_flag_spec \
17610 whole_archive_flag_spec \
17611 enable_shared_with_static_runtimes \
17612 old_archive_cmds \
17613 old_archive_from_new_cmds \
17614 predep_objects \
17615 postdep_objects \
17616 predeps \
17617 postdeps \
17618 compiler_lib_search_path \
17619 archive_cmds \
17620 archive_expsym_cmds \
17621 postinstall_cmds \
17622 postuninstall_cmds \
17623 old_archive_from_expsyms_cmds \
17624 allow_undefined_flag \
17625 no_undefined_flag \
17626 export_symbols_cmds \
17627 hardcode_libdir_flag_spec \
17628 hardcode_libdir_flag_spec_ld \
17629 hardcode_libdir_separator \
17630 hardcode_automatic \
17631 module_cmds \
17632 module_expsym_cmds \
17633 lt_cv_prog_compiler_c_o \
17634 exclude_expsyms \
17635 include_expsyms; do
17637 case $var in
17638 old_archive_cmds | \
17639 old_archive_from_new_cmds | \
17640 archive_cmds | \
17641 archive_expsym_cmds | \
17642 module_cmds | \
17643 module_expsym_cmds | \
17644 old_archive_from_expsyms_cmds | \
17645 export_symbols_cmds | \
17646 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17647 postinstall_cmds | postuninstall_cmds | \
17648 old_postinstall_cmds | old_postuninstall_cmds | \
17649 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17650 # Double-quote double-evaled strings.
17651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17654 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17656 esac
17657 done
17659 case $lt_echo in
17660 *'\$0 --fallback-echo"')
17661 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17663 esac
17665 cfgfile="${ofile}T"
17666 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17667 $rm -f "$cfgfile"
17668 { echo "$as_me:$LINENO: creating $ofile" >&5
17669 echo "$as_me: creating $ofile" >&6;}
17671 cat <<__EOF__ >> "$cfgfile"
17672 #! $SHELL
17674 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17675 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17676 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17678 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17679 # Free Software Foundation, Inc.
17681 # This file is part of GNU Libtool:
17682 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17684 # This program is free software; you can redistribute it and/or modify
17685 # it under the terms of the GNU General Public License as published by
17686 # the Free Software Foundation; either version 2 of the License, or
17687 # (at your option) any later version.
17689 # This program is distributed in the hope that it will be useful, but
17690 # WITHOUT ANY WARRANTY; without even the implied warranty of
17691 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17692 # General Public License for more details.
17694 # You should have received a copy of the GNU General Public License
17695 # along with this program; if not, write to the Free Software
17696 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17698 # As a special exception to the GNU General Public License, if you
17699 # distribute this file as part of a program that contains a
17700 # configuration script generated by Autoconf, you may include it under
17701 # the same distribution terms that you use for the rest of that program.
17703 # A sed program that does not truncate output.
17704 SED=$lt_SED
17706 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17707 Xsed="$SED -e 1s/^X//"
17709 # The HP-UX ksh and POSIX shell print the target directory to stdout
17710 # if CDPATH is set.
17711 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17713 # The names of the tagged configurations supported by this script.
17714 available_tags=
17716 # ### BEGIN LIBTOOL CONFIG
17718 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17720 # Shell to use when invoking shell scripts.
17721 SHELL=$lt_SHELL
17723 # Whether or not to build shared libraries.
17724 build_libtool_libs=$enable_shared
17726 # Whether or not to build static libraries.
17727 build_old_libs=$enable_static
17729 # Whether or not to add -lc for building shared libraries.
17730 build_libtool_need_lc=$archive_cmds_need_lc
17732 # Whether or not to disallow shared libs when runtime libs are static
17733 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17735 # Whether or not to optimize for fast installation.
17736 fast_install=$enable_fast_install
17738 # The host system.
17739 host_alias=$host_alias
17740 host=$host
17741 host_os=$host_os
17743 # The build system.
17744 build_alias=$build_alias
17745 build=$build
17746 build_os=$build_os
17748 # An echo program that does not interpret backslashes.
17749 echo=$lt_echo
17751 # The archiver.
17752 AR=$lt_AR
17753 AR_FLAGS=$lt_AR_FLAGS
17755 # A C compiler.
17756 LTCC=$lt_LTCC
17758 # LTCC compiler flags.
17759 LTCFLAGS=$lt_LTCFLAGS
17761 # A language-specific compiler.
17762 CC=$lt_compiler
17764 # Is the compiler the GNU C compiler?
17765 with_gcc=$GCC
17767 # An ERE matcher.
17768 EGREP=$lt_EGREP
17770 # The linker used to build libraries.
17771 LD=$lt_LD
17773 # Whether we need hard or soft links.
17774 LN_S=$lt_LN_S
17776 # A BSD-compatible nm program.
17777 NM=$lt_NM
17779 # A symbol stripping program
17780 STRIP=$lt_STRIP
17782 # Used to examine libraries when file_magic_cmd begins "file"
17783 MAGIC_CMD=$MAGIC_CMD
17785 # Used on cygwin: DLL creation program.
17786 DLLTOOL="$DLLTOOL"
17788 # Used on cygwin: object dumper.
17789 OBJDUMP="$OBJDUMP"
17791 # Used on cygwin: assembler.
17792 AS="$AS"
17794 # The name of the directory that contains temporary libtool files.
17795 objdir=$objdir
17797 # How to create reloadable object files.
17798 reload_flag=$lt_reload_flag
17799 reload_cmds=$lt_reload_cmds
17801 # How to pass a linker flag through the compiler.
17802 wl=$lt_lt_prog_compiler_wl
17804 # Object file suffix (normally "o").
17805 objext="$ac_objext"
17807 # Old archive suffix (normally "a").
17808 libext="$libext"
17810 # Shared library suffix (normally ".so").
17811 shrext_cmds='$shrext_cmds'
17813 # Executable file suffix (normally "").
17814 exeext="$exeext"
17816 # Additional compiler flags for building library objects.
17817 pic_flag=$lt_lt_prog_compiler_pic
17818 pic_mode=$pic_mode
17820 # What is the maximum length of a command?
17821 max_cmd_len=$lt_cv_sys_max_cmd_len
17823 # Does compiler simultaneously support -c and -o options?
17824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17826 # Must we lock files when doing compilation?
17827 need_locks=$lt_need_locks
17829 # Do we need the lib prefix for modules?
17830 need_lib_prefix=$need_lib_prefix
17832 # Do we need a version for libraries?
17833 need_version=$need_version
17835 # Whether dlopen is supported.
17836 dlopen_support=$enable_dlopen
17838 # Whether dlopen of programs is supported.
17839 dlopen_self=$enable_dlopen_self
17841 # Whether dlopen of statically linked programs is supported.
17842 dlopen_self_static=$enable_dlopen_self_static
17844 # Compiler flag to prevent dynamic linking.
17845 link_static_flag=$lt_lt_prog_compiler_static
17847 # Compiler flag to turn off builtin functions.
17848 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17850 # Compiler flag to allow reflexive dlopens.
17851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17853 # Compiler flag to generate shared objects directly from archives.
17854 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17856 # Compiler flag to generate thread-safe objects.
17857 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17859 # Library versioning type.
17860 version_type=$version_type
17862 # Format of library name prefix.
17863 libname_spec=$lt_libname_spec
17865 # List of archive names. First name is the real one, the rest are links.
17866 # The last name is the one that the linker finds with -lNAME.
17867 library_names_spec=$lt_library_names_spec
17869 # The coded name of the library, if different from the real name.
17870 soname_spec=$lt_soname_spec
17872 # Commands used to build and install an old-style archive.
17873 RANLIB=$lt_RANLIB
17874 old_archive_cmds=$lt_old_archive_cmds
17875 old_postinstall_cmds=$lt_old_postinstall_cmds
17876 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17878 # Create an old-style archive from a shared archive.
17879 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17881 # Create a temporary old-style archive to link instead of a shared archive.
17882 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17884 # Commands used to build and install a shared archive.
17885 archive_cmds=$lt_archive_cmds
17886 archive_expsym_cmds=$lt_archive_expsym_cmds
17887 postinstall_cmds=$lt_postinstall_cmds
17888 postuninstall_cmds=$lt_postuninstall_cmds
17890 # Commands used to build a loadable module (assumed same as above if empty)
17891 module_cmds=$lt_module_cmds
17892 module_expsym_cmds=$lt_module_expsym_cmds
17894 # Commands to strip libraries.
17895 old_striplib=$lt_old_striplib
17896 striplib=$lt_striplib
17898 # Dependencies to place before the objects being linked to create a
17899 # shared library.
17900 predep_objects=$lt_predep_objects
17902 # Dependencies to place after the objects being linked to create a
17903 # shared library.
17904 postdep_objects=$lt_postdep_objects
17906 # Dependencies to place before the objects being linked to create a
17907 # shared library.
17908 predeps=$lt_predeps
17910 # Dependencies to place after the objects being linked to create a
17911 # shared library.
17912 postdeps=$lt_postdeps
17914 # The library search path used internally by the compiler when linking
17915 # a shared library.
17916 compiler_lib_search_path=$lt_compiler_lib_search_path
17918 # Method to check whether dependent libraries are shared objects.
17919 deplibs_check_method=$lt_deplibs_check_method
17921 # Command to use when deplibs_check_method == file_magic.
17922 file_magic_cmd=$lt_file_magic_cmd
17924 # Flag that allows shared libraries with undefined symbols to be built.
17925 allow_undefined_flag=$lt_allow_undefined_flag
17927 # Flag that forces no undefined symbols.
17928 no_undefined_flag=$lt_no_undefined_flag
17930 # Commands used to finish a libtool library installation in a directory.
17931 finish_cmds=$lt_finish_cmds
17933 # Same as above, but a single script fragment to be evaled but not shown.
17934 finish_eval=$lt_finish_eval
17936 # Take the output of nm and produce a listing of raw symbols and C names.
17937 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17939 # Transform the output of nm in a proper C declaration
17940 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17942 # Transform the output of nm in a C name address pair
17943 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17945 # This is the shared library runtime path variable.
17946 runpath_var=$runpath_var
17948 # This is the shared library path variable.
17949 shlibpath_var=$shlibpath_var
17951 # Is shlibpath searched before the hard-coded library search path?
17952 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17954 # How to hardcode a shared library path into an executable.
17955 hardcode_action=$hardcode_action
17957 # Whether we should hardcode library paths into libraries.
17958 hardcode_into_libs=$hardcode_into_libs
17960 # Flag to hardcode \$libdir into a binary during linking.
17961 # This must work even if \$libdir does not exist.
17962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17964 # If ld is used when linking, flag to hardcode \$libdir into
17965 # a binary during linking. This must work even if \$libdir does
17966 # not exist.
17967 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17969 # Whether we need a single -rpath flag with a separated argument.
17970 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17972 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17973 # resulting binary.
17974 hardcode_direct=$hardcode_direct
17976 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17977 # resulting binary.
17978 hardcode_minus_L=$hardcode_minus_L
17980 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17981 # the resulting binary.
17982 hardcode_shlibpath_var=$hardcode_shlibpath_var
17984 # Set to yes if building a shared library automatically hardcodes DIR into the library
17985 # and all subsequent libraries and executables linked against it.
17986 hardcode_automatic=$hardcode_automatic
17988 # Variables whose values should be saved in libtool wrapper scripts and
17989 # restored at relink time.
17990 variables_saved_for_relink="$variables_saved_for_relink"
17992 # Whether libtool must link a program against all its dependency libraries.
17993 link_all_deplibs=$link_all_deplibs
17995 # Compile-time system search path for libraries
17996 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17998 # Run-time system search path for libraries
17999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18001 # Fix the shell variable \$srcfile for the compiler.
18002 fix_srcfile_path="$fix_srcfile_path"
18004 # Set to yes if exported symbols are required.
18005 always_export_symbols=$always_export_symbols
18007 # The commands to list exported symbols.
18008 export_symbols_cmds=$lt_export_symbols_cmds
18010 # The commands to extract the exported symbol list from a shared archive.
18011 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18013 # Symbols that should not be listed in the preloaded symbols.
18014 exclude_expsyms=$lt_exclude_expsyms
18016 # Symbols that must always be exported.
18017 include_expsyms=$lt_include_expsyms
18019 # ### END LIBTOOL CONFIG
18021 __EOF__
18024 case $host_os in
18025 aix3*)
18026 cat <<\EOF >> "$cfgfile"
18028 # AIX sometimes has problems with the GCC collect2 program. For some
18029 # reason, if we set the COLLECT_NAMES environment variable, the problems
18030 # vanish in a puff of smoke.
18031 if test "X${COLLECT_NAMES+set}" != Xset; then
18032 COLLECT_NAMES=
18033 export COLLECT_NAMES
18037 esac
18039 # We use sed instead of cat because bash on DJGPP gets confused if
18040 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18041 # text mode, it properly converts lines to CR/LF. This bash problem
18042 # is reportedly fixed, but why not run on old versions too?
18043 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18045 mv -f "$cfgfile" "$ofile" || \
18046 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18047 chmod +x "$ofile"
18049 else
18050 # If there is no Makefile yet, we rely on a make rule to execute
18051 # `config.status --recheck' to rerun these tests and create the
18052 # libtool script then.
18053 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18054 if test -f "$ltmain_in"; then
18055 test -f Makefile && make "$ltmain"
18060 ac_ext=c
18061 ac_cpp='$CPP $CPPFLAGS'
18062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18066 CC="$lt_save_CC"
18069 # Check whether --with-tags was given.
18070 if test "${with_tags+set}" = set; then
18071 withval=$with_tags; tagnames="$withval"
18075 if test -f "$ltmain" && test -n "$tagnames"; then
18076 if test ! -f "${ofile}"; then
18077 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18078 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18081 if test -z "$LTCC"; then
18082 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18083 if test -z "$LTCC"; then
18084 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18085 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18086 else
18087 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18088 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18091 if test -z "$LTCFLAGS"; then
18092 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18095 # Extract list of available tagged configurations in $ofile.
18096 # Note that this assumes the entire list is on one line.
18097 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18099 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18100 for tagname in $tagnames; do
18101 IFS="$lt_save_ifs"
18102 # Check whether tagname contains only valid characters
18103 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18104 "") ;;
18105 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18106 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18107 { (exit 1); exit 1; }; }
18109 esac
18111 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18112 then
18113 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18114 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18115 { (exit 1); exit 1; }; }
18118 # Update the list of available tags.
18119 if test -n "$tagname"; then
18120 echo appending configuration tag \"$tagname\" to $ofile
18122 case $tagname in
18123 CXX)
18124 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18125 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18126 (test "X$CXX" != "Xg++"))) ; then
18127 ac_ext=cpp
18128 ac_cpp='$CXXCPP $CPPFLAGS'
18129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18136 archive_cmds_need_lc_CXX=no
18137 allow_undefined_flag_CXX=
18138 always_export_symbols_CXX=no
18139 archive_expsym_cmds_CXX=
18140 export_dynamic_flag_spec_CXX=
18141 hardcode_direct_CXX=no
18142 hardcode_libdir_flag_spec_CXX=
18143 hardcode_libdir_flag_spec_ld_CXX=
18144 hardcode_libdir_separator_CXX=
18145 hardcode_minus_L_CXX=no
18146 hardcode_shlibpath_var_CXX=unsupported
18147 hardcode_automatic_CXX=no
18148 module_cmds_CXX=
18149 module_expsym_cmds_CXX=
18150 link_all_deplibs_CXX=unknown
18151 old_archive_cmds_CXX=$old_archive_cmds
18152 no_undefined_flag_CXX=
18153 whole_archive_flag_spec_CXX=
18154 enable_shared_with_static_runtimes_CXX=no
18156 # Dependencies to place before and after the object being linked:
18157 predep_objects_CXX=
18158 postdep_objects_CXX=
18159 predeps_CXX=
18160 postdeps_CXX=
18161 compiler_lib_search_path_CXX=
18163 # Source file extension for C++ test sources.
18164 ac_ext=cpp
18166 # Object file extension for compiled C++ test sources.
18167 objext=o
18168 objext_CXX=$objext
18170 # Code to be used in simple compile tests
18171 lt_simple_compile_test_code="int some_variable = 0;\n"
18173 # Code to be used in simple link tests
18174 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18176 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18178 # If no C compiler was specified, use CC.
18179 LTCC=${LTCC-"$CC"}
18181 # If no C compiler flags were specified, use CFLAGS.
18182 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18184 # Allow CC to be a program name with arguments.
18185 compiler=$CC
18188 # save warnings/boilerplate of simple test code
18189 ac_outfile=conftest.$ac_objext
18190 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18191 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18192 _lt_compiler_boilerplate=`cat conftest.err`
18193 $rm conftest*
18195 ac_outfile=conftest.$ac_objext
18196 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18197 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18198 _lt_linker_boilerplate=`cat conftest.err`
18199 $rm conftest*
18202 # Allow CC to be a program name with arguments.
18203 lt_save_CC=$CC
18204 lt_save_LD=$LD
18205 lt_save_GCC=$GCC
18206 GCC=$GXX
18207 lt_save_with_gnu_ld=$with_gnu_ld
18208 lt_save_path_LD=$lt_cv_path_LD
18209 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18210 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18211 else
18212 $as_unset lt_cv_prog_gnu_ld
18214 if test -n "${lt_cv_path_LDCXX+set}"; then
18215 lt_cv_path_LD=$lt_cv_path_LDCXX
18216 else
18217 $as_unset lt_cv_path_LD
18219 test -z "${LDCXX+set}" || LD=$LDCXX
18220 CC=${CXX-"c++"}
18221 compiler=$CC
18222 compiler_CXX=$CC
18223 for cc_temp in $compiler""; do
18224 case $cc_temp in
18225 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18226 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18227 \-*) ;;
18228 *) break;;
18229 esac
18230 done
18231 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18234 # We don't want -fno-exception wen compiling C++ code, so set the
18235 # no_builtin_flag separately
18236 if test "$GXX" = yes; then
18237 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18238 else
18239 lt_prog_compiler_no_builtin_flag_CXX=
18242 if test "$GXX" = yes; then
18243 # Set up default GNU C++ configuration
18246 # Check whether --with-gnu-ld was given.
18247 if test "${with_gnu_ld+set}" = set; then
18248 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18249 else
18250 with_gnu_ld=no
18253 ac_prog=ld
18254 if test "$GCC" = yes; then
18255 # Check if gcc -print-prog-name=ld gives a path.
18256 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18257 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18258 case $host in
18259 *-*-mingw*)
18260 # gcc leaves a trailing carriage return which upsets mingw
18261 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18263 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18264 esac
18265 case $ac_prog in
18266 # Accept absolute paths.
18267 [\\/]* | ?:[\\/]*)
18268 re_direlt='/[^/][^/]*/\.\./'
18269 # Canonicalize the pathname of ld
18270 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18271 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18272 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18273 done
18274 test -z "$LD" && LD="$ac_prog"
18277 # If it fails, then pretend we aren't using GCC.
18278 ac_prog=ld
18281 # If it is relative, then search for the first ld in PATH.
18282 with_gnu_ld=unknown
18284 esac
18285 elif test "$with_gnu_ld" = yes; then
18286 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18287 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18288 else
18289 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18290 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18292 if test "${lt_cv_path_LD+set}" = set; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18294 else
18295 if test -z "$LD"; then
18296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18297 for ac_dir in $PATH; do
18298 IFS="$lt_save_ifs"
18299 test -z "$ac_dir" && ac_dir=.
18300 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18301 lt_cv_path_LD="$ac_dir/$ac_prog"
18302 # Check to see if the program is GNU ld. I'd rather use --version,
18303 # but apparently some variants of GNU ld only accept -v.
18304 # Break only if it was the GNU/non-GNU ld that we prefer.
18305 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18306 *GNU* | *'with BFD'*)
18307 test "$with_gnu_ld" != no && break
18310 test "$with_gnu_ld" != yes && break
18312 esac
18314 done
18315 IFS="$lt_save_ifs"
18316 else
18317 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18321 LD="$lt_cv_path_LD"
18322 if test -n "$LD"; then
18323 { echo "$as_me:$LINENO: result: $LD" >&5
18324 echo "${ECHO_T}$LD" >&6; }
18325 else
18326 { echo "$as_me:$LINENO: result: no" >&5
18327 echo "${ECHO_T}no" >&6; }
18329 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18330 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18331 { (exit 1); exit 1; }; }
18332 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18333 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18334 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18335 echo $ECHO_N "(cached) $ECHO_C" >&6
18336 else
18337 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18338 case `$LD -v 2>&1 </dev/null` in
18339 *GNU* | *'with BFD'*)
18340 lt_cv_prog_gnu_ld=yes
18343 lt_cv_prog_gnu_ld=no
18345 esac
18347 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18348 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18349 with_gnu_ld=$lt_cv_prog_gnu_ld
18353 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18354 # archiving commands below assume that GNU ld is being used.
18355 if test "$with_gnu_ld" = yes; then
18356 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18357 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'
18359 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18360 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18362 # If archive_cmds runs LD, not CC, wlarc should be empty
18363 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18364 # investigate it a little bit more. (MM)
18365 wlarc='${wl}'
18367 # ancient GNU ld didn't support --whole-archive et. al.
18368 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18369 grep 'no-whole-archive' > /dev/null; then
18370 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18371 else
18372 whole_archive_flag_spec_CXX=
18374 else
18375 with_gnu_ld=no
18376 wlarc=
18378 # A generic and very simple default shared library creation
18379 # command for GNU C++ for the case where it uses the native
18380 # linker, instead of GNU ld. If possible, this setting should
18381 # overridden to take advantage of the native linker features on
18382 # the platform it is being used on.
18383 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18386 # Commands to make compiler produce verbose output that lists
18387 # what "hidden" libraries, object files and flags are used when
18388 # linking a shared library.
18389 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18391 else
18392 GXX=no
18393 with_gnu_ld=no
18394 wlarc=
18397 # PORTME: fill in a description of your system's C++ link characteristics
18398 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18399 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18400 ld_shlibs_CXX=yes
18401 case $host_os in
18402 aix3*)
18403 # FIXME: insert proper C++ library support
18404 ld_shlibs_CXX=no
18406 aix4* | aix5*)
18407 if test "$host_cpu" = ia64; then
18408 # On IA64, the linker does run time linking by default, so we don't
18409 # have to do anything special.
18410 aix_use_runtimelinking=no
18411 exp_sym_flag='-Bexport'
18412 no_entry_flag=""
18413 else
18414 aix_use_runtimelinking=no
18416 # Test if we are trying to use run time linking or normal
18417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18418 # need to do runtime linking.
18419 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18420 for ld_flag in $LDFLAGS; do
18421 case $ld_flag in
18422 *-brtl*)
18423 aix_use_runtimelinking=yes
18424 break
18426 esac
18427 done
18429 esac
18431 exp_sym_flag='-bexport'
18432 no_entry_flag='-bnoentry'
18435 # When large executables or shared objects are built, AIX ld can
18436 # have problems creating the table of contents. If linking a library
18437 # or program results in "error TOC overflow" add -mminimal-toc to
18438 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18439 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18441 archive_cmds_CXX=''
18442 hardcode_direct_CXX=yes
18443 hardcode_libdir_separator_CXX=':'
18444 link_all_deplibs_CXX=yes
18446 if test "$GXX" = yes; then
18447 case $host_os in aix4.[012]|aix4.[012].*)
18448 # We only want to do this on AIX 4.2 and lower, the check
18449 # below for broken collect2 doesn't work under 4.3+
18450 collect2name=`${CC} -print-prog-name=collect2`
18451 if test -f "$collect2name" && \
18452 strings "$collect2name" | grep resolve_lib_name >/dev/null
18453 then
18454 # We have reworked collect2
18455 hardcode_direct_CXX=yes
18456 else
18457 # We have old collect2
18458 hardcode_direct_CXX=unsupported
18459 # It fails to find uninstalled libraries when the uninstalled
18460 # path is not listed in the libpath. Setting hardcode_minus_L
18461 # to unsupported forces relinking
18462 hardcode_minus_L_CXX=yes
18463 hardcode_libdir_flag_spec_CXX='-L$libdir'
18464 hardcode_libdir_separator_CXX=
18467 esac
18468 shared_flag='-shared'
18469 if test "$aix_use_runtimelinking" = yes; then
18470 shared_flag="$shared_flag "'${wl}-G'
18472 else
18473 # not using gcc
18474 if test "$host_cpu" = ia64; then
18475 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18476 # chokes on -Wl,-G. The following line is correct:
18477 shared_flag='-G'
18478 else
18479 if test "$aix_use_runtimelinking" = yes; then
18480 shared_flag='${wl}-G'
18481 else
18482 shared_flag='${wl}-bM:SRE'
18487 # It seems that -bexpall does not export symbols beginning with
18488 # underscore (_), so it is better to generate a list of symbols to export.
18489 always_export_symbols_CXX=yes
18490 if test "$aix_use_runtimelinking" = yes; then
18491 # Warning - without using the other runtime loading flags (-brtl),
18492 # -berok will link without error, but may produce a broken library.
18493 allow_undefined_flag_CXX='-berok'
18494 # Determine the default libpath from the value encoded in an empty executable.
18495 cat >conftest.$ac_ext <<_ACEOF
18496 /* confdefs.h. */
18497 _ACEOF
18498 cat confdefs.h >>conftest.$ac_ext
18499 cat >>conftest.$ac_ext <<_ACEOF
18500 /* end confdefs.h. */
18503 main ()
18507 return 0;
18509 _ACEOF
18510 rm -f conftest.$ac_objext conftest$ac_exeext
18511 if { (ac_try="$ac_link"
18512 case "(($ac_try" in
18513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514 *) ac_try_echo=$ac_try;;
18515 esac
18516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18517 (eval "$ac_link") 2>conftest.er1
18518 ac_status=$?
18519 grep -v '^ *+' conftest.er1 >conftest.err
18520 rm -f conftest.er1
18521 cat conftest.err >&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } &&
18524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18525 { (case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18528 esac
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_try") 2>&5
18531 ac_status=$?
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; } &&
18534 { ac_try='test -s conftest$ac_exeext'
18535 { (case "(($ac_try" in
18536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537 *) ac_try_echo=$ac_try;;
18538 esac
18539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540 (eval "$ac_try") 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; }; then
18545 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18547 # Check for a 64-bit object if we didn't find anything.
18548 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; }
18549 }'`; fi
18550 else
18551 echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18557 rm -f core conftest.err conftest.$ac_objext \
18558 conftest$ac_exeext conftest.$ac_ext
18559 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18561 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18563 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"
18564 else
18565 if test "$host_cpu" = ia64; then
18566 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18567 allow_undefined_flag_CXX="-z nodefs"
18568 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"
18569 else
18570 # Determine the default libpath from the value encoded in an empty executable.
18571 cat >conftest.$ac_ext <<_ACEOF
18572 /* confdefs.h. */
18573 _ACEOF
18574 cat confdefs.h >>conftest.$ac_ext
18575 cat >>conftest.$ac_ext <<_ACEOF
18576 /* end confdefs.h. */
18579 main ()
18583 return 0;
18585 _ACEOF
18586 rm -f conftest.$ac_objext conftest$ac_exeext
18587 if { (ac_try="$ac_link"
18588 case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18591 esac
18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_link") 2>conftest.er1
18594 ac_status=$?
18595 grep -v '^ *+' conftest.er1 >conftest.err
18596 rm -f conftest.er1
18597 cat conftest.err >&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); } &&
18600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18601 { (case "(($ac_try" in
18602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603 *) ac_try_echo=$ac_try;;
18604 esac
18605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606 (eval "$ac_try") 2>&5
18607 ac_status=$?
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; } &&
18610 { ac_try='test -s conftest$ac_exeext'
18611 { (case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18614 esac
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_try") 2>&5
18617 ac_status=$?
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; }; then
18621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18623 # Check for a 64-bit object if we didn't find anything.
18624 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; }
18625 }'`; fi
18626 else
18627 echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18633 rm -f core conftest.err conftest.$ac_objext \
18634 conftest$ac_exeext conftest.$ac_ext
18635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18637 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18638 # Warning - without using the other run time loading flags,
18639 # -berok will link without error, but may produce a broken library.
18640 no_undefined_flag_CXX=' ${wl}-bernotok'
18641 allow_undefined_flag_CXX=' ${wl}-berok'
18642 # Exported symbols can be pulled into shared objects from archives
18643 whole_archive_flag_spec_CXX='$convenience'
18644 archive_cmds_need_lc_CXX=yes
18645 # This is similar to how AIX traditionally builds its shared libraries.
18646 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'
18651 beos*)
18652 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18653 allow_undefined_flag_CXX=unsupported
18654 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18655 # support --undefined. This deserves some investigation. FIXME
18656 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18657 else
18658 ld_shlibs_CXX=no
18662 chorus*)
18663 case $cc_basename in
18665 # FIXME: insert proper C++ library support
18666 ld_shlibs_CXX=no
18668 esac
18671 cygwin* | mingw* | pw32*)
18672 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18673 # as there is no search path for DLLs.
18674 hardcode_libdir_flag_spec_CXX='-L$libdir'
18675 allow_undefined_flag_CXX=unsupported
18676 always_export_symbols_CXX=no
18677 enable_shared_with_static_runtimes_CXX=yes
18679 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18680 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'
18681 # If the export-symbols file already is a .def file (1st line
18682 # is EXPORTS), use it as is; otherwise, prepend...
18683 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18684 cp $export_symbols $output_objdir/$soname.def;
18685 else
18686 echo EXPORTS > $output_objdir/$soname.def;
18687 cat $export_symbols >> $output_objdir/$soname.def;
18689 $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'
18690 else
18691 ld_shlibs_CXX=no
18694 darwin* | rhapsody*)
18695 case $host_os in
18696 rhapsody* | darwin1.[012])
18697 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18699 *) # Darwin 1.3 on
18700 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18701 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18702 else
18703 case ${MACOSX_DEPLOYMENT_TARGET} in
18704 10.[012])
18705 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18707 10.*)
18708 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18710 esac
18713 esac
18714 archive_cmds_need_lc_CXX=no
18715 hardcode_direct_CXX=no
18716 hardcode_automatic_CXX=yes
18717 hardcode_shlibpath_var_CXX=unsupported
18718 whole_archive_flag_spec_CXX=''
18719 link_all_deplibs_CXX=yes
18721 if test "$GXX" = yes ; then
18722 lt_int_apple_cc_single_mod=no
18723 output_verbose_link_cmd='echo'
18724 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18725 lt_int_apple_cc_single_mod=yes
18727 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18728 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18729 else
18730 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'
18732 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18733 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18734 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18735 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}'
18736 else
18737 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}'
18739 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}'
18740 else
18741 case $cc_basename in
18742 xlc*)
18743 output_verbose_link_cmd='echo'
18744 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'
18745 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18746 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18747 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}'
18748 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}'
18751 ld_shlibs_CXX=no
18753 esac
18757 dgux*)
18758 case $cc_basename in
18759 ec++*)
18760 # FIXME: insert proper C++ library support
18761 ld_shlibs_CXX=no
18763 ghcx*)
18764 # Green Hills C++ Compiler
18765 # FIXME: insert proper C++ library support
18766 ld_shlibs_CXX=no
18769 # FIXME: insert proper C++ library support
18770 ld_shlibs_CXX=no
18772 esac
18774 freebsd[12]*)
18775 # C++ shared libraries reported to be fairly broken before switch to ELF
18776 ld_shlibs_CXX=no
18778 freebsd-elf*)
18779 archive_cmds_need_lc_CXX=no
18781 freebsd* | kfreebsd*-gnu | dragonfly*)
18782 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18783 # conventions
18784 ld_shlibs_CXX=yes
18786 gnu*)
18788 hpux9*)
18789 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18790 hardcode_libdir_separator_CXX=:
18791 export_dynamic_flag_spec_CXX='${wl}-E'
18792 hardcode_direct_CXX=yes
18793 hardcode_minus_L_CXX=yes # Not in the search PATH,
18794 # but as the default
18795 # location of the library.
18797 case $cc_basename in
18798 CC*)
18799 # FIXME: insert proper C++ library support
18800 ld_shlibs_CXX=no
18802 aCC*)
18803 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'
18804 # Commands to make compiler produce verbose output that lists
18805 # what "hidden" libraries, object files and flags are used when
18806 # linking a shared library.
18808 # There doesn't appear to be a way to prevent this compiler from
18809 # explicitly linking system object files so we need to strip them
18810 # from the output so that they don't get included in the library
18811 # dependencies.
18812 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'
18815 if test "$GXX" = yes; then
18816 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'
18817 else
18818 # FIXME: insert proper C++ library support
18819 ld_shlibs_CXX=no
18822 esac
18824 hpux10*|hpux11*)
18825 if test $with_gnu_ld = no; then
18826 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18827 hardcode_libdir_separator_CXX=:
18829 case $host_cpu in
18830 hppa*64*|ia64*)
18831 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18834 export_dynamic_flag_spec_CXX='${wl}-E'
18836 esac
18838 case $host_cpu in
18839 hppa*64*|ia64*)
18840 hardcode_direct_CXX=no
18841 hardcode_shlibpath_var_CXX=no
18844 hardcode_direct_CXX=yes
18845 hardcode_minus_L_CXX=yes # Not in the search PATH,
18846 # but as the default
18847 # location of the library.
18849 esac
18851 case $cc_basename in
18852 CC*)
18853 # FIXME: insert proper C++ library support
18854 ld_shlibs_CXX=no
18856 aCC*)
18857 case $host_cpu in
18858 hppa*64*)
18859 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18861 ia64*)
18862 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18865 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18867 esac
18868 # Commands to make compiler produce verbose output that lists
18869 # what "hidden" libraries, object files and flags are used when
18870 # linking a shared library.
18872 # There doesn't appear to be a way to prevent this compiler from
18873 # explicitly linking system object files so we need to strip them
18874 # from the output so that they don't get included in the library
18875 # dependencies.
18876 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'
18879 if test "$GXX" = yes; then
18880 if test $with_gnu_ld = no; then
18881 case $host_cpu in
18882 hppa*64*)
18883 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18885 ia64*)
18886 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18889 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'
18891 esac
18893 else
18894 # FIXME: insert proper C++ library support
18895 ld_shlibs_CXX=no
18898 esac
18900 interix3*)
18901 hardcode_direct_CXX=no
18902 hardcode_shlibpath_var_CXX=no
18903 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18904 export_dynamic_flag_spec_CXX='${wl}-E'
18905 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18906 # Instead, shared libraries are loaded at an image base (0x10000000 by
18907 # default) and relocated if they conflict, which is a slow very memory
18908 # consuming and fragmenting process. To avoid this, we pick a random,
18909 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18910 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18911 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'
18912 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'
18914 irix5* | irix6*)
18915 case $cc_basename in
18916 CC*)
18917 # SGI C++
18918 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'
18920 # Archives containing C++ object files must be created using
18921 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18922 # necessary to make sure instantiated templates are included
18923 # in the archive.
18924 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18927 if test "$GXX" = yes; then
18928 if test "$with_gnu_ld" = no; then
18929 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'
18930 else
18931 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'
18934 link_all_deplibs_CXX=yes
18936 esac
18937 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18938 hardcode_libdir_separator_CXX=:
18940 linux*)
18941 case $cc_basename in
18942 KCC*)
18943 # Kuck and Associates, Inc. (KAI) C++ Compiler
18945 # KCC will only create a shared library if the output file
18946 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18947 # to its proper name (with version) after linking.
18948 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'
18949 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'
18950 # Commands to make compiler produce verbose output that lists
18951 # what "hidden" libraries, object files and flags are used when
18952 # linking a shared library.
18954 # There doesn't appear to be a way to prevent this compiler from
18955 # explicitly linking system object files so we need to strip them
18956 # from the output so that they don't get included in the library
18957 # dependencies.
18958 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'
18960 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18961 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18963 # Archives containing C++ object files must be created using
18964 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18965 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18967 icpc*)
18968 # Intel C++
18969 with_gnu_ld=yes
18970 # version 8.0 and above of icpc choke on multiply defined symbols
18971 # if we add $predep_objects and $postdep_objects, however 7.1 and
18972 # earlier do not add the objects themselves.
18973 case `$CC -V 2>&1` in
18974 *"Version 7."*)
18975 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18976 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'
18978 *) # Version 8.0 or newer
18979 tmp_idyn=
18980 case $host_cpu in
18981 ia64*) tmp_idyn=' -i_dynamic';;
18982 esac
18983 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18984 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'
18986 esac
18987 archive_cmds_need_lc_CXX=no
18988 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18989 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18990 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18992 pgCC*)
18993 # Portland Group C++ compiler
18994 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18995 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'
18997 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18998 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18999 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'
19001 cxx*)
19002 # Compaq C++
19003 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19004 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'
19006 runpath_var=LD_RUN_PATH
19007 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19008 hardcode_libdir_separator_CXX=:
19010 # Commands to make compiler produce verbose output that lists
19011 # what "hidden" libraries, object files and flags are used when
19012 # linking a shared library.
19014 # There doesn't appear to be a way to prevent this compiler from
19015 # explicitly linking system object files so we need to strip them
19016 # from the output so that they don't get included in the library
19017 # dependencies.
19018 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'
19020 esac
19022 lynxos*)
19023 # FIXME: insert proper C++ library support
19024 ld_shlibs_CXX=no
19026 m88k*)
19027 # FIXME: insert proper C++ library support
19028 ld_shlibs_CXX=no
19030 mvs*)
19031 case $cc_basename in
19032 cxx*)
19033 # FIXME: insert proper C++ library support
19034 ld_shlibs_CXX=no
19037 # FIXME: insert proper C++ library support
19038 ld_shlibs_CXX=no
19040 esac
19042 netbsd*)
19043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19044 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19045 wlarc=
19046 hardcode_libdir_flag_spec_CXX='-R$libdir'
19047 hardcode_direct_CXX=yes
19048 hardcode_shlibpath_var_CXX=no
19050 # Workaround some broken pre-1.5 toolchains
19051 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19053 openbsd2*)
19054 # C++ shared libraries are fairly broken
19055 ld_shlibs_CXX=no
19057 openbsd*)
19058 hardcode_direct_CXX=yes
19059 hardcode_shlibpath_var_CXX=no
19060 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19061 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19062 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19063 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19064 export_dynamic_flag_spec_CXX='${wl}-E'
19065 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19067 output_verbose_link_cmd='echo'
19069 osf3*)
19070 case $cc_basename in
19071 KCC*)
19072 # Kuck and Associates, Inc. (KAI) C++ Compiler
19074 # KCC will only create a shared library if the output file
19075 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19076 # to its proper name (with version) after linking.
19077 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'
19079 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19080 hardcode_libdir_separator_CXX=:
19082 # Archives containing C++ object files must be created using
19083 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19084 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19087 RCC*)
19088 # Rational C++ 2.4.1
19089 # FIXME: insert proper C++ library support
19090 ld_shlibs_CXX=no
19092 cxx*)
19093 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19094 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'
19096 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19097 hardcode_libdir_separator_CXX=:
19099 # Commands to make compiler produce verbose output that lists
19100 # what "hidden" libraries, object files and flags are used when
19101 # linking a shared library.
19103 # There doesn't appear to be a way to prevent this compiler from
19104 # explicitly linking system object files so we need to strip them
19105 # from the output so that they don't get included in the library
19106 # dependencies.
19107 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'
19110 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19111 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19112 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'
19114 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19115 hardcode_libdir_separator_CXX=:
19117 # Commands to make compiler produce verbose output that lists
19118 # what "hidden" libraries, object files and flags are used when
19119 # linking a shared library.
19120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19122 else
19123 # FIXME: insert proper C++ library support
19124 ld_shlibs_CXX=no
19127 esac
19129 osf4* | osf5*)
19130 case $cc_basename in
19131 KCC*)
19132 # Kuck and Associates, Inc. (KAI) C++ Compiler
19134 # KCC will only create a shared library if the output file
19135 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19136 # to its proper name (with version) after linking.
19137 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'
19139 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19140 hardcode_libdir_separator_CXX=:
19142 # Archives containing C++ object files must be created using
19143 # the KAI C++ compiler.
19144 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19146 RCC*)
19147 # Rational C++ 2.4.1
19148 # FIXME: insert proper C++ library support
19149 ld_shlibs_CXX=no
19151 cxx*)
19152 allow_undefined_flag_CXX=' -expect_unresolved \*'
19153 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'
19154 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19155 echo "-hidden">> $lib.exp~
19156 $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~
19157 $rm $lib.exp'
19159 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19160 hardcode_libdir_separator_CXX=:
19162 # Commands to make compiler produce verbose output that lists
19163 # what "hidden" libraries, object files and flags are used when
19164 # linking a shared library.
19166 # There doesn't appear to be a way to prevent this compiler from
19167 # explicitly linking system object files so we need to strip them
19168 # from the output so that they don't get included in the library
19169 # dependencies.
19170 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'
19173 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19174 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19175 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'
19177 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19178 hardcode_libdir_separator_CXX=:
19180 # Commands to make compiler produce verbose output that lists
19181 # what "hidden" libraries, object files and flags are used when
19182 # linking a shared library.
19183 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19185 else
19186 # FIXME: insert proper C++ library support
19187 ld_shlibs_CXX=no
19190 esac
19192 psos*)
19193 # FIXME: insert proper C++ library support
19194 ld_shlibs_CXX=no
19196 sunos4*)
19197 case $cc_basename in
19198 CC*)
19199 # Sun C++ 4.x
19200 # FIXME: insert proper C++ library support
19201 ld_shlibs_CXX=no
19203 lcc*)
19204 # Lucid
19205 # FIXME: insert proper C++ library support
19206 ld_shlibs_CXX=no
19209 # FIXME: insert proper C++ library support
19210 ld_shlibs_CXX=no
19212 esac
19214 solaris*)
19215 case $cc_basename in
19216 CC*)
19217 # Sun C++ 4.2, 5.x and Centerline C++
19218 archive_cmds_need_lc_CXX=yes
19219 no_undefined_flag_CXX=' -zdefs'
19220 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19221 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19222 $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'
19224 hardcode_libdir_flag_spec_CXX='-R$libdir'
19225 hardcode_shlibpath_var_CXX=no
19226 case $host_os in
19227 solaris2.[0-5] | solaris2.[0-5].*) ;;
19229 # The C++ compiler is used as linker so we must use $wl
19230 # flag to pass the commands to the underlying system
19231 # linker. We must also pass each convience library through
19232 # to the system linker between allextract/defaultextract.
19233 # The C++ compiler will combine linker options so we
19234 # cannot just pass the convience library names through
19235 # without $wl.
19236 # Supported since Solaris 2.6 (maybe 2.5.1?)
19237 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'
19239 esac
19240 link_all_deplibs_CXX=yes
19242 output_verbose_link_cmd='echo'
19244 # Archives containing C++ object files must be created using
19245 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19246 # necessary to make sure instantiated templates are included
19247 # in the archive.
19248 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19250 gcx*)
19251 # Green Hills C++ Compiler
19252 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19254 # The C++ compiler must be used to create the archive.
19255 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19258 # GNU C++ compiler with Solaris linker
19259 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19260 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19261 if $CC --version | grep -v '^2\.7' > /dev/null; then
19262 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19263 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19264 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19266 # Commands to make compiler produce verbose output that lists
19267 # what "hidden" libraries, object files and flags are used when
19268 # linking a shared library.
19269 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19270 else
19271 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19272 # platform.
19273 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19274 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19275 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19277 # Commands to make compiler produce verbose output that lists
19278 # what "hidden" libraries, object files and flags are used when
19279 # linking a shared library.
19280 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19283 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19286 esac
19288 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19289 no_undefined_flag_CXX='${wl}-z,text'
19290 archive_cmds_need_lc_CXX=no
19291 hardcode_shlibpath_var_CXX=no
19292 runpath_var='LD_RUN_PATH'
19294 case $cc_basename in
19295 CC*)
19296 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19297 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19300 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19301 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19303 esac
19305 sysv5* | sco3.2v5* | sco5v6*)
19306 # Note: We can NOT use -z defs as we might desire, because we do not
19307 # link with -lc, and that would cause any symbols used from libc to
19308 # always be unresolved, which means just about no library would
19309 # ever link correctly. If we're not using GNU ld we use -z text
19310 # though, which does catch some bad symbols but isn't as heavy-handed
19311 # as -z defs.
19312 # For security reasons, it is highly recommended that you always
19313 # use absolute paths for naming shared libraries, and exclude the
19314 # DT_RUNPATH tag from executables and libraries. But doing so
19315 # requires that you compile everything twice, which is a pain.
19316 # So that behaviour is only enabled if SCOABSPATH is set to a
19317 # non-empty value in the environment. Most likely only useful for
19318 # creating official distributions of packages.
19319 # This is a hack until libtool officially supports absolute path
19320 # names for shared libraries.
19321 no_undefined_flag_CXX='${wl}-z,text'
19322 allow_undefined_flag_CXX='${wl}-z,nodefs'
19323 archive_cmds_need_lc_CXX=no
19324 hardcode_shlibpath_var_CXX=no
19325 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19326 hardcode_libdir_separator_CXX=':'
19327 link_all_deplibs_CXX=yes
19328 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19329 runpath_var='LD_RUN_PATH'
19331 case $cc_basename in
19332 CC*)
19333 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19334 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19337 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19338 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19340 esac
19342 tandem*)
19343 case $cc_basename in
19344 NCC*)
19345 # NonStop-UX NCC 3.20
19346 # FIXME: insert proper C++ library support
19347 ld_shlibs_CXX=no
19350 # FIXME: insert proper C++ library support
19351 ld_shlibs_CXX=no
19353 esac
19355 vxworks*)
19356 # FIXME: insert proper C++ library support
19357 ld_shlibs_CXX=no
19360 # FIXME: insert proper C++ library support
19361 ld_shlibs_CXX=no
19363 esac
19364 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19365 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19366 test "$ld_shlibs_CXX" = no && can_build_shared=no
19368 GCC_CXX="$GXX"
19369 LD_CXX="$LD"
19372 cat > conftest.$ac_ext <<EOF
19373 class Foo
19375 public:
19376 Foo (void) { a = 0; }
19377 private:
19378 int a;
19382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19383 (eval $ac_compile) 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; then
19387 # Parse the compiler output and extract the necessary
19388 # objects, libraries and library flags.
19390 # Sentinel used to keep track of whether or not we are before
19391 # the conftest object file.
19392 pre_test_object_deps_done=no
19394 # The `*' in the case matches for architectures that use `case' in
19395 # $output_verbose_cmd can trigger glob expansion during the loop
19396 # eval without this substitution.
19397 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19399 for p in `eval $output_verbose_link_cmd`; do
19400 case $p in
19402 -L* | -R* | -l*)
19403 # Some compilers place space between "-{L,R}" and the path.
19404 # Remove the space.
19405 if test $p = "-L" \
19406 || test $p = "-R"; then
19407 prev=$p
19408 continue
19409 else
19410 prev=
19413 if test "$pre_test_object_deps_done" = no; then
19414 case $p in
19415 -L* | -R*)
19416 # Internal compiler library paths should come after those
19417 # provided the user. The postdeps already come after the
19418 # user supplied libs so there is no need to process them.
19419 if test -z "$compiler_lib_search_path_CXX"; then
19420 compiler_lib_search_path_CXX="${prev}${p}"
19421 else
19422 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19425 # The "-l" case would never come before the object being
19426 # linked, so don't bother handling this case.
19427 esac
19428 else
19429 if test -z "$postdeps_CXX"; then
19430 postdeps_CXX="${prev}${p}"
19431 else
19432 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19437 *.$objext)
19438 # This assumes that the test object file only shows up
19439 # once in the compiler output.
19440 if test "$p" = "conftest.$objext"; then
19441 pre_test_object_deps_done=yes
19442 continue
19445 if test "$pre_test_object_deps_done" = no; then
19446 if test -z "$predep_objects_CXX"; then
19447 predep_objects_CXX="$p"
19448 else
19449 predep_objects_CXX="$predep_objects_CXX $p"
19451 else
19452 if test -z "$postdep_objects_CXX"; then
19453 postdep_objects_CXX="$p"
19454 else
19455 postdep_objects_CXX="$postdep_objects_CXX $p"
19460 *) ;; # Ignore the rest.
19462 esac
19463 done
19465 # Clean up.
19466 rm -f a.out a.exe
19467 else
19468 echo "libtool.m4: error: problem compiling CXX test program"
19471 $rm -f confest.$objext
19473 # PORTME: override above test on systems where it is broken
19474 case $host_os in
19475 interix3*)
19476 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19477 # hack all around it, let's just trust "g++" to DTRT.
19478 predep_objects_CXX=
19479 postdep_objects_CXX=
19480 postdeps_CXX=
19483 solaris*)
19484 case $cc_basename in
19485 CC*)
19486 # Adding this requires a known-good setup of shared libraries for
19487 # Sun compiler versions before 5.6, else PIC objects from an old
19488 # archive will be linked into the output, leading to subtle bugs.
19489 postdeps_CXX='-lCstd -lCrun'
19491 esac
19493 esac
19496 case " $postdeps_CXX " in
19497 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19498 esac
19500 lt_prog_compiler_wl_CXX=
19501 lt_prog_compiler_pic_CXX=
19502 lt_prog_compiler_static_CXX=
19504 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19505 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19507 # C++ specific cases for pic, static, wl, etc.
19508 if test "$GXX" = yes; then
19509 lt_prog_compiler_wl_CXX='-Wl,'
19510 lt_prog_compiler_static_CXX='-static'
19512 case $host_os in
19513 aix*)
19514 # All AIX code is PIC.
19515 if test "$host_cpu" = ia64; then
19516 # AIX 5 now supports IA64 processor
19517 lt_prog_compiler_static_CXX='-Bstatic'
19520 amigaos*)
19521 # FIXME: we need at least 68020 code to build shared libraries, but
19522 # adding the `-m68020' flag to GCC prevents building anything better,
19523 # like `-m68040'.
19524 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19526 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19527 # PIC is the default for these OSes.
19529 mingw* | os2* | pw32*)
19530 # This hack is so that the source file can tell whether it is being
19531 # built for inclusion in a dll (and should export symbols for example).
19532 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19534 darwin* | rhapsody*)
19535 # PIC is the default on this platform
19536 # Common symbols not allowed in MH_DYLIB files
19537 lt_prog_compiler_pic_CXX='-fno-common'
19539 *djgpp*)
19540 # DJGPP does not support shared libraries at all
19541 lt_prog_compiler_pic_CXX=
19543 interix3*)
19544 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19545 # Instead, we relocate shared libraries at runtime.
19547 sysv4*MP*)
19548 if test -d /usr/nec; then
19549 lt_prog_compiler_pic_CXX=-Kconform_pic
19552 hpux*)
19553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19554 # not for PA HP-UX.
19555 case $host_cpu in
19556 hppa*64*|ia64*)
19559 lt_prog_compiler_pic_CXX='-fPIC'
19561 esac
19564 lt_prog_compiler_pic_CXX='-fPIC'
19566 esac
19567 else
19568 case $host_os in
19569 aix4* | aix5*)
19570 # All AIX code is PIC.
19571 if test "$host_cpu" = ia64; then
19572 # AIX 5 now supports IA64 processor
19573 lt_prog_compiler_static_CXX='-Bstatic'
19574 else
19575 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19578 chorus*)
19579 case $cc_basename in
19580 cxch68*)
19581 # Green Hills C++ Compiler
19582 # _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"
19584 esac
19586 darwin*)
19587 # PIC is the default on this platform
19588 # Common symbols not allowed in MH_DYLIB files
19589 case $cc_basename in
19590 xlc*)
19591 lt_prog_compiler_pic_CXX='-qnocommon'
19592 lt_prog_compiler_wl_CXX='-Wl,'
19594 esac
19596 dgux*)
19597 case $cc_basename in
19598 ec++*)
19599 lt_prog_compiler_pic_CXX='-KPIC'
19601 ghcx*)
19602 # Green Hills C++ Compiler
19603 lt_prog_compiler_pic_CXX='-pic'
19607 esac
19609 freebsd* | kfreebsd*-gnu | dragonfly*)
19610 # FreeBSD uses GNU C++
19612 hpux9* | hpux10* | hpux11*)
19613 case $cc_basename in
19614 CC*)
19615 lt_prog_compiler_wl_CXX='-Wl,'
19616 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19617 if test "$host_cpu" != ia64; then
19618 lt_prog_compiler_pic_CXX='+Z'
19621 aCC*)
19622 lt_prog_compiler_wl_CXX='-Wl,'
19623 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19624 case $host_cpu in
19625 hppa*64*|ia64*)
19626 # +Z the default
19629 lt_prog_compiler_pic_CXX='+Z'
19631 esac
19635 esac
19637 interix*)
19638 # This is c89, which is MS Visual C++ (no shared libs)
19639 # Anyone wants to do a port?
19641 irix5* | irix6* | nonstopux*)
19642 case $cc_basename in
19643 CC*)
19644 lt_prog_compiler_wl_CXX='-Wl,'
19645 lt_prog_compiler_static_CXX='-non_shared'
19646 # CC pic flag -KPIC is the default.
19650 esac
19652 linux*)
19653 case $cc_basename in
19654 KCC*)
19655 # KAI C++ Compiler
19656 lt_prog_compiler_wl_CXX='--backend -Wl,'
19657 lt_prog_compiler_pic_CXX='-fPIC'
19659 icpc* | ecpc*)
19660 # Intel C++
19661 lt_prog_compiler_wl_CXX='-Wl,'
19662 lt_prog_compiler_pic_CXX='-KPIC'
19663 lt_prog_compiler_static_CXX='-static'
19665 pgCC*)
19666 # Portland Group C++ compiler.
19667 lt_prog_compiler_wl_CXX='-Wl,'
19668 lt_prog_compiler_pic_CXX='-fpic'
19669 lt_prog_compiler_static_CXX='-Bstatic'
19671 cxx*)
19672 # Compaq C++
19673 # Make sure the PIC flag is empty. It appears that all Alpha
19674 # Linux and Compaq Tru64 Unix objects are PIC.
19675 lt_prog_compiler_pic_CXX=
19676 lt_prog_compiler_static_CXX='-non_shared'
19680 esac
19682 lynxos*)
19684 m88k*)
19686 mvs*)
19687 case $cc_basename in
19688 cxx*)
19689 lt_prog_compiler_pic_CXX='-W c,exportall'
19693 esac
19695 netbsd*)
19697 osf3* | osf4* | osf5*)
19698 case $cc_basename in
19699 KCC*)
19700 lt_prog_compiler_wl_CXX='--backend -Wl,'
19702 RCC*)
19703 # Rational C++ 2.4.1
19704 lt_prog_compiler_pic_CXX='-pic'
19706 cxx*)
19707 # Digital/Compaq C++
19708 lt_prog_compiler_wl_CXX='-Wl,'
19709 # Make sure the PIC flag is empty. It appears that all Alpha
19710 # Linux and Compaq Tru64 Unix objects are PIC.
19711 lt_prog_compiler_pic_CXX=
19712 lt_prog_compiler_static_CXX='-non_shared'
19716 esac
19718 psos*)
19720 solaris*)
19721 case $cc_basename in
19722 CC*)
19723 # Sun C++ 4.2, 5.x and Centerline C++
19724 lt_prog_compiler_pic_CXX='-KPIC'
19725 lt_prog_compiler_static_CXX='-Bstatic'
19726 lt_prog_compiler_wl_CXX='-Qoption ld '
19728 gcx*)
19729 # Green Hills C++ Compiler
19730 lt_prog_compiler_pic_CXX='-PIC'
19734 esac
19736 sunos4*)
19737 case $cc_basename in
19738 CC*)
19739 # Sun C++ 4.x
19740 lt_prog_compiler_pic_CXX='-pic'
19741 lt_prog_compiler_static_CXX='-Bstatic'
19743 lcc*)
19744 # Lucid
19745 lt_prog_compiler_pic_CXX='-pic'
19749 esac
19751 tandem*)
19752 case $cc_basename in
19753 NCC*)
19754 # NonStop-UX NCC 3.20
19755 lt_prog_compiler_pic_CXX='-KPIC'
19759 esac
19761 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19762 case $cc_basename in
19763 CC*)
19764 lt_prog_compiler_wl_CXX='-Wl,'
19765 lt_prog_compiler_pic_CXX='-KPIC'
19766 lt_prog_compiler_static_CXX='-Bstatic'
19768 esac
19770 vxworks*)
19773 lt_prog_compiler_can_build_shared_CXX=no
19775 esac
19778 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19779 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19782 # Check to make sure the PIC flag actually works.
19784 if test -n "$lt_prog_compiler_pic_CXX"; then
19786 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19787 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19788 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19790 else
19791 lt_prog_compiler_pic_works_CXX=no
19792 ac_outfile=conftest.$ac_objext
19793 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19794 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19795 # Insert the option either (1) after the last *FLAGS variable, or
19796 # (2) before a word containing "conftest.", or (3) at the end.
19797 # Note that $ac_compile itself does not contain backslashes and begins
19798 # with a dollar sign (not a hyphen), so the echo should work correctly.
19799 # The option is referenced via a variable to avoid confusing sed.
19800 lt_compile=`echo "$ac_compile" | $SED \
19801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19803 -e 's:$: $lt_compiler_flag:'`
19804 (eval echo "\"\$as_me:19804: $lt_compile\"" >&5)
19805 (eval "$lt_compile" 2>conftest.err)
19806 ac_status=$?
19807 cat conftest.err >&5
19808 echo "$as_me:19808: \$? = $ac_status" >&5
19809 if (exit $ac_status) && test -s "$ac_outfile"; then
19810 # The compiler can only warn and ignore the option if not recognized
19811 # So say no if there are warnings other than the usual output.
19812 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19814 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19815 lt_prog_compiler_pic_works_CXX=yes
19818 $rm conftest*
19821 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19822 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19824 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19825 case $lt_prog_compiler_pic_CXX in
19826 "" | " "*) ;;
19827 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19828 esac
19829 else
19830 lt_prog_compiler_pic_CXX=
19831 lt_prog_compiler_can_build_shared_CXX=no
19835 case $host_os in
19836 # For platforms which do not support PIC, -DPIC is meaningless:
19837 *djgpp*)
19838 lt_prog_compiler_pic_CXX=
19841 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19843 esac
19846 # Check to make sure the static flag actually works.
19848 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19849 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19850 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19851 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19853 else
19854 lt_prog_compiler_static_works_CXX=no
19855 save_LDFLAGS="$LDFLAGS"
19856 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19857 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19858 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19859 # The linker can only warn and ignore the option if not recognized
19860 # So say no if there are warnings
19861 if test -s conftest.err; then
19862 # Append any errors to the config.log.
19863 cat conftest.err 1>&5
19864 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19866 if diff conftest.exp conftest.er2 >/dev/null; then
19867 lt_prog_compiler_static_works_CXX=yes
19869 else
19870 lt_prog_compiler_static_works_CXX=yes
19873 $rm conftest*
19874 LDFLAGS="$save_LDFLAGS"
19877 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19878 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19880 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19882 else
19883 lt_prog_compiler_static_CXX=
19887 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19888 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19889 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19890 echo $ECHO_N "(cached) $ECHO_C" >&6
19891 else
19892 lt_cv_prog_compiler_c_o_CXX=no
19893 $rm -r conftest 2>/dev/null
19894 mkdir conftest
19895 cd conftest
19896 mkdir out
19897 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19899 lt_compiler_flag="-o out/conftest2.$ac_objext"
19900 # Insert the option either (1) after the last *FLAGS variable, or
19901 # (2) before a word containing "conftest.", or (3) at the end.
19902 # Note that $ac_compile itself does not contain backslashes and begins
19903 # with a dollar sign (not a hyphen), so the echo should work correctly.
19904 lt_compile=`echo "$ac_compile" | $SED \
19905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19907 -e 's:$: $lt_compiler_flag:'`
19908 (eval echo "\"\$as_me:19908: $lt_compile\"" >&5)
19909 (eval "$lt_compile" 2>out/conftest.err)
19910 ac_status=$?
19911 cat out/conftest.err >&5
19912 echo "$as_me:19912: \$? = $ac_status" >&5
19913 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19914 then
19915 # The compiler can only warn and ignore the option if not recognized
19916 # So say no if there are warnings
19917 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19918 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19919 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19920 lt_cv_prog_compiler_c_o_CXX=yes
19923 chmod u+w . 2>&5
19924 $rm conftest*
19925 # SGI C++ compiler will create directory out/ii_files/ for
19926 # template instantiation
19927 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19928 $rm out/* && rmdir out
19929 cd ..
19930 rmdir conftest
19931 $rm conftest*
19934 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19935 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19938 hard_links="nottested"
19939 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19940 # do not overwrite the value of need_locks provided by the user
19941 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19942 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19943 hard_links=yes
19944 $rm conftest*
19945 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19946 touch conftest.a
19947 ln conftest.a conftest.b 2>&5 || hard_links=no
19948 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19949 { echo "$as_me:$LINENO: result: $hard_links" >&5
19950 echo "${ECHO_T}$hard_links" >&6; }
19951 if test "$hard_links" = no; then
19952 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19953 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19954 need_locks=warn
19956 else
19957 need_locks=no
19960 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19961 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19963 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19964 case $host_os in
19965 aix4* | aix5*)
19966 # If we're using GNU nm, then we don't want the "-C" option.
19967 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19968 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19969 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'
19970 else
19971 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'
19974 pw32*)
19975 export_symbols_cmds_CXX="$ltdll_cmds"
19977 cygwin* | mingw*)
19978 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'
19981 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19983 esac
19985 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19986 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19987 test "$ld_shlibs_CXX" = no && can_build_shared=no
19990 # Do we need to explicitly link libc?
19992 case "x$archive_cmds_need_lc_CXX" in
19993 x|xyes)
19994 # Assume -lc should be added
19995 archive_cmds_need_lc_CXX=yes
19997 if test "$enable_shared" = yes && test "$GCC" = yes; then
19998 case $archive_cmds_CXX in
19999 *'~'*)
20000 # FIXME: we may have to deal with multi-command sequences.
20002 '$CC '*)
20003 # Test whether the compiler implicitly links with -lc since on some
20004 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20005 # to ld, don't add -lc before -lgcc.
20006 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20007 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20008 $rm conftest*
20009 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20012 (eval $ac_compile) 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } 2>conftest.err; then
20016 soname=conftest
20017 lib=conftest
20018 libobjs=conftest.$ac_objext
20019 deplibs=
20020 wl=$lt_prog_compiler_wl_CXX
20021 pic_flag=$lt_prog_compiler_pic_CXX
20022 compiler_flags=-v
20023 linker_flags=-v
20024 verstring=
20025 output_objdir=.
20026 libname=conftest
20027 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20028 allow_undefined_flag_CXX=
20029 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20030 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20031 ac_status=$?
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }
20034 then
20035 archive_cmds_need_lc_CXX=no
20036 else
20037 archive_cmds_need_lc_CXX=yes
20039 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20040 else
20041 cat conftest.err 1>&5
20043 $rm conftest*
20044 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20045 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20047 esac
20050 esac
20052 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20053 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20054 library_names_spec=
20055 libname_spec='lib$name'
20056 soname_spec=
20057 shrext_cmds=".so"
20058 postinstall_cmds=
20059 postuninstall_cmds=
20060 finish_cmds=
20061 finish_eval=
20062 shlibpath_var=
20063 shlibpath_overrides_runpath=unknown
20064 version_type=none
20065 dynamic_linker="$host_os ld.so"
20066 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20067 if test "$GCC" = yes; then
20068 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20069 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20070 # if the path contains ";" then we assume it to be the separator
20071 # otherwise default to the standard path separator (i.e. ":") - it is
20072 # assumed that no part of a normal pathname contains ";" but that should
20073 # okay in the real world where ";" in dirpaths is itself problematic.
20074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20075 else
20076 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20078 else
20079 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20081 need_lib_prefix=unknown
20082 hardcode_into_libs=no
20084 # when you set need_version to no, make sure it does not cause -set_version
20085 # flags to be left without arguments
20086 need_version=unknown
20088 case $host_os in
20089 aix3*)
20090 version_type=linux
20091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20092 shlibpath_var=LIBPATH
20094 # AIX 3 has no versioning support, so we append a major version to the name.
20095 soname_spec='${libname}${release}${shared_ext}$major'
20098 aix4* | aix5*)
20099 version_type=linux
20100 need_lib_prefix=no
20101 need_version=no
20102 hardcode_into_libs=yes
20103 if test "$host_cpu" = ia64; then
20104 # AIX 5 supports IA64
20105 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20106 shlibpath_var=LD_LIBRARY_PATH
20107 else
20108 # With GCC up to 2.95.x, collect2 would create an import file
20109 # for dependence libraries. The import file would start with
20110 # the line `#! .'. This would cause the generated library to
20111 # depend on `.', always an invalid library. This was fixed in
20112 # development snapshots of GCC prior to 3.0.
20113 case $host_os in
20114 aix4 | aix4.[01] | aix4.[01].*)
20115 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20116 echo ' yes '
20117 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20119 else
20120 can_build_shared=no
20123 esac
20124 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20125 # soname into executable. Probably we can add versioning support to
20126 # collect2, so additional links can be useful in future.
20127 if test "$aix_use_runtimelinking" = yes; then
20128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20129 # instead of lib<name>.a to let people know that these are not
20130 # typical AIX shared libraries.
20131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20132 else
20133 # We preserve .a as extension for shared libraries through AIX4.2
20134 # and later when we are not doing run time linking.
20135 library_names_spec='${libname}${release}.a $libname.a'
20136 soname_spec='${libname}${release}${shared_ext}$major'
20138 shlibpath_var=LIBPATH
20142 amigaos*)
20143 library_names_spec='$libname.ixlibrary $libname.a'
20144 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20145 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'
20148 beos*)
20149 library_names_spec='${libname}${shared_ext}'
20150 dynamic_linker="$host_os ld.so"
20151 shlibpath_var=LIBRARY_PATH
20154 bsdi[45]*)
20155 version_type=linux
20156 need_version=no
20157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20158 soname_spec='${libname}${release}${shared_ext}$major'
20159 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20160 shlibpath_var=LD_LIBRARY_PATH
20161 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20162 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20163 # the default ld.so.conf also contains /usr/contrib/lib and
20164 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20165 # libtool to hard-code these into programs
20168 cygwin* | mingw* | pw32*)
20169 version_type=windows
20170 shrext_cmds=".dll"
20171 need_version=no
20172 need_lib_prefix=no
20174 case $GCC,$host_os in
20175 yes,cygwin* | yes,mingw* | yes,pw32*)
20176 library_names_spec='$libname.dll.a'
20177 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20178 postinstall_cmds='base_file=`basename \${file}`~
20179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20180 dldir=$destdir/`dirname \$dlpath`~
20181 test -d \$dldir || mkdir -p \$dldir~
20182 $install_prog $dir/$dlname \$dldir/$dlname~
20183 chmod a+x \$dldir/$dlname'
20184 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20185 dlpath=$dir/\$dldll~
20186 $rm \$dlpath'
20187 shlibpath_overrides_runpath=yes
20189 case $host_os in
20190 cygwin*)
20191 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20192 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20193 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20195 mingw*)
20196 # MinGW DLLs use traditional 'lib' prefix
20197 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20198 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20199 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20200 # It is most probably a Windows format PATH printed by
20201 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20202 # path with ; separators, and with drive letters. We can handle the
20203 # drive letters (cygwin fileutils understands them), so leave them,
20204 # especially as we might pass files found there to a mingw objdump,
20205 # which wouldn't understand a cygwinified path. Ahh.
20206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20207 else
20208 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20211 pw32*)
20212 # pw32 DLLs use 'pw' prefix rather than 'lib'
20213 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20215 esac
20219 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20221 esac
20222 dynamic_linker='Win32 ld.exe'
20223 # FIXME: first we should search . and the directory the executable is in
20224 shlibpath_var=PATH
20227 darwin* | rhapsody*)
20228 dynamic_linker="$host_os dyld"
20229 version_type=darwin
20230 need_lib_prefix=no
20231 need_version=no
20232 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20233 soname_spec='${libname}${release}${major}$shared_ext'
20234 shlibpath_overrides_runpath=yes
20235 shlibpath_var=DYLD_LIBRARY_PATH
20236 shrext_cmds='.dylib'
20237 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20238 if test "$GCC" = yes; then
20239 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"`
20240 else
20241 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20243 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20246 dgux*)
20247 version_type=linux
20248 need_lib_prefix=no
20249 need_version=no
20250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20251 soname_spec='${libname}${release}${shared_ext}$major'
20252 shlibpath_var=LD_LIBRARY_PATH
20255 freebsd1*)
20256 dynamic_linker=no
20259 kfreebsd*-gnu)
20260 version_type=linux
20261 need_lib_prefix=no
20262 need_version=no
20263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20264 soname_spec='${libname}${release}${shared_ext}$major'
20265 shlibpath_var=LD_LIBRARY_PATH
20266 shlibpath_overrides_runpath=no
20267 hardcode_into_libs=yes
20268 dynamic_linker='GNU ld.so'
20271 freebsd* | dragonfly*)
20272 # DragonFly does not have aout. When/if they implement a new
20273 # versioning mechanism, adjust this.
20274 if test -x /usr/bin/objformat; then
20275 objformat=`/usr/bin/objformat`
20276 else
20277 case $host_os in
20278 freebsd[123]*) objformat=aout ;;
20279 *) objformat=elf ;;
20280 esac
20282 version_type=freebsd-$objformat
20283 case $version_type in
20284 freebsd-elf*)
20285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20286 need_version=no
20287 need_lib_prefix=no
20289 freebsd-*)
20290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20291 need_version=yes
20293 esac
20294 shlibpath_var=LD_LIBRARY_PATH
20295 case $host_os in
20296 freebsd2*)
20297 shlibpath_overrides_runpath=yes
20299 freebsd3.[01]* | freebsdelf3.[01]*)
20300 shlibpath_overrides_runpath=yes
20301 hardcode_into_libs=yes
20303 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20304 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20305 shlibpath_overrides_runpath=no
20306 hardcode_into_libs=yes
20308 freebsd*) # from 4.6 on
20309 shlibpath_overrides_runpath=yes
20310 hardcode_into_libs=yes
20312 esac
20315 gnu*)
20316 version_type=linux
20317 need_lib_prefix=no
20318 need_version=no
20319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20320 soname_spec='${libname}${release}${shared_ext}$major'
20321 shlibpath_var=LD_LIBRARY_PATH
20322 hardcode_into_libs=yes
20325 hpux9* | hpux10* | hpux11*)
20326 # Give a soname corresponding to the major version so that dld.sl refuses to
20327 # link against other versions.
20328 version_type=sunos
20329 need_lib_prefix=no
20330 need_version=no
20331 case $host_cpu in
20332 ia64*)
20333 shrext_cmds='.so'
20334 hardcode_into_libs=yes
20335 dynamic_linker="$host_os dld.so"
20336 shlibpath_var=LD_LIBRARY_PATH
20337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20339 soname_spec='${libname}${release}${shared_ext}$major'
20340 if test "X$HPUX_IA64_MODE" = X32; then
20341 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20342 else
20343 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20345 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20347 hppa*64*)
20348 shrext_cmds='.sl'
20349 hardcode_into_libs=yes
20350 dynamic_linker="$host_os dld.sl"
20351 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354 soname_spec='${libname}${release}${shared_ext}$major'
20355 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20356 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20359 shrext_cmds='.sl'
20360 dynamic_linker="$host_os dld.sl"
20361 shlibpath_var=SHLIB_PATH
20362 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20364 soname_spec='${libname}${release}${shared_ext}$major'
20366 esac
20367 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20368 postinstall_cmds='chmod 555 $lib'
20371 interix3*)
20372 version_type=linux
20373 need_lib_prefix=no
20374 need_version=no
20375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20376 soname_spec='${libname}${release}${shared_ext}$major'
20377 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20378 shlibpath_var=LD_LIBRARY_PATH
20379 shlibpath_overrides_runpath=no
20380 hardcode_into_libs=yes
20383 irix5* | irix6* | nonstopux*)
20384 case $host_os in
20385 nonstopux*) version_type=nonstopux ;;
20387 if test "$lt_cv_prog_gnu_ld" = yes; then
20388 version_type=linux
20389 else
20390 version_type=irix
20391 fi ;;
20392 esac
20393 need_lib_prefix=no
20394 need_version=no
20395 soname_spec='${libname}${release}${shared_ext}$major'
20396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20397 case $host_os in
20398 irix5* | nonstopux*)
20399 libsuff= shlibsuff=
20402 case $LD in # libtool.m4 will add one of these switches to LD
20403 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20404 libsuff= shlibsuff= libmagic=32-bit;;
20405 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20406 libsuff=32 shlibsuff=N32 libmagic=N32;;
20407 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20408 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20409 *) libsuff= shlibsuff= libmagic=never-match;;
20410 esac
20412 esac
20413 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20414 shlibpath_overrides_runpath=no
20415 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20416 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20417 hardcode_into_libs=yes
20420 # No shared lib support for Linux oldld, aout, or coff.
20421 linux*oldld* | linux*aout* | linux*coff*)
20422 dynamic_linker=no
20425 # This must be Linux ELF.
20426 linux*)
20427 version_type=linux
20428 need_lib_prefix=no
20429 need_version=no
20430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20431 soname_spec='${libname}${release}${shared_ext}$major'
20432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20433 shlibpath_var=LD_LIBRARY_PATH
20434 shlibpath_overrides_runpath=no
20435 # This implies no fast_install, which is unacceptable.
20436 # Some rework will be needed to allow for fast_install
20437 # before this can be enabled.
20438 hardcode_into_libs=yes
20440 # Append ld.so.conf contents to the search path
20441 if test -f /etc/ld.so.conf; then
20442 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' ' '`
20443 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20446 # We used to test for /lib/ld.so.1 and disable shared libraries on
20447 # powerpc, because MkLinux only supported shared libraries with the
20448 # GNU dynamic linker. Since this was broken with cross compilers,
20449 # most powerpc-linux boxes support dynamic linking these days and
20450 # people can always --disable-shared, the test was removed, and we
20451 # assume the GNU/Linux dynamic linker is in use.
20452 dynamic_linker='GNU/Linux ld.so'
20455 knetbsd*-gnu)
20456 version_type=linux
20457 need_lib_prefix=no
20458 need_version=no
20459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20460 soname_spec='${libname}${release}${shared_ext}$major'
20461 shlibpath_var=LD_LIBRARY_PATH
20462 shlibpath_overrides_runpath=no
20463 hardcode_into_libs=yes
20464 dynamic_linker='GNU ld.so'
20467 netbsd*)
20468 version_type=sunos
20469 need_lib_prefix=no
20470 need_version=no
20471 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20474 dynamic_linker='NetBSD (a.out) ld.so'
20475 else
20476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20477 soname_spec='${libname}${release}${shared_ext}$major'
20478 dynamic_linker='NetBSD ld.elf_so'
20480 shlibpath_var=LD_LIBRARY_PATH
20481 shlibpath_overrides_runpath=yes
20482 hardcode_into_libs=yes
20485 newsos6)
20486 version_type=linux
20487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20488 shlibpath_var=LD_LIBRARY_PATH
20489 shlibpath_overrides_runpath=yes
20492 nto-qnx*)
20493 version_type=linux
20494 need_lib_prefix=no
20495 need_version=no
20496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20497 soname_spec='${libname}${release}${shared_ext}$major'
20498 shlibpath_var=LD_LIBRARY_PATH
20499 shlibpath_overrides_runpath=yes
20502 openbsd*)
20503 version_type=sunos
20504 sys_lib_dlsearch_path_spec="/usr/lib"
20505 need_lib_prefix=no
20506 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20507 case $host_os in
20508 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20509 *) need_version=no ;;
20510 esac
20511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20513 shlibpath_var=LD_LIBRARY_PATH
20514 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20515 case $host_os in
20516 openbsd2.[89] | openbsd2.[89].*)
20517 shlibpath_overrides_runpath=no
20520 shlibpath_overrides_runpath=yes
20522 esac
20523 else
20524 shlibpath_overrides_runpath=yes
20528 os2*)
20529 libname_spec='$name'
20530 shrext_cmds=".dll"
20531 need_lib_prefix=no
20532 library_names_spec='$libname${shared_ext} $libname.a'
20533 dynamic_linker='OS/2 ld.exe'
20534 shlibpath_var=LIBPATH
20537 osf3* | osf4* | osf5*)
20538 version_type=osf
20539 need_lib_prefix=no
20540 need_version=no
20541 soname_spec='${libname}${release}${shared_ext}$major'
20542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20543 shlibpath_var=LD_LIBRARY_PATH
20544 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20545 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20548 solaris*)
20549 version_type=linux
20550 need_lib_prefix=no
20551 need_version=no
20552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20553 soname_spec='${libname}${release}${shared_ext}$major'
20554 shlibpath_var=LD_LIBRARY_PATH
20555 shlibpath_overrides_runpath=yes
20556 hardcode_into_libs=yes
20557 # ldd complains unless libraries are executable
20558 postinstall_cmds='chmod +x $lib'
20561 sunos4*)
20562 version_type=sunos
20563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20564 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20565 shlibpath_var=LD_LIBRARY_PATH
20566 shlibpath_overrides_runpath=yes
20567 if test "$with_gnu_ld" = yes; then
20568 need_lib_prefix=no
20570 need_version=yes
20573 sysv4 | sysv4.3*)
20574 version_type=linux
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
20578 case $host_vendor in
20579 sni)
20580 shlibpath_overrides_runpath=no
20581 need_lib_prefix=no
20582 export_dynamic_flag_spec='${wl}-Blargedynsym'
20583 runpath_var=LD_RUN_PATH
20585 siemens)
20586 need_lib_prefix=no
20588 motorola)
20589 need_lib_prefix=no
20590 need_version=no
20591 shlibpath_overrides_runpath=no
20592 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20594 esac
20597 sysv4*MP*)
20598 if test -d /usr/nec ;then
20599 version_type=linux
20600 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20601 soname_spec='$libname${shared_ext}.$major'
20602 shlibpath_var=LD_LIBRARY_PATH
20606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20607 version_type=freebsd-elf
20608 need_lib_prefix=no
20609 need_version=no
20610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20611 soname_spec='${libname}${release}${shared_ext}$major'
20612 shlibpath_var=LD_LIBRARY_PATH
20613 hardcode_into_libs=yes
20614 if test "$with_gnu_ld" = yes; then
20615 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20616 shlibpath_overrides_runpath=no
20617 else
20618 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20619 shlibpath_overrides_runpath=yes
20620 case $host_os in
20621 sco3.2v5*)
20622 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20624 esac
20626 sys_lib_dlsearch_path_spec='/usr/lib'
20629 uts4*)
20630 version_type=linux
20631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20632 soname_spec='${libname}${release}${shared_ext}$major'
20633 shlibpath_var=LD_LIBRARY_PATH
20637 dynamic_linker=no
20639 esac
20640 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20641 echo "${ECHO_T}$dynamic_linker" >&6; }
20642 test "$dynamic_linker" = no && can_build_shared=no
20644 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20645 if test "$GCC" = yes; then
20646 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20649 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20650 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20651 hardcode_action_CXX=
20652 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20653 test -n "$runpath_var_CXX" || \
20654 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20656 # We can hardcode non-existant directories.
20657 if test "$hardcode_direct_CXX" != no &&
20658 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20659 # have to relink, otherwise we might link with an installed library
20660 # when we should be linking with a yet-to-be-installed one
20661 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20662 test "$hardcode_minus_L_CXX" != no; then
20663 # Linking always hardcodes the temporary library directory.
20664 hardcode_action_CXX=relink
20665 else
20666 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20667 hardcode_action_CXX=immediate
20669 else
20670 # We cannot hardcode anything, or else we can only hardcode existing
20671 # directories.
20672 hardcode_action_CXX=unsupported
20674 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20675 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20677 if test "$hardcode_action_CXX" = relink; then
20678 # Fast installation is not supported
20679 enable_fast_install=no
20680 elif test "$shlibpath_overrides_runpath" = yes ||
20681 test "$enable_shared" = no; then
20682 # Fast installation is not necessary
20683 enable_fast_install=needless
20687 # The else clause should only fire when bootstrapping the
20688 # libtool distribution, otherwise you forgot to ship ltmain.sh
20689 # with your package, and you will get complaints that there are
20690 # no rules to generate ltmain.sh.
20691 if test -f "$ltmain"; then
20692 # See if we are running on zsh, and set the options which allow our commands through
20693 # without removal of \ escapes.
20694 if test -n "${ZSH_VERSION+set}" ; then
20695 setopt NO_GLOB_SUBST
20697 # Now quote all the things that may contain metacharacters while being
20698 # careful not to overquote the AC_SUBSTed values. We take copies of the
20699 # variables and quote the copies for generation of the libtool script.
20700 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20701 SED SHELL STRIP \
20702 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20703 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20704 deplibs_check_method reload_flag reload_cmds need_locks \
20705 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20706 lt_cv_sys_global_symbol_to_c_name_address \
20707 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20708 old_postinstall_cmds old_postuninstall_cmds \
20709 compiler_CXX \
20710 CC_CXX \
20711 LD_CXX \
20712 lt_prog_compiler_wl_CXX \
20713 lt_prog_compiler_pic_CXX \
20714 lt_prog_compiler_static_CXX \
20715 lt_prog_compiler_no_builtin_flag_CXX \
20716 export_dynamic_flag_spec_CXX \
20717 thread_safe_flag_spec_CXX \
20718 whole_archive_flag_spec_CXX \
20719 enable_shared_with_static_runtimes_CXX \
20720 old_archive_cmds_CXX \
20721 old_archive_from_new_cmds_CXX \
20722 predep_objects_CXX \
20723 postdep_objects_CXX \
20724 predeps_CXX \
20725 postdeps_CXX \
20726 compiler_lib_search_path_CXX \
20727 archive_cmds_CXX \
20728 archive_expsym_cmds_CXX \
20729 postinstall_cmds_CXX \
20730 postuninstall_cmds_CXX \
20731 old_archive_from_expsyms_cmds_CXX \
20732 allow_undefined_flag_CXX \
20733 no_undefined_flag_CXX \
20734 export_symbols_cmds_CXX \
20735 hardcode_libdir_flag_spec_CXX \
20736 hardcode_libdir_flag_spec_ld_CXX \
20737 hardcode_libdir_separator_CXX \
20738 hardcode_automatic_CXX \
20739 module_cmds_CXX \
20740 module_expsym_cmds_CXX \
20741 lt_cv_prog_compiler_c_o_CXX \
20742 exclude_expsyms_CXX \
20743 include_expsyms_CXX; do
20745 case $var in
20746 old_archive_cmds_CXX | \
20747 old_archive_from_new_cmds_CXX | \
20748 archive_cmds_CXX | \
20749 archive_expsym_cmds_CXX | \
20750 module_cmds_CXX | \
20751 module_expsym_cmds_CXX | \
20752 old_archive_from_expsyms_cmds_CXX | \
20753 export_symbols_cmds_CXX | \
20754 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20755 postinstall_cmds | postuninstall_cmds | \
20756 old_postinstall_cmds | old_postuninstall_cmds | \
20757 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20758 # Double-quote double-evaled strings.
20759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20762 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20764 esac
20765 done
20767 case $lt_echo in
20768 *'\$0 --fallback-echo"')
20769 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20771 esac
20773 cfgfile="$ofile"
20775 cat <<__EOF__ >> "$cfgfile"
20776 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20778 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20780 # Shell to use when invoking shell scripts.
20781 SHELL=$lt_SHELL
20783 # Whether or not to build shared libraries.
20784 build_libtool_libs=$enable_shared
20786 # Whether or not to build static libraries.
20787 build_old_libs=$enable_static
20789 # Whether or not to add -lc for building shared libraries.
20790 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20792 # Whether or not to disallow shared libs when runtime libs are static
20793 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20795 # Whether or not to optimize for fast installation.
20796 fast_install=$enable_fast_install
20798 # The host system.
20799 host_alias=$host_alias
20800 host=$host
20801 host_os=$host_os
20803 # The build system.
20804 build_alias=$build_alias
20805 build=$build
20806 build_os=$build_os
20808 # An echo program that does not interpret backslashes.
20809 echo=$lt_echo
20811 # The archiver.
20812 AR=$lt_AR
20813 AR_FLAGS=$lt_AR_FLAGS
20815 # A C compiler.
20816 LTCC=$lt_LTCC
20818 # LTCC compiler flags.
20819 LTCFLAGS=$lt_LTCFLAGS
20821 # A language-specific compiler.
20822 CC=$lt_compiler_CXX
20824 # Is the compiler the GNU C compiler?
20825 with_gcc=$GCC_CXX
20827 # An ERE matcher.
20828 EGREP=$lt_EGREP
20830 # The linker used to build libraries.
20831 LD=$lt_LD_CXX
20833 # Whether we need hard or soft links.
20834 LN_S=$lt_LN_S
20836 # A BSD-compatible nm program.
20837 NM=$lt_NM
20839 # A symbol stripping program
20840 STRIP=$lt_STRIP
20842 # Used to examine libraries when file_magic_cmd begins "file"
20843 MAGIC_CMD=$MAGIC_CMD
20845 # Used on cygwin: DLL creation program.
20846 DLLTOOL="$DLLTOOL"
20848 # Used on cygwin: object dumper.
20849 OBJDUMP="$OBJDUMP"
20851 # Used on cygwin: assembler.
20852 AS="$AS"
20854 # The name of the directory that contains temporary libtool files.
20855 objdir=$objdir
20857 # How to create reloadable object files.
20858 reload_flag=$lt_reload_flag
20859 reload_cmds=$lt_reload_cmds
20861 # How to pass a linker flag through the compiler.
20862 wl=$lt_lt_prog_compiler_wl_CXX
20864 # Object file suffix (normally "o").
20865 objext="$ac_objext"
20867 # Old archive suffix (normally "a").
20868 libext="$libext"
20870 # Shared library suffix (normally ".so").
20871 shrext_cmds='$shrext_cmds'
20873 # Executable file suffix (normally "").
20874 exeext="$exeext"
20876 # Additional compiler flags for building library objects.
20877 pic_flag=$lt_lt_prog_compiler_pic_CXX
20878 pic_mode=$pic_mode
20880 # What is the maximum length of a command?
20881 max_cmd_len=$lt_cv_sys_max_cmd_len
20883 # Does compiler simultaneously support -c and -o options?
20884 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20886 # Must we lock files when doing compilation?
20887 need_locks=$lt_need_locks
20889 # Do we need the lib prefix for modules?
20890 need_lib_prefix=$need_lib_prefix
20892 # Do we need a version for libraries?
20893 need_version=$need_version
20895 # Whether dlopen is supported.
20896 dlopen_support=$enable_dlopen
20898 # Whether dlopen of programs is supported.
20899 dlopen_self=$enable_dlopen_self
20901 # Whether dlopen of statically linked programs is supported.
20902 dlopen_self_static=$enable_dlopen_self_static
20904 # Compiler flag to prevent dynamic linking.
20905 link_static_flag=$lt_lt_prog_compiler_static_CXX
20907 # Compiler flag to turn off builtin functions.
20908 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20910 # Compiler flag to allow reflexive dlopens.
20911 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20913 # Compiler flag to generate shared objects directly from archives.
20914 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20916 # Compiler flag to generate thread-safe objects.
20917 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20919 # Library versioning type.
20920 version_type=$version_type
20922 # Format of library name prefix.
20923 libname_spec=$lt_libname_spec
20925 # List of archive names. First name is the real one, the rest are links.
20926 # The last name is the one that the linker finds with -lNAME.
20927 library_names_spec=$lt_library_names_spec
20929 # The coded name of the library, if different from the real name.
20930 soname_spec=$lt_soname_spec
20932 # Commands used to build and install an old-style archive.
20933 RANLIB=$lt_RANLIB
20934 old_archive_cmds=$lt_old_archive_cmds_CXX
20935 old_postinstall_cmds=$lt_old_postinstall_cmds
20936 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20938 # Create an old-style archive from a shared archive.
20939 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20941 # Create a temporary old-style archive to link instead of a shared archive.
20942 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20944 # Commands used to build and install a shared archive.
20945 archive_cmds=$lt_archive_cmds_CXX
20946 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20947 postinstall_cmds=$lt_postinstall_cmds
20948 postuninstall_cmds=$lt_postuninstall_cmds
20950 # Commands used to build a loadable module (assumed same as above if empty)
20951 module_cmds=$lt_module_cmds_CXX
20952 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20954 # Commands to strip libraries.
20955 old_striplib=$lt_old_striplib
20956 striplib=$lt_striplib
20958 # Dependencies to place before the objects being linked to create a
20959 # shared library.
20960 predep_objects=$lt_predep_objects_CXX
20962 # Dependencies to place after the objects being linked to create a
20963 # shared library.
20964 postdep_objects=$lt_postdep_objects_CXX
20966 # Dependencies to place before the objects being linked to create a
20967 # shared library.
20968 predeps=$lt_predeps_CXX
20970 # Dependencies to place after the objects being linked to create a
20971 # shared library.
20972 postdeps=$lt_postdeps_CXX
20974 # The library search path used internally by the compiler when linking
20975 # a shared library.
20976 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20978 # Method to check whether dependent libraries are shared objects.
20979 deplibs_check_method=$lt_deplibs_check_method
20981 # Command to use when deplibs_check_method == file_magic.
20982 file_magic_cmd=$lt_file_magic_cmd
20984 # Flag that allows shared libraries with undefined symbols to be built.
20985 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20987 # Flag that forces no undefined symbols.
20988 no_undefined_flag=$lt_no_undefined_flag_CXX
20990 # Commands used to finish a libtool library installation in a directory.
20991 finish_cmds=$lt_finish_cmds
20993 # Same as above, but a single script fragment to be evaled but not shown.
20994 finish_eval=$lt_finish_eval
20996 # Take the output of nm and produce a listing of raw symbols and C names.
20997 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20999 # Transform the output of nm in a proper C declaration
21000 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21002 # Transform the output of nm in a C name address pair
21003 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21005 # This is the shared library runtime path variable.
21006 runpath_var=$runpath_var
21008 # This is the shared library path variable.
21009 shlibpath_var=$shlibpath_var
21011 # Is shlibpath searched before the hard-coded library search path?
21012 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21014 # How to hardcode a shared library path into an executable.
21015 hardcode_action=$hardcode_action_CXX
21017 # Whether we should hardcode library paths into libraries.
21018 hardcode_into_libs=$hardcode_into_libs
21020 # Flag to hardcode \$libdir into a binary during linking.
21021 # This must work even if \$libdir does not exist.
21022 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21024 # If ld is used when linking, flag to hardcode \$libdir into
21025 # a binary during linking. This must work even if \$libdir does
21026 # not exist.
21027 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21029 # Whether we need a single -rpath flag with a separated argument.
21030 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21032 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21033 # resulting binary.
21034 hardcode_direct=$hardcode_direct_CXX
21036 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21037 # resulting binary.
21038 hardcode_minus_L=$hardcode_minus_L_CXX
21040 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21041 # the resulting binary.
21042 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21044 # Set to yes if building a shared library automatically hardcodes DIR into the library
21045 # and all subsequent libraries and executables linked against it.
21046 hardcode_automatic=$hardcode_automatic_CXX
21048 # Variables whose values should be saved in libtool wrapper scripts and
21049 # restored at relink time.
21050 variables_saved_for_relink="$variables_saved_for_relink"
21052 # Whether libtool must link a program against all its dependency libraries.
21053 link_all_deplibs=$link_all_deplibs_CXX
21055 # Compile-time system search path for libraries
21056 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21058 # Run-time system search path for libraries
21059 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21061 # Fix the shell variable \$srcfile for the compiler.
21062 fix_srcfile_path="$fix_srcfile_path_CXX"
21064 # Set to yes if exported symbols are required.
21065 always_export_symbols=$always_export_symbols_CXX
21067 # The commands to list exported symbols.
21068 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21070 # The commands to extract the exported symbol list from a shared archive.
21071 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21073 # Symbols that should not be listed in the preloaded symbols.
21074 exclude_expsyms=$lt_exclude_expsyms_CXX
21076 # Symbols that must always be exported.
21077 include_expsyms=$lt_include_expsyms_CXX
21079 # ### END LIBTOOL TAG CONFIG: $tagname
21081 __EOF__
21084 else
21085 # If there is no Makefile yet, we rely on a make rule to execute
21086 # `config.status --recheck' to rerun these tests and create the
21087 # libtool script then.
21088 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21089 if test -f "$ltmain_in"; then
21090 test -f Makefile && make "$ltmain"
21095 ac_ext=c
21096 ac_cpp='$CPP $CPPFLAGS'
21097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21101 CC=$lt_save_CC
21102 LDCXX=$LD
21103 LD=$lt_save_LD
21104 GCC=$lt_save_GCC
21105 with_gnu_ldcxx=$with_gnu_ld
21106 with_gnu_ld=$lt_save_with_gnu_ld
21107 lt_cv_path_LDCXX=$lt_cv_path_LD
21108 lt_cv_path_LD=$lt_save_path_LD
21109 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21110 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21112 else
21113 tagname=""
21117 F77)
21118 if test -n "$F77" && test "X$F77" != "Xno"; then
21120 ac_ext=f
21121 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21122 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21123 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21126 archive_cmds_need_lc_F77=no
21127 allow_undefined_flag_F77=
21128 always_export_symbols_F77=no
21129 archive_expsym_cmds_F77=
21130 export_dynamic_flag_spec_F77=
21131 hardcode_direct_F77=no
21132 hardcode_libdir_flag_spec_F77=
21133 hardcode_libdir_flag_spec_ld_F77=
21134 hardcode_libdir_separator_F77=
21135 hardcode_minus_L_F77=no
21136 hardcode_automatic_F77=no
21137 module_cmds_F77=
21138 module_expsym_cmds_F77=
21139 link_all_deplibs_F77=unknown
21140 old_archive_cmds_F77=$old_archive_cmds
21141 no_undefined_flag_F77=
21142 whole_archive_flag_spec_F77=
21143 enable_shared_with_static_runtimes_F77=no
21145 # Source file extension for f77 test sources.
21146 ac_ext=f
21148 # Object file extension for compiled f77 test sources.
21149 objext=o
21150 objext_F77=$objext
21152 # Code to be used in simple compile tests
21153 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21155 # Code to be used in simple link tests
21156 lt_simple_link_test_code=" program t\n end\n"
21158 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21160 # If no C compiler was specified, use CC.
21161 LTCC=${LTCC-"$CC"}
21163 # If no C compiler flags were specified, use CFLAGS.
21164 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21166 # Allow CC to be a program name with arguments.
21167 compiler=$CC
21170 # save warnings/boilerplate of simple test code
21171 ac_outfile=conftest.$ac_objext
21172 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21173 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21174 _lt_compiler_boilerplate=`cat conftest.err`
21175 $rm conftest*
21177 ac_outfile=conftest.$ac_objext
21178 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21179 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21180 _lt_linker_boilerplate=`cat conftest.err`
21181 $rm conftest*
21184 # Allow CC to be a program name with arguments.
21185 lt_save_CC="$CC"
21186 CC=${F77-"f77"}
21187 compiler=$CC
21188 compiler_F77=$CC
21189 for cc_temp in $compiler""; do
21190 case $cc_temp in
21191 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21192 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21193 \-*) ;;
21194 *) break;;
21195 esac
21196 done
21197 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21200 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21201 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21202 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21203 echo "${ECHO_T}$can_build_shared" >&6; }
21205 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21206 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21207 test "$can_build_shared" = "no" && enable_shared=no
21209 # On AIX, shared libraries and static libraries use the same namespace, and
21210 # are all built from PIC.
21211 case $host_os in
21212 aix3*)
21213 test "$enable_shared" = yes && enable_static=no
21214 if test -n "$RANLIB"; then
21215 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21216 postinstall_cmds='$RANLIB $lib'
21219 aix4* | aix5*)
21220 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21221 test "$enable_shared" = yes && enable_static=no
21224 esac
21225 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21226 echo "${ECHO_T}$enable_shared" >&6; }
21228 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21229 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21230 # Make sure either enable_shared or enable_static is yes.
21231 test "$enable_shared" = yes || enable_static=yes
21232 { echo "$as_me:$LINENO: result: $enable_static" >&5
21233 echo "${ECHO_T}$enable_static" >&6; }
21235 GCC_F77="$G77"
21236 LD_F77="$LD"
21238 lt_prog_compiler_wl_F77=
21239 lt_prog_compiler_pic_F77=
21240 lt_prog_compiler_static_F77=
21242 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21243 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21245 if test "$GCC" = yes; then
21246 lt_prog_compiler_wl_F77='-Wl,'
21247 lt_prog_compiler_static_F77='-static'
21249 case $host_os in
21250 aix*)
21251 # All AIX code is PIC.
21252 if test "$host_cpu" = ia64; then
21253 # AIX 5 now supports IA64 processor
21254 lt_prog_compiler_static_F77='-Bstatic'
21258 amigaos*)
21259 # FIXME: we need at least 68020 code to build shared libraries, but
21260 # adding the `-m68020' flag to GCC prevents building anything better,
21261 # like `-m68040'.
21262 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21265 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21266 # PIC is the default for these OSes.
21269 mingw* | pw32* | os2*)
21270 # This hack is so that the source file can tell whether it is being
21271 # built for inclusion in a dll (and should export symbols for example).
21272 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21275 darwin* | rhapsody*)
21276 # PIC is the default on this platform
21277 # Common symbols not allowed in MH_DYLIB files
21278 lt_prog_compiler_pic_F77='-fno-common'
21281 interix3*)
21282 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21283 # Instead, we relocate shared libraries at runtime.
21286 msdosdjgpp*)
21287 # Just because we use GCC doesn't mean we suddenly get shared libraries
21288 # on systems that don't support them.
21289 lt_prog_compiler_can_build_shared_F77=no
21290 enable_shared=no
21293 sysv4*MP*)
21294 if test -d /usr/nec; then
21295 lt_prog_compiler_pic_F77=-Kconform_pic
21299 hpux*)
21300 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21301 # not for PA HP-UX.
21302 case $host_cpu in
21303 hppa*64*|ia64*)
21304 # +Z the default
21307 lt_prog_compiler_pic_F77='-fPIC'
21309 esac
21313 lt_prog_compiler_pic_F77='-fPIC'
21315 esac
21316 else
21317 # PORTME Check for flag to pass linker flags through the system compiler.
21318 case $host_os in
21319 aix*)
21320 lt_prog_compiler_wl_F77='-Wl,'
21321 if test "$host_cpu" = ia64; then
21322 # AIX 5 now supports IA64 processor
21323 lt_prog_compiler_static_F77='-Bstatic'
21324 else
21325 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21328 darwin*)
21329 # PIC is the default on this platform
21330 # Common symbols not allowed in MH_DYLIB files
21331 case $cc_basename in
21332 xlc*)
21333 lt_prog_compiler_pic_F77='-qnocommon'
21334 lt_prog_compiler_wl_F77='-Wl,'
21336 esac
21339 mingw* | pw32* | os2*)
21340 # This hack is so that the source file can tell whether it is being
21341 # built for inclusion in a dll (and should export symbols for example).
21342 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21345 hpux9* | hpux10* | hpux11*)
21346 lt_prog_compiler_wl_F77='-Wl,'
21347 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21348 # not for PA HP-UX.
21349 case $host_cpu in
21350 hppa*64*|ia64*)
21351 # +Z the default
21354 lt_prog_compiler_pic_F77='+Z'
21356 esac
21357 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21358 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21361 irix5* | irix6* | nonstopux*)
21362 lt_prog_compiler_wl_F77='-Wl,'
21363 # PIC (with -KPIC) is the default.
21364 lt_prog_compiler_static_F77='-non_shared'
21367 newsos6)
21368 lt_prog_compiler_pic_F77='-KPIC'
21369 lt_prog_compiler_static_F77='-Bstatic'
21372 linux*)
21373 case $cc_basename in
21374 icc* | ecc*)
21375 lt_prog_compiler_wl_F77='-Wl,'
21376 lt_prog_compiler_pic_F77='-KPIC'
21377 lt_prog_compiler_static_F77='-static'
21379 pgcc* | pgf77* | pgf90* | pgf95*)
21380 # Portland Group compilers (*not* the Pentium gcc compiler,
21381 # which looks to be a dead project)
21382 lt_prog_compiler_wl_F77='-Wl,'
21383 lt_prog_compiler_pic_F77='-fpic'
21384 lt_prog_compiler_static_F77='-Bstatic'
21386 ccc*)
21387 lt_prog_compiler_wl_F77='-Wl,'
21388 # All Alpha code is PIC.
21389 lt_prog_compiler_static_F77='-non_shared'
21391 esac
21394 osf3* | osf4* | osf5*)
21395 lt_prog_compiler_wl_F77='-Wl,'
21396 # All OSF/1 code is PIC.
21397 lt_prog_compiler_static_F77='-non_shared'
21400 solaris*)
21401 lt_prog_compiler_pic_F77='-KPIC'
21402 lt_prog_compiler_static_F77='-Bstatic'
21403 case $cc_basename in
21404 f77* | f90* | f95*)
21405 lt_prog_compiler_wl_F77='-Qoption ld ';;
21407 lt_prog_compiler_wl_F77='-Wl,';;
21408 esac
21411 sunos4*)
21412 lt_prog_compiler_wl_F77='-Qoption ld '
21413 lt_prog_compiler_pic_F77='-PIC'
21414 lt_prog_compiler_static_F77='-Bstatic'
21417 sysv4 | sysv4.2uw2* | sysv4.3*)
21418 lt_prog_compiler_wl_F77='-Wl,'
21419 lt_prog_compiler_pic_F77='-KPIC'
21420 lt_prog_compiler_static_F77='-Bstatic'
21423 sysv4*MP*)
21424 if test -d /usr/nec ;then
21425 lt_prog_compiler_pic_F77='-Kconform_pic'
21426 lt_prog_compiler_static_F77='-Bstatic'
21430 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21431 lt_prog_compiler_wl_F77='-Wl,'
21432 lt_prog_compiler_pic_F77='-KPIC'
21433 lt_prog_compiler_static_F77='-Bstatic'
21436 unicos*)
21437 lt_prog_compiler_wl_F77='-Wl,'
21438 lt_prog_compiler_can_build_shared_F77=no
21441 uts4*)
21442 lt_prog_compiler_pic_F77='-pic'
21443 lt_prog_compiler_static_F77='-Bstatic'
21447 lt_prog_compiler_can_build_shared_F77=no
21449 esac
21452 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21453 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21456 # Check to make sure the PIC flag actually works.
21458 if test -n "$lt_prog_compiler_pic_F77"; then
21460 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21461 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21462 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21463 echo $ECHO_N "(cached) $ECHO_C" >&6
21464 else
21465 lt_prog_compiler_pic_works_F77=no
21466 ac_outfile=conftest.$ac_objext
21467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21468 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21469 # Insert the option either (1) after the last *FLAGS variable, or
21470 # (2) before a word containing "conftest.", or (3) at the end.
21471 # Note that $ac_compile itself does not contain backslashes and begins
21472 # with a dollar sign (not a hyphen), so the echo should work correctly.
21473 # The option is referenced via a variable to avoid confusing sed.
21474 lt_compile=`echo "$ac_compile" | $SED \
21475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21477 -e 's:$: $lt_compiler_flag:'`
21478 (eval echo "\"\$as_me:21478: $lt_compile\"" >&5)
21479 (eval "$lt_compile" 2>conftest.err)
21480 ac_status=$?
21481 cat conftest.err >&5
21482 echo "$as_me:21482: \$? = $ac_status" >&5
21483 if (exit $ac_status) && test -s "$ac_outfile"; then
21484 # The compiler can only warn and ignore the option if not recognized
21485 # So say no if there are warnings other than the usual output.
21486 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21489 lt_prog_compiler_pic_works_F77=yes
21492 $rm conftest*
21495 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21496 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21498 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21499 case $lt_prog_compiler_pic_F77 in
21500 "" | " "*) ;;
21501 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21502 esac
21503 else
21504 lt_prog_compiler_pic_F77=
21505 lt_prog_compiler_can_build_shared_F77=no
21509 case $host_os in
21510 # For platforms which do not support PIC, -DPIC is meaningless:
21511 *djgpp*)
21512 lt_prog_compiler_pic_F77=
21515 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21517 esac
21520 # Check to make sure the static flag actually works.
21522 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21523 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21524 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21525 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21527 else
21528 lt_prog_compiler_static_works_F77=no
21529 save_LDFLAGS="$LDFLAGS"
21530 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21531 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21532 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21533 # The linker can only warn and ignore the option if not recognized
21534 # So say no if there are warnings
21535 if test -s conftest.err; then
21536 # Append any errors to the config.log.
21537 cat conftest.err 1>&5
21538 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21540 if diff conftest.exp conftest.er2 >/dev/null; then
21541 lt_prog_compiler_static_works_F77=yes
21543 else
21544 lt_prog_compiler_static_works_F77=yes
21547 $rm conftest*
21548 LDFLAGS="$save_LDFLAGS"
21551 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21552 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21554 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21556 else
21557 lt_prog_compiler_static_F77=
21561 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21562 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21563 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21564 echo $ECHO_N "(cached) $ECHO_C" >&6
21565 else
21566 lt_cv_prog_compiler_c_o_F77=no
21567 $rm -r conftest 2>/dev/null
21568 mkdir conftest
21569 cd conftest
21570 mkdir out
21571 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21573 lt_compiler_flag="-o out/conftest2.$ac_objext"
21574 # Insert the option either (1) after the last *FLAGS variable, or
21575 # (2) before a word containing "conftest.", or (3) at the end.
21576 # Note that $ac_compile itself does not contain backslashes and begins
21577 # with a dollar sign (not a hyphen), so the echo should work correctly.
21578 lt_compile=`echo "$ac_compile" | $SED \
21579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21581 -e 's:$: $lt_compiler_flag:'`
21582 (eval echo "\"\$as_me:21582: $lt_compile\"" >&5)
21583 (eval "$lt_compile" 2>out/conftest.err)
21584 ac_status=$?
21585 cat out/conftest.err >&5
21586 echo "$as_me:21586: \$? = $ac_status" >&5
21587 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21588 then
21589 # The compiler can only warn and ignore the option if not recognized
21590 # So say no if there are warnings
21591 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21592 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21593 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21594 lt_cv_prog_compiler_c_o_F77=yes
21597 chmod u+w . 2>&5
21598 $rm conftest*
21599 # SGI C++ compiler will create directory out/ii_files/ for
21600 # template instantiation
21601 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21602 $rm out/* && rmdir out
21603 cd ..
21604 rmdir conftest
21605 $rm conftest*
21608 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21609 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21612 hard_links="nottested"
21613 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21614 # do not overwrite the value of need_locks provided by the user
21615 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21616 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21617 hard_links=yes
21618 $rm conftest*
21619 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21620 touch conftest.a
21621 ln conftest.a conftest.b 2>&5 || hard_links=no
21622 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21623 { echo "$as_me:$LINENO: result: $hard_links" >&5
21624 echo "${ECHO_T}$hard_links" >&6; }
21625 if test "$hard_links" = no; then
21626 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21627 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21628 need_locks=warn
21630 else
21631 need_locks=no
21634 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21635 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21637 runpath_var=
21638 allow_undefined_flag_F77=
21639 enable_shared_with_static_runtimes_F77=no
21640 archive_cmds_F77=
21641 archive_expsym_cmds_F77=
21642 old_archive_From_new_cmds_F77=
21643 old_archive_from_expsyms_cmds_F77=
21644 export_dynamic_flag_spec_F77=
21645 whole_archive_flag_spec_F77=
21646 thread_safe_flag_spec_F77=
21647 hardcode_libdir_flag_spec_F77=
21648 hardcode_libdir_flag_spec_ld_F77=
21649 hardcode_libdir_separator_F77=
21650 hardcode_direct_F77=no
21651 hardcode_minus_L_F77=no
21652 hardcode_shlibpath_var_F77=unsupported
21653 link_all_deplibs_F77=unknown
21654 hardcode_automatic_F77=no
21655 module_cmds_F77=
21656 module_expsym_cmds_F77=
21657 always_export_symbols_F77=no
21658 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21659 # include_expsyms should be a list of space-separated symbols to be *always*
21660 # included in the symbol list
21661 include_expsyms_F77=
21662 # exclude_expsyms can be an extended regexp of symbols to exclude
21663 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21664 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21665 # as well as any symbol that contains `d'.
21666 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21667 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21668 # platforms (ab)use it in PIC code, but their linkers get confused if
21669 # the symbol is explicitly referenced. Since portable code cannot
21670 # rely on this symbol name, it's probably fine to never include it in
21671 # preloaded symbol tables.
21672 extract_expsyms_cmds=
21673 # Just being paranoid about ensuring that cc_basename is set.
21674 for cc_temp in $compiler""; do
21675 case $cc_temp in
21676 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21677 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21678 \-*) ;;
21679 *) break;;
21680 esac
21681 done
21682 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21684 case $host_os in
21685 cygwin* | mingw* | pw32*)
21686 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21687 # When not using gcc, we currently assume that we are using
21688 # Microsoft Visual C++.
21689 if test "$GCC" != yes; then
21690 with_gnu_ld=no
21693 interix*)
21694 # we just hope/assume this is gcc and not c89 (= MSVC++)
21695 with_gnu_ld=yes
21697 openbsd*)
21698 with_gnu_ld=no
21700 esac
21702 ld_shlibs_F77=yes
21703 if test "$with_gnu_ld" = yes; then
21704 # If archive_cmds runs LD, not CC, wlarc should be empty
21705 wlarc='${wl}'
21707 # Set some defaults for GNU ld with shared library support. These
21708 # are reset later if shared libraries are not supported. Putting them
21709 # here allows them to be overridden if necessary.
21710 runpath_var=LD_RUN_PATH
21711 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21712 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21713 # ancient GNU ld didn't support --whole-archive et. al.
21714 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21715 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21716 else
21717 whole_archive_flag_spec_F77=
21719 supports_anon_versioning=no
21720 case `$LD -v 2>/dev/null` in
21721 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21722 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21723 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21724 *\ 2.11.*) ;; # other 2.11 versions
21725 *) supports_anon_versioning=yes ;;
21726 esac
21728 # See if GNU ld supports shared libraries.
21729 case $host_os in
21730 aix3* | aix4* | aix5*)
21731 # On AIX/PPC, the GNU linker is very broken
21732 if test "$host_cpu" != ia64; then
21733 ld_shlibs_F77=no
21734 cat <<EOF 1>&2
21736 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21737 *** to be unable to reliably create shared libraries on AIX.
21738 *** Therefore, libtool is disabling shared libraries support. If you
21739 *** really care for shared libraries, you may want to modify your PATH
21740 *** so that a non-GNU linker is found, and then restart.
21746 amigaos*)
21747 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)'
21748 hardcode_libdir_flag_spec_F77='-L$libdir'
21749 hardcode_minus_L_F77=yes
21751 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21752 # that the semantics of dynamic libraries on AmigaOS, at least up
21753 # to version 4, is to share data among multiple programs linked
21754 # with the same dynamic library. Since this doesn't match the
21755 # behavior of shared libraries on other platforms, we can't use
21756 # them.
21757 ld_shlibs_F77=no
21760 beos*)
21761 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21762 allow_undefined_flag_F77=unsupported
21763 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21764 # support --undefined. This deserves some investigation. FIXME
21765 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21766 else
21767 ld_shlibs_F77=no
21771 cygwin* | mingw* | pw32*)
21772 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21773 # as there is no search path for DLLs.
21774 hardcode_libdir_flag_spec_F77='-L$libdir'
21775 allow_undefined_flag_F77=unsupported
21776 always_export_symbols_F77=no
21777 enable_shared_with_static_runtimes_F77=yes
21778 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21780 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21781 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21782 # If the export-symbols file already is a .def file (1st line
21783 # is EXPORTS), use it as is; otherwise, prepend...
21784 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21785 cp $export_symbols $output_objdir/$soname.def;
21786 else
21787 echo EXPORTS > $output_objdir/$soname.def;
21788 cat $export_symbols >> $output_objdir/$soname.def;
21790 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21791 else
21792 ld_shlibs_F77=no
21796 interix3*)
21797 hardcode_direct_F77=no
21798 hardcode_shlibpath_var_F77=no
21799 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21800 export_dynamic_flag_spec_F77='${wl}-E'
21801 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21802 # Instead, shared libraries are loaded at an image base (0x10000000 by
21803 # default) and relocated if they conflict, which is a slow very memory
21804 # consuming and fragmenting process. To avoid this, we pick a random,
21805 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21806 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21807 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'
21808 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'
21811 linux*)
21812 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21813 tmp_addflag=
21814 case $cc_basename,$host_cpu in
21815 pgcc*) # Portland Group C compiler
21816 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'
21817 tmp_addflag=' $pic_flag'
21819 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21820 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'
21821 tmp_addflag=' $pic_flag -Mnomain' ;;
21822 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21823 tmp_addflag=' -i_dynamic' ;;
21824 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21825 tmp_addflag=' -i_dynamic -nofor_main' ;;
21826 ifc* | ifort*) # Intel Fortran compiler
21827 tmp_addflag=' -nofor_main' ;;
21828 esac
21829 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21831 if test $supports_anon_versioning = yes; then
21832 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21833 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21834 $echo "local: *; };" >> $output_objdir/$libname.ver~
21835 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21837 else
21838 ld_shlibs_F77=no
21842 netbsd*)
21843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21844 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21845 wlarc=
21846 else
21847 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21848 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21852 solaris*)
21853 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21854 ld_shlibs_F77=no
21855 cat <<EOF 1>&2
21857 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21858 *** create shared libraries on Solaris systems. Therefore, libtool
21859 *** is disabling shared libraries support. We urge you to upgrade GNU
21860 *** binutils to release 2.9.1 or newer. Another option is to modify
21861 *** your PATH or compiler configuration so that the native linker is
21862 *** used, and then restart.
21865 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21866 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21867 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21868 else
21869 ld_shlibs_F77=no
21873 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21874 case `$LD -v 2>&1` in
21875 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21876 ld_shlibs_F77=no
21877 cat <<_LT_EOF 1>&2
21879 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21880 *** reliably create shared libraries on SCO systems. Therefore, libtool
21881 *** is disabling shared libraries support. We urge you to upgrade GNU
21882 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21883 *** your PATH or compiler configuration so that the native linker is
21884 *** used, and then restart.
21886 _LT_EOF
21889 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21890 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21891 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21892 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21893 else
21894 ld_shlibs_F77=no
21897 esac
21900 sunos4*)
21901 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21902 wlarc=
21903 hardcode_direct_F77=yes
21904 hardcode_shlibpath_var_F77=no
21908 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21909 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21910 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21911 else
21912 ld_shlibs_F77=no
21915 esac
21917 if test "$ld_shlibs_F77" = no; then
21918 runpath_var=
21919 hardcode_libdir_flag_spec_F77=
21920 export_dynamic_flag_spec_F77=
21921 whole_archive_flag_spec_F77=
21923 else
21924 # PORTME fill in a description of your system's linker (not GNU ld)
21925 case $host_os in
21926 aix3*)
21927 allow_undefined_flag_F77=unsupported
21928 always_export_symbols_F77=yes
21929 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'
21930 # Note: this linker hardcodes the directories in LIBPATH if there
21931 # are no directories specified by -L.
21932 hardcode_minus_L_F77=yes
21933 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21934 # Neither direct hardcoding nor static linking is supported with a
21935 # broken collect2.
21936 hardcode_direct_F77=unsupported
21940 aix4* | aix5*)
21941 if test "$host_cpu" = ia64; then
21942 # On IA64, the linker does run time linking by default, so we don't
21943 # have to do anything special.
21944 aix_use_runtimelinking=no
21945 exp_sym_flag='-Bexport'
21946 no_entry_flag=""
21947 else
21948 # If we're using GNU nm, then we don't want the "-C" option.
21949 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21950 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21951 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'
21952 else
21953 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'
21955 aix_use_runtimelinking=no
21957 # Test if we are trying to use run time linking or normal
21958 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21959 # need to do runtime linking.
21960 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21961 for ld_flag in $LDFLAGS; do
21962 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21963 aix_use_runtimelinking=yes
21964 break
21966 done
21968 esac
21970 exp_sym_flag='-bexport'
21971 no_entry_flag='-bnoentry'
21974 # When large executables or shared objects are built, AIX ld can
21975 # have problems creating the table of contents. If linking a library
21976 # or program results in "error TOC overflow" add -mminimal-toc to
21977 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21978 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21980 archive_cmds_F77=''
21981 hardcode_direct_F77=yes
21982 hardcode_libdir_separator_F77=':'
21983 link_all_deplibs_F77=yes
21985 if test "$GCC" = yes; then
21986 case $host_os in aix4.[012]|aix4.[012].*)
21987 # We only want to do this on AIX 4.2 and lower, the check
21988 # below for broken collect2 doesn't work under 4.3+
21989 collect2name=`${CC} -print-prog-name=collect2`
21990 if test -f "$collect2name" && \
21991 strings "$collect2name" | grep resolve_lib_name >/dev/null
21992 then
21993 # We have reworked collect2
21994 hardcode_direct_F77=yes
21995 else
21996 # We have old collect2
21997 hardcode_direct_F77=unsupported
21998 # It fails to find uninstalled libraries when the uninstalled
21999 # path is not listed in the libpath. Setting hardcode_minus_L
22000 # to unsupported forces relinking
22001 hardcode_minus_L_F77=yes
22002 hardcode_libdir_flag_spec_F77='-L$libdir'
22003 hardcode_libdir_separator_F77=
22006 esac
22007 shared_flag='-shared'
22008 if test "$aix_use_runtimelinking" = yes; then
22009 shared_flag="$shared_flag "'${wl}-G'
22011 else
22012 # not using gcc
22013 if test "$host_cpu" = ia64; then
22014 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22015 # chokes on -Wl,-G. The following line is correct:
22016 shared_flag='-G'
22017 else
22018 if test "$aix_use_runtimelinking" = yes; then
22019 shared_flag='${wl}-G'
22020 else
22021 shared_flag='${wl}-bM:SRE'
22026 # It seems that -bexpall does not export symbols beginning with
22027 # underscore (_), so it is better to generate a list of symbols to export.
22028 always_export_symbols_F77=yes
22029 if test "$aix_use_runtimelinking" = yes; then
22030 # Warning - without using the other runtime loading flags (-brtl),
22031 # -berok will link without error, but may produce a broken library.
22032 allow_undefined_flag_F77='-berok'
22033 # Determine the default libpath from the value encoded in an empty executable.
22034 cat >conftest.$ac_ext <<_ACEOF
22035 program main
22038 _ACEOF
22039 rm -f conftest.$ac_objext conftest$ac_exeext
22040 if { (ac_try="$ac_link"
22041 case "(($ac_try" in
22042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043 *) ac_try_echo=$ac_try;;
22044 esac
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046 (eval "$ac_link") 2>conftest.er1
22047 ac_status=$?
22048 grep -v '^ *+' conftest.er1 >conftest.err
22049 rm -f conftest.er1
22050 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } &&
22053 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22054 { (case "(($ac_try" in
22055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22057 esac
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059 (eval "$ac_try") 2>&5
22060 ac_status=$?
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; } &&
22063 { ac_try='test -s conftest$ac_exeext'
22064 { (case "(($ac_try" in
22065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066 *) ac_try_echo=$ac_try;;
22067 esac
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069 (eval "$ac_try") 2>&5
22070 ac_status=$?
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); }; }; then
22074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22076 # Check for a 64-bit object if we didn't find anything.
22077 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; }
22078 }'`; fi
22079 else
22080 echo "$as_me: failed program was:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22086 rm -f core conftest.err conftest.$ac_objext \
22087 conftest$ac_exeext conftest.$ac_ext
22088 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22090 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22091 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"
22092 else
22093 if test "$host_cpu" = ia64; then
22094 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22095 allow_undefined_flag_F77="-z nodefs"
22096 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"
22097 else
22098 # Determine the default libpath from the value encoded in an empty executable.
22099 cat >conftest.$ac_ext <<_ACEOF
22100 program main
22103 _ACEOF
22104 rm -f conftest.$ac_objext conftest$ac_exeext
22105 if { (ac_try="$ac_link"
22106 case "(($ac_try" in
22107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108 *) ac_try_echo=$ac_try;;
22109 esac
22110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22111 (eval "$ac_link") 2>conftest.er1
22112 ac_status=$?
22113 grep -v '^ *+' conftest.er1 >conftest.err
22114 rm -f conftest.er1
22115 cat conftest.err >&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } &&
22118 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22119 { (case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22122 esac
22123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124 (eval "$ac_try") 2>&5
22125 ac_status=$?
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; } &&
22128 { ac_try='test -s conftest$ac_exeext'
22129 { (case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22132 esac
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134 (eval "$ac_try") 2>&5
22135 ac_status=$?
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); }; }; then
22139 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22141 # Check for a 64-bit object if we didn't find anything.
22142 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; }
22143 }'`; fi
22144 else
22145 echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22151 rm -f core conftest.err conftest.$ac_objext \
22152 conftest$ac_exeext conftest.$ac_ext
22153 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22155 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22156 # Warning - without using the other run time loading flags,
22157 # -berok will link without error, but may produce a broken library.
22158 no_undefined_flag_F77=' ${wl}-bernotok'
22159 allow_undefined_flag_F77=' ${wl}-berok'
22160 # Exported symbols can be pulled into shared objects from archives
22161 whole_archive_flag_spec_F77='$convenience'
22162 archive_cmds_need_lc_F77=yes
22163 # This is similar to how AIX traditionally builds its shared libraries.
22164 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'
22169 amigaos*)
22170 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)'
22171 hardcode_libdir_flag_spec_F77='-L$libdir'
22172 hardcode_minus_L_F77=yes
22173 # see comment about different semantics on the GNU ld section
22174 ld_shlibs_F77=no
22177 bsdi[45]*)
22178 export_dynamic_flag_spec_F77=-rdynamic
22181 cygwin* | mingw* | pw32*)
22182 # When not using gcc, we currently assume that we are using
22183 # Microsoft Visual C++.
22184 # hardcode_libdir_flag_spec is actually meaningless, as there is
22185 # no search path for DLLs.
22186 hardcode_libdir_flag_spec_F77=' '
22187 allow_undefined_flag_F77=unsupported
22188 # Tell ltmain to make .lib files, not .a files.
22189 libext=lib
22190 # Tell ltmain to make .dll files, not .so files.
22191 shrext_cmds=".dll"
22192 # FIXME: Setting linknames here is a bad hack.
22193 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22194 # The linker will automatically build a .lib file if we build a DLL.
22195 old_archive_From_new_cmds_F77='true'
22196 # FIXME: Should let the user specify the lib program.
22197 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22198 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22199 enable_shared_with_static_runtimes_F77=yes
22202 darwin* | rhapsody*)
22203 case $host_os in
22204 rhapsody* | darwin1.[012])
22205 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22207 *) # Darwin 1.3 on
22208 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22209 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22210 else
22211 case ${MACOSX_DEPLOYMENT_TARGET} in
22212 10.[012])
22213 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22215 10.*)
22216 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22218 esac
22221 esac
22222 archive_cmds_need_lc_F77=no
22223 hardcode_direct_F77=no
22224 hardcode_automatic_F77=yes
22225 hardcode_shlibpath_var_F77=unsupported
22226 whole_archive_flag_spec_F77=''
22227 link_all_deplibs_F77=yes
22228 if test "$GCC" = yes ; then
22229 output_verbose_link_cmd='echo'
22230 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22231 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22232 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22233 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}'
22234 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}'
22235 else
22236 case $cc_basename in
22237 xlc*)
22238 output_verbose_link_cmd='echo'
22239 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22240 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22241 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22242 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}'
22243 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}'
22246 ld_shlibs_F77=no
22248 esac
22252 dgux*)
22253 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22254 hardcode_libdir_flag_spec_F77='-L$libdir'
22255 hardcode_shlibpath_var_F77=no
22258 freebsd1*)
22259 ld_shlibs_F77=no
22262 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22263 # support. Future versions do this automatically, but an explicit c++rt0.o
22264 # does not break anything, and helps significantly (at the cost of a little
22265 # extra space).
22266 freebsd2.2*)
22267 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22268 hardcode_libdir_flag_spec_F77='-R$libdir'
22269 hardcode_direct_F77=yes
22270 hardcode_shlibpath_var_F77=no
22273 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22274 freebsd2*)
22275 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22276 hardcode_direct_F77=yes
22277 hardcode_minus_L_F77=yes
22278 hardcode_shlibpath_var_F77=no
22281 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22282 freebsd* | kfreebsd*-gnu | dragonfly*)
22283 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22284 hardcode_libdir_flag_spec_F77='-R$libdir'
22285 hardcode_direct_F77=yes
22286 hardcode_shlibpath_var_F77=no
22289 hpux9*)
22290 if test "$GCC" = yes; then
22291 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'
22292 else
22293 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'
22295 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22296 hardcode_libdir_separator_F77=:
22297 hardcode_direct_F77=yes
22299 # hardcode_minus_L: Not really in the search PATH,
22300 # but as the default location of the library.
22301 hardcode_minus_L_F77=yes
22302 export_dynamic_flag_spec_F77='${wl}-E'
22305 hpux10*)
22306 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22307 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22308 else
22309 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22311 if test "$with_gnu_ld" = no; then
22312 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22313 hardcode_libdir_separator_F77=:
22315 hardcode_direct_F77=yes
22316 export_dynamic_flag_spec_F77='${wl}-E'
22318 # hardcode_minus_L: Not really in the search PATH,
22319 # but as the default location of the library.
22320 hardcode_minus_L_F77=yes
22324 hpux11*)
22325 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22326 case $host_cpu in
22327 hppa*64*)
22328 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22330 ia64*)
22331 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22334 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22336 esac
22337 else
22338 case $host_cpu in
22339 hppa*64*)
22340 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22342 ia64*)
22343 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22346 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22348 esac
22350 if test "$with_gnu_ld" = no; then
22351 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22352 hardcode_libdir_separator_F77=:
22354 case $host_cpu in
22355 hppa*64*|ia64*)
22356 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22357 hardcode_direct_F77=no
22358 hardcode_shlibpath_var_F77=no
22361 hardcode_direct_F77=yes
22362 export_dynamic_flag_spec_F77='${wl}-E'
22364 # hardcode_minus_L: Not really in the search PATH,
22365 # but as the default location of the library.
22366 hardcode_minus_L_F77=yes
22368 esac
22372 irix5* | irix6* | nonstopux*)
22373 if test "$GCC" = yes; then
22374 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'
22375 else
22376 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'
22377 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22379 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22380 hardcode_libdir_separator_F77=:
22381 link_all_deplibs_F77=yes
22384 netbsd*)
22385 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22386 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22387 else
22388 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22390 hardcode_libdir_flag_spec_F77='-R$libdir'
22391 hardcode_direct_F77=yes
22392 hardcode_shlibpath_var_F77=no
22395 newsos6)
22396 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22397 hardcode_direct_F77=yes
22398 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22399 hardcode_libdir_separator_F77=:
22400 hardcode_shlibpath_var_F77=no
22403 openbsd*)
22404 hardcode_direct_F77=yes
22405 hardcode_shlibpath_var_F77=no
22406 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22407 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22408 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22409 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22410 export_dynamic_flag_spec_F77='${wl}-E'
22411 else
22412 case $host_os in
22413 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22414 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22415 hardcode_libdir_flag_spec_F77='-R$libdir'
22418 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22419 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22421 esac
22425 os2*)
22426 hardcode_libdir_flag_spec_F77='-L$libdir'
22427 hardcode_minus_L_F77=yes
22428 allow_undefined_flag_F77=unsupported
22429 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'
22430 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22433 osf3*)
22434 if test "$GCC" = yes; then
22435 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22436 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'
22437 else
22438 allow_undefined_flag_F77=' -expect_unresolved \*'
22439 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'
22441 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22442 hardcode_libdir_separator_F77=:
22445 osf4* | osf5*) # as osf3* with the addition of -msym flag
22446 if test "$GCC" = yes; then
22447 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22448 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'
22449 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22450 else
22451 allow_undefined_flag_F77=' -expect_unresolved \*'
22452 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'
22453 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~
22454 $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'
22456 # Both c and cxx compiler support -rpath directly
22457 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22459 hardcode_libdir_separator_F77=:
22462 solaris*)
22463 no_undefined_flag_F77=' -z text'
22464 if test "$GCC" = yes; then
22465 wlarc='${wl}'
22466 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22467 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22468 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22469 else
22470 wlarc=''
22471 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22472 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22473 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22475 hardcode_libdir_flag_spec_F77='-R$libdir'
22476 hardcode_shlibpath_var_F77=no
22477 case $host_os in
22478 solaris2.[0-5] | solaris2.[0-5].*) ;;
22480 # The compiler driver will combine linker options so we
22481 # cannot just pass the convience library names through
22482 # without $wl, iff we do not link with $LD.
22483 # Luckily, gcc supports the same syntax we need for Sun Studio.
22484 # Supported since Solaris 2.6 (maybe 2.5.1?)
22485 case $wlarc in
22487 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22489 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' ;;
22490 esac ;;
22491 esac
22492 link_all_deplibs_F77=yes
22495 sunos4*)
22496 if test "x$host_vendor" = xsequent; then
22497 # Use $CC to link under sequent, because it throws in some extra .o
22498 # files that make .init and .fini sections work.
22499 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22500 else
22501 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22503 hardcode_libdir_flag_spec_F77='-L$libdir'
22504 hardcode_direct_F77=yes
22505 hardcode_minus_L_F77=yes
22506 hardcode_shlibpath_var_F77=no
22509 sysv4)
22510 case $host_vendor in
22511 sni)
22512 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22513 hardcode_direct_F77=yes # is this really true???
22515 siemens)
22516 ## LD is ld it makes a PLAMLIB
22517 ## CC just makes a GrossModule.
22518 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22519 reload_cmds_F77='$CC -r -o $output$reload_objs'
22520 hardcode_direct_F77=no
22522 motorola)
22523 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22524 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22526 esac
22527 runpath_var='LD_RUN_PATH'
22528 hardcode_shlibpath_var_F77=no
22531 sysv4.3*)
22532 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22533 hardcode_shlibpath_var_F77=no
22534 export_dynamic_flag_spec_F77='-Bexport'
22537 sysv4*MP*)
22538 if test -d /usr/nec; then
22539 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22540 hardcode_shlibpath_var_F77=no
22541 runpath_var=LD_RUN_PATH
22542 hardcode_runpath_var=yes
22543 ld_shlibs_F77=yes
22547 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22548 no_undefined_flag_F77='${wl}-z,text'
22549 archive_cmds_need_lc_F77=no
22550 hardcode_shlibpath_var_F77=no
22551 runpath_var='LD_RUN_PATH'
22553 if test "$GCC" = yes; then
22554 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22555 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22556 else
22557 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22558 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22562 sysv5* | sco3.2v5* | sco5v6*)
22563 # Note: We can NOT use -z defs as we might desire, because we do not
22564 # link with -lc, and that would cause any symbols used from libc to
22565 # always be unresolved, which means just about no library would
22566 # ever link correctly. If we're not using GNU ld we use -z text
22567 # though, which does catch some bad symbols but isn't as heavy-handed
22568 # as -z defs.
22569 no_undefined_flag_F77='${wl}-z,text'
22570 allow_undefined_flag_F77='${wl}-z,nodefs'
22571 archive_cmds_need_lc_F77=no
22572 hardcode_shlibpath_var_F77=no
22573 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22574 hardcode_libdir_separator_F77=':'
22575 link_all_deplibs_F77=yes
22576 export_dynamic_flag_spec_F77='${wl}-Bexport'
22577 runpath_var='LD_RUN_PATH'
22579 if test "$GCC" = yes; then
22580 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22581 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22582 else
22583 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22584 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22588 uts4*)
22589 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22590 hardcode_libdir_flag_spec_F77='-L$libdir'
22591 hardcode_shlibpath_var_F77=no
22595 ld_shlibs_F77=no
22597 esac
22600 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22601 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22602 test "$ld_shlibs_F77" = no && can_build_shared=no
22605 # Do we need to explicitly link libc?
22607 case "x$archive_cmds_need_lc_F77" in
22608 x|xyes)
22609 # Assume -lc should be added
22610 archive_cmds_need_lc_F77=yes
22612 if test "$enable_shared" = yes && test "$GCC" = yes; then
22613 case $archive_cmds_F77 in
22614 *'~'*)
22615 # FIXME: we may have to deal with multi-command sequences.
22617 '$CC '*)
22618 # Test whether the compiler implicitly links with -lc since on some
22619 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22620 # to ld, don't add -lc before -lgcc.
22621 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22622 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22623 $rm conftest*
22624 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22627 (eval $ac_compile) 2>&5
22628 ac_status=$?
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); } 2>conftest.err; then
22631 soname=conftest
22632 lib=conftest
22633 libobjs=conftest.$ac_objext
22634 deplibs=
22635 wl=$lt_prog_compiler_wl_F77
22636 pic_flag=$lt_prog_compiler_pic_F77
22637 compiler_flags=-v
22638 linker_flags=-v
22639 verstring=
22640 output_objdir=.
22641 libname=conftest
22642 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22643 allow_undefined_flag_F77=
22644 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22645 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22646 ac_status=$?
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); }
22649 then
22650 archive_cmds_need_lc_F77=no
22651 else
22652 archive_cmds_need_lc_F77=yes
22654 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22655 else
22656 cat conftest.err 1>&5
22658 $rm conftest*
22659 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22660 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22662 esac
22665 esac
22667 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22668 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22669 library_names_spec=
22670 libname_spec='lib$name'
22671 soname_spec=
22672 shrext_cmds=".so"
22673 postinstall_cmds=
22674 postuninstall_cmds=
22675 finish_cmds=
22676 finish_eval=
22677 shlibpath_var=
22678 shlibpath_overrides_runpath=unknown
22679 version_type=none
22680 dynamic_linker="$host_os ld.so"
22681 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22682 if test "$GCC" = yes; then
22683 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22684 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22685 # if the path contains ";" then we assume it to be the separator
22686 # otherwise default to the standard path separator (i.e. ":") - it is
22687 # assumed that no part of a normal pathname contains ";" but that should
22688 # okay in the real world where ";" in dirpaths is itself problematic.
22689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22690 else
22691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22693 else
22694 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22696 need_lib_prefix=unknown
22697 hardcode_into_libs=no
22699 # when you set need_version to no, make sure it does not cause -set_version
22700 # flags to be left without arguments
22701 need_version=unknown
22703 case $host_os in
22704 aix3*)
22705 version_type=linux
22706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22707 shlibpath_var=LIBPATH
22709 # AIX 3 has no versioning support, so we append a major version to the name.
22710 soname_spec='${libname}${release}${shared_ext}$major'
22713 aix4* | aix5*)
22714 version_type=linux
22715 need_lib_prefix=no
22716 need_version=no
22717 hardcode_into_libs=yes
22718 if test "$host_cpu" = ia64; then
22719 # AIX 5 supports IA64
22720 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22721 shlibpath_var=LD_LIBRARY_PATH
22722 else
22723 # With GCC up to 2.95.x, collect2 would create an import file
22724 # for dependence libraries. The import file would start with
22725 # the line `#! .'. This would cause the generated library to
22726 # depend on `.', always an invalid library. This was fixed in
22727 # development snapshots of GCC prior to 3.0.
22728 case $host_os in
22729 aix4 | aix4.[01] | aix4.[01].*)
22730 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22731 echo ' yes '
22732 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22734 else
22735 can_build_shared=no
22738 esac
22739 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22740 # soname into executable. Probably we can add versioning support to
22741 # collect2, so additional links can be useful in future.
22742 if test "$aix_use_runtimelinking" = yes; then
22743 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22744 # instead of lib<name>.a to let people know that these are not
22745 # typical AIX shared libraries.
22746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22747 else
22748 # We preserve .a as extension for shared libraries through AIX4.2
22749 # and later when we are not doing run time linking.
22750 library_names_spec='${libname}${release}.a $libname.a'
22751 soname_spec='${libname}${release}${shared_ext}$major'
22753 shlibpath_var=LIBPATH
22757 amigaos*)
22758 library_names_spec='$libname.ixlibrary $libname.a'
22759 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22760 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'
22763 beos*)
22764 library_names_spec='${libname}${shared_ext}'
22765 dynamic_linker="$host_os ld.so"
22766 shlibpath_var=LIBRARY_PATH
22769 bsdi[45]*)
22770 version_type=linux
22771 need_version=no
22772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22773 soname_spec='${libname}${release}${shared_ext}$major'
22774 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22775 shlibpath_var=LD_LIBRARY_PATH
22776 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22777 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22778 # the default ld.so.conf also contains /usr/contrib/lib and
22779 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22780 # libtool to hard-code these into programs
22783 cygwin* | mingw* | pw32*)
22784 version_type=windows
22785 shrext_cmds=".dll"
22786 need_version=no
22787 need_lib_prefix=no
22789 case $GCC,$host_os in
22790 yes,cygwin* | yes,mingw* | yes,pw32*)
22791 library_names_spec='$libname.dll.a'
22792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22793 postinstall_cmds='base_file=`basename \${file}`~
22794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22795 dldir=$destdir/`dirname \$dlpath`~
22796 test -d \$dldir || mkdir -p \$dldir~
22797 $install_prog $dir/$dlname \$dldir/$dlname~
22798 chmod a+x \$dldir/$dlname'
22799 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22800 dlpath=$dir/\$dldll~
22801 $rm \$dlpath'
22802 shlibpath_overrides_runpath=yes
22804 case $host_os in
22805 cygwin*)
22806 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22807 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22808 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22810 mingw*)
22811 # MinGW DLLs use traditional 'lib' prefix
22812 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22813 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22814 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22815 # It is most probably a Windows format PATH printed by
22816 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22817 # path with ; separators, and with drive letters. We can handle the
22818 # drive letters (cygwin fileutils understands them), so leave them,
22819 # especially as we might pass files found there to a mingw objdump,
22820 # which wouldn't understand a cygwinified path. Ahh.
22821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22822 else
22823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22826 pw32*)
22827 # pw32 DLLs use 'pw' prefix rather than 'lib'
22828 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22830 esac
22834 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22836 esac
22837 dynamic_linker='Win32 ld.exe'
22838 # FIXME: first we should search . and the directory the executable is in
22839 shlibpath_var=PATH
22842 darwin* | rhapsody*)
22843 dynamic_linker="$host_os dyld"
22844 version_type=darwin
22845 need_lib_prefix=no
22846 need_version=no
22847 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22848 soname_spec='${libname}${release}${major}$shared_ext'
22849 shlibpath_overrides_runpath=yes
22850 shlibpath_var=DYLD_LIBRARY_PATH
22851 shrext_cmds='.dylib'
22852 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22853 if test "$GCC" = yes; then
22854 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"`
22855 else
22856 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22858 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22861 dgux*)
22862 version_type=linux
22863 need_lib_prefix=no
22864 need_version=no
22865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22866 soname_spec='${libname}${release}${shared_ext}$major'
22867 shlibpath_var=LD_LIBRARY_PATH
22870 freebsd1*)
22871 dynamic_linker=no
22874 kfreebsd*-gnu)
22875 version_type=linux
22876 need_lib_prefix=no
22877 need_version=no
22878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22879 soname_spec='${libname}${release}${shared_ext}$major'
22880 shlibpath_var=LD_LIBRARY_PATH
22881 shlibpath_overrides_runpath=no
22882 hardcode_into_libs=yes
22883 dynamic_linker='GNU ld.so'
22886 freebsd* | dragonfly*)
22887 # DragonFly does not have aout. When/if they implement a new
22888 # versioning mechanism, adjust this.
22889 if test -x /usr/bin/objformat; then
22890 objformat=`/usr/bin/objformat`
22891 else
22892 case $host_os in
22893 freebsd[123]*) objformat=aout ;;
22894 *) objformat=elf ;;
22895 esac
22897 version_type=freebsd-$objformat
22898 case $version_type in
22899 freebsd-elf*)
22900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22901 need_version=no
22902 need_lib_prefix=no
22904 freebsd-*)
22905 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22906 need_version=yes
22908 esac
22909 shlibpath_var=LD_LIBRARY_PATH
22910 case $host_os in
22911 freebsd2*)
22912 shlibpath_overrides_runpath=yes
22914 freebsd3.[01]* | freebsdelf3.[01]*)
22915 shlibpath_overrides_runpath=yes
22916 hardcode_into_libs=yes
22918 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22919 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22920 shlibpath_overrides_runpath=no
22921 hardcode_into_libs=yes
22923 freebsd*) # from 4.6 on
22924 shlibpath_overrides_runpath=yes
22925 hardcode_into_libs=yes
22927 esac
22930 gnu*)
22931 version_type=linux
22932 need_lib_prefix=no
22933 need_version=no
22934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22935 soname_spec='${libname}${release}${shared_ext}$major'
22936 shlibpath_var=LD_LIBRARY_PATH
22937 hardcode_into_libs=yes
22940 hpux9* | hpux10* | hpux11*)
22941 # Give a soname corresponding to the major version so that dld.sl refuses to
22942 # link against other versions.
22943 version_type=sunos
22944 need_lib_prefix=no
22945 need_version=no
22946 case $host_cpu in
22947 ia64*)
22948 shrext_cmds='.so'
22949 hardcode_into_libs=yes
22950 dynamic_linker="$host_os dld.so"
22951 shlibpath_var=LD_LIBRARY_PATH
22952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22954 soname_spec='${libname}${release}${shared_ext}$major'
22955 if test "X$HPUX_IA64_MODE" = X32; then
22956 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22957 else
22958 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22962 hppa*64*)
22963 shrext_cmds='.sl'
22964 hardcode_into_libs=yes
22965 dynamic_linker="$host_os dld.sl"
22966 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22969 soname_spec='${libname}${release}${shared_ext}$major'
22970 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22974 shrext_cmds='.sl'
22975 dynamic_linker="$host_os dld.sl"
22976 shlibpath_var=SHLIB_PATH
22977 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22979 soname_spec='${libname}${release}${shared_ext}$major'
22981 esac
22982 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22983 postinstall_cmds='chmod 555 $lib'
22986 interix3*)
22987 version_type=linux
22988 need_lib_prefix=no
22989 need_version=no
22990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22991 soname_spec='${libname}${release}${shared_ext}$major'
22992 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22993 shlibpath_var=LD_LIBRARY_PATH
22994 shlibpath_overrides_runpath=no
22995 hardcode_into_libs=yes
22998 irix5* | irix6* | nonstopux*)
22999 case $host_os in
23000 nonstopux*) version_type=nonstopux ;;
23002 if test "$lt_cv_prog_gnu_ld" = yes; then
23003 version_type=linux
23004 else
23005 version_type=irix
23006 fi ;;
23007 esac
23008 need_lib_prefix=no
23009 need_version=no
23010 soname_spec='${libname}${release}${shared_ext}$major'
23011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23012 case $host_os in
23013 irix5* | nonstopux*)
23014 libsuff= shlibsuff=
23017 case $LD in # libtool.m4 will add one of these switches to LD
23018 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23019 libsuff= shlibsuff= libmagic=32-bit;;
23020 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23021 libsuff=32 shlibsuff=N32 libmagic=N32;;
23022 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23023 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23024 *) libsuff= shlibsuff= libmagic=never-match;;
23025 esac
23027 esac
23028 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23029 shlibpath_overrides_runpath=no
23030 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23031 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23032 hardcode_into_libs=yes
23035 # No shared lib support for Linux oldld, aout, or coff.
23036 linux*oldld* | linux*aout* | linux*coff*)
23037 dynamic_linker=no
23040 # This must be Linux ELF.
23041 linux*)
23042 version_type=linux
23043 need_lib_prefix=no
23044 need_version=no
23045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23046 soname_spec='${libname}${release}${shared_ext}$major'
23047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23048 shlibpath_var=LD_LIBRARY_PATH
23049 shlibpath_overrides_runpath=no
23050 # This implies no fast_install, which is unacceptable.
23051 # Some rework will be needed to allow for fast_install
23052 # before this can be enabled.
23053 hardcode_into_libs=yes
23055 # Append ld.so.conf contents to the search path
23056 if test -f /etc/ld.so.conf; then
23057 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' ' '`
23058 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23061 # We used to test for /lib/ld.so.1 and disable shared libraries on
23062 # powerpc, because MkLinux only supported shared libraries with the
23063 # GNU dynamic linker. Since this was broken with cross compilers,
23064 # most powerpc-linux boxes support dynamic linking these days and
23065 # people can always --disable-shared, the test was removed, and we
23066 # assume the GNU/Linux dynamic linker is in use.
23067 dynamic_linker='GNU/Linux ld.so'
23070 knetbsd*-gnu)
23071 version_type=linux
23072 need_lib_prefix=no
23073 need_version=no
23074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23075 soname_spec='${libname}${release}${shared_ext}$major'
23076 shlibpath_var=LD_LIBRARY_PATH
23077 shlibpath_overrides_runpath=no
23078 hardcode_into_libs=yes
23079 dynamic_linker='GNU ld.so'
23082 netbsd*)
23083 version_type=sunos
23084 need_lib_prefix=no
23085 need_version=no
23086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23089 dynamic_linker='NetBSD (a.out) ld.so'
23090 else
23091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23092 soname_spec='${libname}${release}${shared_ext}$major'
23093 dynamic_linker='NetBSD ld.elf_so'
23095 shlibpath_var=LD_LIBRARY_PATH
23096 shlibpath_overrides_runpath=yes
23097 hardcode_into_libs=yes
23100 newsos6)
23101 version_type=linux
23102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23103 shlibpath_var=LD_LIBRARY_PATH
23104 shlibpath_overrides_runpath=yes
23107 nto-qnx*)
23108 version_type=linux
23109 need_lib_prefix=no
23110 need_version=no
23111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23112 soname_spec='${libname}${release}${shared_ext}$major'
23113 shlibpath_var=LD_LIBRARY_PATH
23114 shlibpath_overrides_runpath=yes
23117 openbsd*)
23118 version_type=sunos
23119 sys_lib_dlsearch_path_spec="/usr/lib"
23120 need_lib_prefix=no
23121 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23122 case $host_os in
23123 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23124 *) need_version=no ;;
23125 esac
23126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23128 shlibpath_var=LD_LIBRARY_PATH
23129 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23130 case $host_os in
23131 openbsd2.[89] | openbsd2.[89].*)
23132 shlibpath_overrides_runpath=no
23135 shlibpath_overrides_runpath=yes
23137 esac
23138 else
23139 shlibpath_overrides_runpath=yes
23143 os2*)
23144 libname_spec='$name'
23145 shrext_cmds=".dll"
23146 need_lib_prefix=no
23147 library_names_spec='$libname${shared_ext} $libname.a'
23148 dynamic_linker='OS/2 ld.exe'
23149 shlibpath_var=LIBPATH
23152 osf3* | osf4* | osf5*)
23153 version_type=osf
23154 need_lib_prefix=no
23155 need_version=no
23156 soname_spec='${libname}${release}${shared_ext}$major'
23157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23158 shlibpath_var=LD_LIBRARY_PATH
23159 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23160 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23163 solaris*)
23164 version_type=linux
23165 need_lib_prefix=no
23166 need_version=no
23167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23168 soname_spec='${libname}${release}${shared_ext}$major'
23169 shlibpath_var=LD_LIBRARY_PATH
23170 shlibpath_overrides_runpath=yes
23171 hardcode_into_libs=yes
23172 # ldd complains unless libraries are executable
23173 postinstall_cmds='chmod +x $lib'
23176 sunos4*)
23177 version_type=sunos
23178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23179 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23180 shlibpath_var=LD_LIBRARY_PATH
23181 shlibpath_overrides_runpath=yes
23182 if test "$with_gnu_ld" = yes; then
23183 need_lib_prefix=no
23185 need_version=yes
23188 sysv4 | sysv4.3*)
23189 version_type=linux
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
23193 case $host_vendor in
23194 sni)
23195 shlibpath_overrides_runpath=no
23196 need_lib_prefix=no
23197 export_dynamic_flag_spec='${wl}-Blargedynsym'
23198 runpath_var=LD_RUN_PATH
23200 siemens)
23201 need_lib_prefix=no
23203 motorola)
23204 need_lib_prefix=no
23205 need_version=no
23206 shlibpath_overrides_runpath=no
23207 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23209 esac
23212 sysv4*MP*)
23213 if test -d /usr/nec ;then
23214 version_type=linux
23215 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23216 soname_spec='$libname${shared_ext}.$major'
23217 shlibpath_var=LD_LIBRARY_PATH
23221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23222 version_type=freebsd-elf
23223 need_lib_prefix=no
23224 need_version=no
23225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23226 soname_spec='${libname}${release}${shared_ext}$major'
23227 shlibpath_var=LD_LIBRARY_PATH
23228 hardcode_into_libs=yes
23229 if test "$with_gnu_ld" = yes; then
23230 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23231 shlibpath_overrides_runpath=no
23232 else
23233 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23234 shlibpath_overrides_runpath=yes
23235 case $host_os in
23236 sco3.2v5*)
23237 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23239 esac
23241 sys_lib_dlsearch_path_spec='/usr/lib'
23244 uts4*)
23245 version_type=linux
23246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23247 soname_spec='${libname}${release}${shared_ext}$major'
23248 shlibpath_var=LD_LIBRARY_PATH
23252 dynamic_linker=no
23254 esac
23255 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23256 echo "${ECHO_T}$dynamic_linker" >&6; }
23257 test "$dynamic_linker" = no && can_build_shared=no
23259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23260 if test "$GCC" = yes; then
23261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23264 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23265 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23266 hardcode_action_F77=
23267 if test -n "$hardcode_libdir_flag_spec_F77" || \
23268 test -n "$runpath_var_F77" || \
23269 test "X$hardcode_automatic_F77" = "Xyes" ; then
23271 # We can hardcode non-existant directories.
23272 if test "$hardcode_direct_F77" != no &&
23273 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23274 # have to relink, otherwise we might link with an installed library
23275 # when we should be linking with a yet-to-be-installed one
23276 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23277 test "$hardcode_minus_L_F77" != no; then
23278 # Linking always hardcodes the temporary library directory.
23279 hardcode_action_F77=relink
23280 else
23281 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23282 hardcode_action_F77=immediate
23284 else
23285 # We cannot hardcode anything, or else we can only hardcode existing
23286 # directories.
23287 hardcode_action_F77=unsupported
23289 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23290 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23292 if test "$hardcode_action_F77" = relink; then
23293 # Fast installation is not supported
23294 enable_fast_install=no
23295 elif test "$shlibpath_overrides_runpath" = yes ||
23296 test "$enable_shared" = no; then
23297 # Fast installation is not necessary
23298 enable_fast_install=needless
23302 # The else clause should only fire when bootstrapping the
23303 # libtool distribution, otherwise you forgot to ship ltmain.sh
23304 # with your package, and you will get complaints that there are
23305 # no rules to generate ltmain.sh.
23306 if test -f "$ltmain"; then
23307 # See if we are running on zsh, and set the options which allow our commands through
23308 # without removal of \ escapes.
23309 if test -n "${ZSH_VERSION+set}" ; then
23310 setopt NO_GLOB_SUBST
23312 # Now quote all the things that may contain metacharacters while being
23313 # careful not to overquote the AC_SUBSTed values. We take copies of the
23314 # variables and quote the copies for generation of the libtool script.
23315 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23316 SED SHELL STRIP \
23317 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23318 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23319 deplibs_check_method reload_flag reload_cmds need_locks \
23320 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23321 lt_cv_sys_global_symbol_to_c_name_address \
23322 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23323 old_postinstall_cmds old_postuninstall_cmds \
23324 compiler_F77 \
23325 CC_F77 \
23326 LD_F77 \
23327 lt_prog_compiler_wl_F77 \
23328 lt_prog_compiler_pic_F77 \
23329 lt_prog_compiler_static_F77 \
23330 lt_prog_compiler_no_builtin_flag_F77 \
23331 export_dynamic_flag_spec_F77 \
23332 thread_safe_flag_spec_F77 \
23333 whole_archive_flag_spec_F77 \
23334 enable_shared_with_static_runtimes_F77 \
23335 old_archive_cmds_F77 \
23336 old_archive_from_new_cmds_F77 \
23337 predep_objects_F77 \
23338 postdep_objects_F77 \
23339 predeps_F77 \
23340 postdeps_F77 \
23341 compiler_lib_search_path_F77 \
23342 archive_cmds_F77 \
23343 archive_expsym_cmds_F77 \
23344 postinstall_cmds_F77 \
23345 postuninstall_cmds_F77 \
23346 old_archive_from_expsyms_cmds_F77 \
23347 allow_undefined_flag_F77 \
23348 no_undefined_flag_F77 \
23349 export_symbols_cmds_F77 \
23350 hardcode_libdir_flag_spec_F77 \
23351 hardcode_libdir_flag_spec_ld_F77 \
23352 hardcode_libdir_separator_F77 \
23353 hardcode_automatic_F77 \
23354 module_cmds_F77 \
23355 module_expsym_cmds_F77 \
23356 lt_cv_prog_compiler_c_o_F77 \
23357 exclude_expsyms_F77 \
23358 include_expsyms_F77; do
23360 case $var in
23361 old_archive_cmds_F77 | \
23362 old_archive_from_new_cmds_F77 | \
23363 archive_cmds_F77 | \
23364 archive_expsym_cmds_F77 | \
23365 module_cmds_F77 | \
23366 module_expsym_cmds_F77 | \
23367 old_archive_from_expsyms_cmds_F77 | \
23368 export_symbols_cmds_F77 | \
23369 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23370 postinstall_cmds | postuninstall_cmds | \
23371 old_postinstall_cmds | old_postuninstall_cmds | \
23372 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23373 # Double-quote double-evaled strings.
23374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23379 esac
23380 done
23382 case $lt_echo in
23383 *'\$0 --fallback-echo"')
23384 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23386 esac
23388 cfgfile="$ofile"
23390 cat <<__EOF__ >> "$cfgfile"
23391 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23393 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23395 # Shell to use when invoking shell scripts.
23396 SHELL=$lt_SHELL
23398 # Whether or not to build shared libraries.
23399 build_libtool_libs=$enable_shared
23401 # Whether or not to build static libraries.
23402 build_old_libs=$enable_static
23404 # Whether or not to add -lc for building shared libraries.
23405 build_libtool_need_lc=$archive_cmds_need_lc_F77
23407 # Whether or not to disallow shared libs when runtime libs are static
23408 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23410 # Whether or not to optimize for fast installation.
23411 fast_install=$enable_fast_install
23413 # The host system.
23414 host_alias=$host_alias
23415 host=$host
23416 host_os=$host_os
23418 # The build system.
23419 build_alias=$build_alias
23420 build=$build
23421 build_os=$build_os
23423 # An echo program that does not interpret backslashes.
23424 echo=$lt_echo
23426 # The archiver.
23427 AR=$lt_AR
23428 AR_FLAGS=$lt_AR_FLAGS
23430 # A C compiler.
23431 LTCC=$lt_LTCC
23433 # LTCC compiler flags.
23434 LTCFLAGS=$lt_LTCFLAGS
23436 # A language-specific compiler.
23437 CC=$lt_compiler_F77
23439 # Is the compiler the GNU C compiler?
23440 with_gcc=$GCC_F77
23442 # An ERE matcher.
23443 EGREP=$lt_EGREP
23445 # The linker used to build libraries.
23446 LD=$lt_LD_F77
23448 # Whether we need hard or soft links.
23449 LN_S=$lt_LN_S
23451 # A BSD-compatible nm program.
23452 NM=$lt_NM
23454 # A symbol stripping program
23455 STRIP=$lt_STRIP
23457 # Used to examine libraries when file_magic_cmd begins "file"
23458 MAGIC_CMD=$MAGIC_CMD
23460 # Used on cygwin: DLL creation program.
23461 DLLTOOL="$DLLTOOL"
23463 # Used on cygwin: object dumper.
23464 OBJDUMP="$OBJDUMP"
23466 # Used on cygwin: assembler.
23467 AS="$AS"
23469 # The name of the directory that contains temporary libtool files.
23470 objdir=$objdir
23472 # How to create reloadable object files.
23473 reload_flag=$lt_reload_flag
23474 reload_cmds=$lt_reload_cmds
23476 # How to pass a linker flag through the compiler.
23477 wl=$lt_lt_prog_compiler_wl_F77
23479 # Object file suffix (normally "o").
23480 objext="$ac_objext"
23482 # Old archive suffix (normally "a").
23483 libext="$libext"
23485 # Shared library suffix (normally ".so").
23486 shrext_cmds='$shrext_cmds'
23488 # Executable file suffix (normally "").
23489 exeext="$exeext"
23491 # Additional compiler flags for building library objects.
23492 pic_flag=$lt_lt_prog_compiler_pic_F77
23493 pic_mode=$pic_mode
23495 # What is the maximum length of a command?
23496 max_cmd_len=$lt_cv_sys_max_cmd_len
23498 # Does compiler simultaneously support -c and -o options?
23499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23501 # Must we lock files when doing compilation?
23502 need_locks=$lt_need_locks
23504 # Do we need the lib prefix for modules?
23505 need_lib_prefix=$need_lib_prefix
23507 # Do we need a version for libraries?
23508 need_version=$need_version
23510 # Whether dlopen is supported.
23511 dlopen_support=$enable_dlopen
23513 # Whether dlopen of programs is supported.
23514 dlopen_self=$enable_dlopen_self
23516 # Whether dlopen of statically linked programs is supported.
23517 dlopen_self_static=$enable_dlopen_self_static
23519 # Compiler flag to prevent dynamic linking.
23520 link_static_flag=$lt_lt_prog_compiler_static_F77
23522 # Compiler flag to turn off builtin functions.
23523 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23525 # Compiler flag to allow reflexive dlopens.
23526 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23528 # Compiler flag to generate shared objects directly from archives.
23529 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23531 # Compiler flag to generate thread-safe objects.
23532 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23534 # Library versioning type.
23535 version_type=$version_type
23537 # Format of library name prefix.
23538 libname_spec=$lt_libname_spec
23540 # List of archive names. First name is the real one, the rest are links.
23541 # The last name is the one that the linker finds with -lNAME.
23542 library_names_spec=$lt_library_names_spec
23544 # The coded name of the library, if different from the real name.
23545 soname_spec=$lt_soname_spec
23547 # Commands used to build and install an old-style archive.
23548 RANLIB=$lt_RANLIB
23549 old_archive_cmds=$lt_old_archive_cmds_F77
23550 old_postinstall_cmds=$lt_old_postinstall_cmds
23551 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23553 # Create an old-style archive from a shared archive.
23554 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23556 # Create a temporary old-style archive to link instead of a shared archive.
23557 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23559 # Commands used to build and install a shared archive.
23560 archive_cmds=$lt_archive_cmds_F77
23561 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23562 postinstall_cmds=$lt_postinstall_cmds
23563 postuninstall_cmds=$lt_postuninstall_cmds
23565 # Commands used to build a loadable module (assumed same as above if empty)
23566 module_cmds=$lt_module_cmds_F77
23567 module_expsym_cmds=$lt_module_expsym_cmds_F77
23569 # Commands to strip libraries.
23570 old_striplib=$lt_old_striplib
23571 striplib=$lt_striplib
23573 # Dependencies to place before the objects being linked to create a
23574 # shared library.
23575 predep_objects=$lt_predep_objects_F77
23577 # Dependencies to place after the objects being linked to create a
23578 # shared library.
23579 postdep_objects=$lt_postdep_objects_F77
23581 # Dependencies to place before the objects being linked to create a
23582 # shared library.
23583 predeps=$lt_predeps_F77
23585 # Dependencies to place after the objects being linked to create a
23586 # shared library.
23587 postdeps=$lt_postdeps_F77
23589 # The library search path used internally by the compiler when linking
23590 # a shared library.
23591 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23593 # Method to check whether dependent libraries are shared objects.
23594 deplibs_check_method=$lt_deplibs_check_method
23596 # Command to use when deplibs_check_method == file_magic.
23597 file_magic_cmd=$lt_file_magic_cmd
23599 # Flag that allows shared libraries with undefined symbols to be built.
23600 allow_undefined_flag=$lt_allow_undefined_flag_F77
23602 # Flag that forces no undefined symbols.
23603 no_undefined_flag=$lt_no_undefined_flag_F77
23605 # Commands used to finish a libtool library installation in a directory.
23606 finish_cmds=$lt_finish_cmds
23608 # Same as above, but a single script fragment to be evaled but not shown.
23609 finish_eval=$lt_finish_eval
23611 # Take the output of nm and produce a listing of raw symbols and C names.
23612 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23614 # Transform the output of nm in a proper C declaration
23615 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23617 # Transform the output of nm in a C name address pair
23618 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23620 # This is the shared library runtime path variable.
23621 runpath_var=$runpath_var
23623 # This is the shared library path variable.
23624 shlibpath_var=$shlibpath_var
23626 # Is shlibpath searched before the hard-coded library search path?
23627 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23629 # How to hardcode a shared library path into an executable.
23630 hardcode_action=$hardcode_action_F77
23632 # Whether we should hardcode library paths into libraries.
23633 hardcode_into_libs=$hardcode_into_libs
23635 # Flag to hardcode \$libdir into a binary during linking.
23636 # This must work even if \$libdir does not exist.
23637 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23639 # If ld is used when linking, flag to hardcode \$libdir into
23640 # a binary during linking. This must work even if \$libdir does
23641 # not exist.
23642 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23644 # Whether we need a single -rpath flag with a separated argument.
23645 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23647 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23648 # resulting binary.
23649 hardcode_direct=$hardcode_direct_F77
23651 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23652 # resulting binary.
23653 hardcode_minus_L=$hardcode_minus_L_F77
23655 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23656 # the resulting binary.
23657 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23659 # Set to yes if building a shared library automatically hardcodes DIR into the library
23660 # and all subsequent libraries and executables linked against it.
23661 hardcode_automatic=$hardcode_automatic_F77
23663 # Variables whose values should be saved in libtool wrapper scripts and
23664 # restored at relink time.
23665 variables_saved_for_relink="$variables_saved_for_relink"
23667 # Whether libtool must link a program against all its dependency libraries.
23668 link_all_deplibs=$link_all_deplibs_F77
23670 # Compile-time system search path for libraries
23671 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23673 # Run-time system search path for libraries
23674 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23676 # Fix the shell variable \$srcfile for the compiler.
23677 fix_srcfile_path="$fix_srcfile_path_F77"
23679 # Set to yes if exported symbols are required.
23680 always_export_symbols=$always_export_symbols_F77
23682 # The commands to list exported symbols.
23683 export_symbols_cmds=$lt_export_symbols_cmds_F77
23685 # The commands to extract the exported symbol list from a shared archive.
23686 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23688 # Symbols that should not be listed in the preloaded symbols.
23689 exclude_expsyms=$lt_exclude_expsyms_F77
23691 # Symbols that must always be exported.
23692 include_expsyms=$lt_include_expsyms_F77
23694 # ### END LIBTOOL TAG CONFIG: $tagname
23696 __EOF__
23699 else
23700 # If there is no Makefile yet, we rely on a make rule to execute
23701 # `config.status --recheck' to rerun these tests and create the
23702 # libtool script then.
23703 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23704 if test -f "$ltmain_in"; then
23705 test -f Makefile && make "$ltmain"
23710 ac_ext=c
23711 ac_cpp='$CPP $CPPFLAGS'
23712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23716 CC="$lt_save_CC"
23718 else
23719 tagname=""
23723 GCJ)
23724 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23725 ac_ext=c
23726 ac_cpp='$CPP $CPPFLAGS'
23727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23732 # Source file extension for Java test sources.
23733 ac_ext=java
23735 # Object file extension for compiled Java test sources.
23736 objext=o
23737 objext_GCJ=$objext
23739 # Code to be used in simple compile tests
23740 lt_simple_compile_test_code="class foo {}\n"
23742 # Code to be used in simple link tests
23743 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23745 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23747 # If no C compiler was specified, use CC.
23748 LTCC=${LTCC-"$CC"}
23750 # If no C compiler flags were specified, use CFLAGS.
23751 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23753 # Allow CC to be a program name with arguments.
23754 compiler=$CC
23757 # save warnings/boilerplate of simple test code
23758 ac_outfile=conftest.$ac_objext
23759 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23760 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23761 _lt_compiler_boilerplate=`cat conftest.err`
23762 $rm conftest*
23764 ac_outfile=conftest.$ac_objext
23765 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23766 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23767 _lt_linker_boilerplate=`cat conftest.err`
23768 $rm conftest*
23771 # Allow CC to be a program name with arguments.
23772 lt_save_CC="$CC"
23773 CC=${GCJ-"gcj"}
23774 compiler=$CC
23775 compiler_GCJ=$CC
23776 for cc_temp in $compiler""; do
23777 case $cc_temp in
23778 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23779 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23780 \-*) ;;
23781 *) break;;
23782 esac
23783 done
23784 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23787 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23788 archive_cmds_need_lc_GCJ=no
23790 old_archive_cmds_GCJ=$old_archive_cmds
23793 lt_prog_compiler_no_builtin_flag_GCJ=
23795 if test "$GCC" = yes; then
23796 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23799 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23800 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23801 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23802 echo $ECHO_N "(cached) $ECHO_C" >&6
23803 else
23804 lt_cv_prog_compiler_rtti_exceptions=no
23805 ac_outfile=conftest.$ac_objext
23806 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23807 lt_compiler_flag="-fno-rtti -fno-exceptions"
23808 # Insert the option either (1) after the last *FLAGS variable, or
23809 # (2) before a word containing "conftest.", or (3) at the end.
23810 # Note that $ac_compile itself does not contain backslashes and begins
23811 # with a dollar sign (not a hyphen), so the echo should work correctly.
23812 # The option is referenced via a variable to avoid confusing sed.
23813 lt_compile=`echo "$ac_compile" | $SED \
23814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23816 -e 's:$: $lt_compiler_flag:'`
23817 (eval echo "\"\$as_me:23817: $lt_compile\"" >&5)
23818 (eval "$lt_compile" 2>conftest.err)
23819 ac_status=$?
23820 cat conftest.err >&5
23821 echo "$as_me:23821: \$? = $ac_status" >&5
23822 if (exit $ac_status) && test -s "$ac_outfile"; then
23823 # The compiler can only warn and ignore the option if not recognized
23824 # So say no if there are warnings other than the usual output.
23825 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23828 lt_cv_prog_compiler_rtti_exceptions=yes
23831 $rm conftest*
23834 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23835 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23837 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23838 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23839 else
23845 lt_prog_compiler_wl_GCJ=
23846 lt_prog_compiler_pic_GCJ=
23847 lt_prog_compiler_static_GCJ=
23849 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23850 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23852 if test "$GCC" = yes; then
23853 lt_prog_compiler_wl_GCJ='-Wl,'
23854 lt_prog_compiler_static_GCJ='-static'
23856 case $host_os in
23857 aix*)
23858 # All AIX code is PIC.
23859 if test "$host_cpu" = ia64; then
23860 # AIX 5 now supports IA64 processor
23861 lt_prog_compiler_static_GCJ='-Bstatic'
23865 amigaos*)
23866 # FIXME: we need at least 68020 code to build shared libraries, but
23867 # adding the `-m68020' flag to GCC prevents building anything better,
23868 # like `-m68040'.
23869 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23872 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23873 # PIC is the default for these OSes.
23876 mingw* | pw32* | os2*)
23877 # This hack is so that the source file can tell whether it is being
23878 # built for inclusion in a dll (and should export symbols for example).
23879 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23882 darwin* | rhapsody*)
23883 # PIC is the default on this platform
23884 # Common symbols not allowed in MH_DYLIB files
23885 lt_prog_compiler_pic_GCJ='-fno-common'
23888 interix3*)
23889 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23890 # Instead, we relocate shared libraries at runtime.
23893 msdosdjgpp*)
23894 # Just because we use GCC doesn't mean we suddenly get shared libraries
23895 # on systems that don't support them.
23896 lt_prog_compiler_can_build_shared_GCJ=no
23897 enable_shared=no
23900 sysv4*MP*)
23901 if test -d /usr/nec; then
23902 lt_prog_compiler_pic_GCJ=-Kconform_pic
23906 hpux*)
23907 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23908 # not for PA HP-UX.
23909 case $host_cpu in
23910 hppa*64*|ia64*)
23911 # +Z the default
23914 lt_prog_compiler_pic_GCJ='-fPIC'
23916 esac
23920 lt_prog_compiler_pic_GCJ='-fPIC'
23922 esac
23923 else
23924 # PORTME Check for flag to pass linker flags through the system compiler.
23925 case $host_os in
23926 aix*)
23927 lt_prog_compiler_wl_GCJ='-Wl,'
23928 if test "$host_cpu" = ia64; then
23929 # AIX 5 now supports IA64 processor
23930 lt_prog_compiler_static_GCJ='-Bstatic'
23931 else
23932 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23935 darwin*)
23936 # PIC is the default on this platform
23937 # Common symbols not allowed in MH_DYLIB files
23938 case $cc_basename in
23939 xlc*)
23940 lt_prog_compiler_pic_GCJ='-qnocommon'
23941 lt_prog_compiler_wl_GCJ='-Wl,'
23943 esac
23946 mingw* | pw32* | os2*)
23947 # This hack is so that the source file can tell whether it is being
23948 # built for inclusion in a dll (and should export symbols for example).
23949 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23952 hpux9* | hpux10* | hpux11*)
23953 lt_prog_compiler_wl_GCJ='-Wl,'
23954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23955 # not for PA HP-UX.
23956 case $host_cpu in
23957 hppa*64*|ia64*)
23958 # +Z the default
23961 lt_prog_compiler_pic_GCJ='+Z'
23963 esac
23964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23965 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23968 irix5* | irix6* | nonstopux*)
23969 lt_prog_compiler_wl_GCJ='-Wl,'
23970 # PIC (with -KPIC) is the default.
23971 lt_prog_compiler_static_GCJ='-non_shared'
23974 newsos6)
23975 lt_prog_compiler_pic_GCJ='-KPIC'
23976 lt_prog_compiler_static_GCJ='-Bstatic'
23979 linux*)
23980 case $cc_basename in
23981 icc* | ecc*)
23982 lt_prog_compiler_wl_GCJ='-Wl,'
23983 lt_prog_compiler_pic_GCJ='-KPIC'
23984 lt_prog_compiler_static_GCJ='-static'
23986 pgcc* | pgf77* | pgf90* | pgf95*)
23987 # Portland Group compilers (*not* the Pentium gcc compiler,
23988 # which looks to be a dead project)
23989 lt_prog_compiler_wl_GCJ='-Wl,'
23990 lt_prog_compiler_pic_GCJ='-fpic'
23991 lt_prog_compiler_static_GCJ='-Bstatic'
23993 ccc*)
23994 lt_prog_compiler_wl_GCJ='-Wl,'
23995 # All Alpha code is PIC.
23996 lt_prog_compiler_static_GCJ='-non_shared'
23998 esac
24001 osf3* | osf4* | osf5*)
24002 lt_prog_compiler_wl_GCJ='-Wl,'
24003 # All OSF/1 code is PIC.
24004 lt_prog_compiler_static_GCJ='-non_shared'
24007 solaris*)
24008 lt_prog_compiler_pic_GCJ='-KPIC'
24009 lt_prog_compiler_static_GCJ='-Bstatic'
24010 case $cc_basename in
24011 f77* | f90* | f95*)
24012 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24014 lt_prog_compiler_wl_GCJ='-Wl,';;
24015 esac
24018 sunos4*)
24019 lt_prog_compiler_wl_GCJ='-Qoption ld '
24020 lt_prog_compiler_pic_GCJ='-PIC'
24021 lt_prog_compiler_static_GCJ='-Bstatic'
24024 sysv4 | sysv4.2uw2* | sysv4.3*)
24025 lt_prog_compiler_wl_GCJ='-Wl,'
24026 lt_prog_compiler_pic_GCJ='-KPIC'
24027 lt_prog_compiler_static_GCJ='-Bstatic'
24030 sysv4*MP*)
24031 if test -d /usr/nec ;then
24032 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24033 lt_prog_compiler_static_GCJ='-Bstatic'
24037 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24038 lt_prog_compiler_wl_GCJ='-Wl,'
24039 lt_prog_compiler_pic_GCJ='-KPIC'
24040 lt_prog_compiler_static_GCJ='-Bstatic'
24043 unicos*)
24044 lt_prog_compiler_wl_GCJ='-Wl,'
24045 lt_prog_compiler_can_build_shared_GCJ=no
24048 uts4*)
24049 lt_prog_compiler_pic_GCJ='-pic'
24050 lt_prog_compiler_static_GCJ='-Bstatic'
24054 lt_prog_compiler_can_build_shared_GCJ=no
24056 esac
24059 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24060 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24063 # Check to make sure the PIC flag actually works.
24065 if test -n "$lt_prog_compiler_pic_GCJ"; then
24067 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24068 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24069 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24070 echo $ECHO_N "(cached) $ECHO_C" >&6
24071 else
24072 lt_prog_compiler_pic_works_GCJ=no
24073 ac_outfile=conftest.$ac_objext
24074 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24075 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24076 # Insert the option either (1) after the last *FLAGS variable, or
24077 # (2) before a word containing "conftest.", or (3) at the end.
24078 # Note that $ac_compile itself does not contain backslashes and begins
24079 # with a dollar sign (not a hyphen), so the echo should work correctly.
24080 # The option is referenced via a variable to avoid confusing sed.
24081 lt_compile=`echo "$ac_compile" | $SED \
24082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24084 -e 's:$: $lt_compiler_flag:'`
24085 (eval echo "\"\$as_me:24085: $lt_compile\"" >&5)
24086 (eval "$lt_compile" 2>conftest.err)
24087 ac_status=$?
24088 cat conftest.err >&5
24089 echo "$as_me:24089: \$? = $ac_status" >&5
24090 if (exit $ac_status) && test -s "$ac_outfile"; then
24091 # The compiler can only warn and ignore the option if not recognized
24092 # So say no if there are warnings other than the usual output.
24093 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24095 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24096 lt_prog_compiler_pic_works_GCJ=yes
24099 $rm conftest*
24102 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24103 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24105 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24106 case $lt_prog_compiler_pic_GCJ in
24107 "" | " "*) ;;
24108 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24109 esac
24110 else
24111 lt_prog_compiler_pic_GCJ=
24112 lt_prog_compiler_can_build_shared_GCJ=no
24116 case $host_os in
24117 # For platforms which do not support PIC, -DPIC is meaningless:
24118 *djgpp*)
24119 lt_prog_compiler_pic_GCJ=
24122 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24124 esac
24127 # Check to make sure the static flag actually works.
24129 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24130 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24131 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24132 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24133 echo $ECHO_N "(cached) $ECHO_C" >&6
24134 else
24135 lt_prog_compiler_static_works_GCJ=no
24136 save_LDFLAGS="$LDFLAGS"
24137 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24138 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24139 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24140 # The linker can only warn and ignore the option if not recognized
24141 # So say no if there are warnings
24142 if test -s conftest.err; then
24143 # Append any errors to the config.log.
24144 cat conftest.err 1>&5
24145 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24147 if diff conftest.exp conftest.er2 >/dev/null; then
24148 lt_prog_compiler_static_works_GCJ=yes
24150 else
24151 lt_prog_compiler_static_works_GCJ=yes
24154 $rm conftest*
24155 LDFLAGS="$save_LDFLAGS"
24158 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24159 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24161 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24163 else
24164 lt_prog_compiler_static_GCJ=
24168 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24169 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24170 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24171 echo $ECHO_N "(cached) $ECHO_C" >&6
24172 else
24173 lt_cv_prog_compiler_c_o_GCJ=no
24174 $rm -r conftest 2>/dev/null
24175 mkdir conftest
24176 cd conftest
24177 mkdir out
24178 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24180 lt_compiler_flag="-o out/conftest2.$ac_objext"
24181 # Insert the option either (1) after the last *FLAGS variable, or
24182 # (2) before a word containing "conftest.", or (3) at the end.
24183 # Note that $ac_compile itself does not contain backslashes and begins
24184 # with a dollar sign (not a hyphen), so the echo should work correctly.
24185 lt_compile=`echo "$ac_compile" | $SED \
24186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24188 -e 's:$: $lt_compiler_flag:'`
24189 (eval echo "\"\$as_me:24189: $lt_compile\"" >&5)
24190 (eval "$lt_compile" 2>out/conftest.err)
24191 ac_status=$?
24192 cat out/conftest.err >&5
24193 echo "$as_me:24193: \$? = $ac_status" >&5
24194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24195 then
24196 # The compiler can only warn and ignore the option if not recognized
24197 # So say no if there are warnings
24198 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24201 lt_cv_prog_compiler_c_o_GCJ=yes
24204 chmod u+w . 2>&5
24205 $rm conftest*
24206 # SGI C++ compiler will create directory out/ii_files/ for
24207 # template instantiation
24208 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24209 $rm out/* && rmdir out
24210 cd ..
24211 rmdir conftest
24212 $rm conftest*
24215 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24216 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24219 hard_links="nottested"
24220 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24221 # do not overwrite the value of need_locks provided by the user
24222 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24223 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24224 hard_links=yes
24225 $rm conftest*
24226 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24227 touch conftest.a
24228 ln conftest.a conftest.b 2>&5 || hard_links=no
24229 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24230 { echo "$as_me:$LINENO: result: $hard_links" >&5
24231 echo "${ECHO_T}$hard_links" >&6; }
24232 if test "$hard_links" = no; then
24233 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24234 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24235 need_locks=warn
24237 else
24238 need_locks=no
24241 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24242 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24244 runpath_var=
24245 allow_undefined_flag_GCJ=
24246 enable_shared_with_static_runtimes_GCJ=no
24247 archive_cmds_GCJ=
24248 archive_expsym_cmds_GCJ=
24249 old_archive_From_new_cmds_GCJ=
24250 old_archive_from_expsyms_cmds_GCJ=
24251 export_dynamic_flag_spec_GCJ=
24252 whole_archive_flag_spec_GCJ=
24253 thread_safe_flag_spec_GCJ=
24254 hardcode_libdir_flag_spec_GCJ=
24255 hardcode_libdir_flag_spec_ld_GCJ=
24256 hardcode_libdir_separator_GCJ=
24257 hardcode_direct_GCJ=no
24258 hardcode_minus_L_GCJ=no
24259 hardcode_shlibpath_var_GCJ=unsupported
24260 link_all_deplibs_GCJ=unknown
24261 hardcode_automatic_GCJ=no
24262 module_cmds_GCJ=
24263 module_expsym_cmds_GCJ=
24264 always_export_symbols_GCJ=no
24265 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24266 # include_expsyms should be a list of space-separated symbols to be *always*
24267 # included in the symbol list
24268 include_expsyms_GCJ=
24269 # exclude_expsyms can be an extended regexp of symbols to exclude
24270 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24271 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24272 # as well as any symbol that contains `d'.
24273 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24274 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24275 # platforms (ab)use it in PIC code, but their linkers get confused if
24276 # the symbol is explicitly referenced. Since portable code cannot
24277 # rely on this symbol name, it's probably fine to never include it in
24278 # preloaded symbol tables.
24279 extract_expsyms_cmds=
24280 # Just being paranoid about ensuring that cc_basename is set.
24281 for cc_temp in $compiler""; do
24282 case $cc_temp in
24283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24285 \-*) ;;
24286 *) break;;
24287 esac
24288 done
24289 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24291 case $host_os in
24292 cygwin* | mingw* | pw32*)
24293 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24294 # When not using gcc, we currently assume that we are using
24295 # Microsoft Visual C++.
24296 if test "$GCC" != yes; then
24297 with_gnu_ld=no
24300 interix*)
24301 # we just hope/assume this is gcc and not c89 (= MSVC++)
24302 with_gnu_ld=yes
24304 openbsd*)
24305 with_gnu_ld=no
24307 esac
24309 ld_shlibs_GCJ=yes
24310 if test "$with_gnu_ld" = yes; then
24311 # If archive_cmds runs LD, not CC, wlarc should be empty
24312 wlarc='${wl}'
24314 # Set some defaults for GNU ld with shared library support. These
24315 # are reset later if shared libraries are not supported. Putting them
24316 # here allows them to be overridden if necessary.
24317 runpath_var=LD_RUN_PATH
24318 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24319 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24320 # ancient GNU ld didn't support --whole-archive et. al.
24321 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24322 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24323 else
24324 whole_archive_flag_spec_GCJ=
24326 supports_anon_versioning=no
24327 case `$LD -v 2>/dev/null` in
24328 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24329 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24330 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24331 *\ 2.11.*) ;; # other 2.11 versions
24332 *) supports_anon_versioning=yes ;;
24333 esac
24335 # See if GNU ld supports shared libraries.
24336 case $host_os in
24337 aix3* | aix4* | aix5*)
24338 # On AIX/PPC, the GNU linker is very broken
24339 if test "$host_cpu" != ia64; then
24340 ld_shlibs_GCJ=no
24341 cat <<EOF 1>&2
24343 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24344 *** to be unable to reliably create shared libraries on AIX.
24345 *** Therefore, libtool is disabling shared libraries support. If you
24346 *** really care for shared libraries, you may want to modify your PATH
24347 *** so that a non-GNU linker is found, and then restart.
24353 amigaos*)
24354 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)'
24355 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24356 hardcode_minus_L_GCJ=yes
24358 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24359 # that the semantics of dynamic libraries on AmigaOS, at least up
24360 # to version 4, is to share data among multiple programs linked
24361 # with the same dynamic library. Since this doesn't match the
24362 # behavior of shared libraries on other platforms, we can't use
24363 # them.
24364 ld_shlibs_GCJ=no
24367 beos*)
24368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24369 allow_undefined_flag_GCJ=unsupported
24370 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24371 # support --undefined. This deserves some investigation. FIXME
24372 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24373 else
24374 ld_shlibs_GCJ=no
24378 cygwin* | mingw* | pw32*)
24379 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24380 # as there is no search path for DLLs.
24381 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24382 allow_undefined_flag_GCJ=unsupported
24383 always_export_symbols_GCJ=no
24384 enable_shared_with_static_runtimes_GCJ=yes
24385 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24387 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24388 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24389 # If the export-symbols file already is a .def file (1st line
24390 # is EXPORTS), use it as is; otherwise, prepend...
24391 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24392 cp $export_symbols $output_objdir/$soname.def;
24393 else
24394 echo EXPORTS > $output_objdir/$soname.def;
24395 cat $export_symbols >> $output_objdir/$soname.def;
24397 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24398 else
24399 ld_shlibs_GCJ=no
24403 interix3*)
24404 hardcode_direct_GCJ=no
24405 hardcode_shlibpath_var_GCJ=no
24406 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24407 export_dynamic_flag_spec_GCJ='${wl}-E'
24408 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24409 # Instead, shared libraries are loaded at an image base (0x10000000 by
24410 # default) and relocated if they conflict, which is a slow very memory
24411 # consuming and fragmenting process. To avoid this, we pick a random,
24412 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24413 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24414 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'
24415 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'
24418 linux*)
24419 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24420 tmp_addflag=
24421 case $cc_basename,$host_cpu in
24422 pgcc*) # Portland Group C compiler
24423 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'
24424 tmp_addflag=' $pic_flag'
24426 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24427 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'
24428 tmp_addflag=' $pic_flag -Mnomain' ;;
24429 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24430 tmp_addflag=' -i_dynamic' ;;
24431 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24432 tmp_addflag=' -i_dynamic -nofor_main' ;;
24433 ifc* | ifort*) # Intel Fortran compiler
24434 tmp_addflag=' -nofor_main' ;;
24435 esac
24436 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24438 if test $supports_anon_versioning = yes; then
24439 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24440 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24441 $echo "local: *; };" >> $output_objdir/$libname.ver~
24442 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24444 else
24445 ld_shlibs_GCJ=no
24449 netbsd*)
24450 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24451 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24452 wlarc=
24453 else
24454 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24455 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24459 solaris*)
24460 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24461 ld_shlibs_GCJ=no
24462 cat <<EOF 1>&2
24464 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24465 *** create shared libraries on Solaris systems. Therefore, libtool
24466 *** is disabling shared libraries support. We urge you to upgrade GNU
24467 *** binutils to release 2.9.1 or newer. Another option is to modify
24468 *** your PATH or compiler configuration so that the native linker is
24469 *** used, and then restart.
24472 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24473 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24474 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24475 else
24476 ld_shlibs_GCJ=no
24480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24481 case `$LD -v 2>&1` in
24482 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24483 ld_shlibs_GCJ=no
24484 cat <<_LT_EOF 1>&2
24486 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24487 *** reliably create shared libraries on SCO systems. Therefore, libtool
24488 *** is disabling shared libraries support. We urge you to upgrade GNU
24489 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24490 *** your PATH or compiler configuration so that the native linker is
24491 *** used, and then restart.
24493 _LT_EOF
24496 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24497 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24498 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24499 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24500 else
24501 ld_shlibs_GCJ=no
24504 esac
24507 sunos4*)
24508 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24509 wlarc=
24510 hardcode_direct_GCJ=yes
24511 hardcode_shlibpath_var_GCJ=no
24515 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24516 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24517 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24518 else
24519 ld_shlibs_GCJ=no
24522 esac
24524 if test "$ld_shlibs_GCJ" = no; then
24525 runpath_var=
24526 hardcode_libdir_flag_spec_GCJ=
24527 export_dynamic_flag_spec_GCJ=
24528 whole_archive_flag_spec_GCJ=
24530 else
24531 # PORTME fill in a description of your system's linker (not GNU ld)
24532 case $host_os in
24533 aix3*)
24534 allow_undefined_flag_GCJ=unsupported
24535 always_export_symbols_GCJ=yes
24536 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'
24537 # Note: this linker hardcodes the directories in LIBPATH if there
24538 # are no directories specified by -L.
24539 hardcode_minus_L_GCJ=yes
24540 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24541 # Neither direct hardcoding nor static linking is supported with a
24542 # broken collect2.
24543 hardcode_direct_GCJ=unsupported
24547 aix4* | aix5*)
24548 if test "$host_cpu" = ia64; then
24549 # On IA64, the linker does run time linking by default, so we don't
24550 # have to do anything special.
24551 aix_use_runtimelinking=no
24552 exp_sym_flag='-Bexport'
24553 no_entry_flag=""
24554 else
24555 # If we're using GNU nm, then we don't want the "-C" option.
24556 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24557 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24558 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'
24559 else
24560 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'
24562 aix_use_runtimelinking=no
24564 # Test if we are trying to use run time linking or normal
24565 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24566 # need to do runtime linking.
24567 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24568 for ld_flag in $LDFLAGS; do
24569 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24570 aix_use_runtimelinking=yes
24571 break
24573 done
24575 esac
24577 exp_sym_flag='-bexport'
24578 no_entry_flag='-bnoentry'
24581 # When large executables or shared objects are built, AIX ld can
24582 # have problems creating the table of contents. If linking a library
24583 # or program results in "error TOC overflow" add -mminimal-toc to
24584 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24585 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24587 archive_cmds_GCJ=''
24588 hardcode_direct_GCJ=yes
24589 hardcode_libdir_separator_GCJ=':'
24590 link_all_deplibs_GCJ=yes
24592 if test "$GCC" = yes; then
24593 case $host_os in aix4.[012]|aix4.[012].*)
24594 # We only want to do this on AIX 4.2 and lower, the check
24595 # below for broken collect2 doesn't work under 4.3+
24596 collect2name=`${CC} -print-prog-name=collect2`
24597 if test -f "$collect2name" && \
24598 strings "$collect2name" | grep resolve_lib_name >/dev/null
24599 then
24600 # We have reworked collect2
24601 hardcode_direct_GCJ=yes
24602 else
24603 # We have old collect2
24604 hardcode_direct_GCJ=unsupported
24605 # It fails to find uninstalled libraries when the uninstalled
24606 # path is not listed in the libpath. Setting hardcode_minus_L
24607 # to unsupported forces relinking
24608 hardcode_minus_L_GCJ=yes
24609 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24610 hardcode_libdir_separator_GCJ=
24613 esac
24614 shared_flag='-shared'
24615 if test "$aix_use_runtimelinking" = yes; then
24616 shared_flag="$shared_flag "'${wl}-G'
24618 else
24619 # not using gcc
24620 if test "$host_cpu" = ia64; then
24621 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24622 # chokes on -Wl,-G. The following line is correct:
24623 shared_flag='-G'
24624 else
24625 if test "$aix_use_runtimelinking" = yes; then
24626 shared_flag='${wl}-G'
24627 else
24628 shared_flag='${wl}-bM:SRE'
24633 # It seems that -bexpall does not export symbols beginning with
24634 # underscore (_), so it is better to generate a list of symbols to export.
24635 always_export_symbols_GCJ=yes
24636 if test "$aix_use_runtimelinking" = yes; then
24637 # Warning - without using the other runtime loading flags (-brtl),
24638 # -berok will link without error, but may produce a broken library.
24639 allow_undefined_flag_GCJ='-berok'
24640 # Determine the default libpath from the value encoded in an empty executable.
24641 cat >conftest.$ac_ext <<_ACEOF
24642 /* confdefs.h. */
24643 _ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h. */
24649 main ()
24653 return 0;
24655 _ACEOF
24656 rm -f conftest.$ac_objext conftest$ac_exeext
24657 if { (ac_try="$ac_link"
24658 case "(($ac_try" in
24659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24660 *) ac_try_echo=$ac_try;;
24661 esac
24662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24663 (eval "$ac_link") 2>conftest.er1
24664 ac_status=$?
24665 grep -v '^ *+' conftest.er1 >conftest.err
24666 rm -f conftest.er1
24667 cat conftest.err >&5
24668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); } &&
24670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24671 { (case "(($ac_try" in
24672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24673 *) ac_try_echo=$ac_try;;
24674 esac
24675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24676 (eval "$ac_try") 2>&5
24677 ac_status=$?
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); }; } &&
24680 { ac_try='test -s conftest$ac_exeext'
24681 { (case "(($ac_try" in
24682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24683 *) ac_try_echo=$ac_try;;
24684 esac
24685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24686 (eval "$ac_try") 2>&5
24687 ac_status=$?
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); }; }; then
24691 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24693 # Check for a 64-bit object if we didn't find anything.
24694 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; }
24695 }'`; fi
24696 else
24697 echo "$as_me: failed program was:" >&5
24698 sed 's/^/| /' conftest.$ac_ext >&5
24703 rm -f core conftest.err conftest.$ac_objext \
24704 conftest$ac_exeext conftest.$ac_ext
24705 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24707 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24708 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"
24709 else
24710 if test "$host_cpu" = ia64; then
24711 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24712 allow_undefined_flag_GCJ="-z nodefs"
24713 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"
24714 else
24715 # Determine the default libpath from the value encoded in an empty executable.
24716 cat >conftest.$ac_ext <<_ACEOF
24717 /* confdefs.h. */
24718 _ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h. */
24724 main ()
24728 return 0;
24730 _ACEOF
24731 rm -f conftest.$ac_objext conftest$ac_exeext
24732 if { (ac_try="$ac_link"
24733 case "(($ac_try" in
24734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24735 *) ac_try_echo=$ac_try;;
24736 esac
24737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24738 (eval "$ac_link") 2>conftest.er1
24739 ac_status=$?
24740 grep -v '^ *+' conftest.er1 >conftest.err
24741 rm -f conftest.er1
24742 cat conftest.err >&5
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); } &&
24745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24746 { (case "(($ac_try" in
24747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24748 *) ac_try_echo=$ac_try;;
24749 esac
24750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24751 (eval "$ac_try") 2>&5
24752 ac_status=$?
24753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); }; } &&
24755 { ac_try='test -s conftest$ac_exeext'
24756 { (case "(($ac_try" in
24757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24758 *) ac_try_echo=$ac_try;;
24759 esac
24760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24761 (eval "$ac_try") 2>&5
24762 ac_status=$?
24763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); }; }; then
24766 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24768 # Check for a 64-bit object if we didn't find anything.
24769 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; }
24770 }'`; fi
24771 else
24772 echo "$as_me: failed program was:" >&5
24773 sed 's/^/| /' conftest.$ac_ext >&5
24778 rm -f core conftest.err conftest.$ac_objext \
24779 conftest$ac_exeext conftest.$ac_ext
24780 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24782 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24783 # Warning - without using the other run time loading flags,
24784 # -berok will link without error, but may produce a broken library.
24785 no_undefined_flag_GCJ=' ${wl}-bernotok'
24786 allow_undefined_flag_GCJ=' ${wl}-berok'
24787 # Exported symbols can be pulled into shared objects from archives
24788 whole_archive_flag_spec_GCJ='$convenience'
24789 archive_cmds_need_lc_GCJ=yes
24790 # This is similar to how AIX traditionally builds its shared libraries.
24791 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'
24796 amigaos*)
24797 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)'
24798 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24799 hardcode_minus_L_GCJ=yes
24800 # see comment about different semantics on the GNU ld section
24801 ld_shlibs_GCJ=no
24804 bsdi[45]*)
24805 export_dynamic_flag_spec_GCJ=-rdynamic
24808 cygwin* | mingw* | pw32*)
24809 # When not using gcc, we currently assume that we are using
24810 # Microsoft Visual C++.
24811 # hardcode_libdir_flag_spec is actually meaningless, as there is
24812 # no search path for DLLs.
24813 hardcode_libdir_flag_spec_GCJ=' '
24814 allow_undefined_flag_GCJ=unsupported
24815 # Tell ltmain to make .lib files, not .a files.
24816 libext=lib
24817 # Tell ltmain to make .dll files, not .so files.
24818 shrext_cmds=".dll"
24819 # FIXME: Setting linknames here is a bad hack.
24820 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24821 # The linker will automatically build a .lib file if we build a DLL.
24822 old_archive_From_new_cmds_GCJ='true'
24823 # FIXME: Should let the user specify the lib program.
24824 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24825 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24826 enable_shared_with_static_runtimes_GCJ=yes
24829 darwin* | rhapsody*)
24830 case $host_os in
24831 rhapsody* | darwin1.[012])
24832 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24834 *) # Darwin 1.3 on
24835 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24836 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24837 else
24838 case ${MACOSX_DEPLOYMENT_TARGET} in
24839 10.[012])
24840 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24842 10.*)
24843 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24845 esac
24848 esac
24849 archive_cmds_need_lc_GCJ=no
24850 hardcode_direct_GCJ=no
24851 hardcode_automatic_GCJ=yes
24852 hardcode_shlibpath_var_GCJ=unsupported
24853 whole_archive_flag_spec_GCJ=''
24854 link_all_deplibs_GCJ=yes
24855 if test "$GCC" = yes ; then
24856 output_verbose_link_cmd='echo'
24857 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24858 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24859 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24860 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}'
24861 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}'
24862 else
24863 case $cc_basename in
24864 xlc*)
24865 output_verbose_link_cmd='echo'
24866 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24867 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24868 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24869 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}'
24870 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}'
24873 ld_shlibs_GCJ=no
24875 esac
24879 dgux*)
24880 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24881 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24882 hardcode_shlibpath_var_GCJ=no
24885 freebsd1*)
24886 ld_shlibs_GCJ=no
24889 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24890 # support. Future versions do this automatically, but an explicit c++rt0.o
24891 # does not break anything, and helps significantly (at the cost of a little
24892 # extra space).
24893 freebsd2.2*)
24894 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24895 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24896 hardcode_direct_GCJ=yes
24897 hardcode_shlibpath_var_GCJ=no
24900 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24901 freebsd2*)
24902 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24903 hardcode_direct_GCJ=yes
24904 hardcode_minus_L_GCJ=yes
24905 hardcode_shlibpath_var_GCJ=no
24908 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24909 freebsd* | kfreebsd*-gnu | dragonfly*)
24910 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24911 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24912 hardcode_direct_GCJ=yes
24913 hardcode_shlibpath_var_GCJ=no
24916 hpux9*)
24917 if test "$GCC" = yes; then
24918 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'
24919 else
24920 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'
24922 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24923 hardcode_libdir_separator_GCJ=:
24924 hardcode_direct_GCJ=yes
24926 # hardcode_minus_L: Not really in the search PATH,
24927 # but as the default location of the library.
24928 hardcode_minus_L_GCJ=yes
24929 export_dynamic_flag_spec_GCJ='${wl}-E'
24932 hpux10*)
24933 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24934 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24935 else
24936 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24938 if test "$with_gnu_ld" = no; then
24939 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24940 hardcode_libdir_separator_GCJ=:
24942 hardcode_direct_GCJ=yes
24943 export_dynamic_flag_spec_GCJ='${wl}-E'
24945 # hardcode_minus_L: Not really in the search PATH,
24946 # but as the default location of the library.
24947 hardcode_minus_L_GCJ=yes
24951 hpux11*)
24952 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24953 case $host_cpu in
24954 hppa*64*)
24955 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24957 ia64*)
24958 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24961 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24963 esac
24964 else
24965 case $host_cpu in
24966 hppa*64*)
24967 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24969 ia64*)
24970 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24973 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24975 esac
24977 if test "$with_gnu_ld" = no; then
24978 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24979 hardcode_libdir_separator_GCJ=:
24981 case $host_cpu in
24982 hppa*64*|ia64*)
24983 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24984 hardcode_direct_GCJ=no
24985 hardcode_shlibpath_var_GCJ=no
24988 hardcode_direct_GCJ=yes
24989 export_dynamic_flag_spec_GCJ='${wl}-E'
24991 # hardcode_minus_L: Not really in the search PATH,
24992 # but as the default location of the library.
24993 hardcode_minus_L_GCJ=yes
24995 esac
24999 irix5* | irix6* | nonstopux*)
25000 if test "$GCC" = yes; then
25001 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'
25002 else
25003 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'
25004 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25006 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25007 hardcode_libdir_separator_GCJ=:
25008 link_all_deplibs_GCJ=yes
25011 netbsd*)
25012 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25013 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25014 else
25015 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25017 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25018 hardcode_direct_GCJ=yes
25019 hardcode_shlibpath_var_GCJ=no
25022 newsos6)
25023 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25024 hardcode_direct_GCJ=yes
25025 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25026 hardcode_libdir_separator_GCJ=:
25027 hardcode_shlibpath_var_GCJ=no
25030 openbsd*)
25031 hardcode_direct_GCJ=yes
25032 hardcode_shlibpath_var_GCJ=no
25033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25034 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25035 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25036 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25037 export_dynamic_flag_spec_GCJ='${wl}-E'
25038 else
25039 case $host_os in
25040 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25041 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25042 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25045 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25046 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25048 esac
25052 os2*)
25053 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25054 hardcode_minus_L_GCJ=yes
25055 allow_undefined_flag_GCJ=unsupported
25056 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'
25057 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25060 osf3*)
25061 if test "$GCC" = yes; then
25062 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25063 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'
25064 else
25065 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25066 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'
25068 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25069 hardcode_libdir_separator_GCJ=:
25072 osf4* | osf5*) # as osf3* with the addition of -msym flag
25073 if test "$GCC" = yes; then
25074 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25075 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'
25076 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25077 else
25078 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25079 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'
25080 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~
25081 $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'
25083 # Both c and cxx compiler support -rpath directly
25084 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25086 hardcode_libdir_separator_GCJ=:
25089 solaris*)
25090 no_undefined_flag_GCJ=' -z text'
25091 if test "$GCC" = yes; then
25092 wlarc='${wl}'
25093 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25094 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25095 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25096 else
25097 wlarc=''
25098 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25099 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25100 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25102 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25103 hardcode_shlibpath_var_GCJ=no
25104 case $host_os in
25105 solaris2.[0-5] | solaris2.[0-5].*) ;;
25107 # The compiler driver will combine linker options so we
25108 # cannot just pass the convience library names through
25109 # without $wl, iff we do not link with $LD.
25110 # Luckily, gcc supports the same syntax we need for Sun Studio.
25111 # Supported since Solaris 2.6 (maybe 2.5.1?)
25112 case $wlarc in
25114 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25116 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' ;;
25117 esac ;;
25118 esac
25119 link_all_deplibs_GCJ=yes
25122 sunos4*)
25123 if test "x$host_vendor" = xsequent; then
25124 # Use $CC to link under sequent, because it throws in some extra .o
25125 # files that make .init and .fini sections work.
25126 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25127 else
25128 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25130 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25131 hardcode_direct_GCJ=yes
25132 hardcode_minus_L_GCJ=yes
25133 hardcode_shlibpath_var_GCJ=no
25136 sysv4)
25137 case $host_vendor in
25138 sni)
25139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25140 hardcode_direct_GCJ=yes # is this really true???
25142 siemens)
25143 ## LD is ld it makes a PLAMLIB
25144 ## CC just makes a GrossModule.
25145 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25146 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25147 hardcode_direct_GCJ=no
25149 motorola)
25150 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25151 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25153 esac
25154 runpath_var='LD_RUN_PATH'
25155 hardcode_shlibpath_var_GCJ=no
25158 sysv4.3*)
25159 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25160 hardcode_shlibpath_var_GCJ=no
25161 export_dynamic_flag_spec_GCJ='-Bexport'
25164 sysv4*MP*)
25165 if test -d /usr/nec; then
25166 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25167 hardcode_shlibpath_var_GCJ=no
25168 runpath_var=LD_RUN_PATH
25169 hardcode_runpath_var=yes
25170 ld_shlibs_GCJ=yes
25174 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25175 no_undefined_flag_GCJ='${wl}-z,text'
25176 archive_cmds_need_lc_GCJ=no
25177 hardcode_shlibpath_var_GCJ=no
25178 runpath_var='LD_RUN_PATH'
25180 if test "$GCC" = yes; then
25181 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25182 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25183 else
25184 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25185 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25189 sysv5* | sco3.2v5* | sco5v6*)
25190 # Note: We can NOT use -z defs as we might desire, because we do not
25191 # link with -lc, and that would cause any symbols used from libc to
25192 # always be unresolved, which means just about no library would
25193 # ever link correctly. If we're not using GNU ld we use -z text
25194 # though, which does catch some bad symbols but isn't as heavy-handed
25195 # as -z defs.
25196 no_undefined_flag_GCJ='${wl}-z,text'
25197 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25198 archive_cmds_need_lc_GCJ=no
25199 hardcode_shlibpath_var_GCJ=no
25200 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25201 hardcode_libdir_separator_GCJ=':'
25202 link_all_deplibs_GCJ=yes
25203 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25204 runpath_var='LD_RUN_PATH'
25206 if test "$GCC" = yes; then
25207 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25208 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25209 else
25210 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25211 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25215 uts4*)
25216 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25217 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25218 hardcode_shlibpath_var_GCJ=no
25222 ld_shlibs_GCJ=no
25224 esac
25227 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25228 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25229 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25232 # Do we need to explicitly link libc?
25234 case "x$archive_cmds_need_lc_GCJ" in
25235 x|xyes)
25236 # Assume -lc should be added
25237 archive_cmds_need_lc_GCJ=yes
25239 if test "$enable_shared" = yes && test "$GCC" = yes; then
25240 case $archive_cmds_GCJ in
25241 *'~'*)
25242 # FIXME: we may have to deal with multi-command sequences.
25244 '$CC '*)
25245 # Test whether the compiler implicitly links with -lc since on some
25246 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25247 # to ld, don't add -lc before -lgcc.
25248 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25249 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25250 $rm conftest*
25251 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25254 (eval $ac_compile) 2>&5
25255 ac_status=$?
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); } 2>conftest.err; then
25258 soname=conftest
25259 lib=conftest
25260 libobjs=conftest.$ac_objext
25261 deplibs=
25262 wl=$lt_prog_compiler_wl_GCJ
25263 pic_flag=$lt_prog_compiler_pic_GCJ
25264 compiler_flags=-v
25265 linker_flags=-v
25266 verstring=
25267 output_objdir=.
25268 libname=conftest
25269 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25270 allow_undefined_flag_GCJ=
25271 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25272 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25273 ac_status=$?
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); }
25276 then
25277 archive_cmds_need_lc_GCJ=no
25278 else
25279 archive_cmds_need_lc_GCJ=yes
25281 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25282 else
25283 cat conftest.err 1>&5
25285 $rm conftest*
25286 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25287 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25289 esac
25292 esac
25294 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25295 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25296 library_names_spec=
25297 libname_spec='lib$name'
25298 soname_spec=
25299 shrext_cmds=".so"
25300 postinstall_cmds=
25301 postuninstall_cmds=
25302 finish_cmds=
25303 finish_eval=
25304 shlibpath_var=
25305 shlibpath_overrides_runpath=unknown
25306 version_type=none
25307 dynamic_linker="$host_os ld.so"
25308 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25309 if test "$GCC" = yes; then
25310 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25311 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25312 # if the path contains ";" then we assume it to be the separator
25313 # otherwise default to the standard path separator (i.e. ":") - it is
25314 # assumed that no part of a normal pathname contains ";" but that should
25315 # okay in the real world where ";" in dirpaths is itself problematic.
25316 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25317 else
25318 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25320 else
25321 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25323 need_lib_prefix=unknown
25324 hardcode_into_libs=no
25326 # when you set need_version to no, make sure it does not cause -set_version
25327 # flags to be left without arguments
25328 need_version=unknown
25330 case $host_os in
25331 aix3*)
25332 version_type=linux
25333 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25334 shlibpath_var=LIBPATH
25336 # AIX 3 has no versioning support, so we append a major version to the name.
25337 soname_spec='${libname}${release}${shared_ext}$major'
25340 aix4* | aix5*)
25341 version_type=linux
25342 need_lib_prefix=no
25343 need_version=no
25344 hardcode_into_libs=yes
25345 if test "$host_cpu" = ia64; then
25346 # AIX 5 supports IA64
25347 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25348 shlibpath_var=LD_LIBRARY_PATH
25349 else
25350 # With GCC up to 2.95.x, collect2 would create an import file
25351 # for dependence libraries. The import file would start with
25352 # the line `#! .'. This would cause the generated library to
25353 # depend on `.', always an invalid library. This was fixed in
25354 # development snapshots of GCC prior to 3.0.
25355 case $host_os in
25356 aix4 | aix4.[01] | aix4.[01].*)
25357 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25358 echo ' yes '
25359 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25361 else
25362 can_build_shared=no
25365 esac
25366 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25367 # soname into executable. Probably we can add versioning support to
25368 # collect2, so additional links can be useful in future.
25369 if test "$aix_use_runtimelinking" = yes; then
25370 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25371 # instead of lib<name>.a to let people know that these are not
25372 # typical AIX shared libraries.
25373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25374 else
25375 # We preserve .a as extension for shared libraries through AIX4.2
25376 # and later when we are not doing run time linking.
25377 library_names_spec='${libname}${release}.a $libname.a'
25378 soname_spec='${libname}${release}${shared_ext}$major'
25380 shlibpath_var=LIBPATH
25384 amigaos*)
25385 library_names_spec='$libname.ixlibrary $libname.a'
25386 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25387 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'
25390 beos*)
25391 library_names_spec='${libname}${shared_ext}'
25392 dynamic_linker="$host_os ld.so"
25393 shlibpath_var=LIBRARY_PATH
25396 bsdi[45]*)
25397 version_type=linux
25398 need_version=no
25399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25400 soname_spec='${libname}${release}${shared_ext}$major'
25401 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25402 shlibpath_var=LD_LIBRARY_PATH
25403 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25404 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25405 # the default ld.so.conf also contains /usr/contrib/lib and
25406 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25407 # libtool to hard-code these into programs
25410 cygwin* | mingw* | pw32*)
25411 version_type=windows
25412 shrext_cmds=".dll"
25413 need_version=no
25414 need_lib_prefix=no
25416 case $GCC,$host_os in
25417 yes,cygwin* | yes,mingw* | yes,pw32*)
25418 library_names_spec='$libname.dll.a'
25419 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25420 postinstall_cmds='base_file=`basename \${file}`~
25421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25422 dldir=$destdir/`dirname \$dlpath`~
25423 test -d \$dldir || mkdir -p \$dldir~
25424 $install_prog $dir/$dlname \$dldir/$dlname~
25425 chmod a+x \$dldir/$dlname'
25426 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25427 dlpath=$dir/\$dldll~
25428 $rm \$dlpath'
25429 shlibpath_overrides_runpath=yes
25431 case $host_os in
25432 cygwin*)
25433 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25434 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25435 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25437 mingw*)
25438 # MinGW DLLs use traditional 'lib' prefix
25439 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25440 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25441 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25442 # It is most probably a Windows format PATH printed by
25443 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25444 # path with ; separators, and with drive letters. We can handle the
25445 # drive letters (cygwin fileutils understands them), so leave them,
25446 # especially as we might pass files found there to a mingw objdump,
25447 # which wouldn't understand a cygwinified path. Ahh.
25448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25449 else
25450 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25453 pw32*)
25454 # pw32 DLLs use 'pw' prefix rather than 'lib'
25455 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25457 esac
25461 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25463 esac
25464 dynamic_linker='Win32 ld.exe'
25465 # FIXME: first we should search . and the directory the executable is in
25466 shlibpath_var=PATH
25469 darwin* | rhapsody*)
25470 dynamic_linker="$host_os dyld"
25471 version_type=darwin
25472 need_lib_prefix=no
25473 need_version=no
25474 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25475 soname_spec='${libname}${release}${major}$shared_ext'
25476 shlibpath_overrides_runpath=yes
25477 shlibpath_var=DYLD_LIBRARY_PATH
25478 shrext_cmds='.dylib'
25479 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25480 if test "$GCC" = yes; then
25481 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"`
25482 else
25483 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25485 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25488 dgux*)
25489 version_type=linux
25490 need_lib_prefix=no
25491 need_version=no
25492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25493 soname_spec='${libname}${release}${shared_ext}$major'
25494 shlibpath_var=LD_LIBRARY_PATH
25497 freebsd1*)
25498 dynamic_linker=no
25501 kfreebsd*-gnu)
25502 version_type=linux
25503 need_lib_prefix=no
25504 need_version=no
25505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25506 soname_spec='${libname}${release}${shared_ext}$major'
25507 shlibpath_var=LD_LIBRARY_PATH
25508 shlibpath_overrides_runpath=no
25509 hardcode_into_libs=yes
25510 dynamic_linker='GNU ld.so'
25513 freebsd* | dragonfly*)
25514 # DragonFly does not have aout. When/if they implement a new
25515 # versioning mechanism, adjust this.
25516 if test -x /usr/bin/objformat; then
25517 objformat=`/usr/bin/objformat`
25518 else
25519 case $host_os in
25520 freebsd[123]*) objformat=aout ;;
25521 *) objformat=elf ;;
25522 esac
25524 version_type=freebsd-$objformat
25525 case $version_type in
25526 freebsd-elf*)
25527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25528 need_version=no
25529 need_lib_prefix=no
25531 freebsd-*)
25532 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25533 need_version=yes
25535 esac
25536 shlibpath_var=LD_LIBRARY_PATH
25537 case $host_os in
25538 freebsd2*)
25539 shlibpath_overrides_runpath=yes
25541 freebsd3.[01]* | freebsdelf3.[01]*)
25542 shlibpath_overrides_runpath=yes
25543 hardcode_into_libs=yes
25545 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25546 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25547 shlibpath_overrides_runpath=no
25548 hardcode_into_libs=yes
25550 freebsd*) # from 4.6 on
25551 shlibpath_overrides_runpath=yes
25552 hardcode_into_libs=yes
25554 esac
25557 gnu*)
25558 version_type=linux
25559 need_lib_prefix=no
25560 need_version=no
25561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25562 soname_spec='${libname}${release}${shared_ext}$major'
25563 shlibpath_var=LD_LIBRARY_PATH
25564 hardcode_into_libs=yes
25567 hpux9* | hpux10* | hpux11*)
25568 # Give a soname corresponding to the major version so that dld.sl refuses to
25569 # link against other versions.
25570 version_type=sunos
25571 need_lib_prefix=no
25572 need_version=no
25573 case $host_cpu in
25574 ia64*)
25575 shrext_cmds='.so'
25576 hardcode_into_libs=yes
25577 dynamic_linker="$host_os dld.so"
25578 shlibpath_var=LD_LIBRARY_PATH
25579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25581 soname_spec='${libname}${release}${shared_ext}$major'
25582 if test "X$HPUX_IA64_MODE" = X32; then
25583 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25584 else
25585 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25589 hppa*64*)
25590 shrext_cmds='.sl'
25591 hardcode_into_libs=yes
25592 dynamic_linker="$host_os dld.sl"
25593 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25594 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25596 soname_spec='${libname}${release}${shared_ext}$major'
25597 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25598 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25601 shrext_cmds='.sl'
25602 dynamic_linker="$host_os dld.sl"
25603 shlibpath_var=SHLIB_PATH
25604 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25606 soname_spec='${libname}${release}${shared_ext}$major'
25608 esac
25609 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25610 postinstall_cmds='chmod 555 $lib'
25613 interix3*)
25614 version_type=linux
25615 need_lib_prefix=no
25616 need_version=no
25617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25618 soname_spec='${libname}${release}${shared_ext}$major'
25619 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25620 shlibpath_var=LD_LIBRARY_PATH
25621 shlibpath_overrides_runpath=no
25622 hardcode_into_libs=yes
25625 irix5* | irix6* | nonstopux*)
25626 case $host_os in
25627 nonstopux*) version_type=nonstopux ;;
25629 if test "$lt_cv_prog_gnu_ld" = yes; then
25630 version_type=linux
25631 else
25632 version_type=irix
25633 fi ;;
25634 esac
25635 need_lib_prefix=no
25636 need_version=no
25637 soname_spec='${libname}${release}${shared_ext}$major'
25638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25639 case $host_os in
25640 irix5* | nonstopux*)
25641 libsuff= shlibsuff=
25644 case $LD in # libtool.m4 will add one of these switches to LD
25645 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25646 libsuff= shlibsuff= libmagic=32-bit;;
25647 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25648 libsuff=32 shlibsuff=N32 libmagic=N32;;
25649 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25650 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25651 *) libsuff= shlibsuff= libmagic=never-match;;
25652 esac
25654 esac
25655 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25656 shlibpath_overrides_runpath=no
25657 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25658 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25659 hardcode_into_libs=yes
25662 # No shared lib support for Linux oldld, aout, or coff.
25663 linux*oldld* | linux*aout* | linux*coff*)
25664 dynamic_linker=no
25667 # This must be Linux ELF.
25668 linux*)
25669 version_type=linux
25670 need_lib_prefix=no
25671 need_version=no
25672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25673 soname_spec='${libname}${release}${shared_ext}$major'
25674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25675 shlibpath_var=LD_LIBRARY_PATH
25676 shlibpath_overrides_runpath=no
25677 # This implies no fast_install, which is unacceptable.
25678 # Some rework will be needed to allow for fast_install
25679 # before this can be enabled.
25680 hardcode_into_libs=yes
25682 # Append ld.so.conf contents to the search path
25683 if test -f /etc/ld.so.conf; then
25684 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' ' '`
25685 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25688 # We used to test for /lib/ld.so.1 and disable shared libraries on
25689 # powerpc, because MkLinux only supported shared libraries with the
25690 # GNU dynamic linker. Since this was broken with cross compilers,
25691 # most powerpc-linux boxes support dynamic linking these days and
25692 # people can always --disable-shared, the test was removed, and we
25693 # assume the GNU/Linux dynamic linker is in use.
25694 dynamic_linker='GNU/Linux ld.so'
25697 knetbsd*-gnu)
25698 version_type=linux
25699 need_lib_prefix=no
25700 need_version=no
25701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25702 soname_spec='${libname}${release}${shared_ext}$major'
25703 shlibpath_var=LD_LIBRARY_PATH
25704 shlibpath_overrides_runpath=no
25705 hardcode_into_libs=yes
25706 dynamic_linker='GNU ld.so'
25709 netbsd*)
25710 version_type=sunos
25711 need_lib_prefix=no
25712 need_version=no
25713 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25716 dynamic_linker='NetBSD (a.out) ld.so'
25717 else
25718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25719 soname_spec='${libname}${release}${shared_ext}$major'
25720 dynamic_linker='NetBSD ld.elf_so'
25722 shlibpath_var=LD_LIBRARY_PATH
25723 shlibpath_overrides_runpath=yes
25724 hardcode_into_libs=yes
25727 newsos6)
25728 version_type=linux
25729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25730 shlibpath_var=LD_LIBRARY_PATH
25731 shlibpath_overrides_runpath=yes
25734 nto-qnx*)
25735 version_type=linux
25736 need_lib_prefix=no
25737 need_version=no
25738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25739 soname_spec='${libname}${release}${shared_ext}$major'
25740 shlibpath_var=LD_LIBRARY_PATH
25741 shlibpath_overrides_runpath=yes
25744 openbsd*)
25745 version_type=sunos
25746 sys_lib_dlsearch_path_spec="/usr/lib"
25747 need_lib_prefix=no
25748 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25749 case $host_os in
25750 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25751 *) need_version=no ;;
25752 esac
25753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25755 shlibpath_var=LD_LIBRARY_PATH
25756 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25757 case $host_os in
25758 openbsd2.[89] | openbsd2.[89].*)
25759 shlibpath_overrides_runpath=no
25762 shlibpath_overrides_runpath=yes
25764 esac
25765 else
25766 shlibpath_overrides_runpath=yes
25770 os2*)
25771 libname_spec='$name'
25772 shrext_cmds=".dll"
25773 need_lib_prefix=no
25774 library_names_spec='$libname${shared_ext} $libname.a'
25775 dynamic_linker='OS/2 ld.exe'
25776 shlibpath_var=LIBPATH
25779 osf3* | osf4* | osf5*)
25780 version_type=osf
25781 need_lib_prefix=no
25782 need_version=no
25783 soname_spec='${libname}${release}${shared_ext}$major'
25784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25785 shlibpath_var=LD_LIBRARY_PATH
25786 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25787 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25790 solaris*)
25791 version_type=linux
25792 need_lib_prefix=no
25793 need_version=no
25794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25795 soname_spec='${libname}${release}${shared_ext}$major'
25796 shlibpath_var=LD_LIBRARY_PATH
25797 shlibpath_overrides_runpath=yes
25798 hardcode_into_libs=yes
25799 # ldd complains unless libraries are executable
25800 postinstall_cmds='chmod +x $lib'
25803 sunos4*)
25804 version_type=sunos
25805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25806 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25807 shlibpath_var=LD_LIBRARY_PATH
25808 shlibpath_overrides_runpath=yes
25809 if test "$with_gnu_ld" = yes; then
25810 need_lib_prefix=no
25812 need_version=yes
25815 sysv4 | sysv4.3*)
25816 version_type=linux
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
25820 case $host_vendor in
25821 sni)
25822 shlibpath_overrides_runpath=no
25823 need_lib_prefix=no
25824 export_dynamic_flag_spec='${wl}-Blargedynsym'
25825 runpath_var=LD_RUN_PATH
25827 siemens)
25828 need_lib_prefix=no
25830 motorola)
25831 need_lib_prefix=no
25832 need_version=no
25833 shlibpath_overrides_runpath=no
25834 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25836 esac
25839 sysv4*MP*)
25840 if test -d /usr/nec ;then
25841 version_type=linux
25842 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25843 soname_spec='$libname${shared_ext}.$major'
25844 shlibpath_var=LD_LIBRARY_PATH
25848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25849 version_type=freebsd-elf
25850 need_lib_prefix=no
25851 need_version=no
25852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25853 soname_spec='${libname}${release}${shared_ext}$major'
25854 shlibpath_var=LD_LIBRARY_PATH
25855 hardcode_into_libs=yes
25856 if test "$with_gnu_ld" = yes; then
25857 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25858 shlibpath_overrides_runpath=no
25859 else
25860 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25861 shlibpath_overrides_runpath=yes
25862 case $host_os in
25863 sco3.2v5*)
25864 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25866 esac
25868 sys_lib_dlsearch_path_spec='/usr/lib'
25871 uts4*)
25872 version_type=linux
25873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25874 soname_spec='${libname}${release}${shared_ext}$major'
25875 shlibpath_var=LD_LIBRARY_PATH
25879 dynamic_linker=no
25881 esac
25882 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25883 echo "${ECHO_T}$dynamic_linker" >&6; }
25884 test "$dynamic_linker" = no && can_build_shared=no
25886 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25887 if test "$GCC" = yes; then
25888 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25891 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25892 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25893 hardcode_action_GCJ=
25894 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25895 test -n "$runpath_var_GCJ" || \
25896 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25898 # We can hardcode non-existant directories.
25899 if test "$hardcode_direct_GCJ" != no &&
25900 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25901 # have to relink, otherwise we might link with an installed library
25902 # when we should be linking with a yet-to-be-installed one
25903 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25904 test "$hardcode_minus_L_GCJ" != no; then
25905 # Linking always hardcodes the temporary library directory.
25906 hardcode_action_GCJ=relink
25907 else
25908 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25909 hardcode_action_GCJ=immediate
25911 else
25912 # We cannot hardcode anything, or else we can only hardcode existing
25913 # directories.
25914 hardcode_action_GCJ=unsupported
25916 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25917 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25919 if test "$hardcode_action_GCJ" = relink; then
25920 # Fast installation is not supported
25921 enable_fast_install=no
25922 elif test "$shlibpath_overrides_runpath" = yes ||
25923 test "$enable_shared" = no; then
25924 # Fast installation is not necessary
25925 enable_fast_install=needless
25929 # The else clause should only fire when bootstrapping the
25930 # libtool distribution, otherwise you forgot to ship ltmain.sh
25931 # with your package, and you will get complaints that there are
25932 # no rules to generate ltmain.sh.
25933 if test -f "$ltmain"; then
25934 # See if we are running on zsh, and set the options which allow our commands through
25935 # without removal of \ escapes.
25936 if test -n "${ZSH_VERSION+set}" ; then
25937 setopt NO_GLOB_SUBST
25939 # Now quote all the things that may contain metacharacters while being
25940 # careful not to overquote the AC_SUBSTed values. We take copies of the
25941 # variables and quote the copies for generation of the libtool script.
25942 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25943 SED SHELL STRIP \
25944 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25945 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25946 deplibs_check_method reload_flag reload_cmds need_locks \
25947 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25948 lt_cv_sys_global_symbol_to_c_name_address \
25949 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25950 old_postinstall_cmds old_postuninstall_cmds \
25951 compiler_GCJ \
25952 CC_GCJ \
25953 LD_GCJ \
25954 lt_prog_compiler_wl_GCJ \
25955 lt_prog_compiler_pic_GCJ \
25956 lt_prog_compiler_static_GCJ \
25957 lt_prog_compiler_no_builtin_flag_GCJ \
25958 export_dynamic_flag_spec_GCJ \
25959 thread_safe_flag_spec_GCJ \
25960 whole_archive_flag_spec_GCJ \
25961 enable_shared_with_static_runtimes_GCJ \
25962 old_archive_cmds_GCJ \
25963 old_archive_from_new_cmds_GCJ \
25964 predep_objects_GCJ \
25965 postdep_objects_GCJ \
25966 predeps_GCJ \
25967 postdeps_GCJ \
25968 compiler_lib_search_path_GCJ \
25969 archive_cmds_GCJ \
25970 archive_expsym_cmds_GCJ \
25971 postinstall_cmds_GCJ \
25972 postuninstall_cmds_GCJ \
25973 old_archive_from_expsyms_cmds_GCJ \
25974 allow_undefined_flag_GCJ \
25975 no_undefined_flag_GCJ \
25976 export_symbols_cmds_GCJ \
25977 hardcode_libdir_flag_spec_GCJ \
25978 hardcode_libdir_flag_spec_ld_GCJ \
25979 hardcode_libdir_separator_GCJ \
25980 hardcode_automatic_GCJ \
25981 module_cmds_GCJ \
25982 module_expsym_cmds_GCJ \
25983 lt_cv_prog_compiler_c_o_GCJ \
25984 exclude_expsyms_GCJ \
25985 include_expsyms_GCJ; do
25987 case $var in
25988 old_archive_cmds_GCJ | \
25989 old_archive_from_new_cmds_GCJ | \
25990 archive_cmds_GCJ | \
25991 archive_expsym_cmds_GCJ | \
25992 module_cmds_GCJ | \
25993 module_expsym_cmds_GCJ | \
25994 old_archive_from_expsyms_cmds_GCJ | \
25995 export_symbols_cmds_GCJ | \
25996 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25997 postinstall_cmds | postuninstall_cmds | \
25998 old_postinstall_cmds | old_postuninstall_cmds | \
25999 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26000 # Double-quote double-evaled strings.
26001 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26004 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26006 esac
26007 done
26009 case $lt_echo in
26010 *'\$0 --fallback-echo"')
26011 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26013 esac
26015 cfgfile="$ofile"
26017 cat <<__EOF__ >> "$cfgfile"
26018 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26020 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26022 # Shell to use when invoking shell scripts.
26023 SHELL=$lt_SHELL
26025 # Whether or not to build shared libraries.
26026 build_libtool_libs=$enable_shared
26028 # Whether or not to build static libraries.
26029 build_old_libs=$enable_static
26031 # Whether or not to add -lc for building shared libraries.
26032 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26034 # Whether or not to disallow shared libs when runtime libs are static
26035 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26037 # Whether or not to optimize for fast installation.
26038 fast_install=$enable_fast_install
26040 # The host system.
26041 host_alias=$host_alias
26042 host=$host
26043 host_os=$host_os
26045 # The build system.
26046 build_alias=$build_alias
26047 build=$build
26048 build_os=$build_os
26050 # An echo program that does not interpret backslashes.
26051 echo=$lt_echo
26053 # The archiver.
26054 AR=$lt_AR
26055 AR_FLAGS=$lt_AR_FLAGS
26057 # A C compiler.
26058 LTCC=$lt_LTCC
26060 # LTCC compiler flags.
26061 LTCFLAGS=$lt_LTCFLAGS
26063 # A language-specific compiler.
26064 CC=$lt_compiler_GCJ
26066 # Is the compiler the GNU C compiler?
26067 with_gcc=$GCC_GCJ
26069 # An ERE matcher.
26070 EGREP=$lt_EGREP
26072 # The linker used to build libraries.
26073 LD=$lt_LD_GCJ
26075 # Whether we need hard or soft links.
26076 LN_S=$lt_LN_S
26078 # A BSD-compatible nm program.
26079 NM=$lt_NM
26081 # A symbol stripping program
26082 STRIP=$lt_STRIP
26084 # Used to examine libraries when file_magic_cmd begins "file"
26085 MAGIC_CMD=$MAGIC_CMD
26087 # Used on cygwin: DLL creation program.
26088 DLLTOOL="$DLLTOOL"
26090 # Used on cygwin: object dumper.
26091 OBJDUMP="$OBJDUMP"
26093 # Used on cygwin: assembler.
26094 AS="$AS"
26096 # The name of the directory that contains temporary libtool files.
26097 objdir=$objdir
26099 # How to create reloadable object files.
26100 reload_flag=$lt_reload_flag
26101 reload_cmds=$lt_reload_cmds
26103 # How to pass a linker flag through the compiler.
26104 wl=$lt_lt_prog_compiler_wl_GCJ
26106 # Object file suffix (normally "o").
26107 objext="$ac_objext"
26109 # Old archive suffix (normally "a").
26110 libext="$libext"
26112 # Shared library suffix (normally ".so").
26113 shrext_cmds='$shrext_cmds'
26115 # Executable file suffix (normally "").
26116 exeext="$exeext"
26118 # Additional compiler flags for building library objects.
26119 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26120 pic_mode=$pic_mode
26122 # What is the maximum length of a command?
26123 max_cmd_len=$lt_cv_sys_max_cmd_len
26125 # Does compiler simultaneously support -c and -o options?
26126 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26128 # Must we lock files when doing compilation?
26129 need_locks=$lt_need_locks
26131 # Do we need the lib prefix for modules?
26132 need_lib_prefix=$need_lib_prefix
26134 # Do we need a version for libraries?
26135 need_version=$need_version
26137 # Whether dlopen is supported.
26138 dlopen_support=$enable_dlopen
26140 # Whether dlopen of programs is supported.
26141 dlopen_self=$enable_dlopen_self
26143 # Whether dlopen of statically linked programs is supported.
26144 dlopen_self_static=$enable_dlopen_self_static
26146 # Compiler flag to prevent dynamic linking.
26147 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26149 # Compiler flag to turn off builtin functions.
26150 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26152 # Compiler flag to allow reflexive dlopens.
26153 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26155 # Compiler flag to generate shared objects directly from archives.
26156 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26158 # Compiler flag to generate thread-safe objects.
26159 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26161 # Library versioning type.
26162 version_type=$version_type
26164 # Format of library name prefix.
26165 libname_spec=$lt_libname_spec
26167 # List of archive names. First name is the real one, the rest are links.
26168 # The last name is the one that the linker finds with -lNAME.
26169 library_names_spec=$lt_library_names_spec
26171 # The coded name of the library, if different from the real name.
26172 soname_spec=$lt_soname_spec
26174 # Commands used to build and install an old-style archive.
26175 RANLIB=$lt_RANLIB
26176 old_archive_cmds=$lt_old_archive_cmds_GCJ
26177 old_postinstall_cmds=$lt_old_postinstall_cmds
26178 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26180 # Create an old-style archive from a shared archive.
26181 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26183 # Create a temporary old-style archive to link instead of a shared archive.
26184 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26186 # Commands used to build and install a shared archive.
26187 archive_cmds=$lt_archive_cmds_GCJ
26188 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26189 postinstall_cmds=$lt_postinstall_cmds
26190 postuninstall_cmds=$lt_postuninstall_cmds
26192 # Commands used to build a loadable module (assumed same as above if empty)
26193 module_cmds=$lt_module_cmds_GCJ
26194 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26196 # Commands to strip libraries.
26197 old_striplib=$lt_old_striplib
26198 striplib=$lt_striplib
26200 # Dependencies to place before the objects being linked to create a
26201 # shared library.
26202 predep_objects=$lt_predep_objects_GCJ
26204 # Dependencies to place after the objects being linked to create a
26205 # shared library.
26206 postdep_objects=$lt_postdep_objects_GCJ
26208 # Dependencies to place before the objects being linked to create a
26209 # shared library.
26210 predeps=$lt_predeps_GCJ
26212 # Dependencies to place after the objects being linked to create a
26213 # shared library.
26214 postdeps=$lt_postdeps_GCJ
26216 # The library search path used internally by the compiler when linking
26217 # a shared library.
26218 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26220 # Method to check whether dependent libraries are shared objects.
26221 deplibs_check_method=$lt_deplibs_check_method
26223 # Command to use when deplibs_check_method == file_magic.
26224 file_magic_cmd=$lt_file_magic_cmd
26226 # Flag that allows shared libraries with undefined symbols to be built.
26227 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26229 # Flag that forces no undefined symbols.
26230 no_undefined_flag=$lt_no_undefined_flag_GCJ
26232 # Commands used to finish a libtool library installation in a directory.
26233 finish_cmds=$lt_finish_cmds
26235 # Same as above, but a single script fragment to be evaled but not shown.
26236 finish_eval=$lt_finish_eval
26238 # Take the output of nm and produce a listing of raw symbols and C names.
26239 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26241 # Transform the output of nm in a proper C declaration
26242 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26244 # Transform the output of nm in a C name address pair
26245 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26247 # This is the shared library runtime path variable.
26248 runpath_var=$runpath_var
26250 # This is the shared library path variable.
26251 shlibpath_var=$shlibpath_var
26253 # Is shlibpath searched before the hard-coded library search path?
26254 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26256 # How to hardcode a shared library path into an executable.
26257 hardcode_action=$hardcode_action_GCJ
26259 # Whether we should hardcode library paths into libraries.
26260 hardcode_into_libs=$hardcode_into_libs
26262 # Flag to hardcode \$libdir into a binary during linking.
26263 # This must work even if \$libdir does not exist.
26264 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26266 # If ld is used when linking, flag to hardcode \$libdir into
26267 # a binary during linking. This must work even if \$libdir does
26268 # not exist.
26269 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26271 # Whether we need a single -rpath flag with a separated argument.
26272 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26274 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26275 # resulting binary.
26276 hardcode_direct=$hardcode_direct_GCJ
26278 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26279 # resulting binary.
26280 hardcode_minus_L=$hardcode_minus_L_GCJ
26282 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26283 # the resulting binary.
26284 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26286 # Set to yes if building a shared library automatically hardcodes DIR into the library
26287 # and all subsequent libraries and executables linked against it.
26288 hardcode_automatic=$hardcode_automatic_GCJ
26290 # Variables whose values should be saved in libtool wrapper scripts and
26291 # restored at relink time.
26292 variables_saved_for_relink="$variables_saved_for_relink"
26294 # Whether libtool must link a program against all its dependency libraries.
26295 link_all_deplibs=$link_all_deplibs_GCJ
26297 # Compile-time system search path for libraries
26298 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26300 # Run-time system search path for libraries
26301 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26303 # Fix the shell variable \$srcfile for the compiler.
26304 fix_srcfile_path="$fix_srcfile_path_GCJ"
26306 # Set to yes if exported symbols are required.
26307 always_export_symbols=$always_export_symbols_GCJ
26309 # The commands to list exported symbols.
26310 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26312 # The commands to extract the exported symbol list from a shared archive.
26313 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26315 # Symbols that should not be listed in the preloaded symbols.
26316 exclude_expsyms=$lt_exclude_expsyms_GCJ
26318 # Symbols that must always be exported.
26319 include_expsyms=$lt_include_expsyms_GCJ
26321 # ### END LIBTOOL TAG CONFIG: $tagname
26323 __EOF__
26326 else
26327 # If there is no Makefile yet, we rely on a make rule to execute
26328 # `config.status --recheck' to rerun these tests and create the
26329 # libtool script then.
26330 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26331 if test -f "$ltmain_in"; then
26332 test -f Makefile && make "$ltmain"
26337 ac_ext=c
26338 ac_cpp='$CPP $CPPFLAGS'
26339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26343 CC="$lt_save_CC"
26345 else
26346 tagname=""
26351 ac_ext=c
26352 ac_cpp='$CPP $CPPFLAGS'
26353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26358 # Source file extension for RC test sources.
26359 ac_ext=rc
26361 # Object file extension for compiled RC test sources.
26362 objext=o
26363 objext_RC=$objext
26365 # Code to be used in simple compile tests
26366 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26368 # Code to be used in simple link tests
26369 lt_simple_link_test_code="$lt_simple_compile_test_code"
26371 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26373 # If no C compiler was specified, use CC.
26374 LTCC=${LTCC-"$CC"}
26376 # If no C compiler flags were specified, use CFLAGS.
26377 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26379 # Allow CC to be a program name with arguments.
26380 compiler=$CC
26383 # save warnings/boilerplate of simple test code
26384 ac_outfile=conftest.$ac_objext
26385 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26386 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26387 _lt_compiler_boilerplate=`cat conftest.err`
26388 $rm conftest*
26390 ac_outfile=conftest.$ac_objext
26391 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26392 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26393 _lt_linker_boilerplate=`cat conftest.err`
26394 $rm conftest*
26397 # Allow CC to be a program name with arguments.
26398 lt_save_CC="$CC"
26399 CC=${RC-"windres"}
26400 compiler=$CC
26401 compiler_RC=$CC
26402 for cc_temp in $compiler""; do
26403 case $cc_temp in
26404 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26405 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26406 \-*) ;;
26407 *) break;;
26408 esac
26409 done
26410 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26412 lt_cv_prog_compiler_c_o_RC=yes
26414 # The else clause should only fire when bootstrapping the
26415 # libtool distribution, otherwise you forgot to ship ltmain.sh
26416 # with your package, and you will get complaints that there are
26417 # no rules to generate ltmain.sh.
26418 if test -f "$ltmain"; then
26419 # See if we are running on zsh, and set the options which allow our commands through
26420 # without removal of \ escapes.
26421 if test -n "${ZSH_VERSION+set}" ; then
26422 setopt NO_GLOB_SUBST
26424 # Now quote all the things that may contain metacharacters while being
26425 # careful not to overquote the AC_SUBSTed values. We take copies of the
26426 # variables and quote the copies for generation of the libtool script.
26427 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26428 SED SHELL STRIP \
26429 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26430 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26431 deplibs_check_method reload_flag reload_cmds need_locks \
26432 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26433 lt_cv_sys_global_symbol_to_c_name_address \
26434 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26435 old_postinstall_cmds old_postuninstall_cmds \
26436 compiler_RC \
26437 CC_RC \
26438 LD_RC \
26439 lt_prog_compiler_wl_RC \
26440 lt_prog_compiler_pic_RC \
26441 lt_prog_compiler_static_RC \
26442 lt_prog_compiler_no_builtin_flag_RC \
26443 export_dynamic_flag_spec_RC \
26444 thread_safe_flag_spec_RC \
26445 whole_archive_flag_spec_RC \
26446 enable_shared_with_static_runtimes_RC \
26447 old_archive_cmds_RC \
26448 old_archive_from_new_cmds_RC \
26449 predep_objects_RC \
26450 postdep_objects_RC \
26451 predeps_RC \
26452 postdeps_RC \
26453 compiler_lib_search_path_RC \
26454 archive_cmds_RC \
26455 archive_expsym_cmds_RC \
26456 postinstall_cmds_RC \
26457 postuninstall_cmds_RC \
26458 old_archive_from_expsyms_cmds_RC \
26459 allow_undefined_flag_RC \
26460 no_undefined_flag_RC \
26461 export_symbols_cmds_RC \
26462 hardcode_libdir_flag_spec_RC \
26463 hardcode_libdir_flag_spec_ld_RC \
26464 hardcode_libdir_separator_RC \
26465 hardcode_automatic_RC \
26466 module_cmds_RC \
26467 module_expsym_cmds_RC \
26468 lt_cv_prog_compiler_c_o_RC \
26469 exclude_expsyms_RC \
26470 include_expsyms_RC; do
26472 case $var in
26473 old_archive_cmds_RC | \
26474 old_archive_from_new_cmds_RC | \
26475 archive_cmds_RC | \
26476 archive_expsym_cmds_RC | \
26477 module_cmds_RC | \
26478 module_expsym_cmds_RC | \
26479 old_archive_from_expsyms_cmds_RC | \
26480 export_symbols_cmds_RC | \
26481 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26482 postinstall_cmds | postuninstall_cmds | \
26483 old_postinstall_cmds | old_postuninstall_cmds | \
26484 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26485 # Double-quote double-evaled strings.
26486 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26489 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26491 esac
26492 done
26494 case $lt_echo in
26495 *'\$0 --fallback-echo"')
26496 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26498 esac
26500 cfgfile="$ofile"
26502 cat <<__EOF__ >> "$cfgfile"
26503 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26505 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26507 # Shell to use when invoking shell scripts.
26508 SHELL=$lt_SHELL
26510 # Whether or not to build shared libraries.
26511 build_libtool_libs=$enable_shared
26513 # Whether or not to build static libraries.
26514 build_old_libs=$enable_static
26516 # Whether or not to add -lc for building shared libraries.
26517 build_libtool_need_lc=$archive_cmds_need_lc_RC
26519 # Whether or not to disallow shared libs when runtime libs are static
26520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26522 # Whether or not to optimize for fast installation.
26523 fast_install=$enable_fast_install
26525 # The host system.
26526 host_alias=$host_alias
26527 host=$host
26528 host_os=$host_os
26530 # The build system.
26531 build_alias=$build_alias
26532 build=$build
26533 build_os=$build_os
26535 # An echo program that does not interpret backslashes.
26536 echo=$lt_echo
26538 # The archiver.
26539 AR=$lt_AR
26540 AR_FLAGS=$lt_AR_FLAGS
26542 # A C compiler.
26543 LTCC=$lt_LTCC
26545 # LTCC compiler flags.
26546 LTCFLAGS=$lt_LTCFLAGS
26548 # A language-specific compiler.
26549 CC=$lt_compiler_RC
26551 # Is the compiler the GNU C compiler?
26552 with_gcc=$GCC_RC
26554 # An ERE matcher.
26555 EGREP=$lt_EGREP
26557 # The linker used to build libraries.
26558 LD=$lt_LD_RC
26560 # Whether we need hard or soft links.
26561 LN_S=$lt_LN_S
26563 # A BSD-compatible nm program.
26564 NM=$lt_NM
26566 # A symbol stripping program
26567 STRIP=$lt_STRIP
26569 # Used to examine libraries when file_magic_cmd begins "file"
26570 MAGIC_CMD=$MAGIC_CMD
26572 # Used on cygwin: DLL creation program.
26573 DLLTOOL="$DLLTOOL"
26575 # Used on cygwin: object dumper.
26576 OBJDUMP="$OBJDUMP"
26578 # Used on cygwin: assembler.
26579 AS="$AS"
26581 # The name of the directory that contains temporary libtool files.
26582 objdir=$objdir
26584 # How to create reloadable object files.
26585 reload_flag=$lt_reload_flag
26586 reload_cmds=$lt_reload_cmds
26588 # How to pass a linker flag through the compiler.
26589 wl=$lt_lt_prog_compiler_wl_RC
26591 # Object file suffix (normally "o").
26592 objext="$ac_objext"
26594 # Old archive suffix (normally "a").
26595 libext="$libext"
26597 # Shared library suffix (normally ".so").
26598 shrext_cmds='$shrext_cmds'
26600 # Executable file suffix (normally "").
26601 exeext="$exeext"
26603 # Additional compiler flags for building library objects.
26604 pic_flag=$lt_lt_prog_compiler_pic_RC
26605 pic_mode=$pic_mode
26607 # What is the maximum length of a command?
26608 max_cmd_len=$lt_cv_sys_max_cmd_len
26610 # Does compiler simultaneously support -c and -o options?
26611 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26613 # Must we lock files when doing compilation?
26614 need_locks=$lt_need_locks
26616 # Do we need the lib prefix for modules?
26617 need_lib_prefix=$need_lib_prefix
26619 # Do we need a version for libraries?
26620 need_version=$need_version
26622 # Whether dlopen is supported.
26623 dlopen_support=$enable_dlopen
26625 # Whether dlopen of programs is supported.
26626 dlopen_self=$enable_dlopen_self
26628 # Whether dlopen of statically linked programs is supported.
26629 dlopen_self_static=$enable_dlopen_self_static
26631 # Compiler flag to prevent dynamic linking.
26632 link_static_flag=$lt_lt_prog_compiler_static_RC
26634 # Compiler flag to turn off builtin functions.
26635 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26637 # Compiler flag to allow reflexive dlopens.
26638 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26640 # Compiler flag to generate shared objects directly from archives.
26641 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26643 # Compiler flag to generate thread-safe objects.
26644 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26646 # Library versioning type.
26647 version_type=$version_type
26649 # Format of library name prefix.
26650 libname_spec=$lt_libname_spec
26652 # List of archive names. First name is the real one, the rest are links.
26653 # The last name is the one that the linker finds with -lNAME.
26654 library_names_spec=$lt_library_names_spec
26656 # The coded name of the library, if different from the real name.
26657 soname_spec=$lt_soname_spec
26659 # Commands used to build and install an old-style archive.
26660 RANLIB=$lt_RANLIB
26661 old_archive_cmds=$lt_old_archive_cmds_RC
26662 old_postinstall_cmds=$lt_old_postinstall_cmds
26663 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26665 # Create an old-style archive from a shared archive.
26666 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26668 # Create a temporary old-style archive to link instead of a shared archive.
26669 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26671 # Commands used to build and install a shared archive.
26672 archive_cmds=$lt_archive_cmds_RC
26673 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26674 postinstall_cmds=$lt_postinstall_cmds
26675 postuninstall_cmds=$lt_postuninstall_cmds
26677 # Commands used to build a loadable module (assumed same as above if empty)
26678 module_cmds=$lt_module_cmds_RC
26679 module_expsym_cmds=$lt_module_expsym_cmds_RC
26681 # Commands to strip libraries.
26682 old_striplib=$lt_old_striplib
26683 striplib=$lt_striplib
26685 # Dependencies to place before the objects being linked to create a
26686 # shared library.
26687 predep_objects=$lt_predep_objects_RC
26689 # Dependencies to place after the objects being linked to create a
26690 # shared library.
26691 postdep_objects=$lt_postdep_objects_RC
26693 # Dependencies to place before the objects being linked to create a
26694 # shared library.
26695 predeps=$lt_predeps_RC
26697 # Dependencies to place after the objects being linked to create a
26698 # shared library.
26699 postdeps=$lt_postdeps_RC
26701 # The library search path used internally by the compiler when linking
26702 # a shared library.
26703 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26705 # Method to check whether dependent libraries are shared objects.
26706 deplibs_check_method=$lt_deplibs_check_method
26708 # Command to use when deplibs_check_method == file_magic.
26709 file_magic_cmd=$lt_file_magic_cmd
26711 # Flag that allows shared libraries with undefined symbols to be built.
26712 allow_undefined_flag=$lt_allow_undefined_flag_RC
26714 # Flag that forces no undefined symbols.
26715 no_undefined_flag=$lt_no_undefined_flag_RC
26717 # Commands used to finish a libtool library installation in a directory.
26718 finish_cmds=$lt_finish_cmds
26720 # Same as above, but a single script fragment to be evaled but not shown.
26721 finish_eval=$lt_finish_eval
26723 # Take the output of nm and produce a listing of raw symbols and C names.
26724 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26726 # Transform the output of nm in a proper C declaration
26727 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26729 # Transform the output of nm in a C name address pair
26730 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26732 # This is the shared library runtime path variable.
26733 runpath_var=$runpath_var
26735 # This is the shared library path variable.
26736 shlibpath_var=$shlibpath_var
26738 # Is shlibpath searched before the hard-coded library search path?
26739 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26741 # How to hardcode a shared library path into an executable.
26742 hardcode_action=$hardcode_action_RC
26744 # Whether we should hardcode library paths into libraries.
26745 hardcode_into_libs=$hardcode_into_libs
26747 # Flag to hardcode \$libdir into a binary during linking.
26748 # This must work even if \$libdir does not exist.
26749 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26751 # If ld is used when linking, flag to hardcode \$libdir into
26752 # a binary during linking. This must work even if \$libdir does
26753 # not exist.
26754 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26756 # Whether we need a single -rpath flag with a separated argument.
26757 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26759 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26760 # resulting binary.
26761 hardcode_direct=$hardcode_direct_RC
26763 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26764 # resulting binary.
26765 hardcode_minus_L=$hardcode_minus_L_RC
26767 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26768 # the resulting binary.
26769 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26771 # Set to yes if building a shared library automatically hardcodes DIR into the library
26772 # and all subsequent libraries and executables linked against it.
26773 hardcode_automatic=$hardcode_automatic_RC
26775 # Variables whose values should be saved in libtool wrapper scripts and
26776 # restored at relink time.
26777 variables_saved_for_relink="$variables_saved_for_relink"
26779 # Whether libtool must link a program against all its dependency libraries.
26780 link_all_deplibs=$link_all_deplibs_RC
26782 # Compile-time system search path for libraries
26783 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26785 # Run-time system search path for libraries
26786 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26788 # Fix the shell variable \$srcfile for the compiler.
26789 fix_srcfile_path="$fix_srcfile_path_RC"
26791 # Set to yes if exported symbols are required.
26792 always_export_symbols=$always_export_symbols_RC
26794 # The commands to list exported symbols.
26795 export_symbols_cmds=$lt_export_symbols_cmds_RC
26797 # The commands to extract the exported symbol list from a shared archive.
26798 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26800 # Symbols that should not be listed in the preloaded symbols.
26801 exclude_expsyms=$lt_exclude_expsyms_RC
26803 # Symbols that must always be exported.
26804 include_expsyms=$lt_include_expsyms_RC
26806 # ### END LIBTOOL TAG CONFIG: $tagname
26808 __EOF__
26811 else
26812 # If there is no Makefile yet, we rely on a make rule to execute
26813 # `config.status --recheck' to rerun these tests and create the
26814 # libtool script then.
26815 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26816 if test -f "$ltmain_in"; then
26817 test -f Makefile && make "$ltmain"
26822 ac_ext=c
26823 ac_cpp='$CPP $CPPFLAGS'
26824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26828 CC="$lt_save_CC"
26833 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26834 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26835 { (exit 1); exit 1; }; }
26837 esac
26839 # Append the new tag name to the list of available tags.
26840 if test -n "$tagname" ; then
26841 available_tags="$available_tags $tagname"
26844 done
26845 IFS="$lt_save_ifs"
26847 # Now substitute the updated list of available tags.
26848 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26849 mv "${ofile}T" "$ofile"
26850 chmod +x "$ofile"
26851 else
26852 rm -f "${ofile}T"
26853 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26854 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26855 { (exit 1); exit 1; }; }
26861 # This can be used to rebuild libtool when needed
26862 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26864 # Always use our own libtool.
26865 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26867 # Prevent multiple expansion
26889 if test "$lt_cv_dlopen_self" = "yes" ; then
26891 cat >>confdefs.h <<\_ACEOF
26892 #define CAN_DLOPEN_SELF 1
26893 _ACEOF
26897 if test "$WITH_LLVMGCCDIR" = "default" ; then
26898 LLVMGCC="llvm-gcc${EXEEXT}"
26899 LLVMGXX="llvm-g++${EXEEXT}"
26900 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26901 set dummy $LLVMGCC; ac_word=$2
26902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26904 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26905 echo $ECHO_N "(cached) $ECHO_C" >&6
26906 else
26907 case $LLVMGCC in
26908 [\\/]* | ?:[\\/]*)
26909 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26913 for as_dir in $PATH
26915 IFS=$as_save_IFS
26916 test -z "$as_dir" && as_dir=.
26917 for ac_exec_ext in '' $ac_executable_extensions; do
26918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26919 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26921 break 2
26923 done
26924 done
26925 IFS=$as_save_IFS
26928 esac
26930 LLVMGCC=$ac_cv_path_LLVMGCC
26931 if test -n "$LLVMGCC"; then
26932 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26933 echo "${ECHO_T}$LLVMGCC" >&6; }
26934 else
26935 { echo "$as_me:$LINENO: result: no" >&5
26936 echo "${ECHO_T}no" >&6; }
26940 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26941 set dummy $LLVMGXX; ac_word=$2
26942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26944 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26945 echo $ECHO_N "(cached) $ECHO_C" >&6
26946 else
26947 case $LLVMGXX in
26948 [\\/]* | ?:[\\/]*)
26949 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26953 for as_dir in $PATH
26955 IFS=$as_save_IFS
26956 test -z "$as_dir" && as_dir=.
26957 for ac_exec_ext in '' $ac_executable_extensions; do
26958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26959 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26961 break 2
26963 done
26964 done
26965 IFS=$as_save_IFS
26968 esac
26970 LLVMGXX=$ac_cv_path_LLVMGXX
26971 if test -n "$LLVMGXX"; then
26972 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26973 echo "${ECHO_T}$LLVMGXX" >&6; }
26974 else
26975 { echo "$as_me:$LINENO: result: no" >&5
26976 echo "${ECHO_T}no" >&6; }
26980 else
26981 if test -z "$LLVMGCC"; then
26982 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26984 if test -z "$LLVMGXX"; then
26985 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26987 LLVMGCC=$LLVMGCC
26989 LLVMGXX=$LLVMGXX
26993 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26994 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26996 ICC=no
26997 IXX=no
26998 case $CC in
26999 icc*|icpc*)
27000 ICC=yes
27001 IXX=yes
27005 esac
27007 if test "$GCC" != "yes" && test "$ICC" != "yes"
27008 then
27009 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27010 echo "$as_me: error: gcc|icc required but not found" >&2;}
27011 { (exit 1); exit 1; }; }
27014 if test "$GXX" != "yes" && test "$IXX" != "yes"
27015 then
27016 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27017 echo "$as_me: error: g++|icc required but not found" >&2;}
27018 { (exit 1); exit 1; }; }
27021 if test "$GCC" = "yes"
27022 then
27023 cat >conftest.$ac_ext <<_ACEOF
27024 #if !defined(__GNUC__) || __GNUC__ < 3
27025 #error Unsupported GCC version
27026 #endif
27028 _ACEOF
27029 rm -f conftest.$ac_objext
27030 if { (ac_try="$ac_compile"
27031 case "(($ac_try" in
27032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033 *) ac_try_echo=$ac_try;;
27034 esac
27035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27036 (eval "$ac_compile") 2>conftest.er1
27037 ac_status=$?
27038 grep -v '^ *+' conftest.er1 >conftest.err
27039 rm -f conftest.er1
27040 cat conftest.err >&5
27041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); } &&
27043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27044 { (case "(($ac_try" in
27045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27046 *) ac_try_echo=$ac_try;;
27047 esac
27048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27049 (eval "$ac_try") 2>&5
27050 ac_status=$?
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); }; } &&
27053 { ac_try='test -s conftest.$ac_objext'
27054 { (case "(($ac_try" in
27055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27056 *) ac_try_echo=$ac_try;;
27057 esac
27058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27059 (eval "$ac_try") 2>&5
27060 ac_status=$?
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); }; }; then
27064 else
27065 echo "$as_me: failed program was:" >&5
27066 sed 's/^/| /' conftest.$ac_ext >&5
27068 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27069 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27070 { (exit 1); exit 1; }; }
27073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27076 if test -z "$llvm_cv_gnu_make_command"
27077 then
27078 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27079 echo "$as_me: error: GNU Make required but not found" >&2;}
27080 { (exit 1); exit 1; }; }
27083 { echo "$as_me:$LINENO: result: ok" >&5
27084 echo "${ECHO_T}ok" >&6; }
27088 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27089 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27090 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27091 echo $ECHO_N "(cached) $ECHO_C" >&6
27092 else
27093 ac_check_lib_save_LIBS=$LIBS
27094 LIBS="-lelf $LIBS"
27095 cat >conftest.$ac_ext <<_ACEOF
27096 /* confdefs.h. */
27097 _ACEOF
27098 cat confdefs.h >>conftest.$ac_ext
27099 cat >>conftest.$ac_ext <<_ACEOF
27100 /* end confdefs.h. */
27102 /* Override any GCC internal prototype to avoid an error.
27103 Use char because int might match the return type of a GCC
27104 builtin and then its argument prototype would still apply. */
27105 #ifdef __cplusplus
27106 extern "C"
27107 #endif
27108 char elf_begin ();
27110 main ()
27112 return elf_begin ();
27114 return 0;
27116 _ACEOF
27117 rm -f conftest.$ac_objext conftest$ac_exeext
27118 if { (ac_try="$ac_link"
27119 case "(($ac_try" in
27120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121 *) ac_try_echo=$ac_try;;
27122 esac
27123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124 (eval "$ac_link") 2>conftest.er1
27125 ac_status=$?
27126 grep -v '^ *+' conftest.er1 >conftest.err
27127 rm -f conftest.er1
27128 cat conftest.err >&5
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); } &&
27131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27132 { (case "(($ac_try" in
27133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134 *) ac_try_echo=$ac_try;;
27135 esac
27136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137 (eval "$ac_try") 2>&5
27138 ac_status=$?
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; } &&
27141 { ac_try='test -s conftest$ac_exeext'
27142 { (case "(($ac_try" in
27143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144 *) ac_try_echo=$ac_try;;
27145 esac
27146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27147 (eval "$ac_try") 2>&5
27148 ac_status=$?
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); }; }; then
27151 ac_cv_lib_elf_elf_begin=yes
27152 else
27153 echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27156 ac_cv_lib_elf_elf_begin=no
27159 rm -f core conftest.err conftest.$ac_objext \
27160 conftest$ac_exeext conftest.$ac_ext
27161 LIBS=$ac_check_lib_save_LIBS
27163 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27164 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27165 if test $ac_cv_lib_elf_elf_begin = yes; then
27166 cat >>confdefs.h <<_ACEOF
27167 #define HAVE_LIBELF 1
27168 _ACEOF
27170 LIBS="-lelf $LIBS"
27175 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27176 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27177 if test "${ac_cv_lib_m_sin+set}" = set; then
27178 echo $ECHO_N "(cached) $ECHO_C" >&6
27179 else
27180 ac_check_lib_save_LIBS=$LIBS
27181 LIBS="-lm $LIBS"
27182 cat >conftest.$ac_ext <<_ACEOF
27183 /* confdefs.h. */
27184 _ACEOF
27185 cat confdefs.h >>conftest.$ac_ext
27186 cat >>conftest.$ac_ext <<_ACEOF
27187 /* end confdefs.h. */
27189 /* Override any GCC internal prototype to avoid an error.
27190 Use char because int might match the return type of a GCC
27191 builtin and then its argument prototype would still apply. */
27192 #ifdef __cplusplus
27193 extern "C"
27194 #endif
27195 char sin ();
27197 main ()
27199 return sin ();
27201 return 0;
27203 _ACEOF
27204 rm -f conftest.$ac_objext conftest$ac_exeext
27205 if { (ac_try="$ac_link"
27206 case "(($ac_try" in
27207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27208 *) ac_try_echo=$ac_try;;
27209 esac
27210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27211 (eval "$ac_link") 2>conftest.er1
27212 ac_status=$?
27213 grep -v '^ *+' conftest.er1 >conftest.err
27214 rm -f conftest.er1
27215 cat conftest.err >&5
27216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27217 (exit $ac_status); } &&
27218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27219 { (case "(($ac_try" in
27220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27221 *) ac_try_echo=$ac_try;;
27222 esac
27223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27224 (eval "$ac_try") 2>&5
27225 ac_status=$?
27226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); }; } &&
27228 { ac_try='test -s conftest$ac_exeext'
27229 { (case "(($ac_try" in
27230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231 *) ac_try_echo=$ac_try;;
27232 esac
27233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27234 (eval "$ac_try") 2>&5
27235 ac_status=$?
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); }; }; then
27238 ac_cv_lib_m_sin=yes
27239 else
27240 echo "$as_me: failed program was:" >&5
27241 sed 's/^/| /' conftest.$ac_ext >&5
27243 ac_cv_lib_m_sin=no
27246 rm -f core conftest.err conftest.$ac_objext \
27247 conftest$ac_exeext conftest.$ac_ext
27248 LIBS=$ac_check_lib_save_LIBS
27250 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27251 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27252 if test $ac_cv_lib_m_sin = yes; then
27253 cat >>confdefs.h <<_ACEOF
27254 #define HAVE_LIBM 1
27255 _ACEOF
27257 LIBS="-lm $LIBS"
27261 if test "$llvm_cv_os_type" = "MingW" ; then
27263 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27264 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27265 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27266 echo $ECHO_N "(cached) $ECHO_C" >&6
27267 else
27268 ac_check_lib_save_LIBS=$LIBS
27269 LIBS="-limagehlp $LIBS"
27270 cat >conftest.$ac_ext <<_ACEOF
27271 /* confdefs.h. */
27272 _ACEOF
27273 cat confdefs.h >>conftest.$ac_ext
27274 cat >>conftest.$ac_ext <<_ACEOF
27275 /* end confdefs.h. */
27279 main ()
27281 return main ();
27283 return 0;
27285 _ACEOF
27286 rm -f conftest.$ac_objext conftest$ac_exeext
27287 if { (ac_try="$ac_link"
27288 case "(($ac_try" in
27289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27290 *) ac_try_echo=$ac_try;;
27291 esac
27292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27293 (eval "$ac_link") 2>conftest.er1
27294 ac_status=$?
27295 grep -v '^ *+' conftest.er1 >conftest.err
27296 rm -f conftest.er1
27297 cat conftest.err >&5
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); } &&
27300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27301 { (case "(($ac_try" in
27302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303 *) ac_try_echo=$ac_try;;
27304 esac
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306 (eval "$ac_try") 2>&5
27307 ac_status=$?
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); }; } &&
27310 { ac_try='test -s conftest$ac_exeext'
27311 { (case "(($ac_try" in
27312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27313 *) ac_try_echo=$ac_try;;
27314 esac
27315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27316 (eval "$ac_try") 2>&5
27317 ac_status=$?
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); }; }; then
27320 ac_cv_lib_imagehlp_main=yes
27321 else
27322 echo "$as_me: failed program was:" >&5
27323 sed 's/^/| /' conftest.$ac_ext >&5
27325 ac_cv_lib_imagehlp_main=no
27328 rm -f core conftest.err conftest.$ac_objext \
27329 conftest$ac_exeext conftest.$ac_ext
27330 LIBS=$ac_check_lib_save_LIBS
27332 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27333 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27334 if test $ac_cv_lib_imagehlp_main = yes; then
27335 cat >>confdefs.h <<_ACEOF
27336 #define HAVE_LIBIMAGEHLP 1
27337 _ACEOF
27339 LIBS="-limagehlp $LIBS"
27344 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27345 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27346 if test "${ac_cv_lib_psapi_main+set}" = set; then
27347 echo $ECHO_N "(cached) $ECHO_C" >&6
27348 else
27349 ac_check_lib_save_LIBS=$LIBS
27350 LIBS="-lpsapi $LIBS"
27351 cat >conftest.$ac_ext <<_ACEOF
27352 /* confdefs.h. */
27353 _ACEOF
27354 cat confdefs.h >>conftest.$ac_ext
27355 cat >>conftest.$ac_ext <<_ACEOF
27356 /* end confdefs.h. */
27360 main ()
27362 return main ();
27364 return 0;
27366 _ACEOF
27367 rm -f conftest.$ac_objext conftest$ac_exeext
27368 if { (ac_try="$ac_link"
27369 case "(($ac_try" in
27370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27371 *) ac_try_echo=$ac_try;;
27372 esac
27373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27374 (eval "$ac_link") 2>conftest.er1
27375 ac_status=$?
27376 grep -v '^ *+' conftest.er1 >conftest.err
27377 rm -f conftest.er1
27378 cat conftest.err >&5
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); } &&
27381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27382 { (case "(($ac_try" in
27383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27384 *) ac_try_echo=$ac_try;;
27385 esac
27386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27387 (eval "$ac_try") 2>&5
27388 ac_status=$?
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); }; } &&
27391 { ac_try='test -s conftest$ac_exeext'
27392 { (case "(($ac_try" in
27393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27394 *) ac_try_echo=$ac_try;;
27395 esac
27396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27397 (eval "$ac_try") 2>&5
27398 ac_status=$?
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); }; }; then
27401 ac_cv_lib_psapi_main=yes
27402 else
27403 echo "$as_me: failed program was:" >&5
27404 sed 's/^/| /' conftest.$ac_ext >&5
27406 ac_cv_lib_psapi_main=no
27409 rm -f core conftest.err conftest.$ac_objext \
27410 conftest$ac_exeext conftest.$ac_ext
27411 LIBS=$ac_check_lib_save_LIBS
27413 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27414 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27415 if test $ac_cv_lib_psapi_main = yes; then
27416 cat >>confdefs.h <<_ACEOF
27417 #define HAVE_LIBPSAPI 1
27418 _ACEOF
27420 LIBS="-lpsapi $LIBS"
27426 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27427 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27428 if test "${ac_cv_search_dlopen+set}" = set; then
27429 echo $ECHO_N "(cached) $ECHO_C" >&6
27430 else
27431 ac_func_search_save_LIBS=$LIBS
27432 cat >conftest.$ac_ext <<_ACEOF
27433 /* confdefs.h. */
27434 _ACEOF
27435 cat confdefs.h >>conftest.$ac_ext
27436 cat >>conftest.$ac_ext <<_ACEOF
27437 /* end confdefs.h. */
27439 /* Override any GCC internal prototype to avoid an error.
27440 Use char because int might match the return type of a GCC
27441 builtin and then its argument prototype would still apply. */
27442 #ifdef __cplusplus
27443 extern "C"
27444 #endif
27445 char dlopen ();
27447 main ()
27449 return dlopen ();
27451 return 0;
27453 _ACEOF
27454 for ac_lib in '' dl; do
27455 if test -z "$ac_lib"; then
27456 ac_res="none required"
27457 else
27458 ac_res=-l$ac_lib
27459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27461 rm -f conftest.$ac_objext conftest$ac_exeext
27462 if { (ac_try="$ac_link"
27463 case "(($ac_try" in
27464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465 *) ac_try_echo=$ac_try;;
27466 esac
27467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468 (eval "$ac_link") 2>conftest.er1
27469 ac_status=$?
27470 grep -v '^ *+' conftest.er1 >conftest.err
27471 rm -f conftest.er1
27472 cat conftest.err >&5
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); } &&
27475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27476 { (case "(($ac_try" in
27477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27478 *) ac_try_echo=$ac_try;;
27479 esac
27480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27481 (eval "$ac_try") 2>&5
27482 ac_status=$?
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); }; } &&
27485 { ac_try='test -s conftest$ac_exeext'
27486 { (case "(($ac_try" in
27487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488 *) ac_try_echo=$ac_try;;
27489 esac
27490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491 (eval "$ac_try") 2>&5
27492 ac_status=$?
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); }; }; then
27495 ac_cv_search_dlopen=$ac_res
27496 else
27497 echo "$as_me: failed program was:" >&5
27498 sed 's/^/| /' conftest.$ac_ext >&5
27503 rm -f core conftest.err conftest.$ac_objext \
27504 conftest$ac_exeext
27505 if test "${ac_cv_search_dlopen+set}" = set; then
27506 break
27508 done
27509 if test "${ac_cv_search_dlopen+set}" = set; then
27511 else
27512 ac_cv_search_dlopen=no
27514 rm conftest.$ac_ext
27515 LIBS=$ac_func_search_save_LIBS
27517 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27518 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27519 ac_res=$ac_cv_search_dlopen
27520 if test "$ac_res" != no; then
27521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27523 cat >>confdefs.h <<\_ACEOF
27524 #define HAVE_DLOPEN 1
27525 _ACEOF
27527 else
27528 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27529 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27533 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27534 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27535 if test "${ac_cv_search_mallinfo+set}" = set; then
27536 echo $ECHO_N "(cached) $ECHO_C" >&6
27537 else
27538 ac_func_search_save_LIBS=$LIBS
27539 cat >conftest.$ac_ext <<_ACEOF
27540 /* confdefs.h. */
27541 _ACEOF
27542 cat confdefs.h >>conftest.$ac_ext
27543 cat >>conftest.$ac_ext <<_ACEOF
27544 /* end confdefs.h. */
27546 /* Override any GCC internal prototype to avoid an error.
27547 Use char because int might match the return type of a GCC
27548 builtin and then its argument prototype would still apply. */
27549 #ifdef __cplusplus
27550 extern "C"
27551 #endif
27552 char mallinfo ();
27554 main ()
27556 return mallinfo ();
27558 return 0;
27560 _ACEOF
27561 for ac_lib in '' malloc; do
27562 if test -z "$ac_lib"; then
27563 ac_res="none required"
27564 else
27565 ac_res=-l$ac_lib
27566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27568 rm -f conftest.$ac_objext conftest$ac_exeext
27569 if { (ac_try="$ac_link"
27570 case "(($ac_try" in
27571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572 *) ac_try_echo=$ac_try;;
27573 esac
27574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575 (eval "$ac_link") 2>conftest.er1
27576 ac_status=$?
27577 grep -v '^ *+' conftest.er1 >conftest.err
27578 rm -f conftest.er1
27579 cat conftest.err >&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); } &&
27582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27583 { (case "(($ac_try" in
27584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585 *) ac_try_echo=$ac_try;;
27586 esac
27587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588 (eval "$ac_try") 2>&5
27589 ac_status=$?
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); }; } &&
27592 { ac_try='test -s conftest$ac_exeext'
27593 { (case "(($ac_try" in
27594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595 *) ac_try_echo=$ac_try;;
27596 esac
27597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27598 (eval "$ac_try") 2>&5
27599 ac_status=$?
27600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); }; }; then
27602 ac_cv_search_mallinfo=$ac_res
27603 else
27604 echo "$as_me: failed program was:" >&5
27605 sed 's/^/| /' conftest.$ac_ext >&5
27610 rm -f core conftest.err conftest.$ac_objext \
27611 conftest$ac_exeext
27612 if test "${ac_cv_search_mallinfo+set}" = set; then
27613 break
27615 done
27616 if test "${ac_cv_search_mallinfo+set}" = set; then
27618 else
27619 ac_cv_search_mallinfo=no
27621 rm conftest.$ac_ext
27622 LIBS=$ac_func_search_save_LIBS
27624 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27625 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27626 ac_res=$ac_cv_search_mallinfo
27627 if test "$ac_res" != no; then
27628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27630 cat >>confdefs.h <<\_ACEOF
27631 #define HAVE_MALLINFO 1
27632 _ACEOF
27637 if test "$ENABLE_THREADS" -eq 1 ; then
27639 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27640 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27641 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27642 echo $ECHO_N "(cached) $ECHO_C" >&6
27643 else
27644 ac_check_lib_save_LIBS=$LIBS
27645 LIBS="-lpthread $LIBS"
27646 cat >conftest.$ac_ext <<_ACEOF
27647 /* confdefs.h. */
27648 _ACEOF
27649 cat confdefs.h >>conftest.$ac_ext
27650 cat >>conftest.$ac_ext <<_ACEOF
27651 /* end confdefs.h. */
27653 /* Override any GCC internal prototype to avoid an error.
27654 Use char because int might match the return type of a GCC
27655 builtin and then its argument prototype would still apply. */
27656 #ifdef __cplusplus
27657 extern "C"
27658 #endif
27659 char pthread_mutex_init ();
27661 main ()
27663 return pthread_mutex_init ();
27665 return 0;
27667 _ACEOF
27668 rm -f conftest.$ac_objext conftest$ac_exeext
27669 if { (ac_try="$ac_link"
27670 case "(($ac_try" in
27671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27672 *) ac_try_echo=$ac_try;;
27673 esac
27674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27675 (eval "$ac_link") 2>conftest.er1
27676 ac_status=$?
27677 grep -v '^ *+' conftest.er1 >conftest.err
27678 rm -f conftest.er1
27679 cat conftest.err >&5
27680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); } &&
27682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27683 { (case "(($ac_try" in
27684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27685 *) ac_try_echo=$ac_try;;
27686 esac
27687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27688 (eval "$ac_try") 2>&5
27689 ac_status=$?
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); }; } &&
27692 { ac_try='test -s conftest$ac_exeext'
27693 { (case "(($ac_try" in
27694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27695 *) ac_try_echo=$ac_try;;
27696 esac
27697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27698 (eval "$ac_try") 2>&5
27699 ac_status=$?
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); }; }; then
27702 ac_cv_lib_pthread_pthread_mutex_init=yes
27703 else
27704 echo "$as_me: failed program was:" >&5
27705 sed 's/^/| /' conftest.$ac_ext >&5
27707 ac_cv_lib_pthread_pthread_mutex_init=no
27710 rm -f core conftest.err conftest.$ac_objext \
27711 conftest$ac_exeext conftest.$ac_ext
27712 LIBS=$ac_check_lib_save_LIBS
27714 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27715 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27716 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27717 cat >>confdefs.h <<_ACEOF
27718 #define HAVE_LIBPTHREAD 1
27719 _ACEOF
27721 LIBS="-lpthread $LIBS"
27725 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27726 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27727 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27728 echo $ECHO_N "(cached) $ECHO_C" >&6
27729 else
27730 ac_func_search_save_LIBS=$LIBS
27731 cat >conftest.$ac_ext <<_ACEOF
27732 /* confdefs.h. */
27733 _ACEOF
27734 cat confdefs.h >>conftest.$ac_ext
27735 cat >>conftest.$ac_ext <<_ACEOF
27736 /* end confdefs.h. */
27738 /* Override any GCC internal prototype to avoid an error.
27739 Use char because int might match the return type of a GCC
27740 builtin and then its argument prototype would still apply. */
27741 #ifdef __cplusplus
27742 extern "C"
27743 #endif
27744 char pthread_mutex_lock ();
27746 main ()
27748 return pthread_mutex_lock ();
27750 return 0;
27752 _ACEOF
27753 for ac_lib in '' pthread; do
27754 if test -z "$ac_lib"; then
27755 ac_res="none required"
27756 else
27757 ac_res=-l$ac_lib
27758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27760 rm -f conftest.$ac_objext conftest$ac_exeext
27761 if { (ac_try="$ac_link"
27762 case "(($ac_try" in
27763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27764 *) ac_try_echo=$ac_try;;
27765 esac
27766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27767 (eval "$ac_link") 2>conftest.er1
27768 ac_status=$?
27769 grep -v '^ *+' conftest.er1 >conftest.err
27770 rm -f conftest.er1
27771 cat conftest.err >&5
27772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); } &&
27774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27775 { (case "(($ac_try" in
27776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777 *) ac_try_echo=$ac_try;;
27778 esac
27779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780 (eval "$ac_try") 2>&5
27781 ac_status=$?
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); }; } &&
27784 { ac_try='test -s conftest$ac_exeext'
27785 { (case "(($ac_try" in
27786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27787 *) ac_try_echo=$ac_try;;
27788 esac
27789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27790 (eval "$ac_try") 2>&5
27791 ac_status=$?
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); }; }; then
27794 ac_cv_search_pthread_mutex_lock=$ac_res
27795 else
27796 echo "$as_me: failed program was:" >&5
27797 sed 's/^/| /' conftest.$ac_ext >&5
27802 rm -f core conftest.err conftest.$ac_objext \
27803 conftest$ac_exeext
27804 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27805 break
27807 done
27808 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27810 else
27811 ac_cv_search_pthread_mutex_lock=no
27813 rm conftest.$ac_ext
27814 LIBS=$ac_func_search_save_LIBS
27816 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27817 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27818 ac_res=$ac_cv_search_pthread_mutex_lock
27819 if test "$ac_res" != no; then
27820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27822 cat >>confdefs.h <<\_ACEOF
27823 #define HAVE_PTHREAD_MUTEX_LOCK 1
27824 _ACEOF
27831 # Check whether --with-udis86 was given.
27832 if test "${with_udis86+set}" = set; then
27833 withval=$with_udis86;
27834 USE_UDIS86=1
27836 case "$withval" in
27837 /usr/lib|yes) ;;
27838 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27839 esac
27841 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27842 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27843 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27844 echo $ECHO_N "(cached) $ECHO_C" >&6
27845 else
27846 ac_check_lib_save_LIBS=$LIBS
27847 LIBS="-ludis86 $LIBS"
27848 cat >conftest.$ac_ext <<_ACEOF
27849 /* confdefs.h. */
27850 _ACEOF
27851 cat confdefs.h >>conftest.$ac_ext
27852 cat >>conftest.$ac_ext <<_ACEOF
27853 /* end confdefs.h. */
27855 /* Override any GCC internal prototype to avoid an error.
27856 Use char because int might match the return type of a GCC
27857 builtin and then its argument prototype would still apply. */
27858 #ifdef __cplusplus
27859 extern "C"
27860 #endif
27861 char ud_init ();
27863 main ()
27865 return ud_init ();
27867 return 0;
27869 _ACEOF
27870 rm -f conftest.$ac_objext conftest$ac_exeext
27871 if { (ac_try="$ac_link"
27872 case "(($ac_try" in
27873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27874 *) ac_try_echo=$ac_try;;
27875 esac
27876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27877 (eval "$ac_link") 2>conftest.er1
27878 ac_status=$?
27879 grep -v '^ *+' conftest.er1 >conftest.err
27880 rm -f conftest.er1
27881 cat conftest.err >&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); } &&
27884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27885 { (case "(($ac_try" in
27886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27887 *) ac_try_echo=$ac_try;;
27888 esac
27889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27890 (eval "$ac_try") 2>&5
27891 ac_status=$?
27892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893 (exit $ac_status); }; } &&
27894 { ac_try='test -s conftest$ac_exeext'
27895 { (case "(($ac_try" in
27896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27897 *) ac_try_echo=$ac_try;;
27898 esac
27899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27900 (eval "$ac_try") 2>&5
27901 ac_status=$?
27902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903 (exit $ac_status); }; }; then
27904 ac_cv_lib_udis86_ud_init=yes
27905 else
27906 echo "$as_me: failed program was:" >&5
27907 sed 's/^/| /' conftest.$ac_ext >&5
27909 ac_cv_lib_udis86_ud_init=no
27912 rm -f core conftest.err conftest.$ac_objext \
27913 conftest$ac_exeext conftest.$ac_ext
27914 LIBS=$ac_check_lib_save_LIBS
27916 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27917 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27918 if test $ac_cv_lib_udis86_ud_init = yes; then
27919 cat >>confdefs.h <<_ACEOF
27920 #define HAVE_LIBUDIS86 1
27921 _ACEOF
27923 LIBS="-ludis86 $LIBS"
27925 else
27927 echo "Error! You need to have libudis86 around."
27928 exit -1
27933 else
27934 USE_UDIS86=0
27939 cat >>confdefs.h <<_ACEOF
27940 #define USE_UDIS86 $USE_UDIS86
27941 _ACEOF
27950 ac_header_dirent=no
27951 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27952 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27953 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27954 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27956 echo $ECHO_N "(cached) $ECHO_C" >&6
27957 else
27958 cat >conftest.$ac_ext <<_ACEOF
27959 /* confdefs.h. */
27960 _ACEOF
27961 cat confdefs.h >>conftest.$ac_ext
27962 cat >>conftest.$ac_ext <<_ACEOF
27963 /* end confdefs.h. */
27964 #include <sys/types.h>
27965 #include <$ac_hdr>
27968 main ()
27970 if ((DIR *) 0)
27971 return 0;
27973 return 0;
27975 _ACEOF
27976 rm -f conftest.$ac_objext
27977 if { (ac_try="$ac_compile"
27978 case "(($ac_try" in
27979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27980 *) ac_try_echo=$ac_try;;
27981 esac
27982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27983 (eval "$ac_compile") 2>conftest.er1
27984 ac_status=$?
27985 grep -v '^ *+' conftest.er1 >conftest.err
27986 rm -f conftest.er1
27987 cat conftest.err >&5
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); } &&
27990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27991 { (case "(($ac_try" in
27992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27993 *) ac_try_echo=$ac_try;;
27994 esac
27995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27996 (eval "$ac_try") 2>&5
27997 ac_status=$?
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; } &&
28000 { ac_try='test -s conftest.$ac_objext'
28001 { (case "(($ac_try" in
28002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28003 *) ac_try_echo=$ac_try;;
28004 esac
28005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28006 (eval "$ac_try") 2>&5
28007 ac_status=$?
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); }; }; then
28010 eval "$as_ac_Header=yes"
28011 else
28012 echo "$as_me: failed program was:" >&5
28013 sed 's/^/| /' conftest.$ac_ext >&5
28015 eval "$as_ac_Header=no"
28018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28020 ac_res=`eval echo '${'$as_ac_Header'}'`
28021 { echo "$as_me:$LINENO: result: $ac_res" >&5
28022 echo "${ECHO_T}$ac_res" >&6; }
28023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28024 cat >>confdefs.h <<_ACEOF
28025 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28026 _ACEOF
28028 ac_header_dirent=$ac_hdr; break
28031 done
28032 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28033 if test $ac_header_dirent = dirent.h; then
28034 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28035 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28036 if test "${ac_cv_search_opendir+set}" = set; then
28037 echo $ECHO_N "(cached) $ECHO_C" >&6
28038 else
28039 ac_func_search_save_LIBS=$LIBS
28040 cat >conftest.$ac_ext <<_ACEOF
28041 /* confdefs.h. */
28042 _ACEOF
28043 cat confdefs.h >>conftest.$ac_ext
28044 cat >>conftest.$ac_ext <<_ACEOF
28045 /* end confdefs.h. */
28047 /* Override any GCC internal prototype to avoid an error.
28048 Use char because int might match the return type of a GCC
28049 builtin and then its argument prototype would still apply. */
28050 #ifdef __cplusplus
28051 extern "C"
28052 #endif
28053 char opendir ();
28055 main ()
28057 return opendir ();
28059 return 0;
28061 _ACEOF
28062 for ac_lib in '' dir; do
28063 if test -z "$ac_lib"; then
28064 ac_res="none required"
28065 else
28066 ac_res=-l$ac_lib
28067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28069 rm -f conftest.$ac_objext conftest$ac_exeext
28070 if { (ac_try="$ac_link"
28071 case "(($ac_try" in
28072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28073 *) ac_try_echo=$ac_try;;
28074 esac
28075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28076 (eval "$ac_link") 2>conftest.er1
28077 ac_status=$?
28078 grep -v '^ *+' conftest.er1 >conftest.err
28079 rm -f conftest.er1
28080 cat conftest.err >&5
28081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082 (exit $ac_status); } &&
28083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28084 { (case "(($ac_try" in
28085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28086 *) ac_try_echo=$ac_try;;
28087 esac
28088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28089 (eval "$ac_try") 2>&5
28090 ac_status=$?
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); }; } &&
28093 { ac_try='test -s conftest$ac_exeext'
28094 { (case "(($ac_try" in
28095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28096 *) ac_try_echo=$ac_try;;
28097 esac
28098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28099 (eval "$ac_try") 2>&5
28100 ac_status=$?
28101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102 (exit $ac_status); }; }; then
28103 ac_cv_search_opendir=$ac_res
28104 else
28105 echo "$as_me: failed program was:" >&5
28106 sed 's/^/| /' conftest.$ac_ext >&5
28111 rm -f core conftest.err conftest.$ac_objext \
28112 conftest$ac_exeext
28113 if test "${ac_cv_search_opendir+set}" = set; then
28114 break
28116 done
28117 if test "${ac_cv_search_opendir+set}" = set; then
28119 else
28120 ac_cv_search_opendir=no
28122 rm conftest.$ac_ext
28123 LIBS=$ac_func_search_save_LIBS
28125 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28126 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28127 ac_res=$ac_cv_search_opendir
28128 if test "$ac_res" != no; then
28129 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28133 else
28134 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28135 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28136 if test "${ac_cv_search_opendir+set}" = set; then
28137 echo $ECHO_N "(cached) $ECHO_C" >&6
28138 else
28139 ac_func_search_save_LIBS=$LIBS
28140 cat >conftest.$ac_ext <<_ACEOF
28141 /* confdefs.h. */
28142 _ACEOF
28143 cat confdefs.h >>conftest.$ac_ext
28144 cat >>conftest.$ac_ext <<_ACEOF
28145 /* end confdefs.h. */
28147 /* Override any GCC internal prototype to avoid an error.
28148 Use char because int might match the return type of a GCC
28149 builtin and then its argument prototype would still apply. */
28150 #ifdef __cplusplus
28151 extern "C"
28152 #endif
28153 char opendir ();
28155 main ()
28157 return opendir ();
28159 return 0;
28161 _ACEOF
28162 for ac_lib in '' x; do
28163 if test -z "$ac_lib"; then
28164 ac_res="none required"
28165 else
28166 ac_res=-l$ac_lib
28167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28169 rm -f conftest.$ac_objext conftest$ac_exeext
28170 if { (ac_try="$ac_link"
28171 case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28174 esac
28175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_link") 2>conftest.er1
28177 ac_status=$?
28178 grep -v '^ *+' conftest.er1 >conftest.err
28179 rm -f conftest.er1
28180 cat conftest.err >&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); } &&
28183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28184 { (case "(($ac_try" in
28185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186 *) ac_try_echo=$ac_try;;
28187 esac
28188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189 (eval "$ac_try") 2>&5
28190 ac_status=$?
28191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); }; } &&
28193 { ac_try='test -s conftest$ac_exeext'
28194 { (case "(($ac_try" in
28195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28196 *) ac_try_echo=$ac_try;;
28197 esac
28198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28199 (eval "$ac_try") 2>&5
28200 ac_status=$?
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); }; }; then
28203 ac_cv_search_opendir=$ac_res
28204 else
28205 echo "$as_me: failed program was:" >&5
28206 sed 's/^/| /' conftest.$ac_ext >&5
28211 rm -f core conftest.err conftest.$ac_objext \
28212 conftest$ac_exeext
28213 if test "${ac_cv_search_opendir+set}" = set; then
28214 break
28216 done
28217 if test "${ac_cv_search_opendir+set}" = set; then
28219 else
28220 ac_cv_search_opendir=no
28222 rm conftest.$ac_ext
28223 LIBS=$ac_func_search_save_LIBS
28225 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28226 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28227 ac_res=$ac_cv_search_opendir
28228 if test "$ac_res" != no; then
28229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28235 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28236 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28237 if test "${ac_cv_header_mmap_anon+set}" = set; then
28238 echo $ECHO_N "(cached) $ECHO_C" >&6
28239 else
28240 ac_ext=c
28241 ac_cpp='$CPP $CPPFLAGS'
28242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28246 cat >conftest.$ac_ext <<_ACEOF
28247 /* confdefs.h. */
28248 _ACEOF
28249 cat confdefs.h >>conftest.$ac_ext
28250 cat >>conftest.$ac_ext <<_ACEOF
28251 /* end confdefs.h. */
28252 #include <sys/mman.h>
28253 #include <unistd.h>
28254 #include <fcntl.h>
28256 main ()
28258 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28260 return 0;
28262 _ACEOF
28263 rm -f conftest.$ac_objext
28264 if { (ac_try="$ac_compile"
28265 case "(($ac_try" in
28266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28267 *) ac_try_echo=$ac_try;;
28268 esac
28269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28270 (eval "$ac_compile") 2>conftest.er1
28271 ac_status=$?
28272 grep -v '^ *+' conftest.er1 >conftest.err
28273 rm -f conftest.er1
28274 cat conftest.err >&5
28275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); } &&
28277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28278 { (case "(($ac_try" in
28279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28280 *) ac_try_echo=$ac_try;;
28281 esac
28282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28283 (eval "$ac_try") 2>&5
28284 ac_status=$?
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); }; } &&
28287 { ac_try='test -s conftest.$ac_objext'
28288 { (case "(($ac_try" in
28289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28290 *) ac_try_echo=$ac_try;;
28291 esac
28292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28293 (eval "$ac_try") 2>&5
28294 ac_status=$?
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); }; }; then
28297 ac_cv_header_mmap_anon=yes
28298 else
28299 echo "$as_me: failed program was:" >&5
28300 sed 's/^/| /' conftest.$ac_ext >&5
28302 ac_cv_header_mmap_anon=no
28305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28306 ac_ext=c
28307 ac_cpp='$CPP $CPPFLAGS'
28308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28314 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28315 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28316 if test "$ac_cv_header_mmap_anon" = yes; then
28318 cat >>confdefs.h <<\_ACEOF
28319 #define HAVE_MMAP_ANONYMOUS 1
28320 _ACEOF
28324 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28325 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28326 if test "${ac_cv_header_stat_broken+set}" = set; then
28327 echo $ECHO_N "(cached) $ECHO_C" >&6
28328 else
28329 cat >conftest.$ac_ext <<_ACEOF
28330 /* confdefs.h. */
28331 _ACEOF
28332 cat confdefs.h >>conftest.$ac_ext
28333 cat >>conftest.$ac_ext <<_ACEOF
28334 /* end confdefs.h. */
28335 #include <sys/types.h>
28336 #include <sys/stat.h>
28338 #if defined S_ISBLK && defined S_IFDIR
28339 # if S_ISBLK (S_IFDIR)
28340 You lose.
28341 # endif
28342 #endif
28344 #if defined S_ISBLK && defined S_IFCHR
28345 # if S_ISBLK (S_IFCHR)
28346 You lose.
28347 # endif
28348 #endif
28350 #if defined S_ISLNK && defined S_IFREG
28351 # if S_ISLNK (S_IFREG)
28352 You lose.
28353 # endif
28354 #endif
28356 #if defined S_ISSOCK && defined S_IFREG
28357 # if S_ISSOCK (S_IFREG)
28358 You lose.
28359 # endif
28360 #endif
28362 _ACEOF
28363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28364 $EGREP "You lose" >/dev/null 2>&1; then
28365 ac_cv_header_stat_broken=yes
28366 else
28367 ac_cv_header_stat_broken=no
28369 rm -f conftest*
28372 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28373 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28374 if test $ac_cv_header_stat_broken = yes; then
28376 cat >>confdefs.h <<\_ACEOF
28377 #define STAT_MACROS_BROKEN 1
28378 _ACEOF
28382 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28383 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28384 if test "${ac_cv_header_stdc+set}" = set; then
28385 echo $ECHO_N "(cached) $ECHO_C" >&6
28386 else
28387 cat >conftest.$ac_ext <<_ACEOF
28388 /* confdefs.h. */
28389 _ACEOF
28390 cat confdefs.h >>conftest.$ac_ext
28391 cat >>conftest.$ac_ext <<_ACEOF
28392 /* end confdefs.h. */
28393 #include <stdlib.h>
28394 #include <stdarg.h>
28395 #include <string.h>
28396 #include <float.h>
28399 main ()
28403 return 0;
28405 _ACEOF
28406 rm -f conftest.$ac_objext
28407 if { (ac_try="$ac_compile"
28408 case "(($ac_try" in
28409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28410 *) ac_try_echo=$ac_try;;
28411 esac
28412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413 (eval "$ac_compile") 2>conftest.er1
28414 ac_status=$?
28415 grep -v '^ *+' conftest.er1 >conftest.err
28416 rm -f conftest.er1
28417 cat conftest.err >&5
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); } &&
28420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28421 { (case "(($ac_try" in
28422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28423 *) ac_try_echo=$ac_try;;
28424 esac
28425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28426 (eval "$ac_try") 2>&5
28427 ac_status=$?
28428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429 (exit $ac_status); }; } &&
28430 { ac_try='test -s conftest.$ac_objext'
28431 { (case "(($ac_try" in
28432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28433 *) ac_try_echo=$ac_try;;
28434 esac
28435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28436 (eval "$ac_try") 2>&5
28437 ac_status=$?
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); }; }; then
28440 ac_cv_header_stdc=yes
28441 else
28442 echo "$as_me: failed program was:" >&5
28443 sed 's/^/| /' conftest.$ac_ext >&5
28445 ac_cv_header_stdc=no
28448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28450 if test $ac_cv_header_stdc = yes; then
28451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28452 cat >conftest.$ac_ext <<_ACEOF
28453 /* confdefs.h. */
28454 _ACEOF
28455 cat confdefs.h >>conftest.$ac_ext
28456 cat >>conftest.$ac_ext <<_ACEOF
28457 /* end confdefs.h. */
28458 #include <string.h>
28460 _ACEOF
28461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28462 $EGREP "memchr" >/dev/null 2>&1; then
28464 else
28465 ac_cv_header_stdc=no
28467 rm -f conftest*
28471 if test $ac_cv_header_stdc = yes; then
28472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28473 cat >conftest.$ac_ext <<_ACEOF
28474 /* confdefs.h. */
28475 _ACEOF
28476 cat confdefs.h >>conftest.$ac_ext
28477 cat >>conftest.$ac_ext <<_ACEOF
28478 /* end confdefs.h. */
28479 #include <stdlib.h>
28481 _ACEOF
28482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28483 $EGREP "free" >/dev/null 2>&1; then
28485 else
28486 ac_cv_header_stdc=no
28488 rm -f conftest*
28492 if test $ac_cv_header_stdc = yes; then
28493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28494 if test "$cross_compiling" = yes; then
28496 else
28497 cat >conftest.$ac_ext <<_ACEOF
28498 /* confdefs.h. */
28499 _ACEOF
28500 cat confdefs.h >>conftest.$ac_ext
28501 cat >>conftest.$ac_ext <<_ACEOF
28502 /* end confdefs.h. */
28503 #include <ctype.h>
28504 #include <stdlib.h>
28505 #if ((' ' & 0x0FF) == 0x020)
28506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28508 #else
28509 # define ISLOWER(c) \
28510 (('a' <= (c) && (c) <= 'i') \
28511 || ('j' <= (c) && (c) <= 'r') \
28512 || ('s' <= (c) && (c) <= 'z'))
28513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28514 #endif
28516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28518 main ()
28520 int i;
28521 for (i = 0; i < 256; i++)
28522 if (XOR (islower (i), ISLOWER (i))
28523 || toupper (i) != TOUPPER (i))
28524 return 2;
28525 return 0;
28527 _ACEOF
28528 rm -f conftest$ac_exeext
28529 if { (ac_try="$ac_link"
28530 case "(($ac_try" in
28531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28532 *) ac_try_echo=$ac_try;;
28533 esac
28534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28535 (eval "$ac_link") 2>&5
28536 ac_status=$?
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28539 { (case "(($ac_try" in
28540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28541 *) ac_try_echo=$ac_try;;
28542 esac
28543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28544 (eval "$ac_try") 2>&5
28545 ac_status=$?
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); }; }; then
28549 else
28550 echo "$as_me: program exited with status $ac_status" >&5
28551 echo "$as_me: failed program was:" >&5
28552 sed 's/^/| /' conftest.$ac_ext >&5
28554 ( exit $ac_status )
28555 ac_cv_header_stdc=no
28557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28563 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28564 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28565 if test $ac_cv_header_stdc = yes; then
28567 cat >>confdefs.h <<\_ACEOF
28568 #define STDC_HEADERS 1
28569 _ACEOF
28573 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28574 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28575 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28576 echo $ECHO_N "(cached) $ECHO_C" >&6
28577 else
28578 cat >conftest.$ac_ext <<_ACEOF
28579 /* confdefs.h. */
28580 _ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h. */
28584 #include <sys/types.h>
28585 #include <sys/wait.h>
28586 #ifndef WEXITSTATUS
28587 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28588 #endif
28589 #ifndef WIFEXITED
28590 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28591 #endif
28594 main ()
28596 int s;
28597 wait (&s);
28598 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28600 return 0;
28602 _ACEOF
28603 rm -f conftest.$ac_objext
28604 if { (ac_try="$ac_compile"
28605 case "(($ac_try" in
28606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607 *) ac_try_echo=$ac_try;;
28608 esac
28609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610 (eval "$ac_compile") 2>conftest.er1
28611 ac_status=$?
28612 grep -v '^ *+' conftest.er1 >conftest.err
28613 rm -f conftest.er1
28614 cat conftest.err >&5
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); } &&
28617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28618 { (case "(($ac_try" in
28619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28620 *) ac_try_echo=$ac_try;;
28621 esac
28622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28623 (eval "$ac_try") 2>&5
28624 ac_status=$?
28625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 (exit $ac_status); }; } &&
28627 { ac_try='test -s conftest.$ac_objext'
28628 { (case "(($ac_try" in
28629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28630 *) ac_try_echo=$ac_try;;
28631 esac
28632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28633 (eval "$ac_try") 2>&5
28634 ac_status=$?
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); }; }; then
28637 ac_cv_header_sys_wait_h=yes
28638 else
28639 echo "$as_me: failed program was:" >&5
28640 sed 's/^/| /' conftest.$ac_ext >&5
28642 ac_cv_header_sys_wait_h=no
28645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28647 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28648 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28649 if test $ac_cv_header_sys_wait_h = yes; then
28651 cat >>confdefs.h <<\_ACEOF
28652 #define HAVE_SYS_WAIT_H 1
28653 _ACEOF
28657 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28658 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28659 if test "${ac_cv_header_time+set}" = set; then
28660 echo $ECHO_N "(cached) $ECHO_C" >&6
28661 else
28662 cat >conftest.$ac_ext <<_ACEOF
28663 /* confdefs.h. */
28664 _ACEOF
28665 cat confdefs.h >>conftest.$ac_ext
28666 cat >>conftest.$ac_ext <<_ACEOF
28667 /* end confdefs.h. */
28668 #include <sys/types.h>
28669 #include <sys/time.h>
28670 #include <time.h>
28673 main ()
28675 if ((struct tm *) 0)
28676 return 0;
28678 return 0;
28680 _ACEOF
28681 rm -f conftest.$ac_objext
28682 if { (ac_try="$ac_compile"
28683 case "(($ac_try" in
28684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28685 *) ac_try_echo=$ac_try;;
28686 esac
28687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28688 (eval "$ac_compile") 2>conftest.er1
28689 ac_status=$?
28690 grep -v '^ *+' conftest.er1 >conftest.err
28691 rm -f conftest.er1
28692 cat conftest.err >&5
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); } &&
28695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28696 { (case "(($ac_try" in
28697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28698 *) ac_try_echo=$ac_try;;
28699 esac
28700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28701 (eval "$ac_try") 2>&5
28702 ac_status=$?
28703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704 (exit $ac_status); }; } &&
28705 { ac_try='test -s conftest.$ac_objext'
28706 { (case "(($ac_try" in
28707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708 *) ac_try_echo=$ac_try;;
28709 esac
28710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711 (eval "$ac_try") 2>&5
28712 ac_status=$?
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); }; }; then
28715 ac_cv_header_time=yes
28716 else
28717 echo "$as_me: failed program was:" >&5
28718 sed 's/^/| /' conftest.$ac_ext >&5
28720 ac_cv_header_time=no
28723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28725 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28726 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28727 if test $ac_cv_header_time = yes; then
28729 cat >>confdefs.h <<\_ACEOF
28730 #define TIME_WITH_SYS_TIME 1
28731 _ACEOF
28742 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28749 echo $ECHO_N "(cached) $ECHO_C" >&6
28751 ac_res=`eval echo '${'$as_ac_Header'}'`
28752 { echo "$as_me:$LINENO: result: $ac_res" >&5
28753 echo "${ECHO_T}$ac_res" >&6; }
28754 else
28755 # Is the header compilable?
28756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28758 cat >conftest.$ac_ext <<_ACEOF
28759 /* confdefs.h. */
28760 _ACEOF
28761 cat confdefs.h >>conftest.$ac_ext
28762 cat >>conftest.$ac_ext <<_ACEOF
28763 /* end confdefs.h. */
28764 $ac_includes_default
28765 #include <$ac_header>
28766 _ACEOF
28767 rm -f conftest.$ac_objext
28768 if { (ac_try="$ac_compile"
28769 case "(($ac_try" in
28770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28771 *) ac_try_echo=$ac_try;;
28772 esac
28773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28774 (eval "$ac_compile") 2>conftest.er1
28775 ac_status=$?
28776 grep -v '^ *+' conftest.er1 >conftest.err
28777 rm -f conftest.er1
28778 cat conftest.err >&5
28779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 (exit $ac_status); } &&
28781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28782 { (case "(($ac_try" in
28783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28784 *) ac_try_echo=$ac_try;;
28785 esac
28786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28787 (eval "$ac_try") 2>&5
28788 ac_status=$?
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); }; } &&
28791 { ac_try='test -s conftest.$ac_objext'
28792 { (case "(($ac_try" in
28793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794 *) ac_try_echo=$ac_try;;
28795 esac
28796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28797 (eval "$ac_try") 2>&5
28798 ac_status=$?
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; }; then
28801 ac_header_compiler=yes
28802 else
28803 echo "$as_me: failed program was:" >&5
28804 sed 's/^/| /' conftest.$ac_ext >&5
28806 ac_header_compiler=no
28809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28811 echo "${ECHO_T}$ac_header_compiler" >&6; }
28813 # Is the header present?
28814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28816 cat >conftest.$ac_ext <<_ACEOF
28817 /* confdefs.h. */
28818 _ACEOF
28819 cat confdefs.h >>conftest.$ac_ext
28820 cat >>conftest.$ac_ext <<_ACEOF
28821 /* end confdefs.h. */
28822 #include <$ac_header>
28823 _ACEOF
28824 if { (ac_try="$ac_cpp conftest.$ac_ext"
28825 case "(($ac_try" in
28826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28827 *) ac_try_echo=$ac_try;;
28828 esac
28829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28831 ac_status=$?
28832 grep -v '^ *+' conftest.er1 >conftest.err
28833 rm -f conftest.er1
28834 cat conftest.err >&5
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); } >/dev/null; then
28837 if test -s conftest.err; then
28838 ac_cpp_err=$ac_c_preproc_warn_flag
28839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28840 else
28841 ac_cpp_err=
28843 else
28844 ac_cpp_err=yes
28846 if test -z "$ac_cpp_err"; then
28847 ac_header_preproc=yes
28848 else
28849 echo "$as_me: failed program was:" >&5
28850 sed 's/^/| /' conftest.$ac_ext >&5
28852 ac_header_preproc=no
28855 rm -f conftest.err conftest.$ac_ext
28856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28857 echo "${ECHO_T}$ac_header_preproc" >&6; }
28859 # So? What about this header?
28860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28861 yes:no: )
28862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28866 ac_header_preproc=yes
28868 no:yes:* )
28869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28881 ( cat <<\_ASBOX
28882 ## ----------------------------------- ##
28883 ## Report this to llvmbugs@cs.uiuc.edu ##
28884 ## ----------------------------------- ##
28885 _ASBOX
28886 ) | sed "s/^/$as_me: WARNING: /" >&2
28888 esac
28889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28892 echo $ECHO_N "(cached) $ECHO_C" >&6
28893 else
28894 eval "$as_ac_Header=\$ac_header_preproc"
28896 ac_res=`eval echo '${'$as_ac_Header'}'`
28897 { echo "$as_me:$LINENO: result: $ac_res" >&5
28898 echo "${ECHO_T}$ac_res" >&6; }
28901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28902 cat >>confdefs.h <<_ACEOF
28903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28904 _ACEOF
28908 done
28916 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28923 echo $ECHO_N "(cached) $ECHO_C" >&6
28925 ac_res=`eval echo '${'$as_ac_Header'}'`
28926 { echo "$as_me:$LINENO: result: $ac_res" >&5
28927 echo "${ECHO_T}$ac_res" >&6; }
28928 else
28929 # Is the header compilable?
28930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28932 cat >conftest.$ac_ext <<_ACEOF
28933 /* confdefs.h. */
28934 _ACEOF
28935 cat confdefs.h >>conftest.$ac_ext
28936 cat >>conftest.$ac_ext <<_ACEOF
28937 /* end confdefs.h. */
28938 $ac_includes_default
28939 #include <$ac_header>
28940 _ACEOF
28941 rm -f conftest.$ac_objext
28942 if { (ac_try="$ac_compile"
28943 case "(($ac_try" in
28944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28945 *) ac_try_echo=$ac_try;;
28946 esac
28947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28948 (eval "$ac_compile") 2>conftest.er1
28949 ac_status=$?
28950 grep -v '^ *+' conftest.er1 >conftest.err
28951 rm -f conftest.er1
28952 cat conftest.err >&5
28953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954 (exit $ac_status); } &&
28955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28956 { (case "(($ac_try" in
28957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28958 *) ac_try_echo=$ac_try;;
28959 esac
28960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28961 (eval "$ac_try") 2>&5
28962 ac_status=$?
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); }; } &&
28965 { ac_try='test -s conftest.$ac_objext'
28966 { (case "(($ac_try" in
28967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28968 *) ac_try_echo=$ac_try;;
28969 esac
28970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28971 (eval "$ac_try") 2>&5
28972 ac_status=$?
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); }; }; then
28975 ac_header_compiler=yes
28976 else
28977 echo "$as_me: failed program was:" >&5
28978 sed 's/^/| /' conftest.$ac_ext >&5
28980 ac_header_compiler=no
28983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28985 echo "${ECHO_T}$ac_header_compiler" >&6; }
28987 # Is the header present?
28988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28990 cat >conftest.$ac_ext <<_ACEOF
28991 /* confdefs.h. */
28992 _ACEOF
28993 cat confdefs.h >>conftest.$ac_ext
28994 cat >>conftest.$ac_ext <<_ACEOF
28995 /* end confdefs.h. */
28996 #include <$ac_header>
28997 _ACEOF
28998 if { (ac_try="$ac_cpp conftest.$ac_ext"
28999 case "(($ac_try" in
29000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001 *) ac_try_echo=$ac_try;;
29002 esac
29003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29005 ac_status=$?
29006 grep -v '^ *+' conftest.er1 >conftest.err
29007 rm -f conftest.er1
29008 cat conftest.err >&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); } >/dev/null; then
29011 if test -s conftest.err; then
29012 ac_cpp_err=$ac_c_preproc_warn_flag
29013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29014 else
29015 ac_cpp_err=
29017 else
29018 ac_cpp_err=yes
29020 if test -z "$ac_cpp_err"; then
29021 ac_header_preproc=yes
29022 else
29023 echo "$as_me: failed program was:" >&5
29024 sed 's/^/| /' conftest.$ac_ext >&5
29026 ac_header_preproc=no
29029 rm -f conftest.err conftest.$ac_ext
29030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29031 echo "${ECHO_T}$ac_header_preproc" >&6; }
29033 # So? What about this header?
29034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29035 yes:no: )
29036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29040 ac_header_preproc=yes
29042 no:yes:* )
29043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29055 ( cat <<\_ASBOX
29056 ## ----------------------------------- ##
29057 ## Report this to llvmbugs@cs.uiuc.edu ##
29058 ## ----------------------------------- ##
29059 _ASBOX
29060 ) | sed "s/^/$as_me: WARNING: /" >&2
29062 esac
29063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29067 else
29068 eval "$as_ac_Header=\$ac_header_preproc"
29070 ac_res=`eval echo '${'$as_ac_Header'}'`
29071 { echo "$as_me:$LINENO: result: $ac_res" >&5
29072 echo "${ECHO_T}$ac_res" >&6; }
29075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29076 cat >>confdefs.h <<_ACEOF
29077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29078 _ACEOF
29082 done
29085 for ac_header in windows.h
29087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29092 echo $ECHO_N "(cached) $ECHO_C" >&6
29094 ac_res=`eval echo '${'$as_ac_Header'}'`
29095 { echo "$as_me:$LINENO: result: $ac_res" >&5
29096 echo "${ECHO_T}$ac_res" >&6; }
29097 else
29098 # Is the header compilable?
29099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29101 cat >conftest.$ac_ext <<_ACEOF
29102 /* confdefs.h. */
29103 _ACEOF
29104 cat confdefs.h >>conftest.$ac_ext
29105 cat >>conftest.$ac_ext <<_ACEOF
29106 /* end confdefs.h. */
29107 $ac_includes_default
29108 #include <$ac_header>
29109 _ACEOF
29110 rm -f conftest.$ac_objext
29111 if { (ac_try="$ac_compile"
29112 case "(($ac_try" in
29113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29114 *) ac_try_echo=$ac_try;;
29115 esac
29116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29117 (eval "$ac_compile") 2>conftest.er1
29118 ac_status=$?
29119 grep -v '^ *+' conftest.er1 >conftest.err
29120 rm -f conftest.er1
29121 cat conftest.err >&5
29122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123 (exit $ac_status); } &&
29124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29125 { (case "(($ac_try" in
29126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29127 *) ac_try_echo=$ac_try;;
29128 esac
29129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29130 (eval "$ac_try") 2>&5
29131 ac_status=$?
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); }; } &&
29134 { ac_try='test -s conftest.$ac_objext'
29135 { (case "(($ac_try" in
29136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29137 *) ac_try_echo=$ac_try;;
29138 esac
29139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29140 (eval "$ac_try") 2>&5
29141 ac_status=$?
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); }; }; then
29144 ac_header_compiler=yes
29145 else
29146 echo "$as_me: failed program was:" >&5
29147 sed 's/^/| /' conftest.$ac_ext >&5
29149 ac_header_compiler=no
29152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29154 echo "${ECHO_T}$ac_header_compiler" >&6; }
29156 # Is the header present?
29157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29159 cat >conftest.$ac_ext <<_ACEOF
29160 /* confdefs.h. */
29161 _ACEOF
29162 cat confdefs.h >>conftest.$ac_ext
29163 cat >>conftest.$ac_ext <<_ACEOF
29164 /* end confdefs.h. */
29165 #include <$ac_header>
29166 _ACEOF
29167 if { (ac_try="$ac_cpp conftest.$ac_ext"
29168 case "(($ac_try" in
29169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29170 *) ac_try_echo=$ac_try;;
29171 esac
29172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29174 ac_status=$?
29175 grep -v '^ *+' conftest.er1 >conftest.err
29176 rm -f conftest.er1
29177 cat conftest.err >&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); } >/dev/null; then
29180 if test -s conftest.err; then
29181 ac_cpp_err=$ac_c_preproc_warn_flag
29182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29183 else
29184 ac_cpp_err=
29186 else
29187 ac_cpp_err=yes
29189 if test -z "$ac_cpp_err"; then
29190 ac_header_preproc=yes
29191 else
29192 echo "$as_me: failed program was:" >&5
29193 sed 's/^/| /' conftest.$ac_ext >&5
29195 ac_header_preproc=no
29198 rm -f conftest.err conftest.$ac_ext
29199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29200 echo "${ECHO_T}$ac_header_preproc" >&6; }
29202 # So? What about this header?
29203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29204 yes:no: )
29205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29209 ac_header_preproc=yes
29211 no:yes:* )
29212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29224 ( cat <<\_ASBOX
29225 ## ----------------------------------- ##
29226 ## Report this to llvmbugs@cs.uiuc.edu ##
29227 ## ----------------------------------- ##
29228 _ASBOX
29229 ) | sed "s/^/$as_me: WARNING: /" >&2
29231 esac
29232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29235 echo $ECHO_N "(cached) $ECHO_C" >&6
29236 else
29237 eval "$as_ac_Header=\$ac_header_preproc"
29239 ac_res=`eval echo '${'$as_ac_Header'}'`
29240 { echo "$as_me:$LINENO: result: $ac_res" >&5
29241 echo "${ECHO_T}$ac_res" >&6; }
29244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29245 cat >>confdefs.h <<_ACEOF
29246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29247 _ACEOF
29251 done
29257 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29264 echo $ECHO_N "(cached) $ECHO_C" >&6
29266 ac_res=`eval echo '${'$as_ac_Header'}'`
29267 { echo "$as_me:$LINENO: result: $ac_res" >&5
29268 echo "${ECHO_T}$ac_res" >&6; }
29269 else
29270 # Is the header compilable?
29271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29273 cat >conftest.$ac_ext <<_ACEOF
29274 /* confdefs.h. */
29275 _ACEOF
29276 cat confdefs.h >>conftest.$ac_ext
29277 cat >>conftest.$ac_ext <<_ACEOF
29278 /* end confdefs.h. */
29279 $ac_includes_default
29280 #include <$ac_header>
29281 _ACEOF
29282 rm -f conftest.$ac_objext
29283 if { (ac_try="$ac_compile"
29284 case "(($ac_try" in
29285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29286 *) ac_try_echo=$ac_try;;
29287 esac
29288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29289 (eval "$ac_compile") 2>conftest.er1
29290 ac_status=$?
29291 grep -v '^ *+' conftest.er1 >conftest.err
29292 rm -f conftest.er1
29293 cat conftest.err >&5
29294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295 (exit $ac_status); } &&
29296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29297 { (case "(($ac_try" in
29298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299 *) ac_try_echo=$ac_try;;
29300 esac
29301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302 (eval "$ac_try") 2>&5
29303 ac_status=$?
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); }; } &&
29306 { ac_try='test -s conftest.$ac_objext'
29307 { (case "(($ac_try" in
29308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309 *) ac_try_echo=$ac_try;;
29310 esac
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312 (eval "$ac_try") 2>&5
29313 ac_status=$?
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); }; }; then
29316 ac_header_compiler=yes
29317 else
29318 echo "$as_me: failed program was:" >&5
29319 sed 's/^/| /' conftest.$ac_ext >&5
29321 ac_header_compiler=no
29324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29326 echo "${ECHO_T}$ac_header_compiler" >&6; }
29328 # Is the header present?
29329 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29331 cat >conftest.$ac_ext <<_ACEOF
29332 /* confdefs.h. */
29333 _ACEOF
29334 cat confdefs.h >>conftest.$ac_ext
29335 cat >>conftest.$ac_ext <<_ACEOF
29336 /* end confdefs.h. */
29337 #include <$ac_header>
29338 _ACEOF
29339 if { (ac_try="$ac_cpp conftest.$ac_ext"
29340 case "(($ac_try" in
29341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29342 *) ac_try_echo=$ac_try;;
29343 esac
29344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29346 ac_status=$?
29347 grep -v '^ *+' conftest.er1 >conftest.err
29348 rm -f conftest.er1
29349 cat conftest.err >&5
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351 (exit $ac_status); } >/dev/null; then
29352 if test -s conftest.err; then
29353 ac_cpp_err=$ac_c_preproc_warn_flag
29354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29355 else
29356 ac_cpp_err=
29358 else
29359 ac_cpp_err=yes
29361 if test -z "$ac_cpp_err"; then
29362 ac_header_preproc=yes
29363 else
29364 echo "$as_me: failed program was:" >&5
29365 sed 's/^/| /' conftest.$ac_ext >&5
29367 ac_header_preproc=no
29370 rm -f conftest.err conftest.$ac_ext
29371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29372 echo "${ECHO_T}$ac_header_preproc" >&6; }
29374 # So? What about this header?
29375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29376 yes:no: )
29377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29381 ac_header_preproc=yes
29383 no:yes:* )
29384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29391 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29396 ( cat <<\_ASBOX
29397 ## ----------------------------------- ##
29398 ## Report this to llvmbugs@cs.uiuc.edu ##
29399 ## ----------------------------------- ##
29400 _ASBOX
29401 ) | sed "s/^/$as_me: WARNING: /" >&2
29403 esac
29404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29407 echo $ECHO_N "(cached) $ECHO_C" >&6
29408 else
29409 eval "$as_ac_Header=\$ac_header_preproc"
29411 ac_res=`eval echo '${'$as_ac_Header'}'`
29412 { echo "$as_me:$LINENO: result: $ac_res" >&5
29413 echo "${ECHO_T}$ac_res" >&6; }
29416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29417 cat >>confdefs.h <<_ACEOF
29418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29419 _ACEOF
29423 done
29428 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29435 echo $ECHO_N "(cached) $ECHO_C" >&6
29437 ac_res=`eval echo '${'$as_ac_Header'}'`
29438 { echo "$as_me:$LINENO: result: $ac_res" >&5
29439 echo "${ECHO_T}$ac_res" >&6; }
29440 else
29441 # Is the header compilable?
29442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29444 cat >conftest.$ac_ext <<_ACEOF
29445 /* confdefs.h. */
29446 _ACEOF
29447 cat confdefs.h >>conftest.$ac_ext
29448 cat >>conftest.$ac_ext <<_ACEOF
29449 /* end confdefs.h. */
29450 $ac_includes_default
29451 #include <$ac_header>
29452 _ACEOF
29453 rm -f conftest.$ac_objext
29454 if { (ac_try="$ac_compile"
29455 case "(($ac_try" in
29456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29457 *) ac_try_echo=$ac_try;;
29458 esac
29459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29460 (eval "$ac_compile") 2>conftest.er1
29461 ac_status=$?
29462 grep -v '^ *+' conftest.er1 >conftest.err
29463 rm -f conftest.er1
29464 cat conftest.err >&5
29465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466 (exit $ac_status); } &&
29467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29468 { (case "(($ac_try" in
29469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29470 *) ac_try_echo=$ac_try;;
29471 esac
29472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29473 (eval "$ac_try") 2>&5
29474 ac_status=$?
29475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476 (exit $ac_status); }; } &&
29477 { ac_try='test -s conftest.$ac_objext'
29478 { (case "(($ac_try" in
29479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480 *) ac_try_echo=$ac_try;;
29481 esac
29482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483 (eval "$ac_try") 2>&5
29484 ac_status=$?
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); }; }; then
29487 ac_header_compiler=yes
29488 else
29489 echo "$as_me: failed program was:" >&5
29490 sed 's/^/| /' conftest.$ac_ext >&5
29492 ac_header_compiler=no
29495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29497 echo "${ECHO_T}$ac_header_compiler" >&6; }
29499 # Is the header present?
29500 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29502 cat >conftest.$ac_ext <<_ACEOF
29503 /* confdefs.h. */
29504 _ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h. */
29508 #include <$ac_header>
29509 _ACEOF
29510 if { (ac_try="$ac_cpp conftest.$ac_ext"
29511 case "(($ac_try" in
29512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29513 *) ac_try_echo=$ac_try;;
29514 esac
29515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29517 ac_status=$?
29518 grep -v '^ *+' conftest.er1 >conftest.err
29519 rm -f conftest.er1
29520 cat conftest.err >&5
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); } >/dev/null; then
29523 if test -s conftest.err; then
29524 ac_cpp_err=$ac_c_preproc_warn_flag
29525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29526 else
29527 ac_cpp_err=
29529 else
29530 ac_cpp_err=yes
29532 if test -z "$ac_cpp_err"; then
29533 ac_header_preproc=yes
29534 else
29535 echo "$as_me: failed program was:" >&5
29536 sed 's/^/| /' conftest.$ac_ext >&5
29538 ac_header_preproc=no
29541 rm -f conftest.err conftest.$ac_ext
29542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29543 echo "${ECHO_T}$ac_header_preproc" >&6; }
29545 # So? What about this header?
29546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29547 yes:no: )
29548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29552 ac_header_preproc=yes
29554 no:yes:* )
29555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29567 ( cat <<\_ASBOX
29568 ## ----------------------------------- ##
29569 ## Report this to llvmbugs@cs.uiuc.edu ##
29570 ## ----------------------------------- ##
29571 _ASBOX
29572 ) | sed "s/^/$as_me: WARNING: /" >&2
29574 esac
29575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29578 echo $ECHO_N "(cached) $ECHO_C" >&6
29579 else
29580 eval "$as_ac_Header=\$ac_header_preproc"
29582 ac_res=`eval echo '${'$as_ac_Header'}'`
29583 { echo "$as_me:$LINENO: result: $ac_res" >&5
29584 echo "${ECHO_T}$ac_res" >&6; }
29587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29588 cat >>confdefs.h <<_ACEOF
29589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29590 _ACEOF
29594 done
29596 if test "$ENABLE_THREADS" -eq 1 ; then
29598 for ac_header in pthread.h
29600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29605 echo $ECHO_N "(cached) $ECHO_C" >&6
29607 ac_res=`eval echo '${'$as_ac_Header'}'`
29608 { echo "$as_me:$LINENO: result: $ac_res" >&5
29609 echo "${ECHO_T}$ac_res" >&6; }
29610 else
29611 # Is the header compilable?
29612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29614 cat >conftest.$ac_ext <<_ACEOF
29615 /* confdefs.h. */
29616 _ACEOF
29617 cat confdefs.h >>conftest.$ac_ext
29618 cat >>conftest.$ac_ext <<_ACEOF
29619 /* end confdefs.h. */
29620 $ac_includes_default
29621 #include <$ac_header>
29622 _ACEOF
29623 rm -f conftest.$ac_objext
29624 if { (ac_try="$ac_compile"
29625 case "(($ac_try" in
29626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29627 *) ac_try_echo=$ac_try;;
29628 esac
29629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29630 (eval "$ac_compile") 2>conftest.er1
29631 ac_status=$?
29632 grep -v '^ *+' conftest.er1 >conftest.err
29633 rm -f conftest.er1
29634 cat conftest.err >&5
29635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636 (exit $ac_status); } &&
29637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29638 { (case "(($ac_try" in
29639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29640 *) ac_try_echo=$ac_try;;
29641 esac
29642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29643 (eval "$ac_try") 2>&5
29644 ac_status=$?
29645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646 (exit $ac_status); }; } &&
29647 { ac_try='test -s conftest.$ac_objext'
29648 { (case "(($ac_try" in
29649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29650 *) ac_try_echo=$ac_try;;
29651 esac
29652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653 (eval "$ac_try") 2>&5
29654 ac_status=$?
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); }; }; then
29657 ac_header_compiler=yes
29658 else
29659 echo "$as_me: failed program was:" >&5
29660 sed 's/^/| /' conftest.$ac_ext >&5
29662 ac_header_compiler=no
29665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29667 echo "${ECHO_T}$ac_header_compiler" >&6; }
29669 # Is the header present?
29670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29672 cat >conftest.$ac_ext <<_ACEOF
29673 /* confdefs.h. */
29674 _ACEOF
29675 cat confdefs.h >>conftest.$ac_ext
29676 cat >>conftest.$ac_ext <<_ACEOF
29677 /* end confdefs.h. */
29678 #include <$ac_header>
29679 _ACEOF
29680 if { (ac_try="$ac_cpp conftest.$ac_ext"
29681 case "(($ac_try" in
29682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29683 *) ac_try_echo=$ac_try;;
29684 esac
29685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29687 ac_status=$?
29688 grep -v '^ *+' conftest.er1 >conftest.err
29689 rm -f conftest.er1
29690 cat conftest.err >&5
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); } >/dev/null; then
29693 if test -s conftest.err; then
29694 ac_cpp_err=$ac_c_preproc_warn_flag
29695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29696 else
29697 ac_cpp_err=
29699 else
29700 ac_cpp_err=yes
29702 if test -z "$ac_cpp_err"; then
29703 ac_header_preproc=yes
29704 else
29705 echo "$as_me: failed program was:" >&5
29706 sed 's/^/| /' conftest.$ac_ext >&5
29708 ac_header_preproc=no
29711 rm -f conftest.err conftest.$ac_ext
29712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29713 echo "${ECHO_T}$ac_header_preproc" >&6; }
29715 # So? What about this header?
29716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29717 yes:no: )
29718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29722 ac_header_preproc=yes
29724 no:yes:* )
29725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29732 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29737 ( cat <<\_ASBOX
29738 ## ----------------------------------- ##
29739 ## Report this to llvmbugs@cs.uiuc.edu ##
29740 ## ----------------------------------- ##
29741 _ASBOX
29742 ) | sed "s/^/$as_me: WARNING: /" >&2
29744 esac
29745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29748 echo $ECHO_N "(cached) $ECHO_C" >&6
29749 else
29750 eval "$as_ac_Header=\$ac_header_preproc"
29752 ac_res=`eval echo '${'$as_ac_Header'}'`
29753 { echo "$as_me:$LINENO: result: $ac_res" >&5
29754 echo "${ECHO_T}$ac_res" >&6; }
29757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29758 cat >>confdefs.h <<_ACEOF
29759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29760 _ACEOF
29761 HAVE_PTHREAD=1
29763 else
29764 HAVE_PTHREAD=0
29768 done
29770 else
29771 HAVE_PTHREAD=0
29777 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29778 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29779 if test "${ac_cv_huge_val_sanity+set}" = set; then
29780 echo $ECHO_N "(cached) $ECHO_C" >&6
29781 else
29783 ac_ext=cpp
29784 ac_cpp='$CXXCPP $CPPFLAGS'
29785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29789 CXXFLAGS=-pedantic
29790 if test "$cross_compiling" = yes; then
29791 ac_cv_huge_val_sanity=yes
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 <math.h>
29801 main ()
29803 double x = HUGE_VAL; return x != x;
29805 return 0;
29807 _ACEOF
29808 rm -f conftest$ac_exeext
29809 if { (ac_try="$ac_link"
29810 case "(($ac_try" in
29811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812 *) ac_try_echo=$ac_try;;
29813 esac
29814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815 (eval "$ac_link") 2>&5
29816 ac_status=$?
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29819 { (case "(($ac_try" in
29820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29821 *) ac_try_echo=$ac_try;;
29822 esac
29823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29824 (eval "$ac_try") 2>&5
29825 ac_status=$?
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); }; }; then
29828 ac_cv_huge_val_sanity=yes
29829 else
29830 echo "$as_me: program exited with status $ac_status" >&5
29831 echo "$as_me: failed program was:" >&5
29832 sed 's/^/| /' conftest.$ac_ext >&5
29834 ( exit $ac_status )
29835 ac_cv_huge_val_sanity=no
29837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29841 ac_ext=c
29842 ac_cpp='$CPP $CPPFLAGS'
29843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29849 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29850 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29851 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29854 { echo "$as_me:$LINENO: checking for pid_t" >&5
29855 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29856 if test "${ac_cv_type_pid_t+set}" = set; then
29857 echo $ECHO_N "(cached) $ECHO_C" >&6
29858 else
29859 cat >conftest.$ac_ext <<_ACEOF
29860 /* confdefs.h. */
29861 _ACEOF
29862 cat confdefs.h >>conftest.$ac_ext
29863 cat >>conftest.$ac_ext <<_ACEOF
29864 /* end confdefs.h. */
29865 $ac_includes_default
29866 typedef pid_t ac__type_new_;
29868 main ()
29870 if ((ac__type_new_ *) 0)
29871 return 0;
29872 if (sizeof (ac__type_new_))
29873 return 0;
29875 return 0;
29877 _ACEOF
29878 rm -f conftest.$ac_objext
29879 if { (ac_try="$ac_compile"
29880 case "(($ac_try" in
29881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882 *) ac_try_echo=$ac_try;;
29883 esac
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_compile") 2>conftest.er1
29886 ac_status=$?
29887 grep -v '^ *+' conftest.er1 >conftest.err
29888 rm -f conftest.er1
29889 cat conftest.err >&5
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891 (exit $ac_status); } &&
29892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29893 { (case "(($ac_try" in
29894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29895 *) ac_try_echo=$ac_try;;
29896 esac
29897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29898 (eval "$ac_try") 2>&5
29899 ac_status=$?
29900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901 (exit $ac_status); }; } &&
29902 { ac_try='test -s conftest.$ac_objext'
29903 { (case "(($ac_try" in
29904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29905 *) ac_try_echo=$ac_try;;
29906 esac
29907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29908 (eval "$ac_try") 2>&5
29909 ac_status=$?
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); }; }; then
29912 ac_cv_type_pid_t=yes
29913 else
29914 echo "$as_me: failed program was:" >&5
29915 sed 's/^/| /' conftest.$ac_ext >&5
29917 ac_cv_type_pid_t=no
29920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29922 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29923 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29924 if test $ac_cv_type_pid_t = yes; then
29926 else
29928 cat >>confdefs.h <<_ACEOF
29929 #define pid_t int
29930 _ACEOF
29934 { echo "$as_me:$LINENO: checking for size_t" >&5
29935 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29936 if test "${ac_cv_type_size_t+set}" = set; then
29937 echo $ECHO_N "(cached) $ECHO_C" >&6
29938 else
29939 cat >conftest.$ac_ext <<_ACEOF
29940 /* confdefs.h. */
29941 _ACEOF
29942 cat confdefs.h >>conftest.$ac_ext
29943 cat >>conftest.$ac_ext <<_ACEOF
29944 /* end confdefs.h. */
29945 $ac_includes_default
29946 typedef size_t ac__type_new_;
29948 main ()
29950 if ((ac__type_new_ *) 0)
29951 return 0;
29952 if (sizeof (ac__type_new_))
29953 return 0;
29955 return 0;
29957 _ACEOF
29958 rm -f conftest.$ac_objext
29959 if { (ac_try="$ac_compile"
29960 case "(($ac_try" in
29961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29962 *) ac_try_echo=$ac_try;;
29963 esac
29964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29965 (eval "$ac_compile") 2>conftest.er1
29966 ac_status=$?
29967 grep -v '^ *+' conftest.er1 >conftest.err
29968 rm -f conftest.er1
29969 cat conftest.err >&5
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); } &&
29972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29973 { (case "(($ac_try" in
29974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29975 *) ac_try_echo=$ac_try;;
29976 esac
29977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29978 (eval "$ac_try") 2>&5
29979 ac_status=$?
29980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981 (exit $ac_status); }; } &&
29982 { ac_try='test -s conftest.$ac_objext'
29983 { (case "(($ac_try" in
29984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29985 *) ac_try_echo=$ac_try;;
29986 esac
29987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29988 (eval "$ac_try") 2>&5
29989 ac_status=$?
29990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991 (exit $ac_status); }; }; then
29992 ac_cv_type_size_t=yes
29993 else
29994 echo "$as_me: failed program was:" >&5
29995 sed 's/^/| /' conftest.$ac_ext >&5
29997 ac_cv_type_size_t=no
30000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30002 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30003 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30004 if test $ac_cv_type_size_t = yes; then
30006 else
30008 cat >>confdefs.h <<_ACEOF
30009 #define size_t unsigned int
30010 _ACEOF
30014 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30015 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30016 if test "${ac_cv_type_signal+set}" = set; then
30017 echo $ECHO_N "(cached) $ECHO_C" >&6
30018 else
30019 cat >conftest.$ac_ext <<_ACEOF
30020 /* confdefs.h. */
30021 _ACEOF
30022 cat confdefs.h >>conftest.$ac_ext
30023 cat >>conftest.$ac_ext <<_ACEOF
30024 /* end confdefs.h. */
30025 #include <sys/types.h>
30026 #include <signal.h>
30029 main ()
30031 return *(signal (0, 0)) (0) == 1;
30033 return 0;
30035 _ACEOF
30036 rm -f conftest.$ac_objext
30037 if { (ac_try="$ac_compile"
30038 case "(($ac_try" in
30039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040 *) ac_try_echo=$ac_try;;
30041 esac
30042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043 (eval "$ac_compile") 2>conftest.er1
30044 ac_status=$?
30045 grep -v '^ *+' conftest.er1 >conftest.err
30046 rm -f conftest.er1
30047 cat conftest.err >&5
30048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049 (exit $ac_status); } &&
30050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30051 { (case "(($ac_try" in
30052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30053 *) ac_try_echo=$ac_try;;
30054 esac
30055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30056 (eval "$ac_try") 2>&5
30057 ac_status=$?
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); }; } &&
30060 { ac_try='test -s conftest.$ac_objext'
30061 { (case "(($ac_try" in
30062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30063 *) ac_try_echo=$ac_try;;
30064 esac
30065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30066 (eval "$ac_try") 2>&5
30067 ac_status=$?
30068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); }; }; then
30070 ac_cv_type_signal=int
30071 else
30072 echo "$as_me: failed program was:" >&5
30073 sed 's/^/| /' conftest.$ac_ext >&5
30075 ac_cv_type_signal=void
30078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30080 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30081 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30083 cat >>confdefs.h <<_ACEOF
30084 #define RETSIGTYPE $ac_cv_type_signal
30085 _ACEOF
30088 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30089 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30090 if test "${ac_cv_struct_tm+set}" = set; then
30091 echo $ECHO_N "(cached) $ECHO_C" >&6
30092 else
30093 cat >conftest.$ac_ext <<_ACEOF
30094 /* confdefs.h. */
30095 _ACEOF
30096 cat confdefs.h >>conftest.$ac_ext
30097 cat >>conftest.$ac_ext <<_ACEOF
30098 /* end confdefs.h. */
30099 #include <sys/types.h>
30100 #include <time.h>
30103 main ()
30105 struct tm *tp; tp->tm_sec;
30107 return 0;
30109 _ACEOF
30110 rm -f conftest.$ac_objext
30111 if { (ac_try="$ac_compile"
30112 case "(($ac_try" in
30113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30114 *) ac_try_echo=$ac_try;;
30115 esac
30116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30117 (eval "$ac_compile") 2>conftest.er1
30118 ac_status=$?
30119 grep -v '^ *+' conftest.er1 >conftest.err
30120 rm -f conftest.er1
30121 cat conftest.err >&5
30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123 (exit $ac_status); } &&
30124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30125 { (case "(($ac_try" in
30126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30127 *) ac_try_echo=$ac_try;;
30128 esac
30129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30130 (eval "$ac_try") 2>&5
30131 ac_status=$?
30132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133 (exit $ac_status); }; } &&
30134 { ac_try='test -s conftest.$ac_objext'
30135 { (case "(($ac_try" in
30136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30137 *) ac_try_echo=$ac_try;;
30138 esac
30139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30140 (eval "$ac_try") 2>&5
30141 ac_status=$?
30142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30143 (exit $ac_status); }; }; then
30144 ac_cv_struct_tm=time.h
30145 else
30146 echo "$as_me: failed program was:" >&5
30147 sed 's/^/| /' conftest.$ac_ext >&5
30149 ac_cv_struct_tm=sys/time.h
30152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30154 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30155 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30156 if test $ac_cv_struct_tm = sys/time.h; then
30158 cat >>confdefs.h <<\_ACEOF
30159 #define TM_IN_SYS_TIME 1
30160 _ACEOF
30164 { echo "$as_me:$LINENO: checking for int64_t" >&5
30165 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30166 if test "${ac_cv_type_int64_t+set}" = set; then
30167 echo $ECHO_N "(cached) $ECHO_C" >&6
30168 else
30169 cat >conftest.$ac_ext <<_ACEOF
30170 /* confdefs.h. */
30171 _ACEOF
30172 cat confdefs.h >>conftest.$ac_ext
30173 cat >>conftest.$ac_ext <<_ACEOF
30174 /* end confdefs.h. */
30175 $ac_includes_default
30176 typedef int64_t ac__type_new_;
30178 main ()
30180 if ((ac__type_new_ *) 0)
30181 return 0;
30182 if (sizeof (ac__type_new_))
30183 return 0;
30185 return 0;
30187 _ACEOF
30188 rm -f conftest.$ac_objext
30189 if { (ac_try="$ac_compile"
30190 case "(($ac_try" in
30191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30192 *) ac_try_echo=$ac_try;;
30193 esac
30194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30195 (eval "$ac_compile") 2>conftest.er1
30196 ac_status=$?
30197 grep -v '^ *+' conftest.er1 >conftest.err
30198 rm -f conftest.er1
30199 cat conftest.err >&5
30200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30201 (exit $ac_status); } &&
30202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30203 { (case "(($ac_try" in
30204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30205 *) ac_try_echo=$ac_try;;
30206 esac
30207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30208 (eval "$ac_try") 2>&5
30209 ac_status=$?
30210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211 (exit $ac_status); }; } &&
30212 { ac_try='test -s conftest.$ac_objext'
30213 { (case "(($ac_try" in
30214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30215 *) ac_try_echo=$ac_try;;
30216 esac
30217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30218 (eval "$ac_try") 2>&5
30219 ac_status=$?
30220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221 (exit $ac_status); }; }; then
30222 ac_cv_type_int64_t=yes
30223 else
30224 echo "$as_me: failed program was:" >&5
30225 sed 's/^/| /' conftest.$ac_ext >&5
30227 ac_cv_type_int64_t=no
30230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30232 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30233 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30234 if test $ac_cv_type_int64_t = yes; then
30236 cat >>confdefs.h <<_ACEOF
30237 #define HAVE_INT64_T 1
30238 _ACEOF
30241 else
30242 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30243 echo "$as_me: error: Type int64_t required but not found" >&2;}
30244 { (exit 1); exit 1; }; }
30247 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30248 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30249 if test "${ac_cv_type_uint64_t+set}" = set; then
30250 echo $ECHO_N "(cached) $ECHO_C" >&6
30251 else
30252 cat >conftest.$ac_ext <<_ACEOF
30253 /* confdefs.h. */
30254 _ACEOF
30255 cat confdefs.h >>conftest.$ac_ext
30256 cat >>conftest.$ac_ext <<_ACEOF
30257 /* end confdefs.h. */
30258 $ac_includes_default
30259 typedef uint64_t ac__type_new_;
30261 main ()
30263 if ((ac__type_new_ *) 0)
30264 return 0;
30265 if (sizeof (ac__type_new_))
30266 return 0;
30268 return 0;
30270 _ACEOF
30271 rm -f conftest.$ac_objext
30272 if { (ac_try="$ac_compile"
30273 case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30276 esac
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_compile") 2>conftest.er1
30279 ac_status=$?
30280 grep -v '^ *+' conftest.er1 >conftest.err
30281 rm -f conftest.er1
30282 cat conftest.err >&5
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); } &&
30285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30286 { (case "(($ac_try" in
30287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288 *) ac_try_echo=$ac_try;;
30289 esac
30290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291 (eval "$ac_try") 2>&5
30292 ac_status=$?
30293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294 (exit $ac_status); }; } &&
30295 { ac_try='test -s conftest.$ac_objext'
30296 { (case "(($ac_try" in
30297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30298 *) ac_try_echo=$ac_try;;
30299 esac
30300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30301 (eval "$ac_try") 2>&5
30302 ac_status=$?
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); }; }; then
30305 ac_cv_type_uint64_t=yes
30306 else
30307 echo "$as_me: failed program was:" >&5
30308 sed 's/^/| /' conftest.$ac_ext >&5
30310 ac_cv_type_uint64_t=no
30313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30315 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30316 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30317 if test $ac_cv_type_uint64_t = yes; then
30319 cat >>confdefs.h <<_ACEOF
30320 #define HAVE_UINT64_T 1
30321 _ACEOF
30324 else
30325 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30326 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30327 if test "${ac_cv_type_u_int64_t+set}" = set; then
30328 echo $ECHO_N "(cached) $ECHO_C" >&6
30329 else
30330 cat >conftest.$ac_ext <<_ACEOF
30331 /* confdefs.h. */
30332 _ACEOF
30333 cat confdefs.h >>conftest.$ac_ext
30334 cat >>conftest.$ac_ext <<_ACEOF
30335 /* end confdefs.h. */
30336 $ac_includes_default
30337 typedef u_int64_t ac__type_new_;
30339 main ()
30341 if ((ac__type_new_ *) 0)
30342 return 0;
30343 if (sizeof (ac__type_new_))
30344 return 0;
30346 return 0;
30348 _ACEOF
30349 rm -f conftest.$ac_objext
30350 if { (ac_try="$ac_compile"
30351 case "(($ac_try" in
30352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30353 *) ac_try_echo=$ac_try;;
30354 esac
30355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30356 (eval "$ac_compile") 2>conftest.er1
30357 ac_status=$?
30358 grep -v '^ *+' conftest.er1 >conftest.err
30359 rm -f conftest.er1
30360 cat conftest.err >&5
30361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30362 (exit $ac_status); } &&
30363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30364 { (case "(($ac_try" in
30365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30366 *) ac_try_echo=$ac_try;;
30367 esac
30368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30369 (eval "$ac_try") 2>&5
30370 ac_status=$?
30371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); }; } &&
30373 { ac_try='test -s conftest.$ac_objext'
30374 { (case "(($ac_try" in
30375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30376 *) ac_try_echo=$ac_try;;
30377 esac
30378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30379 (eval "$ac_try") 2>&5
30380 ac_status=$?
30381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30382 (exit $ac_status); }; }; then
30383 ac_cv_type_u_int64_t=yes
30384 else
30385 echo "$as_me: failed program was:" >&5
30386 sed 's/^/| /' conftest.$ac_ext >&5
30388 ac_cv_type_u_int64_t=no
30391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30393 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30394 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30395 if test $ac_cv_type_u_int64_t = yes; then
30397 cat >>confdefs.h <<_ACEOF
30398 #define HAVE_U_INT64_T 1
30399 _ACEOF
30402 else
30403 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30404 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30405 { (exit 1); exit 1; }; }
30419 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30425 echo $ECHO_N "(cached) $ECHO_C" >&6
30426 else
30427 cat >conftest.$ac_ext <<_ACEOF
30428 /* confdefs.h. */
30429 _ACEOF
30430 cat confdefs.h >>conftest.$ac_ext
30431 cat >>conftest.$ac_ext <<_ACEOF
30432 /* end confdefs.h. */
30433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30435 #define $ac_func innocuous_$ac_func
30437 /* System header to define __stub macros and hopefully few prototypes,
30438 which can conflict with char $ac_func (); below.
30439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30440 <limits.h> exists even on freestanding compilers. */
30442 #ifdef __STDC__
30443 # include <limits.h>
30444 #else
30445 # include <assert.h>
30446 #endif
30448 #undef $ac_func
30450 /* Override any GCC internal prototype to avoid an error.
30451 Use char because int might match the return type of a GCC
30452 builtin and then its argument prototype would still apply. */
30453 #ifdef __cplusplus
30454 extern "C"
30455 #endif
30456 char $ac_func ();
30457 /* The GNU C library defines this for functions which it implements
30458 to always fail with ENOSYS. Some functions are actually named
30459 something starting with __ and the normal name is an alias. */
30460 #if defined __stub_$ac_func || defined __stub___$ac_func
30461 choke me
30462 #endif
30465 main ()
30467 return $ac_func ();
30469 return 0;
30471 _ACEOF
30472 rm -f conftest.$ac_objext conftest$ac_exeext
30473 if { (ac_try="$ac_link"
30474 case "(($ac_try" in
30475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30476 *) ac_try_echo=$ac_try;;
30477 esac
30478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30479 (eval "$ac_link") 2>conftest.er1
30480 ac_status=$?
30481 grep -v '^ *+' conftest.er1 >conftest.err
30482 rm -f conftest.er1
30483 cat conftest.err >&5
30484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485 (exit $ac_status); } &&
30486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30487 { (case "(($ac_try" in
30488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30489 *) ac_try_echo=$ac_try;;
30490 esac
30491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30492 (eval "$ac_try") 2>&5
30493 ac_status=$?
30494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495 (exit $ac_status); }; } &&
30496 { ac_try='test -s conftest$ac_exeext'
30497 { (case "(($ac_try" in
30498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30499 *) ac_try_echo=$ac_try;;
30500 esac
30501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30502 (eval "$ac_try") 2>&5
30503 ac_status=$?
30504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30505 (exit $ac_status); }; }; then
30506 eval "$as_ac_var=yes"
30507 else
30508 echo "$as_me: failed program was:" >&5
30509 sed 's/^/| /' conftest.$ac_ext >&5
30511 eval "$as_ac_var=no"
30514 rm -f core conftest.err conftest.$ac_objext \
30515 conftest$ac_exeext conftest.$ac_ext
30517 ac_res=`eval echo '${'$as_ac_var'}'`
30518 { echo "$as_me:$LINENO: result: $ac_res" >&5
30519 echo "${ECHO_T}$ac_res" >&6; }
30520 if test `eval echo '${'$as_ac_var'}'` = yes; then
30521 cat >>confdefs.h <<_ACEOF
30522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30523 _ACEOF
30526 done
30532 for ac_func in powf fmodf strtof round
30534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30535 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30537 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30538 echo $ECHO_N "(cached) $ECHO_C" >&6
30539 else
30540 cat >conftest.$ac_ext <<_ACEOF
30541 /* confdefs.h. */
30542 _ACEOF
30543 cat confdefs.h >>conftest.$ac_ext
30544 cat >>conftest.$ac_ext <<_ACEOF
30545 /* end confdefs.h. */
30546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30548 #define $ac_func innocuous_$ac_func
30550 /* System header to define __stub macros and hopefully few prototypes,
30551 which can conflict with char $ac_func (); below.
30552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30553 <limits.h> exists even on freestanding compilers. */
30555 #ifdef __STDC__
30556 # include <limits.h>
30557 #else
30558 # include <assert.h>
30559 #endif
30561 #undef $ac_func
30563 /* Override any GCC internal prototype to avoid an error.
30564 Use char because int might match the return type of a GCC
30565 builtin and then its argument prototype would still apply. */
30566 #ifdef __cplusplus
30567 extern "C"
30568 #endif
30569 char $ac_func ();
30570 /* The GNU C library defines this for functions which it implements
30571 to always fail with ENOSYS. Some functions are actually named
30572 something starting with __ and the normal name is an alias. */
30573 #if defined __stub_$ac_func || defined __stub___$ac_func
30574 choke me
30575 #endif
30578 main ()
30580 return $ac_func ();
30582 return 0;
30584 _ACEOF
30585 rm -f conftest.$ac_objext conftest$ac_exeext
30586 if { (ac_try="$ac_link"
30587 case "(($ac_try" in
30588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30589 *) ac_try_echo=$ac_try;;
30590 esac
30591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30592 (eval "$ac_link") 2>conftest.er1
30593 ac_status=$?
30594 grep -v '^ *+' conftest.er1 >conftest.err
30595 rm -f conftest.er1
30596 cat conftest.err >&5
30597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30598 (exit $ac_status); } &&
30599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30600 { (case "(($ac_try" in
30601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30602 *) ac_try_echo=$ac_try;;
30603 esac
30604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30605 (eval "$ac_try") 2>&5
30606 ac_status=$?
30607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 (exit $ac_status); }; } &&
30609 { ac_try='test -s conftest$ac_exeext'
30610 { (case "(($ac_try" in
30611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30612 *) ac_try_echo=$ac_try;;
30613 esac
30614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30615 (eval "$ac_try") 2>&5
30616 ac_status=$?
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); }; }; then
30619 eval "$as_ac_var=yes"
30620 else
30621 echo "$as_me: failed program was:" >&5
30622 sed 's/^/| /' conftest.$ac_ext >&5
30624 eval "$as_ac_var=no"
30627 rm -f core conftest.err conftest.$ac_objext \
30628 conftest$ac_exeext conftest.$ac_ext
30630 ac_res=`eval echo '${'$as_ac_var'}'`
30631 { echo "$as_me:$LINENO: result: $ac_res" >&5
30632 echo "${ECHO_T}$ac_res" >&6; }
30633 if test `eval echo '${'$as_ac_var'}'` = yes; then
30634 cat >>confdefs.h <<_ACEOF
30635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30636 _ACEOF
30639 done
30646 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30652 echo $ECHO_N "(cached) $ECHO_C" >&6
30653 else
30654 cat >conftest.$ac_ext <<_ACEOF
30655 /* confdefs.h. */
30656 _ACEOF
30657 cat confdefs.h >>conftest.$ac_ext
30658 cat >>conftest.$ac_ext <<_ACEOF
30659 /* end confdefs.h. */
30660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30662 #define $ac_func innocuous_$ac_func
30664 /* System header to define __stub macros and hopefully few prototypes,
30665 which can conflict with char $ac_func (); below.
30666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30667 <limits.h> exists even on freestanding compilers. */
30669 #ifdef __STDC__
30670 # include <limits.h>
30671 #else
30672 # include <assert.h>
30673 #endif
30675 #undef $ac_func
30677 /* Override any GCC internal prototype to avoid an error.
30678 Use char because int might match the return type of a GCC
30679 builtin and then its argument prototype would still apply. */
30680 #ifdef __cplusplus
30681 extern "C"
30682 #endif
30683 char $ac_func ();
30684 /* The GNU C library defines this for functions which it implements
30685 to always fail with ENOSYS. Some functions are actually named
30686 something starting with __ and the normal name is an alias. */
30687 #if defined __stub_$ac_func || defined __stub___$ac_func
30688 choke me
30689 #endif
30692 main ()
30694 return $ac_func ();
30696 return 0;
30698 _ACEOF
30699 rm -f conftest.$ac_objext conftest$ac_exeext
30700 if { (ac_try="$ac_link"
30701 case "(($ac_try" in
30702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703 *) ac_try_echo=$ac_try;;
30704 esac
30705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706 (eval "$ac_link") 2>conftest.er1
30707 ac_status=$?
30708 grep -v '^ *+' conftest.er1 >conftest.err
30709 rm -f conftest.er1
30710 cat conftest.err >&5
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712 (exit $ac_status); } &&
30713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30714 { (case "(($ac_try" in
30715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30716 *) ac_try_echo=$ac_try;;
30717 esac
30718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30719 (eval "$ac_try") 2>&5
30720 ac_status=$?
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); }; } &&
30723 { ac_try='test -s conftest$ac_exeext'
30724 { (case "(($ac_try" in
30725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30726 *) ac_try_echo=$ac_try;;
30727 esac
30728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30729 (eval "$ac_try") 2>&5
30730 ac_status=$?
30731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732 (exit $ac_status); }; }; then
30733 eval "$as_ac_var=yes"
30734 else
30735 echo "$as_me: failed program was:" >&5
30736 sed 's/^/| /' conftest.$ac_ext >&5
30738 eval "$as_ac_var=no"
30741 rm -f core conftest.err conftest.$ac_objext \
30742 conftest$ac_exeext conftest.$ac_ext
30744 ac_res=`eval echo '${'$as_ac_var'}'`
30745 { echo "$as_me:$LINENO: result: $ac_res" >&5
30746 echo "${ECHO_T}$ac_res" >&6; }
30747 if test `eval echo '${'$as_ac_var'}'` = yes; then
30748 cat >>confdefs.h <<_ACEOF
30749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30750 _ACEOF
30753 done
30758 for ac_func in isatty mkdtemp mkstemp
30760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30761 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30763 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30764 echo $ECHO_N "(cached) $ECHO_C" >&6
30765 else
30766 cat >conftest.$ac_ext <<_ACEOF
30767 /* confdefs.h. */
30768 _ACEOF
30769 cat confdefs.h >>conftest.$ac_ext
30770 cat >>conftest.$ac_ext <<_ACEOF
30771 /* end confdefs.h. */
30772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30774 #define $ac_func innocuous_$ac_func
30776 /* System header to define __stub macros and hopefully few prototypes,
30777 which can conflict with char $ac_func (); below.
30778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30779 <limits.h> exists even on freestanding compilers. */
30781 #ifdef __STDC__
30782 # include <limits.h>
30783 #else
30784 # include <assert.h>
30785 #endif
30787 #undef $ac_func
30789 /* Override any GCC internal prototype to avoid an error.
30790 Use char because int might match the return type of a GCC
30791 builtin and then its argument prototype would still apply. */
30792 #ifdef __cplusplus
30793 extern "C"
30794 #endif
30795 char $ac_func ();
30796 /* The GNU C library defines this for functions which it implements
30797 to always fail with ENOSYS. Some functions are actually named
30798 something starting with __ and the normal name is an alias. */
30799 #if defined __stub_$ac_func || defined __stub___$ac_func
30800 choke me
30801 #endif
30804 main ()
30806 return $ac_func ();
30808 return 0;
30810 _ACEOF
30811 rm -f conftest.$ac_objext conftest$ac_exeext
30812 if { (ac_try="$ac_link"
30813 case "(($ac_try" in
30814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30815 *) ac_try_echo=$ac_try;;
30816 esac
30817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818 (eval "$ac_link") 2>conftest.er1
30819 ac_status=$?
30820 grep -v '^ *+' conftest.er1 >conftest.err
30821 rm -f conftest.er1
30822 cat conftest.err >&5
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); } &&
30825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30826 { (case "(($ac_try" in
30827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30828 *) ac_try_echo=$ac_try;;
30829 esac
30830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30831 (eval "$ac_try") 2>&5
30832 ac_status=$?
30833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834 (exit $ac_status); }; } &&
30835 { ac_try='test -s conftest$ac_exeext'
30836 { (case "(($ac_try" in
30837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30838 *) ac_try_echo=$ac_try;;
30839 esac
30840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30841 (eval "$ac_try") 2>&5
30842 ac_status=$?
30843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844 (exit $ac_status); }; }; then
30845 eval "$as_ac_var=yes"
30846 else
30847 echo "$as_me: failed program was:" >&5
30848 sed 's/^/| /' conftest.$ac_ext >&5
30850 eval "$as_ac_var=no"
30853 rm -f core conftest.err conftest.$ac_objext \
30854 conftest$ac_exeext conftest.$ac_ext
30856 ac_res=`eval echo '${'$as_ac_var'}'`
30857 { echo "$as_me:$LINENO: result: $ac_res" >&5
30858 echo "${ECHO_T}$ac_res" >&6; }
30859 if test `eval echo '${'$as_ac_var'}'` = yes; then
30860 cat >>confdefs.h <<_ACEOF
30861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30862 _ACEOF
30865 done
30874 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30880 echo $ECHO_N "(cached) $ECHO_C" >&6
30881 else
30882 cat >conftest.$ac_ext <<_ACEOF
30883 /* confdefs.h. */
30884 _ACEOF
30885 cat confdefs.h >>conftest.$ac_ext
30886 cat >>conftest.$ac_ext <<_ACEOF
30887 /* end confdefs.h. */
30888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30890 #define $ac_func innocuous_$ac_func
30892 /* System header to define __stub macros and hopefully few prototypes,
30893 which can conflict with char $ac_func (); below.
30894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30895 <limits.h> exists even on freestanding compilers. */
30897 #ifdef __STDC__
30898 # include <limits.h>
30899 #else
30900 # include <assert.h>
30901 #endif
30903 #undef $ac_func
30905 /* Override any GCC internal prototype to avoid an error.
30906 Use char because int might match the return type of a GCC
30907 builtin and then its argument prototype would still apply. */
30908 #ifdef __cplusplus
30909 extern "C"
30910 #endif
30911 char $ac_func ();
30912 /* The GNU C library defines this for functions which it implements
30913 to always fail with ENOSYS. Some functions are actually named
30914 something starting with __ and the normal name is an alias. */
30915 #if defined __stub_$ac_func || defined __stub___$ac_func
30916 choke me
30917 #endif
30920 main ()
30922 return $ac_func ();
30924 return 0;
30926 _ACEOF
30927 rm -f conftest.$ac_objext conftest$ac_exeext
30928 if { (ac_try="$ac_link"
30929 case "(($ac_try" in
30930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30931 *) ac_try_echo=$ac_try;;
30932 esac
30933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30934 (eval "$ac_link") 2>conftest.er1
30935 ac_status=$?
30936 grep -v '^ *+' conftest.er1 >conftest.err
30937 rm -f conftest.er1
30938 cat conftest.err >&5
30939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940 (exit $ac_status); } &&
30941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30942 { (case "(($ac_try" in
30943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30944 *) ac_try_echo=$ac_try;;
30945 esac
30946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30947 (eval "$ac_try") 2>&5
30948 ac_status=$?
30949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950 (exit $ac_status); }; } &&
30951 { ac_try='test -s conftest$ac_exeext'
30952 { (case "(($ac_try" in
30953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30954 *) ac_try_echo=$ac_try;;
30955 esac
30956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30957 (eval "$ac_try") 2>&5
30958 ac_status=$?
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); }; }; then
30961 eval "$as_ac_var=yes"
30962 else
30963 echo "$as_me: failed program was:" >&5
30964 sed 's/^/| /' conftest.$ac_ext >&5
30966 eval "$as_ac_var=no"
30969 rm -f core conftest.err conftest.$ac_objext \
30970 conftest$ac_exeext conftest.$ac_ext
30972 ac_res=`eval echo '${'$as_ac_var'}'`
30973 { echo "$as_me:$LINENO: result: $ac_res" >&5
30974 echo "${ECHO_T}$ac_res" >&6; }
30975 if test `eval echo '${'$as_ac_var'}'` = yes; then
30976 cat >>confdefs.h <<_ACEOF
30977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30978 _ACEOF
30981 done
30987 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30993 echo $ECHO_N "(cached) $ECHO_C" >&6
30994 else
30995 cat >conftest.$ac_ext <<_ACEOF
30996 /* confdefs.h. */
30997 _ACEOF
30998 cat confdefs.h >>conftest.$ac_ext
30999 cat >>conftest.$ac_ext <<_ACEOF
31000 /* end confdefs.h. */
31001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31003 #define $ac_func innocuous_$ac_func
31005 /* System header to define __stub macros and hopefully few prototypes,
31006 which can conflict with char $ac_func (); below.
31007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31008 <limits.h> exists even on freestanding compilers. */
31010 #ifdef __STDC__
31011 # include <limits.h>
31012 #else
31013 # include <assert.h>
31014 #endif
31016 #undef $ac_func
31018 /* Override any GCC internal prototype to avoid an error.
31019 Use char because int might match the return type of a GCC
31020 builtin and then its argument prototype would still apply. */
31021 #ifdef __cplusplus
31022 extern "C"
31023 #endif
31024 char $ac_func ();
31025 /* The GNU C library defines this for functions which it implements
31026 to always fail with ENOSYS. Some functions are actually named
31027 something starting with __ and the normal name is an alias. */
31028 #if defined __stub_$ac_func || defined __stub___$ac_func
31029 choke me
31030 #endif
31033 main ()
31035 return $ac_func ();
31037 return 0;
31039 _ACEOF
31040 rm -f conftest.$ac_objext conftest$ac_exeext
31041 if { (ac_try="$ac_link"
31042 case "(($ac_try" in
31043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31044 *) ac_try_echo=$ac_try;;
31045 esac
31046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31047 (eval "$ac_link") 2>conftest.er1
31048 ac_status=$?
31049 grep -v '^ *+' conftest.er1 >conftest.err
31050 rm -f conftest.er1
31051 cat conftest.err >&5
31052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31053 (exit $ac_status); } &&
31054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31055 { (case "(($ac_try" in
31056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31057 *) ac_try_echo=$ac_try;;
31058 esac
31059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31060 (eval "$ac_try") 2>&5
31061 ac_status=$?
31062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); }; } &&
31064 { ac_try='test -s conftest$ac_exeext'
31065 { (case "(($ac_try" in
31066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31067 *) ac_try_echo=$ac_try;;
31068 esac
31069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31070 (eval "$ac_try") 2>&5
31071 ac_status=$?
31072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); }; }; then
31074 eval "$as_ac_var=yes"
31075 else
31076 echo "$as_me: failed program was:" >&5
31077 sed 's/^/| /' conftest.$ac_ext >&5
31079 eval "$as_ac_var=no"
31082 rm -f core conftest.err conftest.$ac_objext \
31083 conftest$ac_exeext conftest.$ac_ext
31085 ac_res=`eval echo '${'$as_ac_var'}'`
31086 { echo "$as_me:$LINENO: result: $ac_res" >&5
31087 echo "${ECHO_T}$ac_res" >&6; }
31088 if test `eval echo '${'$as_ac_var'}'` = yes; then
31089 cat >>confdefs.h <<_ACEOF
31090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31091 _ACEOF
31094 done
31100 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31106 echo $ECHO_N "(cached) $ECHO_C" >&6
31107 else
31108 cat >conftest.$ac_ext <<_ACEOF
31109 /* confdefs.h. */
31110 _ACEOF
31111 cat confdefs.h >>conftest.$ac_ext
31112 cat >>conftest.$ac_ext <<_ACEOF
31113 /* end confdefs.h. */
31114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31116 #define $ac_func innocuous_$ac_func
31118 /* System header to define __stub macros and hopefully few prototypes,
31119 which can conflict with char $ac_func (); below.
31120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31121 <limits.h> exists even on freestanding compilers. */
31123 #ifdef __STDC__
31124 # include <limits.h>
31125 #else
31126 # include <assert.h>
31127 #endif
31129 #undef $ac_func
31131 /* Override any GCC internal prototype to avoid an error.
31132 Use char because int might match the return type of a GCC
31133 builtin and then its argument prototype would still apply. */
31134 #ifdef __cplusplus
31135 extern "C"
31136 #endif
31137 char $ac_func ();
31138 /* The GNU C library defines this for functions which it implements
31139 to always fail with ENOSYS. Some functions are actually named
31140 something starting with __ and the normal name is an alias. */
31141 #if defined __stub_$ac_func || defined __stub___$ac_func
31142 choke me
31143 #endif
31146 main ()
31148 return $ac_func ();
31150 return 0;
31152 _ACEOF
31153 rm -f conftest.$ac_objext conftest$ac_exeext
31154 if { (ac_try="$ac_link"
31155 case "(($ac_try" in
31156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31157 *) ac_try_echo=$ac_try;;
31158 esac
31159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31160 (eval "$ac_link") 2>conftest.er1
31161 ac_status=$?
31162 grep -v '^ *+' conftest.er1 >conftest.err
31163 rm -f conftest.er1
31164 cat conftest.err >&5
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); } &&
31167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31168 { (case "(($ac_try" in
31169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31170 *) ac_try_echo=$ac_try;;
31171 esac
31172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31173 (eval "$ac_try") 2>&5
31174 ac_status=$?
31175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176 (exit $ac_status); }; } &&
31177 { ac_try='test -s conftest$ac_exeext'
31178 { (case "(($ac_try" in
31179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31180 *) ac_try_echo=$ac_try;;
31181 esac
31182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31183 (eval "$ac_try") 2>&5
31184 ac_status=$?
31185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31186 (exit $ac_status); }; }; then
31187 eval "$as_ac_var=yes"
31188 else
31189 echo "$as_me: failed program was:" >&5
31190 sed 's/^/| /' conftest.$ac_ext >&5
31192 eval "$as_ac_var=no"
31195 rm -f core conftest.err conftest.$ac_objext \
31196 conftest$ac_exeext conftest.$ac_ext
31198 ac_res=`eval echo '${'$as_ac_var'}'`
31199 { echo "$as_me:$LINENO: result: $ac_res" >&5
31200 echo "${ECHO_T}$ac_res" >&6; }
31201 if test `eval echo '${'$as_ac_var'}'` = yes; then
31202 cat >>confdefs.h <<_ACEOF
31203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31204 _ACEOF
31207 done
31209 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31210 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31211 if test "${llvm_cv_c_printf_a+set}" = set; then
31212 echo $ECHO_N "(cached) $ECHO_C" >&6
31213 else
31214 ac_ext=c
31215 ac_cpp='$CPP $CPPFLAGS'
31216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31220 if test "$cross_compiling" = yes; then
31221 llvmac_cv_c_printf_a=no
31222 else
31223 cat >conftest.$ac_ext <<_ACEOF
31225 /* confdefs.h. */
31226 _ACEOF
31227 cat confdefs.h >>conftest.$ac_ext
31228 cat >>conftest.$ac_ext <<_ACEOF
31229 /* end confdefs.h. */
31231 #include <stdio.h>
31232 #include <stdlib.h>
31235 main ()
31238 volatile double A, B;
31239 char Buffer[100];
31240 A = 1;
31241 A /= 10.0;
31242 sprintf(Buffer, "%a", A);
31243 B = atof(Buffer);
31244 if (A != B)
31245 return (1);
31246 if (A != 0x1.999999999999ap-4)
31247 return (1);
31248 return (0);
31250 return 0;
31252 _ACEOF
31253 rm -f conftest$ac_exeext
31254 if { (ac_try="$ac_link"
31255 case "(($ac_try" in
31256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31257 *) ac_try_echo=$ac_try;;
31258 esac
31259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31260 (eval "$ac_link") 2>&5
31261 ac_status=$?
31262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31264 { (case "(($ac_try" in
31265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266 *) ac_try_echo=$ac_try;;
31267 esac
31268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269 (eval "$ac_try") 2>&5
31270 ac_status=$?
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); }; }; then
31273 llvm_cv_c_printf_a=yes
31274 else
31275 echo "$as_me: program exited with status $ac_status" >&5
31276 echo "$as_me: failed program was:" >&5
31277 sed 's/^/| /' conftest.$ac_ext >&5
31279 ( exit $ac_status )
31280 llvmac_cv_c_printf_a=no
31282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31286 ac_ext=c
31287 ac_cpp='$CPP $CPPFLAGS'
31288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31293 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31294 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31295 if test "$llvm_cv_c_printf_a" = "yes"; then
31297 cat >>confdefs.h <<\_ACEOF
31298 #define HAVE_PRINTF_A 1
31299 _ACEOF
31303 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31304 # for constant arguments. Useless!
31305 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31306 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31307 if test "${ac_cv_working_alloca_h+set}" = set; then
31308 echo $ECHO_N "(cached) $ECHO_C" >&6
31309 else
31310 cat >conftest.$ac_ext <<_ACEOF
31311 /* confdefs.h. */
31312 _ACEOF
31313 cat confdefs.h >>conftest.$ac_ext
31314 cat >>conftest.$ac_ext <<_ACEOF
31315 /* end confdefs.h. */
31316 #include <alloca.h>
31318 main ()
31320 char *p = (char *) alloca (2 * sizeof (int));
31321 if (p) return 0;
31323 return 0;
31325 _ACEOF
31326 rm -f conftest.$ac_objext conftest$ac_exeext
31327 if { (ac_try="$ac_link"
31328 case "(($ac_try" in
31329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31330 *) ac_try_echo=$ac_try;;
31331 esac
31332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31333 (eval "$ac_link") 2>conftest.er1
31334 ac_status=$?
31335 grep -v '^ *+' conftest.er1 >conftest.err
31336 rm -f conftest.er1
31337 cat conftest.err >&5
31338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339 (exit $ac_status); } &&
31340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31341 { (case "(($ac_try" in
31342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31343 *) ac_try_echo=$ac_try;;
31344 esac
31345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31346 (eval "$ac_try") 2>&5
31347 ac_status=$?
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); }; } &&
31350 { ac_try='test -s conftest$ac_exeext'
31351 { (case "(($ac_try" in
31352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31353 *) ac_try_echo=$ac_try;;
31354 esac
31355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31356 (eval "$ac_try") 2>&5
31357 ac_status=$?
31358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359 (exit $ac_status); }; }; then
31360 ac_cv_working_alloca_h=yes
31361 else
31362 echo "$as_me: failed program was:" >&5
31363 sed 's/^/| /' conftest.$ac_ext >&5
31365 ac_cv_working_alloca_h=no
31368 rm -f core conftest.err conftest.$ac_objext \
31369 conftest$ac_exeext conftest.$ac_ext
31371 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31372 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31373 if test $ac_cv_working_alloca_h = yes; then
31375 cat >>confdefs.h <<\_ACEOF
31376 #define HAVE_ALLOCA_H 1
31377 _ACEOF
31381 { echo "$as_me:$LINENO: checking for alloca" >&5
31382 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31383 if test "${ac_cv_func_alloca_works+set}" = set; then
31384 echo $ECHO_N "(cached) $ECHO_C" >&6
31385 else
31386 cat >conftest.$ac_ext <<_ACEOF
31387 /* confdefs.h. */
31388 _ACEOF
31389 cat confdefs.h >>conftest.$ac_ext
31390 cat >>conftest.$ac_ext <<_ACEOF
31391 /* end confdefs.h. */
31392 #ifdef __GNUC__
31393 # define alloca __builtin_alloca
31394 #else
31395 # ifdef _MSC_VER
31396 # include <malloc.h>
31397 # define alloca _alloca
31398 # else
31399 # if HAVE_ALLOCA_H
31400 # include <alloca.h>
31401 # else
31402 # ifdef _AIX
31403 #pragma alloca
31404 # else
31405 # ifndef alloca /* predefined by HP cc +Olibcalls */
31406 char *alloca ();
31407 # endif
31408 # endif
31409 # endif
31410 # endif
31411 #endif
31414 main ()
31416 char *p = (char *) alloca (1);
31417 if (p) return 0;
31419 return 0;
31421 _ACEOF
31422 rm -f conftest.$ac_objext conftest$ac_exeext
31423 if { (ac_try="$ac_link"
31424 case "(($ac_try" in
31425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31426 *) ac_try_echo=$ac_try;;
31427 esac
31428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31429 (eval "$ac_link") 2>conftest.er1
31430 ac_status=$?
31431 grep -v '^ *+' conftest.er1 >conftest.err
31432 rm -f conftest.er1
31433 cat conftest.err >&5
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); } &&
31436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31437 { (case "(($ac_try" in
31438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31439 *) ac_try_echo=$ac_try;;
31440 esac
31441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31442 (eval "$ac_try") 2>&5
31443 ac_status=$?
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); }; } &&
31446 { ac_try='test -s conftest$ac_exeext'
31447 { (case "(($ac_try" in
31448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31449 *) ac_try_echo=$ac_try;;
31450 esac
31451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31452 (eval "$ac_try") 2>&5
31453 ac_status=$?
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); }; }; then
31456 ac_cv_func_alloca_works=yes
31457 else
31458 echo "$as_me: failed program was:" >&5
31459 sed 's/^/| /' conftest.$ac_ext >&5
31461 ac_cv_func_alloca_works=no
31464 rm -f core conftest.err conftest.$ac_objext \
31465 conftest$ac_exeext conftest.$ac_ext
31467 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31468 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31470 if test $ac_cv_func_alloca_works = yes; then
31472 cat >>confdefs.h <<\_ACEOF
31473 #define HAVE_ALLOCA 1
31474 _ACEOF
31476 else
31477 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31478 # that cause trouble. Some versions do not even contain alloca or
31479 # contain a buggy version. If you still want to use their alloca,
31480 # use ar to extract alloca.o from them instead of compiling alloca.c.
31482 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31484 cat >>confdefs.h <<\_ACEOF
31485 #define C_ALLOCA 1
31486 _ACEOF
31489 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31490 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31491 if test "${ac_cv_os_cray+set}" = set; then
31492 echo $ECHO_N "(cached) $ECHO_C" >&6
31493 else
31494 cat >conftest.$ac_ext <<_ACEOF
31495 /* confdefs.h. */
31496 _ACEOF
31497 cat confdefs.h >>conftest.$ac_ext
31498 cat >>conftest.$ac_ext <<_ACEOF
31499 /* end confdefs.h. */
31500 #if defined CRAY && ! defined CRAY2
31501 webecray
31502 #else
31503 wenotbecray
31504 #endif
31506 _ACEOF
31507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31508 $EGREP "webecray" >/dev/null 2>&1; then
31509 ac_cv_os_cray=yes
31510 else
31511 ac_cv_os_cray=no
31513 rm -f conftest*
31516 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31517 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31518 if test $ac_cv_os_cray = yes; then
31519 for ac_func in _getb67 GETB67 getb67; do
31520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31521 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31524 echo $ECHO_N "(cached) $ECHO_C" >&6
31525 else
31526 cat >conftest.$ac_ext <<_ACEOF
31527 /* confdefs.h. */
31528 _ACEOF
31529 cat confdefs.h >>conftest.$ac_ext
31530 cat >>conftest.$ac_ext <<_ACEOF
31531 /* end confdefs.h. */
31532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31534 #define $ac_func innocuous_$ac_func
31536 /* System header to define __stub macros and hopefully few prototypes,
31537 which can conflict with char $ac_func (); below.
31538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31539 <limits.h> exists even on freestanding compilers. */
31541 #ifdef __STDC__
31542 # include <limits.h>
31543 #else
31544 # include <assert.h>
31545 #endif
31547 #undef $ac_func
31549 /* Override any GCC internal prototype to avoid an error.
31550 Use char because int might match the return type of a GCC
31551 builtin and then its argument prototype would still apply. */
31552 #ifdef __cplusplus
31553 extern "C"
31554 #endif
31555 char $ac_func ();
31556 /* The GNU C library defines this for functions which it implements
31557 to always fail with ENOSYS. Some functions are actually named
31558 something starting with __ and the normal name is an alias. */
31559 #if defined __stub_$ac_func || defined __stub___$ac_func
31560 choke me
31561 #endif
31564 main ()
31566 return $ac_func ();
31568 return 0;
31570 _ACEOF
31571 rm -f conftest.$ac_objext conftest$ac_exeext
31572 if { (ac_try="$ac_link"
31573 case "(($ac_try" in
31574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31575 *) ac_try_echo=$ac_try;;
31576 esac
31577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31578 (eval "$ac_link") 2>conftest.er1
31579 ac_status=$?
31580 grep -v '^ *+' conftest.er1 >conftest.err
31581 rm -f conftest.er1
31582 cat conftest.err >&5
31583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31584 (exit $ac_status); } &&
31585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31586 { (case "(($ac_try" in
31587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31588 *) ac_try_echo=$ac_try;;
31589 esac
31590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31591 (eval "$ac_try") 2>&5
31592 ac_status=$?
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); }; } &&
31595 { ac_try='test -s conftest$ac_exeext'
31596 { (case "(($ac_try" in
31597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31598 *) ac_try_echo=$ac_try;;
31599 esac
31600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31601 (eval "$ac_try") 2>&5
31602 ac_status=$?
31603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604 (exit $ac_status); }; }; then
31605 eval "$as_ac_var=yes"
31606 else
31607 echo "$as_me: failed program was:" >&5
31608 sed 's/^/| /' conftest.$ac_ext >&5
31610 eval "$as_ac_var=no"
31613 rm -f core conftest.err conftest.$ac_objext \
31614 conftest$ac_exeext conftest.$ac_ext
31616 ac_res=`eval echo '${'$as_ac_var'}'`
31617 { echo "$as_me:$LINENO: result: $ac_res" >&5
31618 echo "${ECHO_T}$ac_res" >&6; }
31619 if test `eval echo '${'$as_ac_var'}'` = yes; then
31621 cat >>confdefs.h <<_ACEOF
31622 #define CRAY_STACKSEG_END $ac_func
31623 _ACEOF
31625 break
31628 done
31631 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31632 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31633 if test "${ac_cv_c_stack_direction+set}" = set; then
31634 echo $ECHO_N "(cached) $ECHO_C" >&6
31635 else
31636 if test "$cross_compiling" = yes; then
31637 ac_cv_c_stack_direction=0
31638 else
31639 cat >conftest.$ac_ext <<_ACEOF
31640 /* confdefs.h. */
31641 _ACEOF
31642 cat confdefs.h >>conftest.$ac_ext
31643 cat >>conftest.$ac_ext <<_ACEOF
31644 /* end confdefs.h. */
31645 $ac_includes_default
31647 find_stack_direction ()
31649 static char *addr = 0;
31650 auto char dummy;
31651 if (addr == 0)
31653 addr = &dummy;
31654 return find_stack_direction ();
31656 else
31657 return (&dummy > addr) ? 1 : -1;
31661 main ()
31663 return find_stack_direction () < 0;
31665 _ACEOF
31666 rm -f conftest$ac_exeext
31667 if { (ac_try="$ac_link"
31668 case "(($ac_try" in
31669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31670 *) ac_try_echo=$ac_try;;
31671 esac
31672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31673 (eval "$ac_link") 2>&5
31674 ac_status=$?
31675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31677 { (case "(($ac_try" in
31678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31679 *) ac_try_echo=$ac_try;;
31680 esac
31681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31682 (eval "$ac_try") 2>&5
31683 ac_status=$?
31684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31685 (exit $ac_status); }; }; then
31686 ac_cv_c_stack_direction=1
31687 else
31688 echo "$as_me: program exited with status $ac_status" >&5
31689 echo "$as_me: failed program was:" >&5
31690 sed 's/^/| /' conftest.$ac_ext >&5
31692 ( exit $ac_status )
31693 ac_cv_c_stack_direction=-1
31695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31700 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31701 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31703 cat >>confdefs.h <<_ACEOF
31704 #define STACK_DIRECTION $ac_cv_c_stack_direction
31705 _ACEOF
31711 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31712 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31713 if test "${ac_cv_func_rand48+set}" = set; then
31714 echo $ECHO_N "(cached) $ECHO_C" >&6
31715 else
31716 ac_ext=cpp
31717 ac_cpp='$CXXCPP $CPPFLAGS'
31718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31722 cat >conftest.$ac_ext <<_ACEOF
31723 /* confdefs.h. */
31724 _ACEOF
31725 cat confdefs.h >>conftest.$ac_ext
31726 cat >>conftest.$ac_ext <<_ACEOF
31727 /* end confdefs.h. */
31728 #include <stdlib.h>
31730 main ()
31732 srand48(0);lrand48();drand48();
31734 return 0;
31736 _ACEOF
31737 rm -f conftest.$ac_objext
31738 if { (ac_try="$ac_compile"
31739 case "(($ac_try" in
31740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31741 *) ac_try_echo=$ac_try;;
31742 esac
31743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31744 (eval "$ac_compile") 2>conftest.er1
31745 ac_status=$?
31746 grep -v '^ *+' conftest.er1 >conftest.err
31747 rm -f conftest.er1
31748 cat conftest.err >&5
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); } &&
31751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31752 { (case "(($ac_try" in
31753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31754 *) ac_try_echo=$ac_try;;
31755 esac
31756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31757 (eval "$ac_try") 2>&5
31758 ac_status=$?
31759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760 (exit $ac_status); }; } &&
31761 { ac_try='test -s conftest.$ac_objext'
31762 { (case "(($ac_try" in
31763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31764 *) ac_try_echo=$ac_try;;
31765 esac
31766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31767 (eval "$ac_try") 2>&5
31768 ac_status=$?
31769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31770 (exit $ac_status); }; }; then
31771 ac_cv_func_rand48=yes
31772 else
31773 echo "$as_me: failed program was:" >&5
31774 sed 's/^/| /' conftest.$ac_ext >&5
31776 ac_cv_func_rand48=no
31779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31780 ac_ext=c
31781 ac_cpp='$CPP $CPPFLAGS'
31782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31787 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31788 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31790 if test "$ac_cv_func_rand48" = "yes" ; then
31792 cat >>confdefs.h <<\_ACEOF
31793 #define HAVE_RAND48 1
31794 _ACEOF
31799 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31800 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31801 if test "${ac_cv_cxx_namespaces+set}" = set; then
31802 echo $ECHO_N "(cached) $ECHO_C" >&6
31803 else
31804 ac_ext=cpp
31805 ac_cpp='$CXXCPP $CPPFLAGS'
31806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31810 cat >conftest.$ac_ext <<_ACEOF
31811 /* confdefs.h. */
31812 _ACEOF
31813 cat confdefs.h >>conftest.$ac_ext
31814 cat >>conftest.$ac_ext <<_ACEOF
31815 /* end confdefs.h. */
31816 namespace Outer { namespace Inner { int i = 0; }}
31818 main ()
31820 using namespace Outer::Inner; return i;
31822 return 0;
31824 _ACEOF
31825 rm -f conftest.$ac_objext
31826 if { (ac_try="$ac_compile"
31827 case "(($ac_try" in
31828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31829 *) ac_try_echo=$ac_try;;
31830 esac
31831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31832 (eval "$ac_compile") 2>conftest.er1
31833 ac_status=$?
31834 grep -v '^ *+' conftest.er1 >conftest.err
31835 rm -f conftest.er1
31836 cat conftest.err >&5
31837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838 (exit $ac_status); } &&
31839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31840 { (case "(($ac_try" in
31841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31842 *) ac_try_echo=$ac_try;;
31843 esac
31844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31845 (eval "$ac_try") 2>&5
31846 ac_status=$?
31847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848 (exit $ac_status); }; } &&
31849 { ac_try='test -s conftest.$ac_objext'
31850 { (case "(($ac_try" in
31851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31852 *) ac_try_echo=$ac_try;;
31853 esac
31854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31855 (eval "$ac_try") 2>&5
31856 ac_status=$?
31857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31858 (exit $ac_status); }; }; then
31859 ac_cv_cxx_namespaces=yes
31860 else
31861 echo "$as_me: failed program was:" >&5
31862 sed 's/^/| /' conftest.$ac_ext >&5
31864 ac_cv_cxx_namespaces=no
31867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31868 ac_ext=c
31869 ac_cpp='$CPP $CPPFLAGS'
31870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31876 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31877 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31878 if test "$ac_cv_cxx_namespaces" = yes; then
31880 cat >>confdefs.h <<\_ACEOF
31881 #define HAVE_NAMESPACES
31882 _ACEOF
31886 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31887 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31888 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31889 echo $ECHO_N "(cached) $ECHO_C" >&6
31890 else
31892 ac_ext=cpp
31893 ac_cpp='$CXXCPP $CPPFLAGS'
31894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31898 cat >conftest.$ac_ext <<_ACEOF
31899 /* confdefs.h. */
31900 _ACEOF
31901 cat confdefs.h >>conftest.$ac_ext
31902 cat >>conftest.$ac_ext <<_ACEOF
31903 /* end confdefs.h. */
31904 #include <ext/hash_map>
31905 #ifdef HAVE_NAMESPACES
31906 using namespace std;
31907 #endif
31909 main ()
31911 hash_map<int, int> t;
31913 return 0;
31915 _ACEOF
31916 rm -f conftest.$ac_objext
31917 if { (ac_try="$ac_compile"
31918 case "(($ac_try" in
31919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31920 *) ac_try_echo=$ac_try;;
31921 esac
31922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31923 (eval "$ac_compile") 2>conftest.er1
31924 ac_status=$?
31925 grep -v '^ *+' conftest.er1 >conftest.err
31926 rm -f conftest.er1
31927 cat conftest.err >&5
31928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31929 (exit $ac_status); } &&
31930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31931 { (case "(($ac_try" in
31932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31933 *) ac_try_echo=$ac_try;;
31934 esac
31935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31936 (eval "$ac_try") 2>&5
31937 ac_status=$?
31938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); }; } &&
31940 { ac_try='test -s conftest.$ac_objext'
31941 { (case "(($ac_try" in
31942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31943 *) ac_try_echo=$ac_try;;
31944 esac
31945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31946 (eval "$ac_try") 2>&5
31947 ac_status=$?
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); }; }; then
31950 ac_cv_cxx_have_std_ext_hash_map=yes
31951 else
31952 echo "$as_me: failed program was:" >&5
31953 sed 's/^/| /' conftest.$ac_ext >&5
31955 ac_cv_cxx_have_std_ext_hash_map=no
31958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31959 ac_ext=c
31960 ac_cpp='$CPP $CPPFLAGS'
31961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31966 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31967 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31968 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31969 then
31971 cat >>confdefs.h <<\_ACEOF
31972 #define HAVE_STD_EXT_HASH_MAP 1
31973 _ACEOF
31975 else
31977 cat >>confdefs.h <<\_ACEOF
31978 #define HAVE_STD_EXT_HASH_MAP 0
31979 _ACEOF
31983 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31984 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31985 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31986 echo $ECHO_N "(cached) $ECHO_C" >&6
31987 else
31989 ac_ext=cpp
31990 ac_cpp='$CXXCPP $CPPFLAGS'
31991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31995 cat >conftest.$ac_ext <<_ACEOF
31996 /* confdefs.h. */
31997 _ACEOF
31998 cat confdefs.h >>conftest.$ac_ext
31999 cat >>conftest.$ac_ext <<_ACEOF
32000 /* end confdefs.h. */
32001 #include <ext/hash_map>
32002 #ifdef HAVE_NAMESPACES
32003 using namespace __gnu_cxx;
32004 #endif
32006 main ()
32008 hash_map<int,int> t;
32010 return 0;
32012 _ACEOF
32013 rm -f conftest.$ac_objext
32014 if { (ac_try="$ac_compile"
32015 case "(($ac_try" in
32016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32017 *) ac_try_echo=$ac_try;;
32018 esac
32019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32020 (eval "$ac_compile") 2>conftest.er1
32021 ac_status=$?
32022 grep -v '^ *+' conftest.er1 >conftest.err
32023 rm -f conftest.er1
32024 cat conftest.err >&5
32025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32026 (exit $ac_status); } &&
32027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32028 { (case "(($ac_try" in
32029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32030 *) ac_try_echo=$ac_try;;
32031 esac
32032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32033 (eval "$ac_try") 2>&5
32034 ac_status=$?
32035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32036 (exit $ac_status); }; } &&
32037 { ac_try='test -s conftest.$ac_objext'
32038 { (case "(($ac_try" in
32039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32040 *) ac_try_echo=$ac_try;;
32041 esac
32042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32043 (eval "$ac_try") 2>&5
32044 ac_status=$?
32045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32046 (exit $ac_status); }; }; then
32047 ac_cv_cxx_have_gnu_ext_hash_map=yes
32048 else
32049 echo "$as_me: failed program was:" >&5
32050 sed 's/^/| /' conftest.$ac_ext >&5
32052 ac_cv_cxx_have_gnu_ext_hash_map=no
32055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32056 ac_ext=c
32057 ac_cpp='$CPP $CPPFLAGS'
32058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32063 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32064 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32065 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32066 then
32068 cat >>confdefs.h <<\_ACEOF
32069 #define HAVE_GNU_EXT_HASH_MAP 1
32070 _ACEOF
32072 else
32074 cat >>confdefs.h <<\_ACEOF
32075 #define HAVE_GNU_EXT_HASH_MAP 0
32076 _ACEOF
32080 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32081 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32082 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32083 echo $ECHO_N "(cached) $ECHO_C" >&6
32084 else
32086 ac_ext=cpp
32087 ac_cpp='$CXXCPP $CPPFLAGS'
32088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32092 cat >conftest.$ac_ext <<_ACEOF
32093 /* confdefs.h. */
32094 _ACEOF
32095 cat confdefs.h >>conftest.$ac_ext
32096 cat >>conftest.$ac_ext <<_ACEOF
32097 /* end confdefs.h. */
32098 #include <hash_map>
32100 main ()
32102 hash_map<int,int> t;
32104 return 0;
32106 _ACEOF
32107 rm -f conftest.$ac_objext
32108 if { (ac_try="$ac_compile"
32109 case "(($ac_try" in
32110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32111 *) ac_try_echo=$ac_try;;
32112 esac
32113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32114 (eval "$ac_compile") 2>conftest.er1
32115 ac_status=$?
32116 grep -v '^ *+' conftest.er1 >conftest.err
32117 rm -f conftest.er1
32118 cat conftest.err >&5
32119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120 (exit $ac_status); } &&
32121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32122 { (case "(($ac_try" in
32123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124 *) ac_try_echo=$ac_try;;
32125 esac
32126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127 (eval "$ac_try") 2>&5
32128 ac_status=$?
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); }; } &&
32131 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
32141 ac_cv_cxx_have_global_hash_map=yes
32142 else
32143 echo "$as_me: failed program was:" >&5
32144 sed 's/^/| /' conftest.$ac_ext >&5
32146 ac_cv_cxx_have_global_hash_map=no
32149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32150 ac_ext=c
32151 ac_cpp='$CPP $CPPFLAGS'
32152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32157 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32158 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32159 if test "$ac_cv_cxx_have_global_hash_map" = yes
32160 then
32162 cat >>confdefs.h <<\_ACEOF
32163 #define HAVE_GLOBAL_HASH_MAP 1
32164 _ACEOF
32166 else
32168 cat >>confdefs.h <<\_ACEOF
32169 #define HAVE_GLOBAL_HASH_MAP 0
32170 _ACEOF
32174 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32175 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32176 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32177 echo $ECHO_N "(cached) $ECHO_C" >&6
32178 else
32180 ac_ext=cpp
32181 ac_cpp='$CXXCPP $CPPFLAGS'
32182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
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 #include <ext/hash_set>
32193 #ifdef HAVE_NAMESPACES
32194 using namespace std;
32195 #endif
32197 main ()
32199 hash_set<int> t;
32201 return 0;
32203 _ACEOF
32204 rm -f conftest.$ac_objext
32205 if { (ac_try="$ac_compile"
32206 case "(($ac_try" in
32207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32208 *) ac_try_echo=$ac_try;;
32209 esac
32210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32211 (eval "$ac_compile") 2>conftest.er1
32212 ac_status=$?
32213 grep -v '^ *+' conftest.er1 >conftest.err
32214 rm -f conftest.er1
32215 cat conftest.err >&5
32216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217 (exit $ac_status); } &&
32218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32219 { (case "(($ac_try" in
32220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32221 *) ac_try_echo=$ac_try;;
32222 esac
32223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32224 (eval "$ac_try") 2>&5
32225 ac_status=$?
32226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227 (exit $ac_status); }; } &&
32228 { ac_try='test -s conftest.$ac_objext'
32229 { (case "(($ac_try" in
32230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32231 *) ac_try_echo=$ac_try;;
32232 esac
32233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32234 (eval "$ac_try") 2>&5
32235 ac_status=$?
32236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237 (exit $ac_status); }; }; then
32238 ac_cv_cxx_have_std_ext_hash_set=yes
32239 else
32240 echo "$as_me: failed program was:" >&5
32241 sed 's/^/| /' conftest.$ac_ext >&5
32243 ac_cv_cxx_have_std_ext_hash_set=no
32246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32247 ac_ext=c
32248 ac_cpp='$CPP $CPPFLAGS'
32249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32254 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32255 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32256 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32257 then
32259 cat >>confdefs.h <<\_ACEOF
32260 #define HAVE_STD_EXT_HASH_SET 1
32261 _ACEOF
32263 else
32265 cat >>confdefs.h <<\_ACEOF
32266 #define HAVE_STD_EXT_HASH_SET 0
32267 _ACEOF
32271 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32272 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32273 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32274 echo $ECHO_N "(cached) $ECHO_C" >&6
32275 else
32277 ac_ext=cpp
32278 ac_cpp='$CXXCPP $CPPFLAGS'
32279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32283 cat >conftest.$ac_ext <<_ACEOF
32284 /* confdefs.h. */
32285 _ACEOF
32286 cat confdefs.h >>conftest.$ac_ext
32287 cat >>conftest.$ac_ext <<_ACEOF
32288 /* end confdefs.h. */
32289 #include <ext/hash_set>
32290 #ifdef HAVE_NAMESPACES
32291 using namespace __gnu_cxx;
32292 #endif
32294 main ()
32296 hash_set<int> t;
32298 return 0;
32300 _ACEOF
32301 rm -f conftest.$ac_objext
32302 if { (ac_try="$ac_compile"
32303 case "(($ac_try" in
32304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32305 *) ac_try_echo=$ac_try;;
32306 esac
32307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32308 (eval "$ac_compile") 2>conftest.er1
32309 ac_status=$?
32310 grep -v '^ *+' conftest.er1 >conftest.err
32311 rm -f conftest.er1
32312 cat conftest.err >&5
32313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314 (exit $ac_status); } &&
32315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32316 { (case "(($ac_try" in
32317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318 *) ac_try_echo=$ac_try;;
32319 esac
32320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32321 (eval "$ac_try") 2>&5
32322 ac_status=$?
32323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32324 (exit $ac_status); }; } &&
32325 { ac_try='test -s conftest.$ac_objext'
32326 { (case "(($ac_try" in
32327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32328 *) ac_try_echo=$ac_try;;
32329 esac
32330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32331 (eval "$ac_try") 2>&5
32332 ac_status=$?
32333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); }; }; then
32335 ac_cv_cxx_have_gnu_ext_hash_set=yes
32336 else
32337 echo "$as_me: failed program was:" >&5
32338 sed 's/^/| /' conftest.$ac_ext >&5
32340 ac_cv_cxx_have_gnu_ext_hash_set=no
32343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32344 ac_ext=c
32345 ac_cpp='$CPP $CPPFLAGS'
32346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32351 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32352 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32353 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32354 then
32356 cat >>confdefs.h <<\_ACEOF
32357 #define HAVE_GNU_EXT_HASH_SET 1
32358 _ACEOF
32360 else
32362 cat >>confdefs.h <<\_ACEOF
32363 #define HAVE_GNU_EXT_HASH_SET 0
32364 _ACEOF
32368 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32369 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32370 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32371 echo $ECHO_N "(cached) $ECHO_C" >&6
32372 else
32374 ac_ext=cpp
32375 ac_cpp='$CXXCPP $CPPFLAGS'
32376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32380 cat >conftest.$ac_ext <<_ACEOF
32381 /* confdefs.h. */
32382 _ACEOF
32383 cat confdefs.h >>conftest.$ac_ext
32384 cat >>conftest.$ac_ext <<_ACEOF
32385 /* end confdefs.h. */
32386 #include <hash_set>
32388 main ()
32390 hash_set<int> t; return 0;
32392 return 0;
32394 _ACEOF
32395 rm -f conftest.$ac_objext
32396 if { (ac_try="$ac_compile"
32397 case "(($ac_try" in
32398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32399 *) ac_try_echo=$ac_try;;
32400 esac
32401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32402 (eval "$ac_compile") 2>conftest.er1
32403 ac_status=$?
32404 grep -v '^ *+' conftest.er1 >conftest.err
32405 rm -f conftest.er1
32406 cat conftest.err >&5
32407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32408 (exit $ac_status); } &&
32409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32410 { (case "(($ac_try" in
32411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32412 *) ac_try_echo=$ac_try;;
32413 esac
32414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32415 (eval "$ac_try") 2>&5
32416 ac_status=$?
32417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418 (exit $ac_status); }; } &&
32419 { ac_try='test -s conftest.$ac_objext'
32420 { (case "(($ac_try" in
32421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32422 *) ac_try_echo=$ac_try;;
32423 esac
32424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32425 (eval "$ac_try") 2>&5
32426 ac_status=$?
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); }; }; then
32429 ac_cv_cxx_have_global_hash_set=yes
32430 else
32431 echo "$as_me: failed program was:" >&5
32432 sed 's/^/| /' conftest.$ac_ext >&5
32434 ac_cv_cxx_have_global_hash_set=no
32437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32438 ac_ext=c
32439 ac_cpp='$CPP $CPPFLAGS'
32440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32445 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32446 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32447 if test "$ac_cv_cxx_have_global_hash_set" = yes
32448 then
32450 cat >>confdefs.h <<\_ACEOF
32451 #define HAVE_GLOBAL_HASH_SET 1
32452 _ACEOF
32454 else
32456 cat >>confdefs.h <<\_ACEOF
32457 #define HAVE_GLOBAL_HASH_SET 0
32458 _ACEOF
32462 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32463 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32464 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32465 echo $ECHO_N "(cached) $ECHO_C" >&6
32466 else
32468 ac_ext=cpp
32469 ac_cpp='$CXXCPP $CPPFLAGS'
32470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32474 cat >conftest.$ac_ext <<_ACEOF
32475 /* confdefs.h. */
32476 _ACEOF
32477 cat confdefs.h >>conftest.$ac_ext
32478 cat >>conftest.$ac_ext <<_ACEOF
32479 /* end confdefs.h. */
32480 #include <iterator>
32481 #ifdef HAVE_NAMESPACES
32482 using namespace std;
32483 #endif
32485 main ()
32487 iterator<int,int,int> t; return 0;
32489 return 0;
32491 _ACEOF
32492 rm -f conftest.$ac_objext
32493 if { (ac_try="$ac_compile"
32494 case "(($ac_try" in
32495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32496 *) ac_try_echo=$ac_try;;
32497 esac
32498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32499 (eval "$ac_compile") 2>conftest.er1
32500 ac_status=$?
32501 grep -v '^ *+' conftest.er1 >conftest.err
32502 rm -f conftest.er1
32503 cat conftest.err >&5
32504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505 (exit $ac_status); } &&
32506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32507 { (case "(($ac_try" in
32508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32509 *) ac_try_echo=$ac_try;;
32510 esac
32511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32512 (eval "$ac_try") 2>&5
32513 ac_status=$?
32514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515 (exit $ac_status); }; } &&
32516 { ac_try='test -s conftest.$ac_objext'
32517 { (case "(($ac_try" in
32518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32519 *) ac_try_echo=$ac_try;;
32520 esac
32521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32522 (eval "$ac_try") 2>&5
32523 ac_status=$?
32524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525 (exit $ac_status); }; }; then
32526 ac_cv_cxx_have_std_iterator=yes
32527 else
32528 echo "$as_me: failed program was:" >&5
32529 sed 's/^/| /' conftest.$ac_ext >&5
32531 ac_cv_cxx_have_std_iterator=no
32534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32535 ac_ext=c
32536 ac_cpp='$CPP $CPPFLAGS'
32537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32543 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32544 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32545 if test "$ac_cv_cxx_have_std_iterator" = yes
32546 then
32548 cat >>confdefs.h <<\_ACEOF
32549 #define HAVE_STD_ITERATOR 1
32550 _ACEOF
32552 else
32554 cat >>confdefs.h <<\_ACEOF
32555 #define HAVE_STD_ITERATOR 0
32556 _ACEOF
32560 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32561 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32562 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32563 echo $ECHO_N "(cached) $ECHO_C" >&6
32564 else
32566 ac_ext=cpp
32567 ac_cpp='$CXXCPP $CPPFLAGS'
32568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32572 cat >conftest.$ac_ext <<_ACEOF
32573 /* confdefs.h. */
32574 _ACEOF
32575 cat confdefs.h >>conftest.$ac_ext
32576 cat >>conftest.$ac_ext <<_ACEOF
32577 /* end confdefs.h. */
32578 #include <iterator>
32579 #ifdef HAVE_NAMESPACES
32580 using namespace std;
32581 #endif
32583 main ()
32585 bidirectional_iterator<int,int> t; return 0;
32587 return 0;
32589 _ACEOF
32590 rm -f conftest.$ac_objext
32591 if { (ac_try="$ac_compile"
32592 case "(($ac_try" in
32593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32594 *) ac_try_echo=$ac_try;;
32595 esac
32596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32597 (eval "$ac_compile") 2>conftest.er1
32598 ac_status=$?
32599 grep -v '^ *+' conftest.er1 >conftest.err
32600 rm -f conftest.er1
32601 cat conftest.err >&5
32602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); } &&
32604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32605 { (case "(($ac_try" in
32606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607 *) ac_try_echo=$ac_try;;
32608 esac
32609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610 (eval "$ac_try") 2>&5
32611 ac_status=$?
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; } &&
32614 { ac_try='test -s conftest.$ac_objext'
32615 { (case "(($ac_try" in
32616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617 *) ac_try_echo=$ac_try;;
32618 esac
32619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620 (eval "$ac_try") 2>&5
32621 ac_status=$?
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); }; }; then
32624 ac_cv_cxx_have_bi_iterator=yes
32625 else
32626 echo "$as_me: failed program was:" >&5
32627 sed 's/^/| /' conftest.$ac_ext >&5
32629 ac_cv_cxx_have_bi_iterator=no
32632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32633 ac_ext=c
32634 ac_cpp='$CPP $CPPFLAGS'
32635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32641 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32642 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32643 if test "$ac_cv_cxx_have_bi_iterator" = yes
32644 then
32646 cat >>confdefs.h <<\_ACEOF
32647 #define HAVE_BI_ITERATOR 1
32648 _ACEOF
32650 else
32652 cat >>confdefs.h <<\_ACEOF
32653 #define HAVE_BI_ITERATOR 0
32654 _ACEOF
32658 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32659 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32660 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32661 echo $ECHO_N "(cached) $ECHO_C" >&6
32662 else
32664 ac_ext=cpp
32665 ac_cpp='$CXXCPP $CPPFLAGS'
32666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32670 cat >conftest.$ac_ext <<_ACEOF
32671 /* confdefs.h. */
32672 _ACEOF
32673 cat confdefs.h >>conftest.$ac_ext
32674 cat >>conftest.$ac_ext <<_ACEOF
32675 /* end confdefs.h. */
32676 #include <iterator>
32677 #ifdef HAVE_NAMESPACES
32678 using namespace std;
32679 #endif
32681 main ()
32683 forward_iterator<int,int> t; return 0;
32685 return 0;
32687 _ACEOF
32688 rm -f conftest.$ac_objext
32689 if { (ac_try="$ac_compile"
32690 case "(($ac_try" in
32691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32692 *) ac_try_echo=$ac_try;;
32693 esac
32694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32695 (eval "$ac_compile") 2>conftest.er1
32696 ac_status=$?
32697 grep -v '^ *+' conftest.er1 >conftest.err
32698 rm -f conftest.er1
32699 cat conftest.err >&5
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); } &&
32702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32703 { (case "(($ac_try" in
32704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705 *) ac_try_echo=$ac_try;;
32706 esac
32707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708 (eval "$ac_try") 2>&5
32709 ac_status=$?
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; } &&
32712 { ac_try='test -s conftest.$ac_objext'
32713 { (case "(($ac_try" in
32714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32715 *) ac_try_echo=$ac_try;;
32716 esac
32717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32718 (eval "$ac_try") 2>&5
32719 ac_status=$?
32720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721 (exit $ac_status); }; }; then
32722 ac_cv_cxx_have_fwd_iterator=yes
32723 else
32724 echo "$as_me: failed program was:" >&5
32725 sed 's/^/| /' conftest.$ac_ext >&5
32727 ac_cv_cxx_have_fwd_iterator=no
32730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32731 ac_ext=c
32732 ac_cpp='$CPP $CPPFLAGS'
32733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32739 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32740 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32741 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32742 then
32744 cat >>confdefs.h <<\_ACEOF
32745 #define HAVE_FWD_ITERATOR 1
32746 _ACEOF
32748 else
32750 cat >>confdefs.h <<\_ACEOF
32751 #define HAVE_FWD_ITERATOR 0
32752 _ACEOF
32757 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32758 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32759 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32760 echo $ECHO_N "(cached) $ECHO_C" >&6
32761 else
32762 ac_ext=cpp
32763 ac_cpp='$CXXCPP $CPPFLAGS'
32764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32768 cat >conftest.$ac_ext <<_ACEOF
32769 /* confdefs.h. */
32770 _ACEOF
32771 cat confdefs.h >>conftest.$ac_ext
32772 cat >>conftest.$ac_ext <<_ACEOF
32773 /* end confdefs.h. */
32774 #include <math.h>
32776 main ()
32778 float f; isnan(f);
32780 return 0;
32782 _ACEOF
32783 rm -f conftest.$ac_objext
32784 if { (ac_try="$ac_compile"
32785 case "(($ac_try" in
32786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32787 *) ac_try_echo=$ac_try;;
32788 esac
32789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32790 (eval "$ac_compile") 2>conftest.er1
32791 ac_status=$?
32792 grep -v '^ *+' conftest.er1 >conftest.err
32793 rm -f conftest.er1
32794 cat conftest.err >&5
32795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32796 (exit $ac_status); } &&
32797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32798 { (case "(($ac_try" in
32799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32800 *) ac_try_echo=$ac_try;;
32801 esac
32802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32803 (eval "$ac_try") 2>&5
32804 ac_status=$?
32805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806 (exit $ac_status); }; } &&
32807 { ac_try='test -s conftest.$ac_objext'
32808 { (case "(($ac_try" in
32809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32810 *) ac_try_echo=$ac_try;;
32811 esac
32812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32813 (eval "$ac_try") 2>&5
32814 ac_status=$?
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); }; }; then
32817 ac_cv_func_isnan_in_math_h=yes
32818 else
32819 echo "$as_me: failed program was:" >&5
32820 sed 's/^/| /' conftest.$ac_ext >&5
32822 ac_cv_func_isnan_in_math_h=no
32825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32826 ac_ext=c
32827 ac_cpp='$CPP $CPPFLAGS'
32828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32833 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32834 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32837 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32839 cat >>confdefs.h <<\_ACEOF
32840 #define HAVE_ISNAN_IN_MATH_H 1
32841 _ACEOF
32845 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32846 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32847 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32848 echo $ECHO_N "(cached) $ECHO_C" >&6
32849 else
32850 ac_ext=cpp
32851 ac_cpp='$CXXCPP $CPPFLAGS'
32852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32856 cat >conftest.$ac_ext <<_ACEOF
32857 /* confdefs.h. */
32858 _ACEOF
32859 cat confdefs.h >>conftest.$ac_ext
32860 cat >>conftest.$ac_ext <<_ACEOF
32861 /* end confdefs.h. */
32862 #include <cmath>
32864 main ()
32866 float f; isnan(f);
32868 return 0;
32870 _ACEOF
32871 rm -f conftest.$ac_objext
32872 if { (ac_try="$ac_compile"
32873 case "(($ac_try" in
32874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32875 *) ac_try_echo=$ac_try;;
32876 esac
32877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32878 (eval "$ac_compile") 2>conftest.er1
32879 ac_status=$?
32880 grep -v '^ *+' conftest.er1 >conftest.err
32881 rm -f conftest.er1
32882 cat conftest.err >&5
32883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884 (exit $ac_status); } &&
32885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32886 { (case "(($ac_try" in
32887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32888 *) ac_try_echo=$ac_try;;
32889 esac
32890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32891 (eval "$ac_try") 2>&5
32892 ac_status=$?
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); }; } &&
32895 { ac_try='test -s conftest.$ac_objext'
32896 { (case "(($ac_try" in
32897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32898 *) ac_try_echo=$ac_try;;
32899 esac
32900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32901 (eval "$ac_try") 2>&5
32902 ac_status=$?
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); }; }; then
32905 ac_cv_func_isnan_in_cmath=yes
32906 else
32907 echo "$as_me: failed program was:" >&5
32908 sed 's/^/| /' conftest.$ac_ext >&5
32910 ac_cv_func_isnan_in_cmath=no
32913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32914 ac_ext=c
32915 ac_cpp='$CPP $CPPFLAGS'
32916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32921 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32922 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32924 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32926 cat >>confdefs.h <<\_ACEOF
32927 #define HAVE_ISNAN_IN_CMATH 1
32928 _ACEOF
32932 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32933 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32934 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32935 echo $ECHO_N "(cached) $ECHO_C" >&6
32936 else
32937 ac_ext=cpp
32938 ac_cpp='$CXXCPP $CPPFLAGS'
32939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32943 cat >conftest.$ac_ext <<_ACEOF
32944 /* confdefs.h. */
32945 _ACEOF
32946 cat confdefs.h >>conftest.$ac_ext
32947 cat >>conftest.$ac_ext <<_ACEOF
32948 /* end confdefs.h. */
32949 #include <cmath>
32951 main ()
32953 float f; std::isnan(f);
32955 return 0;
32957 _ACEOF
32958 rm -f conftest.$ac_objext
32959 if { (ac_try="$ac_compile"
32960 case "(($ac_try" in
32961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32962 *) ac_try_echo=$ac_try;;
32963 esac
32964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32965 (eval "$ac_compile") 2>conftest.er1
32966 ac_status=$?
32967 grep -v '^ *+' conftest.er1 >conftest.err
32968 rm -f conftest.er1
32969 cat conftest.err >&5
32970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32971 (exit $ac_status); } &&
32972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32973 { (case "(($ac_try" in
32974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32975 *) ac_try_echo=$ac_try;;
32976 esac
32977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32978 (eval "$ac_try") 2>&5
32979 ac_status=$?
32980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32981 (exit $ac_status); }; } &&
32982 { ac_try='test -s conftest.$ac_objext'
32983 { (case "(($ac_try" in
32984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32985 *) ac_try_echo=$ac_try;;
32986 esac
32987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32988 (eval "$ac_try") 2>&5
32989 ac_status=$?
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); }; }; then
32992 ac_cv_func_std_isnan_in_cmath=yes
32993 else
32994 echo "$as_me: failed program was:" >&5
32995 sed 's/^/| /' conftest.$ac_ext >&5
32997 ac_cv_func_std_isnan_in_cmath=no
33000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33001 ac_ext=c
33002 ac_cpp='$CPP $CPPFLAGS'
33003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33008 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33009 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33011 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33013 cat >>confdefs.h <<\_ACEOF
33014 #define HAVE_STD_ISNAN_IN_CMATH 1
33015 _ACEOF
33020 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33021 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33022 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33023 echo $ECHO_N "(cached) $ECHO_C" >&6
33024 else
33025 ac_ext=cpp
33026 ac_cpp='$CXXCPP $CPPFLAGS'
33027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33031 cat >conftest.$ac_ext <<_ACEOF
33032 /* confdefs.h. */
33033 _ACEOF
33034 cat confdefs.h >>conftest.$ac_ext
33035 cat >>conftest.$ac_ext <<_ACEOF
33036 /* end confdefs.h. */
33037 #include <math.h>
33039 main ()
33041 float f; isinf(f);
33043 return 0;
33045 _ACEOF
33046 rm -f conftest.$ac_objext
33047 if { (ac_try="$ac_compile"
33048 case "(($ac_try" in
33049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33050 *) ac_try_echo=$ac_try;;
33051 esac
33052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33053 (eval "$ac_compile") 2>conftest.er1
33054 ac_status=$?
33055 grep -v '^ *+' conftest.er1 >conftest.err
33056 rm -f conftest.er1
33057 cat conftest.err >&5
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); } &&
33060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33061 { (case "(($ac_try" in
33062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33063 *) ac_try_echo=$ac_try;;
33064 esac
33065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33066 (eval "$ac_try") 2>&5
33067 ac_status=$?
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); }; } &&
33070 { ac_try='test -s conftest.$ac_objext'
33071 { (case "(($ac_try" in
33072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073 *) ac_try_echo=$ac_try;;
33074 esac
33075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33076 (eval "$ac_try") 2>&5
33077 ac_status=$?
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); }; }; then
33080 ac_cv_func_isinf_in_math_h=yes
33081 else
33082 echo "$as_me: failed program was:" >&5
33083 sed 's/^/| /' conftest.$ac_ext >&5
33085 ac_cv_func_isinf_in_math_h=no
33088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33089 ac_ext=c
33090 ac_cpp='$CPP $CPPFLAGS'
33091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33096 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33097 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33099 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33101 cat >>confdefs.h <<\_ACEOF
33102 #define HAVE_ISINF_IN_MATH_H 1
33103 _ACEOF
33107 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33108 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33109 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33110 echo $ECHO_N "(cached) $ECHO_C" >&6
33111 else
33112 ac_ext=cpp
33113 ac_cpp='$CXXCPP $CPPFLAGS'
33114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33118 cat >conftest.$ac_ext <<_ACEOF
33119 /* confdefs.h. */
33120 _ACEOF
33121 cat confdefs.h >>conftest.$ac_ext
33122 cat >>conftest.$ac_ext <<_ACEOF
33123 /* end confdefs.h. */
33124 #include <cmath>
33126 main ()
33128 float f; isinf(f);
33130 return 0;
33132 _ACEOF
33133 rm -f conftest.$ac_objext
33134 if { (ac_try="$ac_compile"
33135 case "(($ac_try" in
33136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33137 *) ac_try_echo=$ac_try;;
33138 esac
33139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33140 (eval "$ac_compile") 2>conftest.er1
33141 ac_status=$?
33142 grep -v '^ *+' conftest.er1 >conftest.err
33143 rm -f conftest.er1
33144 cat conftest.err >&5
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); } &&
33147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33148 { (case "(($ac_try" in
33149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33150 *) ac_try_echo=$ac_try;;
33151 esac
33152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33153 (eval "$ac_try") 2>&5
33154 ac_status=$?
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); }; } &&
33157 { ac_try='test -s conftest.$ac_objext'
33158 { (case "(($ac_try" in
33159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160 *) ac_try_echo=$ac_try;;
33161 esac
33162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33163 (eval "$ac_try") 2>&5
33164 ac_status=$?
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); }; }; then
33167 ac_cv_func_isinf_in_cmath=yes
33168 else
33169 echo "$as_me: failed program was:" >&5
33170 sed 's/^/| /' conftest.$ac_ext >&5
33172 ac_cv_func_isinf_in_cmath=no
33175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33176 ac_ext=c
33177 ac_cpp='$CPP $CPPFLAGS'
33178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33183 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33184 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33186 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33188 cat >>confdefs.h <<\_ACEOF
33189 #define HAVE_ISINF_IN_CMATH 1
33190 _ACEOF
33194 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33195 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33196 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33197 echo $ECHO_N "(cached) $ECHO_C" >&6
33198 else
33199 ac_ext=cpp
33200 ac_cpp='$CXXCPP $CPPFLAGS'
33201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33205 cat >conftest.$ac_ext <<_ACEOF
33206 /* confdefs.h. */
33207 _ACEOF
33208 cat confdefs.h >>conftest.$ac_ext
33209 cat >>conftest.$ac_ext <<_ACEOF
33210 /* end confdefs.h. */
33211 #include <cmath>
33213 main ()
33215 float f; std::isinf(f)}
33217 return 0;
33219 _ACEOF
33220 rm -f conftest.$ac_objext
33221 if { (ac_try="$ac_compile"
33222 case "(($ac_try" in
33223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33224 *) ac_try_echo=$ac_try;;
33225 esac
33226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33227 (eval "$ac_compile") 2>conftest.er1
33228 ac_status=$?
33229 grep -v '^ *+' conftest.er1 >conftest.err
33230 rm -f conftest.er1
33231 cat conftest.err >&5
33232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233 (exit $ac_status); } &&
33234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33235 { (case "(($ac_try" in
33236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237 *) ac_try_echo=$ac_try;;
33238 esac
33239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240 (eval "$ac_try") 2>&5
33241 ac_status=$?
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); }; } &&
33244 { ac_try='test -s conftest.$ac_objext'
33245 { (case "(($ac_try" in
33246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33247 *) ac_try_echo=$ac_try;;
33248 esac
33249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33250 (eval "$ac_try") 2>&5
33251 ac_status=$?
33252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253 (exit $ac_status); }; }; then
33254 ac_cv_func_std_isinf_in_cmath=yes
33255 else
33256 echo "$as_me: failed program was:" >&5
33257 sed 's/^/| /' conftest.$ac_ext >&5
33259 ac_cv_func_std_isinf_in_cmath=no
33262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33263 ac_ext=c
33264 ac_cpp='$CPP $CPPFLAGS'
33265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33270 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33271 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33273 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33275 cat >>confdefs.h <<\_ACEOF
33276 #define HAVE_STD_ISINF_IN_CMATH 1
33277 _ACEOF
33281 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33282 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33283 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33284 echo $ECHO_N "(cached) $ECHO_C" >&6
33285 else
33286 ac_ext=cpp
33287 ac_cpp='$CXXCPP $CPPFLAGS'
33288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33292 cat >conftest.$ac_ext <<_ACEOF
33293 /* confdefs.h. */
33294 _ACEOF
33295 cat confdefs.h >>conftest.$ac_ext
33296 cat >>conftest.$ac_ext <<_ACEOF
33297 /* end confdefs.h. */
33298 #include <ieeefp.h>
33300 main ()
33302 float f; finite(f);
33304 return 0;
33306 _ACEOF
33307 rm -f conftest.$ac_objext
33308 if { (ac_try="$ac_compile"
33309 case "(($ac_try" in
33310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33311 *) ac_try_echo=$ac_try;;
33312 esac
33313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33314 (eval "$ac_compile") 2>conftest.er1
33315 ac_status=$?
33316 grep -v '^ *+' conftest.er1 >conftest.err
33317 rm -f conftest.er1
33318 cat conftest.err >&5
33319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320 (exit $ac_status); } &&
33321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33322 { (case "(($ac_try" in
33323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33324 *) ac_try_echo=$ac_try;;
33325 esac
33326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33327 (eval "$ac_try") 2>&5
33328 ac_status=$?
33329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33330 (exit $ac_status); }; } &&
33331 { ac_try='test -s conftest.$ac_objext'
33332 { (case "(($ac_try" in
33333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33334 *) ac_try_echo=$ac_try;;
33335 esac
33336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33337 (eval "$ac_try") 2>&5
33338 ac_status=$?
33339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340 (exit $ac_status); }; }; then
33341 ac_cv_func_finite_in_ieeefp_h=yes
33342 else
33343 echo "$as_me: failed program was:" >&5
33344 sed 's/^/| /' conftest.$ac_ext >&5
33346 ac_cv_func_finite_in_ieeefp_h=no
33349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33350 ac_ext=c
33351 ac_cpp='$CPP $CPPFLAGS'
33352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33357 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33358 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33360 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33362 cat >>confdefs.h <<\_ACEOF
33363 #define HAVE_FINITE_IN_IEEEFP_H 1
33364 _ACEOF
33370 if test "$llvm_cv_platform_type" = "Unix" ; then
33373 for ac_header in stdlib.h unistd.h
33375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33380 echo $ECHO_N "(cached) $ECHO_C" >&6
33382 ac_res=`eval echo '${'$as_ac_Header'}'`
33383 { echo "$as_me:$LINENO: result: $ac_res" >&5
33384 echo "${ECHO_T}$ac_res" >&6; }
33385 else
33386 # Is the header compilable?
33387 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33389 cat >conftest.$ac_ext <<_ACEOF
33390 /* confdefs.h. */
33391 _ACEOF
33392 cat confdefs.h >>conftest.$ac_ext
33393 cat >>conftest.$ac_ext <<_ACEOF
33394 /* end confdefs.h. */
33395 $ac_includes_default
33396 #include <$ac_header>
33397 _ACEOF
33398 rm -f conftest.$ac_objext
33399 if { (ac_try="$ac_compile"
33400 case "(($ac_try" in
33401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33402 *) ac_try_echo=$ac_try;;
33403 esac
33404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33405 (eval "$ac_compile") 2>conftest.er1
33406 ac_status=$?
33407 grep -v '^ *+' conftest.er1 >conftest.err
33408 rm -f conftest.er1
33409 cat conftest.err >&5
33410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411 (exit $ac_status); } &&
33412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33413 { (case "(($ac_try" in
33414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33415 *) ac_try_echo=$ac_try;;
33416 esac
33417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33418 (eval "$ac_try") 2>&5
33419 ac_status=$?
33420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421 (exit $ac_status); }; } &&
33422 { ac_try='test -s conftest.$ac_objext'
33423 { (case "(($ac_try" in
33424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33425 *) ac_try_echo=$ac_try;;
33426 esac
33427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33428 (eval "$ac_try") 2>&5
33429 ac_status=$?
33430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33431 (exit $ac_status); }; }; then
33432 ac_header_compiler=yes
33433 else
33434 echo "$as_me: failed program was:" >&5
33435 sed 's/^/| /' conftest.$ac_ext >&5
33437 ac_header_compiler=no
33440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33442 echo "${ECHO_T}$ac_header_compiler" >&6; }
33444 # Is the header present?
33445 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33447 cat >conftest.$ac_ext <<_ACEOF
33448 /* confdefs.h. */
33449 _ACEOF
33450 cat confdefs.h >>conftest.$ac_ext
33451 cat >>conftest.$ac_ext <<_ACEOF
33452 /* end confdefs.h. */
33453 #include <$ac_header>
33454 _ACEOF
33455 if { (ac_try="$ac_cpp conftest.$ac_ext"
33456 case "(($ac_try" in
33457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33458 *) ac_try_echo=$ac_try;;
33459 esac
33460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33462 ac_status=$?
33463 grep -v '^ *+' conftest.er1 >conftest.err
33464 rm -f conftest.er1
33465 cat conftest.err >&5
33466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467 (exit $ac_status); } >/dev/null; then
33468 if test -s conftest.err; then
33469 ac_cpp_err=$ac_c_preproc_warn_flag
33470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33471 else
33472 ac_cpp_err=
33474 else
33475 ac_cpp_err=yes
33477 if test -z "$ac_cpp_err"; then
33478 ac_header_preproc=yes
33479 else
33480 echo "$as_me: failed program was:" >&5
33481 sed 's/^/| /' conftest.$ac_ext >&5
33483 ac_header_preproc=no
33486 rm -f conftest.err conftest.$ac_ext
33487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33488 echo "${ECHO_T}$ac_header_preproc" >&6; }
33490 # So? What about this header?
33491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33492 yes:no: )
33493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33497 ac_header_preproc=yes
33499 no:yes:* )
33500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33512 ( cat <<\_ASBOX
33513 ## ----------------------------------- ##
33514 ## Report this to llvmbugs@cs.uiuc.edu ##
33515 ## ----------------------------------- ##
33516 _ASBOX
33517 ) | sed "s/^/$as_me: WARNING: /" >&2
33519 esac
33520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33523 echo $ECHO_N "(cached) $ECHO_C" >&6
33524 else
33525 eval "$as_ac_Header=\$ac_header_preproc"
33527 ac_res=`eval echo '${'$as_ac_Header'}'`
33528 { echo "$as_me:$LINENO: result: $ac_res" >&5
33529 echo "${ECHO_T}$ac_res" >&6; }
33532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33533 cat >>confdefs.h <<_ACEOF
33534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33535 _ACEOF
33539 done
33542 for ac_func in getpagesize
33544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33545 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33548 echo $ECHO_N "(cached) $ECHO_C" >&6
33549 else
33550 cat >conftest.$ac_ext <<_ACEOF
33551 /* confdefs.h. */
33552 _ACEOF
33553 cat confdefs.h >>conftest.$ac_ext
33554 cat >>conftest.$ac_ext <<_ACEOF
33555 /* end confdefs.h. */
33556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33558 #define $ac_func innocuous_$ac_func
33560 /* System header to define __stub macros and hopefully few prototypes,
33561 which can conflict with char $ac_func (); below.
33562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33563 <limits.h> exists even on freestanding compilers. */
33565 #ifdef __STDC__
33566 # include <limits.h>
33567 #else
33568 # include <assert.h>
33569 #endif
33571 #undef $ac_func
33573 /* Override any GCC internal prototype to avoid an error.
33574 Use char because int might match the return type of a GCC
33575 builtin and then its argument prototype would still apply. */
33576 #ifdef __cplusplus
33577 extern "C"
33578 #endif
33579 char $ac_func ();
33580 /* The GNU C library defines this for functions which it implements
33581 to always fail with ENOSYS. Some functions are actually named
33582 something starting with __ and the normal name is an alias. */
33583 #if defined __stub_$ac_func || defined __stub___$ac_func
33584 choke me
33585 #endif
33588 main ()
33590 return $ac_func ();
33592 return 0;
33594 _ACEOF
33595 rm -f conftest.$ac_objext conftest$ac_exeext
33596 if { (ac_try="$ac_link"
33597 case "(($ac_try" in
33598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33599 *) ac_try_echo=$ac_try;;
33600 esac
33601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33602 (eval "$ac_link") 2>conftest.er1
33603 ac_status=$?
33604 grep -v '^ *+' conftest.er1 >conftest.err
33605 rm -f conftest.er1
33606 cat conftest.err >&5
33607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608 (exit $ac_status); } &&
33609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33610 { (case "(($ac_try" in
33611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33612 *) ac_try_echo=$ac_try;;
33613 esac
33614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33615 (eval "$ac_try") 2>&5
33616 ac_status=$?
33617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618 (exit $ac_status); }; } &&
33619 { ac_try='test -s conftest$ac_exeext'
33620 { (case "(($ac_try" in
33621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33622 *) ac_try_echo=$ac_try;;
33623 esac
33624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33625 (eval "$ac_try") 2>&5
33626 ac_status=$?
33627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628 (exit $ac_status); }; }; then
33629 eval "$as_ac_var=yes"
33630 else
33631 echo "$as_me: failed program was:" >&5
33632 sed 's/^/| /' conftest.$ac_ext >&5
33634 eval "$as_ac_var=no"
33637 rm -f core conftest.err conftest.$ac_objext \
33638 conftest$ac_exeext conftest.$ac_ext
33640 ac_res=`eval echo '${'$as_ac_var'}'`
33641 { echo "$as_me:$LINENO: result: $ac_res" >&5
33642 echo "${ECHO_T}$ac_res" >&6; }
33643 if test `eval echo '${'$as_ac_var'}'` = yes; then
33644 cat >>confdefs.h <<_ACEOF
33645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33646 _ACEOF
33649 done
33651 { echo "$as_me:$LINENO: checking for working mmap" >&5
33652 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33653 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33654 echo $ECHO_N "(cached) $ECHO_C" >&6
33655 else
33656 if test "$cross_compiling" = yes; then
33657 ac_cv_func_mmap_fixed_mapped=no
33658 else
33659 cat >conftest.$ac_ext <<_ACEOF
33660 /* confdefs.h. */
33661 _ACEOF
33662 cat confdefs.h >>conftest.$ac_ext
33663 cat >>conftest.$ac_ext <<_ACEOF
33664 /* end confdefs.h. */
33665 $ac_includes_default
33666 /* malloc might have been renamed as rpl_malloc. */
33667 #undef malloc
33669 /* Thanks to Mike Haertel and Jim Avera for this test.
33670 Here is a matrix of mmap possibilities:
33671 mmap private not fixed
33672 mmap private fixed at somewhere currently unmapped
33673 mmap private fixed at somewhere already mapped
33674 mmap shared not fixed
33675 mmap shared fixed at somewhere currently unmapped
33676 mmap shared fixed at somewhere already mapped
33677 For private mappings, we should verify that changes cannot be read()
33678 back from the file, nor mmap's back from the file at a different
33679 address. (There have been systems where private was not correctly
33680 implemented like the infamous i386 svr4.0, and systems where the
33681 VM page cache was not coherent with the file system buffer cache
33682 like early versions of FreeBSD and possibly contemporary NetBSD.)
33683 For shared mappings, we should conversely verify that changes get
33684 propagated back to all the places they're supposed to be.
33686 Grep wants private fixed already mapped.
33687 The main things grep needs to know about mmap are:
33688 * does it exist and is it safe to write into the mmap'd area
33689 * how to use it (BSD variants) */
33691 #include <fcntl.h>
33692 #include <sys/mman.h>
33694 #if !STDC_HEADERS && !HAVE_STDLIB_H
33695 char *malloc ();
33696 #endif
33698 /* This mess was copied from the GNU getpagesize.h. */
33699 #if !HAVE_GETPAGESIZE
33700 /* Assume that all systems that can run configure have sys/param.h. */
33701 # if !HAVE_SYS_PARAM_H
33702 # define HAVE_SYS_PARAM_H 1
33703 # endif
33705 # ifdef _SC_PAGESIZE
33706 # define getpagesize() sysconf(_SC_PAGESIZE)
33707 # else /* no _SC_PAGESIZE */
33708 # if HAVE_SYS_PARAM_H
33709 # include <sys/param.h>
33710 # ifdef EXEC_PAGESIZE
33711 # define getpagesize() EXEC_PAGESIZE
33712 # else /* no EXEC_PAGESIZE */
33713 # ifdef NBPG
33714 # define getpagesize() NBPG * CLSIZE
33715 # ifndef CLSIZE
33716 # define CLSIZE 1
33717 # endif /* no CLSIZE */
33718 # else /* no NBPG */
33719 # ifdef NBPC
33720 # define getpagesize() NBPC
33721 # else /* no NBPC */
33722 # ifdef PAGESIZE
33723 # define getpagesize() PAGESIZE
33724 # endif /* PAGESIZE */
33725 # endif /* no NBPC */
33726 # endif /* no NBPG */
33727 # endif /* no EXEC_PAGESIZE */
33728 # else /* no HAVE_SYS_PARAM_H */
33729 # define getpagesize() 8192 /* punt totally */
33730 # endif /* no HAVE_SYS_PARAM_H */
33731 # endif /* no _SC_PAGESIZE */
33733 #endif /* no HAVE_GETPAGESIZE */
33736 main ()
33738 char *data, *data2, *data3;
33739 int i, pagesize;
33740 int fd;
33742 pagesize = getpagesize ();
33744 /* First, make a file with some known garbage in it. */
33745 data = (char *) malloc (pagesize);
33746 if (!data)
33747 return 1;
33748 for (i = 0; i < pagesize; ++i)
33749 *(data + i) = rand ();
33750 umask (0);
33751 fd = creat ("conftest.mmap", 0600);
33752 if (fd < 0)
33753 return 1;
33754 if (write (fd, data, pagesize) != pagesize)
33755 return 1;
33756 close (fd);
33758 /* Next, try to mmap the file at a fixed address which already has
33759 something else allocated at it. If we can, also make sure that
33760 we see the same garbage. */
33761 fd = open ("conftest.mmap", O_RDWR);
33762 if (fd < 0)
33763 return 1;
33764 data2 = (char *) malloc (2 * pagesize);
33765 if (!data2)
33766 return 1;
33767 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33768 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33769 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33770 return 1;
33771 for (i = 0; i < pagesize; ++i)
33772 if (*(data + i) != *(data2 + i))
33773 return 1;
33775 /* Finally, make sure that changes to the mapped area do not
33776 percolate back to the file as seen by read(). (This is a bug on
33777 some variants of i386 svr4.0.) */
33778 for (i = 0; i < pagesize; ++i)
33779 *(data2 + i) = *(data2 + i) + 1;
33780 data3 = (char *) malloc (pagesize);
33781 if (!data3)
33782 return 1;
33783 if (read (fd, data3, pagesize) != pagesize)
33784 return 1;
33785 for (i = 0; i < pagesize; ++i)
33786 if (*(data + i) != *(data3 + i))
33787 return 1;
33788 close (fd);
33789 return 0;
33791 _ACEOF
33792 rm -f conftest$ac_exeext
33793 if { (ac_try="$ac_link"
33794 case "(($ac_try" in
33795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33796 *) ac_try_echo=$ac_try;;
33797 esac
33798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33799 (eval "$ac_link") 2>&5
33800 ac_status=$?
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33803 { (case "(($ac_try" in
33804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33805 *) ac_try_echo=$ac_try;;
33806 esac
33807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33808 (eval "$ac_try") 2>&5
33809 ac_status=$?
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); }; }; then
33812 ac_cv_func_mmap_fixed_mapped=yes
33813 else
33814 echo "$as_me: program exited with status $ac_status" >&5
33815 echo "$as_me: failed program was:" >&5
33816 sed 's/^/| /' conftest.$ac_ext >&5
33818 ( exit $ac_status )
33819 ac_cv_func_mmap_fixed_mapped=no
33821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33826 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33827 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33828 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33830 cat >>confdefs.h <<\_ACEOF
33831 #define HAVE_MMAP 1
33832 _ACEOF
33835 rm -f conftest.mmap
33837 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33838 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33839 if test "${ac_cv_func_mmap_file+set}" = set; then
33840 echo $ECHO_N "(cached) $ECHO_C" >&6
33841 else
33842 ac_ext=c
33843 ac_cpp='$CPP $CPPFLAGS'
33844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33848 if test "$cross_compiling" = yes; then
33849 ac_cv_func_mmap_file=no
33850 else
33851 cat >conftest.$ac_ext <<_ACEOF
33853 /* confdefs.h. */
33854 _ACEOF
33855 cat confdefs.h >>conftest.$ac_ext
33856 cat >>conftest.$ac_ext <<_ACEOF
33857 /* end confdefs.h. */
33859 #include <sys/types.h>
33860 #include <sys/mman.h>
33861 #include <fcntl.h>
33864 main ()
33867 int fd;
33868 fd = creat ("foo",0777);
33869 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33870 unlink ("foo");
33871 return (fd != (int) MAP_FAILED);
33873 return 0;
33875 _ACEOF
33876 rm -f conftest$ac_exeext
33877 if { (ac_try="$ac_link"
33878 case "(($ac_try" in
33879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33880 *) ac_try_echo=$ac_try;;
33881 esac
33882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33883 (eval "$ac_link") 2>&5
33884 ac_status=$?
33885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33887 { (case "(($ac_try" in
33888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33889 *) ac_try_echo=$ac_try;;
33890 esac
33891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33892 (eval "$ac_try") 2>&5
33893 ac_status=$?
33894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895 (exit $ac_status); }; }; then
33896 ac_cv_func_mmap_file=yes
33897 else
33898 echo "$as_me: program exited with status $ac_status" >&5
33899 echo "$as_me: failed program was:" >&5
33900 sed 's/^/| /' conftest.$ac_ext >&5
33902 ( exit $ac_status )
33903 ac_cv_func_mmap_file=no
33905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33909 ac_ext=c
33910 ac_cpp='$CPP $CPPFLAGS'
33911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33917 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33918 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33919 if test "$ac_cv_func_mmap_file" = yes; then
33921 cat >>confdefs.h <<\_ACEOF
33922 #define HAVE_MMAP_FILE
33923 _ACEOF
33925 MMAP_FILE=yes
33929 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33930 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33931 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33932 echo $ECHO_N "(cached) $ECHO_C" >&6
33933 else
33934 if test "$llvm_cv_os_type" = "Interix" ; then
33935 ac_cv_need_dev_zero_for_mmap=yes
33936 else
33937 ac_cv_need_dev_zero_for_mmap=no
33941 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33942 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33943 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33945 cat >>confdefs.h <<\_ACEOF
33946 #define NEED_DEV_ZERO_FOR_MMAP 1
33947 _ACEOF
33951 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33952 then
33953 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33954 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33956 if test "$ac_cv_func_mmap_file" = "no"
33957 then
33958 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33959 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33965 for ac_func in __dso_handle
33967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33968 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33970 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33971 echo $ECHO_N "(cached) $ECHO_C" >&6
33972 else
33973 cat >conftest.$ac_ext <<_ACEOF
33974 /* confdefs.h. */
33975 _ACEOF
33976 cat confdefs.h >>conftest.$ac_ext
33977 cat >>conftest.$ac_ext <<_ACEOF
33978 /* end confdefs.h. */
33979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33981 #define $ac_func innocuous_$ac_func
33983 /* System header to define __stub macros and hopefully few prototypes,
33984 which can conflict with char $ac_func (); below.
33985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33986 <limits.h> exists even on freestanding compilers. */
33988 #ifdef __STDC__
33989 # include <limits.h>
33990 #else
33991 # include <assert.h>
33992 #endif
33994 #undef $ac_func
33996 /* Override any GCC internal prototype to avoid an error.
33997 Use char because int might match the return type of a GCC
33998 builtin and then its argument prototype would still apply. */
33999 #ifdef __cplusplus
34000 extern "C"
34001 #endif
34002 char $ac_func ();
34003 /* The GNU C library defines this for functions which it implements
34004 to always fail with ENOSYS. Some functions are actually named
34005 something starting with __ and the normal name is an alias. */
34006 #if defined __stub_$ac_func || defined __stub___$ac_func
34007 choke me
34008 #endif
34011 main ()
34013 return $ac_func ();
34015 return 0;
34017 _ACEOF
34018 rm -f conftest.$ac_objext conftest$ac_exeext
34019 if { (ac_try="$ac_link"
34020 case "(($ac_try" in
34021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34022 *) ac_try_echo=$ac_try;;
34023 esac
34024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34025 (eval "$ac_link") 2>conftest.er1
34026 ac_status=$?
34027 grep -v '^ *+' conftest.er1 >conftest.err
34028 rm -f conftest.er1
34029 cat conftest.err >&5
34030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031 (exit $ac_status); } &&
34032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34033 { (case "(($ac_try" in
34034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34035 *) ac_try_echo=$ac_try;;
34036 esac
34037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34038 (eval "$ac_try") 2>&5
34039 ac_status=$?
34040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041 (exit $ac_status); }; } &&
34042 { ac_try='test -s conftest$ac_exeext'
34043 { (case "(($ac_try" in
34044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34045 *) ac_try_echo=$ac_try;;
34046 esac
34047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34048 (eval "$ac_try") 2>&5
34049 ac_status=$?
34050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051 (exit $ac_status); }; }; then
34052 eval "$as_ac_var=yes"
34053 else
34054 echo "$as_me: failed program was:" >&5
34055 sed 's/^/| /' conftest.$ac_ext >&5
34057 eval "$as_ac_var=no"
34060 rm -f core conftest.err conftest.$ac_objext \
34061 conftest$ac_exeext conftest.$ac_ext
34063 ac_res=`eval echo '${'$as_ac_var'}'`
34064 { echo "$as_me:$LINENO: result: $ac_res" >&5
34065 echo "${ECHO_T}$ac_res" >&6; }
34066 if test `eval echo '${'$as_ac_var'}'` = yes; then
34067 cat >>confdefs.h <<_ACEOF
34068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34069 _ACEOF
34072 done
34075 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34076 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34077 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34078 echo $ECHO_N "(cached) $ECHO_C" >&6
34079 else
34080 llvm_cv_llvmgcc_sanity="no"
34081 if test -x "$LLVMGCC" ; then
34082 cp /dev/null conftest.c
34083 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34084 grep 'target datalayout =' > /dev/null 2>&1
34085 if test $? -eq 0 ; then
34086 llvm_cv_llvmgcc_sanity="yes"
34088 rm conftest.c
34091 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34092 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34094 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34095 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34096 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34097 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34098 LLVMCC1=$llvmcc1path
34100 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34101 LLVMCC1PLUS=$llvmcc1pluspath
34103 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34104 LLVMGCCDIR=$llvmgccdir
34106 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34107 LLVMGCCLIBEXEC=$llvmgcclibexec
34109 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34110 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34111 LLVMGCC_VERSION=$llvmgccversion
34113 LLVMGCC_MAJVERS=$llvmgccmajvers
34115 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34116 LLVMGCC_LANGS=$llvmgcclangs
34118 { echo "$as_me:$LINENO: result: ok" >&5
34119 echo "${ECHO_T}ok" >&6; }
34122 SHLIBEXT=$libltdl_cv_shlibext
34125 # Translate the various configuration directories and other basic
34126 # information into substitutions that will end up in Makefile.config.in
34127 # that these configured values can be used by the makefiles
34128 if test "${prefix}" = "NONE" ; then
34129 prefix="/usr/local"
34131 eval LLVM_PREFIX="${prefix}";
34132 eval LLVM_BINDIR="${prefix}/bin";
34133 eval LLVM_LIBDIR="${prefix}/lib";
34134 eval LLVM_DATADIR="${prefix}/share/llvm";
34135 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34136 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34137 eval LLVM_INCLUDEDIR="${prefix}/include";
34138 eval LLVM_INFODIR="${prefix}/info";
34139 eval LLVM_MANDIR="${prefix}/man";
34140 LLVM_CONFIGTIME=`date`
34152 # Place the various directores into the config.h file as #defines so that we
34153 # can know about the installation paths within LLVM.
34155 cat >>confdefs.h <<_ACEOF
34156 #define LLVM_PREFIX "$LLVM_PREFIX"
34157 _ACEOF
34160 cat >>confdefs.h <<_ACEOF
34161 #define LLVM_BINDIR "$LLVM_BINDIR"
34162 _ACEOF
34165 cat >>confdefs.h <<_ACEOF
34166 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34167 _ACEOF
34170 cat >>confdefs.h <<_ACEOF
34171 #define LLVM_DATADIR "$LLVM_DATADIR"
34172 _ACEOF
34175 cat >>confdefs.h <<_ACEOF
34176 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34177 _ACEOF
34180 cat >>confdefs.h <<_ACEOF
34181 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34182 _ACEOF
34185 cat >>confdefs.h <<_ACEOF
34186 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34187 _ACEOF
34190 cat >>confdefs.h <<_ACEOF
34191 #define LLVM_INFODIR "$LLVM_INFODIR"
34192 _ACEOF
34195 cat >>confdefs.h <<_ACEOF
34196 #define LLVM_MANDIR "$LLVM_MANDIR"
34197 _ACEOF
34200 cat >>confdefs.h <<_ACEOF
34201 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34202 _ACEOF
34205 cat >>confdefs.h <<_ACEOF
34206 #define LLVM_HOSTTRIPLE "$host"
34207 _ACEOF
34210 # Determine which bindings to build.
34211 if test "$BINDINGS_TO_BUILD" = auto ; then
34212 BINDINGS_TO_BUILD=""
34213 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34214 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34217 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34220 # This isn't really configurey, but it avoids having to repeat the list in
34221 # other files.
34222 ALL_BINDINGS=ocaml
34225 # Do any work necessary to ensure that bindings have what they need.
34226 binding_prereqs_failed=0
34227 for a_binding in $BINDINGS_TO_BUILD ; do
34228 case "$a_binding" in
34229 ocaml)
34230 if test "x$OCAMLC" = x ; then
34231 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34232 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34233 binding_prereqs_failed=1
34235 if test "x$OCAMLDEP" = x ; then
34236 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34237 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34238 binding_prereqs_failed=1
34240 if test "x$OCAMLOPT" = x ; then
34241 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34242 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34244 if test "x$with_ocaml_libdir" != xauto ; then
34245 OCAML_LIBDIR=$with_ocaml_libdir
34247 else
34248 ocaml_stdlib="`"$OCAMLC" -where`"
34249 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34250 then
34251 # ocaml stdlib is beneath our prefix; use stdlib
34252 OCAML_LIBDIR=$ocaml_stdlib
34254 else
34255 # ocaml stdlib is outside our prefix; use libdir/ocaml
34256 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34261 esac
34262 done
34263 if test "$binding_prereqs_failed" = 1 ; then
34264 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34265 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34266 { (exit 1); exit 1; }; }
34269 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34270 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34271 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34272 echo $ECHO_N "(cached) $ECHO_C" >&6
34273 else
34274 ac_ext=cpp
34275 ac_cpp='$CXXCPP $CPPFLAGS'
34276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34280 oldcxxflags="$CXXFLAGS"
34281 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34282 cat >conftest.$ac_ext <<_ACEOF
34283 /* confdefs.h. */
34284 _ACEOF
34285 cat confdefs.h >>conftest.$ac_ext
34286 cat >>conftest.$ac_ext <<_ACEOF
34287 /* end confdefs.h. */
34290 main ()
34294 return 0;
34296 _ACEOF
34297 rm -f conftest.$ac_objext
34298 if { (ac_try="$ac_compile"
34299 case "(($ac_try" in
34300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34301 *) ac_try_echo=$ac_try;;
34302 esac
34303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34304 (eval "$ac_compile") 2>conftest.er1
34305 ac_status=$?
34306 grep -v '^ *+' conftest.er1 >conftest.err
34307 rm -f conftest.er1
34308 cat conftest.err >&5
34309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34310 (exit $ac_status); } &&
34311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34312 { (case "(($ac_try" in
34313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34314 *) ac_try_echo=$ac_try;;
34315 esac
34316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34317 (eval "$ac_try") 2>&5
34318 ac_status=$?
34319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320 (exit $ac_status); }; } &&
34321 { ac_try='test -s conftest.$ac_objext'
34322 { (case "(($ac_try" in
34323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34324 *) ac_try_echo=$ac_try;;
34325 esac
34326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34327 (eval "$ac_try") 2>&5
34328 ac_status=$?
34329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330 (exit $ac_status); }; }; then
34331 llvm_cv_cxx_visibility_inlines_hidden=yes
34332 else
34333 echo "$as_me: failed program was:" >&5
34334 sed 's/^/| /' conftest.$ac_ext >&5
34336 llvm_cv_cxx_visibility_inlines_hidden=no
34339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34340 CXXFLAGS="$oldcxxflags"
34341 ac_ext=c
34342 ac_cpp='$CPP $CPPFLAGS'
34343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34349 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34350 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34351 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34352 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34354 else
34355 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34361 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34363 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34365 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34367 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34369 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34372 ac_config_files="$ac_config_files Makefile.config"
34375 ac_config_files="$ac_config_files llvm.spec"
34378 ac_config_files="$ac_config_files docs/doxygen.cfg"
34381 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34384 ac_config_commands="$ac_config_commands setup"
34386 ac_config_commands="$ac_config_commands Makefile"
34389 ac_config_commands="$ac_config_commands Makefile.common"
34392 ac_config_commands="$ac_config_commands examples/Makefile"
34395 ac_config_commands="$ac_config_commands lib/Makefile"
34398 ac_config_commands="$ac_config_commands runtime/Makefile"
34401 ac_config_commands="$ac_config_commands test/Makefile"
34404 ac_config_commands="$ac_config_commands test/Makefile.tests"
34407 ac_config_commands="$ac_config_commands tools/Makefile"
34410 ac_config_commands="$ac_config_commands utils/Makefile"
34413 ac_config_commands="$ac_config_commands projects/Makefile"
34416 ac_config_commands="$ac_config_commands bindings/Makefile"
34419 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34423 cat >confcache <<\_ACEOF
34424 # This file is a shell script that caches the results of configure
34425 # tests run on this system so they can be shared between configure
34426 # scripts and configure runs, see configure's option --config-cache.
34427 # It is not useful on other systems. If it contains results you don't
34428 # want to keep, you may remove or edit it.
34430 # config.status only pays attention to the cache file if you give it
34431 # the --recheck option to rerun configure.
34433 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34434 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34435 # following values.
34437 _ACEOF
34439 # The following way of writing the cache mishandles newlines in values,
34440 # but we know of no workaround that is simple, portable, and efficient.
34441 # So, we kill variables containing newlines.
34442 # Ultrix sh set writes to stderr and can't be redirected directly,
34443 # and sets the high bit in the cache file unless we assign to the vars.
34445 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34446 eval ac_val=\$$ac_var
34447 case $ac_val in #(
34448 *${as_nl}*)
34449 case $ac_var in #(
34450 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34451 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34452 esac
34453 case $ac_var in #(
34454 _ | IFS | as_nl) ;; #(
34455 *) $as_unset $ac_var ;;
34456 esac ;;
34457 esac
34458 done
34460 (set) 2>&1 |
34461 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34462 *${as_nl}ac_space=\ *)
34463 # `set' does not quote correctly, so add quotes (double-quote
34464 # substitution turns \\\\ into \\, and sed turns \\ into \).
34465 sed -n \
34466 "s/'/'\\\\''/g;
34467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34468 ;; #(
34470 # `set' quotes correctly as required by POSIX, so do not add quotes.
34471 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34473 esac |
34474 sort
34476 sed '
34477 /^ac_cv_env_/b end
34478 t clear
34479 :clear
34480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34481 t end
34482 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34483 :end' >>confcache
34484 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34485 if test -w "$cache_file"; then
34486 test "x$cache_file" != "x/dev/null" &&
34487 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34488 echo "$as_me: updating cache $cache_file" >&6;}
34489 cat confcache >$cache_file
34490 else
34491 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34492 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34495 rm -f confcache
34497 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34498 # Let make expand exec_prefix.
34499 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34501 DEFS=-DHAVE_CONFIG_H
34503 ac_libobjs=
34504 ac_ltlibobjs=
34505 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34506 # 1. Remove the extension, and $U if already installed.
34507 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34508 ac_i=`echo "$ac_i" | sed "$ac_script"`
34509 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34510 # will be set to the directory where LIBOBJS objects are built.
34511 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34512 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34513 done
34514 LIBOBJS=$ac_libobjs
34516 LTLIBOBJS=$ac_ltlibobjs
34519 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34520 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34521 Usually this means the macro was only invoked conditionally." >&5
34522 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34523 Usually this means the macro was only invoked conditionally." >&2;}
34524 { (exit 1); exit 1; }; }
34526 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34527 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34528 Usually this means the macro was only invoked conditionally." >&5
34529 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34530 Usually this means the macro was only invoked conditionally." >&2;}
34531 { (exit 1); exit 1; }; }
34534 : ${CONFIG_STATUS=./config.status}
34535 ac_clean_files_save=$ac_clean_files
34536 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34537 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34538 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34539 cat >$CONFIG_STATUS <<_ACEOF
34540 #! $SHELL
34541 # Generated by $as_me.
34542 # Run this file to recreate the current configuration.
34543 # Compiler output produced by configure, useful for debugging
34544 # configure, is in config.log if it exists.
34546 debug=false
34547 ac_cs_recheck=false
34548 ac_cs_silent=false
34549 SHELL=\${CONFIG_SHELL-$SHELL}
34550 _ACEOF
34552 cat >>$CONFIG_STATUS <<\_ACEOF
34553 ## --------------------- ##
34554 ## M4sh Initialization. ##
34555 ## --------------------- ##
34557 # Be Bourne compatible
34558 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34559 emulate sh
34560 NULLCMD=:
34561 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34562 # is contrary to our usage. Disable this feature.
34563 alias -g '${1+"$@"}'='"$@"'
34564 setopt NO_GLOB_SUBST
34565 else
34566 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34568 BIN_SH=xpg4; export BIN_SH # for Tru64
34569 DUALCASE=1; export DUALCASE # for MKS sh
34572 # PATH needs CR
34573 # Avoid depending upon Character Ranges.
34574 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34575 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34576 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34577 as_cr_digits='0123456789'
34578 as_cr_alnum=$as_cr_Letters$as_cr_digits
34580 # The user is always right.
34581 if test "${PATH_SEPARATOR+set}" != set; then
34582 echo "#! /bin/sh" >conf$$.sh
34583 echo "exit 0" >>conf$$.sh
34584 chmod +x conf$$.sh
34585 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34586 PATH_SEPARATOR=';'
34587 else
34588 PATH_SEPARATOR=:
34590 rm -f conf$$.sh
34593 # Support unset when possible.
34594 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34595 as_unset=unset
34596 else
34597 as_unset=false
34601 # IFS
34602 # We need space, tab and new line, in precisely that order. Quoting is
34603 # there to prevent editors from complaining about space-tab.
34604 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34605 # splitting by setting IFS to empty value.)
34606 as_nl='
34608 IFS=" "" $as_nl"
34610 # Find who we are. Look in the path if we contain no directory separator.
34611 case $0 in
34612 *[\\/]* ) as_myself=$0 ;;
34613 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34614 for as_dir in $PATH
34616 IFS=$as_save_IFS
34617 test -z "$as_dir" && as_dir=.
34618 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34619 done
34620 IFS=$as_save_IFS
34623 esac
34624 # We did not find ourselves, most probably we were run as `sh COMMAND'
34625 # in which case we are not to be found in the path.
34626 if test "x$as_myself" = x; then
34627 as_myself=$0
34629 if test ! -f "$as_myself"; then
34630 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34631 { (exit 1); exit 1; }
34634 # Work around bugs in pre-3.0 UWIN ksh.
34635 for as_var in ENV MAIL MAILPATH
34636 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34637 done
34638 PS1='$ '
34639 PS2='> '
34640 PS4='+ '
34642 # NLS nuisances.
34643 for as_var in \
34644 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34645 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34646 LC_TELEPHONE LC_TIME
34648 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34649 eval $as_var=C; export $as_var
34650 else
34651 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34653 done
34655 # Required to use basename.
34656 if expr a : '\(a\)' >/dev/null 2>&1 &&
34657 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34658 as_expr=expr
34659 else
34660 as_expr=false
34663 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34664 as_basename=basename
34665 else
34666 as_basename=false
34670 # Name of the executable.
34671 as_me=`$as_basename -- "$0" ||
34672 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34673 X"$0" : 'X\(//\)$' \| \
34674 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34675 echo X/"$0" |
34676 sed '/^.*\/\([^/][^/]*\)\/*$/{
34677 s//\1/
34680 /^X\/\(\/\/\)$/{
34681 s//\1/
34684 /^X\/\(\/\).*/{
34685 s//\1/
34688 s/.*/./; q'`
34690 # CDPATH.
34691 $as_unset CDPATH
34695 as_lineno_1=$LINENO
34696 as_lineno_2=$LINENO
34697 test "x$as_lineno_1" != "x$as_lineno_2" &&
34698 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34700 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34701 # uniformly replaced by the line number. The first 'sed' inserts a
34702 # line-number line after each line using $LINENO; the second 'sed'
34703 # does the real work. The second script uses 'N' to pair each
34704 # line-number line with the line containing $LINENO, and appends
34705 # trailing '-' during substitution so that $LINENO is not a special
34706 # case at line end.
34707 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34708 # scripts with optimization help from Paolo Bonzini. Blame Lee
34709 # E. McMahon (1931-1989) for sed's syntax. :-)
34710 sed -n '
34712 /[$]LINENO/=
34713 ' <$as_myself |
34714 sed '
34715 s/[$]LINENO.*/&-/
34716 t lineno
34718 :lineno
34720 :loop
34721 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34722 t loop
34723 s/-\n.*//
34724 ' >$as_me.lineno &&
34725 chmod +x "$as_me.lineno" ||
34726 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34727 { (exit 1); exit 1; }; }
34729 # Don't try to exec as it changes $[0], causing all sort of problems
34730 # (the dirname of $[0] is not the place where we might find the
34731 # original and so on. Autoconf is especially sensitive to this).
34732 . "./$as_me.lineno"
34733 # Exit status is that of the last command.
34734 exit
34738 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34739 as_dirname=dirname
34740 else
34741 as_dirname=false
34744 ECHO_C= ECHO_N= ECHO_T=
34745 case `echo -n x` in
34746 -n*)
34747 case `echo 'x\c'` in
34748 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34749 *) ECHO_C='\c';;
34750 esac;;
34752 ECHO_N='-n';;
34753 esac
34755 if expr a : '\(a\)' >/dev/null 2>&1 &&
34756 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34757 as_expr=expr
34758 else
34759 as_expr=false
34762 rm -f conf$$ conf$$.exe conf$$.file
34763 if test -d conf$$.dir; then
34764 rm -f conf$$.dir/conf$$.file
34765 else
34766 rm -f conf$$.dir
34767 mkdir conf$$.dir
34769 echo >conf$$.file
34770 if ln -s conf$$.file conf$$ 2>/dev/null; then
34771 as_ln_s='ln -s'
34772 # ... but there are two gotchas:
34773 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34774 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34775 # In both cases, we have to default to `cp -p'.
34776 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34777 as_ln_s='cp -p'
34778 elif ln conf$$.file conf$$ 2>/dev/null; then
34779 as_ln_s=ln
34780 else
34781 as_ln_s='cp -p'
34783 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34784 rmdir conf$$.dir 2>/dev/null
34786 if mkdir -p . 2>/dev/null; then
34787 as_mkdir_p=:
34788 else
34789 test -d ./-p && rmdir ./-p
34790 as_mkdir_p=false
34793 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34794 # systems may use methods other than mode bits to determine executability.
34795 cat >conf$$.file <<_ASEOF
34796 #! /bin/sh
34797 exit 0
34798 _ASEOF
34799 chmod +x conf$$.file
34800 if test -x conf$$.file >/dev/null 2>&1; then
34801 as_executable_p="test -x"
34802 else
34803 as_executable_p=:
34805 rm -f conf$$.file
34807 # Sed expression to map a string onto a valid CPP name.
34808 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34810 # Sed expression to map a string onto a valid variable name.
34811 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34814 exec 6>&1
34816 # Save the log message, to keep $[0] and so on meaningful, and to
34817 # report actual input values of CONFIG_FILES etc. instead of their
34818 # values after options handling.
34819 ac_log="
34820 This file was extended by llvm $as_me 2.4svn, which was
34821 generated by GNU Autoconf 2.60. Invocation command line was
34823 CONFIG_FILES = $CONFIG_FILES
34824 CONFIG_HEADERS = $CONFIG_HEADERS
34825 CONFIG_LINKS = $CONFIG_LINKS
34826 CONFIG_COMMANDS = $CONFIG_COMMANDS
34827 $ $0 $@
34829 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34832 _ACEOF
34834 cat >>$CONFIG_STATUS <<_ACEOF
34835 # Files that config.status was made for.
34836 config_files="$ac_config_files"
34837 config_headers="$ac_config_headers"
34838 config_commands="$ac_config_commands"
34840 _ACEOF
34842 cat >>$CONFIG_STATUS <<\_ACEOF
34843 ac_cs_usage="\
34844 \`$as_me' instantiates files from templates according to the
34845 current configuration.
34847 Usage: $0 [OPTIONS] [FILE]...
34849 -h, --help print this help, then exit
34850 -V, --version print version number, then exit
34851 -q, --quiet do not print progress messages
34852 -d, --debug don't remove temporary files
34853 --recheck update $as_me by reconfiguring in the same conditions
34854 --file=FILE[:TEMPLATE]
34855 instantiate the configuration file FILE
34856 --header=FILE[:TEMPLATE]
34857 instantiate the configuration header FILE
34859 Configuration files:
34860 $config_files
34862 Configuration headers:
34863 $config_headers
34865 Configuration commands:
34866 $config_commands
34868 Report bugs to <bug-autoconf@gnu.org>."
34870 _ACEOF
34871 cat >>$CONFIG_STATUS <<_ACEOF
34872 ac_cs_version="\\
34873 llvm config.status 2.4svn
34874 configured by $0, generated by GNU Autoconf 2.60,
34875 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34877 Copyright (C) 2006 Free Software Foundation, Inc.
34878 This config.status script is free software; the Free Software Foundation
34879 gives unlimited permission to copy, distribute and modify it."
34881 ac_pwd='$ac_pwd'
34882 srcdir='$srcdir'
34883 INSTALL='$INSTALL'
34884 _ACEOF
34886 cat >>$CONFIG_STATUS <<\_ACEOF
34887 # If no file are specified by the user, then we need to provide default
34888 # value. By we need to know if files were specified by the user.
34889 ac_need_defaults=:
34890 while test $# != 0
34892 case $1 in
34893 --*=*)
34894 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34895 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34896 ac_shift=:
34899 ac_option=$1
34900 ac_optarg=$2
34901 ac_shift=shift
34903 esac
34905 case $ac_option in
34906 # Handling of the options.
34907 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34908 ac_cs_recheck=: ;;
34909 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34910 echo "$ac_cs_version"; exit ;;
34911 --debug | --debu | --deb | --de | --d | -d )
34912 debug=: ;;
34913 --file | --fil | --fi | --f )
34914 $ac_shift
34915 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34916 ac_need_defaults=false;;
34917 --header | --heade | --head | --hea )
34918 $ac_shift
34919 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34920 ac_need_defaults=false;;
34921 --he | --h)
34922 # Conflict between --help and --header
34923 { echo "$as_me: error: ambiguous option: $1
34924 Try \`$0 --help' for more information." >&2
34925 { (exit 1); exit 1; }; };;
34926 --help | --hel | -h )
34927 echo "$ac_cs_usage"; exit ;;
34928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34929 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34930 ac_cs_silent=: ;;
34932 # This is an error.
34933 -*) { echo "$as_me: error: unrecognized option: $1
34934 Try \`$0 --help' for more information." >&2
34935 { (exit 1); exit 1; }; } ;;
34937 *) ac_config_targets="$ac_config_targets $1"
34938 ac_need_defaults=false ;;
34940 esac
34941 shift
34942 done
34944 ac_configure_extra_args=
34946 if $ac_cs_silent; then
34947 exec 6>/dev/null
34948 ac_configure_extra_args="$ac_configure_extra_args --silent"
34951 _ACEOF
34952 cat >>$CONFIG_STATUS <<_ACEOF
34953 if \$ac_cs_recheck; then
34954 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34955 CONFIG_SHELL=$SHELL
34956 export CONFIG_SHELL
34957 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34960 _ACEOF
34961 cat >>$CONFIG_STATUS <<\_ACEOF
34962 exec 5>>config.log
34964 echo
34965 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34966 ## Running $as_me. ##
34967 _ASBOX
34968 echo "$ac_log"
34969 } >&5
34971 _ACEOF
34972 cat >>$CONFIG_STATUS <<_ACEOF
34974 # INIT-COMMANDS
34976 llvm_src="${srcdir}"
34978 _ACEOF
34980 cat >>$CONFIG_STATUS <<\_ACEOF
34982 # Handling of arguments.
34983 for ac_config_target in $ac_config_targets
34985 case $ac_config_target in
34986 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34987 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34988 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
34989 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
34990 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34991 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34992 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34993 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34994 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34995 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34996 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34997 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34998 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34999 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35000 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35001 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35002 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35003 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35004 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35005 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35006 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35007 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35009 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35010 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35011 { (exit 1); exit 1; }; };;
35012 esac
35013 done
35016 # If the user did not use the arguments to specify the items to instantiate,
35017 # then the envvar interface is used. Set only those that are not.
35018 # We use the long form for the default assignment because of an extremely
35019 # bizarre bug on SunOS 4.1.3.
35020 if $ac_need_defaults; then
35021 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35022 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35023 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35026 # Have a temporary directory for convenience. Make it in the build tree
35027 # simply because there is no reason against having it here, and in addition,
35028 # creating and moving files from /tmp can sometimes cause problems.
35029 # Hook for its removal unless debugging.
35030 # Note that there is a small window in which the directory will not be cleaned:
35031 # after its creation but before its name has been assigned to `$tmp'.
35032 $debug ||
35034 tmp=
35035 trap 'exit_status=$?
35036 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35038 trap '{ (exit 1); exit 1; }' 1 2 13 15
35040 # Create a (secure) tmp directory for tmp files.
35043 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35044 test -n "$tmp" && test -d "$tmp"
35045 } ||
35047 tmp=./conf$$-$RANDOM
35048 (umask 077 && mkdir "$tmp")
35049 } ||
35051 echo "$me: cannot create a temporary directory in ." >&2
35052 { (exit 1); exit 1; }
35056 # Set up the sed scripts for CONFIG_FILES section.
35059 # No need to generate the scripts if there are no CONFIG_FILES.
35060 # This happens for instance when ./config.status config.h
35061 if test -n "$CONFIG_FILES"; then
35063 _ACEOF
35067 ac_delim='%!_!# '
35068 for ac_last_try in false false false false false :; do
35069 cat >conf$$subs.sed <<_ACEOF
35070 SHELL!$SHELL$ac_delim
35071 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35072 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35073 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35074 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35075 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35076 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35077 exec_prefix!$exec_prefix$ac_delim
35078 prefix!$prefix$ac_delim
35079 program_transform_name!$program_transform_name$ac_delim
35080 bindir!$bindir$ac_delim
35081 sbindir!$sbindir$ac_delim
35082 libexecdir!$libexecdir$ac_delim
35083 datarootdir!$datarootdir$ac_delim
35084 datadir!$datadir$ac_delim
35085 sysconfdir!$sysconfdir$ac_delim
35086 sharedstatedir!$sharedstatedir$ac_delim
35087 localstatedir!$localstatedir$ac_delim
35088 includedir!$includedir$ac_delim
35089 oldincludedir!$oldincludedir$ac_delim
35090 docdir!$docdir$ac_delim
35091 infodir!$infodir$ac_delim
35092 htmldir!$htmldir$ac_delim
35093 dvidir!$dvidir$ac_delim
35094 pdfdir!$pdfdir$ac_delim
35095 psdir!$psdir$ac_delim
35096 libdir!$libdir$ac_delim
35097 localedir!$localedir$ac_delim
35098 mandir!$mandir$ac_delim
35099 DEFS!$DEFS$ac_delim
35100 ECHO_C!$ECHO_C$ac_delim
35101 ECHO_N!$ECHO_N$ac_delim
35102 ECHO_T!$ECHO_T$ac_delim
35103 LIBS!$LIBS$ac_delim
35104 build_alias!$build_alias$ac_delim
35105 host_alias!$host_alias$ac_delim
35106 target_alias!$target_alias$ac_delim
35107 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35108 subdirs!$subdirs$ac_delim
35109 build!$build$ac_delim
35110 build_cpu!$build_cpu$ac_delim
35111 build_vendor!$build_vendor$ac_delim
35112 build_os!$build_os$ac_delim
35113 host!$host$ac_delim
35114 host_cpu!$host_cpu$ac_delim
35115 host_vendor!$host_vendor$ac_delim
35116 host_os!$host_os$ac_delim
35117 target!$target$ac_delim
35118 target_cpu!$target_cpu$ac_delim
35119 target_vendor!$target_vendor$ac_delim
35120 target_os!$target_os$ac_delim
35121 OS!$OS$ac_delim
35122 LINKALL!$LINKALL$ac_delim
35123 NOLINKALL!$NOLINKALL$ac_delim
35124 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35125 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35126 ARCH!$ARCH$ac_delim
35127 ENDIAN!$ENDIAN$ac_delim
35128 CC!$CC$ac_delim
35129 CFLAGS!$CFLAGS$ac_delim
35130 LDFLAGS!$LDFLAGS$ac_delim
35131 CPPFLAGS!$CPPFLAGS$ac_delim
35132 ac_ct_CC!$ac_ct_CC$ac_delim
35133 EXEEXT!$EXEEXT$ac_delim
35134 OBJEXT!$OBJEXT$ac_delim
35135 CPP!$CPP$ac_delim
35136 GREP!$GREP$ac_delim
35137 EGREP!$EGREP$ac_delim
35138 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35139 BUILD_CC!$BUILD_CC$ac_delim
35140 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35141 CVSBUILD!$CVSBUILD$ac_delim
35142 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35143 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35144 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35145 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35146 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35147 JIT!$JIT$ac_delim
35148 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35149 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35150 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35151 ENABLE_PIC!$ENABLE_PIC$ac_delim
35152 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35153 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35154 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35155 CXX!$CXX$ac_delim
35156 CXXFLAGS!$CXXFLAGS$ac_delim
35157 ac_ct_CXX!$ac_ct_CXX$ac_delim
35158 LEX!$LEX$ac_delim
35159 LEXLIB!$LEXLIB$ac_delim
35160 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35161 FLEX!$FLEX$ac_delim
35162 YACC!$YACC$ac_delim
35163 YFLAGS!$YFLAGS$ac_delim
35164 BISON!$BISON$ac_delim
35165 NM!$NM$ac_delim
35166 ifGNUmake!$ifGNUmake$ac_delim
35167 _ACEOF
35169 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35170 break
35171 elif $ac_last_try; then
35172 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35173 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35174 { (exit 1); exit 1; }; }
35175 else
35176 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35178 done
35180 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35181 if test -n "$ac_eof"; then
35182 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35183 ac_eof=`expr $ac_eof + 1`
35186 cat >>$CONFIG_STATUS <<_ACEOF
35187 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35189 _ACEOF
35190 sed '
35191 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35192 s/^/s,@/; s/!/@,|#_!!_#|/
35195 s/'"$ac_delim"'$/,g/; t
35196 s/$/\\/; p
35197 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35198 ' >>$CONFIG_STATUS <conf$$subs.sed
35199 rm -f conf$$subs.sed
35200 cat >>$CONFIG_STATUS <<_ACEOF
35201 CEOF$ac_eof
35202 _ACEOF
35205 ac_delim='%!_!# '
35206 for ac_last_try in false false false false false :; do
35207 cat >conf$$subs.sed <<_ACEOF
35208 LN_S!$LN_S$ac_delim
35209 CMP!$CMP$ac_delim
35210 CP!$CP$ac_delim
35211 DATE!$DATE$ac_delim
35212 FIND!$FIND$ac_delim
35213 MKDIR!$MKDIR$ac_delim
35214 MV!$MV$ac_delim
35215 RANLIB!$RANLIB$ac_delim
35216 RM!$RM$ac_delim
35217 SED!$SED$ac_delim
35218 TAR!$TAR$ac_delim
35219 BINPWD!$BINPWD$ac_delim
35220 GRAPHVIZ!$GRAPHVIZ$ac_delim
35221 DOT!$DOT$ac_delim
35222 GV!$GV$ac_delim
35223 DOTTY!$DOTTY$ac_delim
35224 PERL!$PERL$ac_delim
35225 HAVE_PERL!$HAVE_PERL$ac_delim
35226 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35227 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35228 INSTALL_DATA!$INSTALL_DATA$ac_delim
35229 BZIP2!$BZIP2$ac_delim
35230 DOXYGEN!$DOXYGEN$ac_delim
35231 GROFF!$GROFF$ac_delim
35232 GZIP!$GZIP$ac_delim
35233 POD2HTML!$POD2HTML$ac_delim
35234 POD2MAN!$POD2MAN$ac_delim
35235 RUNTEST!$RUNTEST$ac_delim
35236 TCLSH!$TCLSH$ac_delim
35237 ZIP!$ZIP$ac_delim
35238 OCAMLC!$OCAMLC$ac_delim
35239 OCAMLOPT!$OCAMLOPT$ac_delim
35240 OCAMLDEP!$OCAMLDEP$ac_delim
35241 OCAMLDOC!$OCAMLDOC$ac_delim
35242 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35243 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35244 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35245 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35246 LIBADD_DL!$LIBADD_DL$ac_delim
35247 ECHO!$ECHO$ac_delim
35248 AR!$AR$ac_delim
35249 STRIP!$STRIP$ac_delim
35250 CXXCPP!$CXXCPP$ac_delim
35251 F77!$F77$ac_delim
35252 FFLAGS!$FFLAGS$ac_delim
35253 ac_ct_F77!$ac_ct_F77$ac_delim
35254 LIBTOOL!$LIBTOOL$ac_delim
35255 LLVMGCC!$LLVMGCC$ac_delim
35256 LLVMGXX!$LLVMGXX$ac_delim
35257 USE_UDIS86!$USE_UDIS86$ac_delim
35258 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35259 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35260 ALLOCA!$ALLOCA$ac_delim
35261 MMAP_FILE!$MMAP_FILE$ac_delim
35262 LLVMCC1!$LLVMCC1$ac_delim
35263 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35264 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35265 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35266 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35267 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35268 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35269 SHLIBEXT!$SHLIBEXT$ac_delim
35270 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35271 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35272 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35273 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35274 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35275 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35276 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35277 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35278 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35279 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35280 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35281 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35282 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35283 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35284 LIBOBJS!$LIBOBJS$ac_delim
35285 LTLIBOBJS!$LTLIBOBJS$ac_delim
35286 _ACEOF
35288 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
35289 break
35290 elif $ac_last_try; then
35291 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35292 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35293 { (exit 1); exit 1; }; }
35294 else
35295 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35297 done
35299 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35300 if test -n "$ac_eof"; then
35301 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35302 ac_eof=`expr $ac_eof + 1`
35305 cat >>$CONFIG_STATUS <<_ACEOF
35306 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35307 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35308 _ACEOF
35309 sed '
35310 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35311 s/^/s,@/; s/!/@,|#_!!_#|/
35314 s/'"$ac_delim"'$/,g/; t
35315 s/$/\\/; p
35316 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35317 ' >>$CONFIG_STATUS <conf$$subs.sed
35318 rm -f conf$$subs.sed
35319 cat >>$CONFIG_STATUS <<_ACEOF
35320 :end
35321 s/|#_!!_#|//g
35322 CEOF$ac_eof
35323 _ACEOF
35326 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35327 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35328 # trailing colons and then remove the whole line if VPATH becomes empty
35329 # (actually we leave an empty line to preserve line numbers).
35330 if test "x$srcdir" = x.; then
35331 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35332 s/:*\$(srcdir):*/:/
35333 s/:*\${srcdir}:*/:/
35334 s/:*@srcdir@:*/:/
35335 s/^\([^=]*=[ ]*\):*/\1/
35336 s/:*$//
35337 s/^[^=]*=[ ]*$//
35341 cat >>$CONFIG_STATUS <<\_ACEOF
35342 fi # test -n "$CONFIG_FILES"
35345 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35347 case $ac_tag in
35348 :[FHLC]) ac_mode=$ac_tag; continue;;
35349 esac
35350 case $ac_mode$ac_tag in
35351 :[FHL]*:*);;
35352 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35353 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35354 { (exit 1); exit 1; }; };;
35355 :[FH]-) ac_tag=-:-;;
35356 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35357 esac
35358 ac_save_IFS=$IFS
35359 IFS=:
35360 set x $ac_tag
35361 IFS=$ac_save_IFS
35362 shift
35363 ac_file=$1
35364 shift
35366 case $ac_mode in
35367 :L) ac_source=$1;;
35368 :[FH])
35369 ac_file_inputs=
35370 for ac_f
35372 case $ac_f in
35373 -) ac_f="$tmp/stdin";;
35374 *) # Look for the file first in the build tree, then in the source tree
35375 # (if the path is not absolute). The absolute path cannot be DOS-style,
35376 # because $ac_f cannot contain `:'.
35377 test -f "$ac_f" ||
35378 case $ac_f in
35379 [\\/$]*) false;;
35380 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35381 esac ||
35382 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35383 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35384 { (exit 1); exit 1; }; };;
35385 esac
35386 ac_file_inputs="$ac_file_inputs $ac_f"
35387 done
35389 # Let's still pretend it is `configure' which instantiates (i.e., don't
35390 # use $as_me), people would be surprised to read:
35391 # /* config.h. Generated by config.status. */
35392 configure_input="Generated from "`IFS=:
35393 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35394 if test x"$ac_file" != x-; then
35395 configure_input="$ac_file. $configure_input"
35396 { echo "$as_me:$LINENO: creating $ac_file" >&5
35397 echo "$as_me: creating $ac_file" >&6;}
35400 case $ac_tag in
35401 *:-:* | *:-) cat >"$tmp/stdin";;
35402 esac
35404 esac
35406 ac_dir=`$as_dirname -- "$ac_file" ||
35407 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35408 X"$ac_file" : 'X\(//\)[^/]' \| \
35409 X"$ac_file" : 'X\(//\)$' \| \
35410 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35411 echo X"$ac_file" |
35412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35413 s//\1/
35416 /^X\(\/\/\)[^/].*/{
35417 s//\1/
35420 /^X\(\/\/\)$/{
35421 s//\1/
35424 /^X\(\/\).*/{
35425 s//\1/
35428 s/.*/./; q'`
35429 { as_dir="$ac_dir"
35430 case $as_dir in #(
35431 -*) as_dir=./$as_dir;;
35432 esac
35433 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35434 as_dirs=
35435 while :; do
35436 case $as_dir in #(
35437 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35438 *) as_qdir=$as_dir;;
35439 esac
35440 as_dirs="'$as_qdir' $as_dirs"
35441 as_dir=`$as_dirname -- "$as_dir" ||
35442 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35443 X"$as_dir" : 'X\(//\)[^/]' \| \
35444 X"$as_dir" : 'X\(//\)$' \| \
35445 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35446 echo X"$as_dir" |
35447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35448 s//\1/
35451 /^X\(\/\/\)[^/].*/{
35452 s//\1/
35455 /^X\(\/\/\)$/{
35456 s//\1/
35459 /^X\(\/\).*/{
35460 s//\1/
35463 s/.*/./; q'`
35464 test -d "$as_dir" && break
35465 done
35466 test -z "$as_dirs" || eval "mkdir $as_dirs"
35467 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35468 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35469 { (exit 1); exit 1; }; }; }
35470 ac_builddir=.
35472 case "$ac_dir" in
35473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35475 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35476 # A ".." for each directory in $ac_dir_suffix.
35477 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35478 case $ac_top_builddir_sub in
35479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35481 esac ;;
35482 esac
35483 ac_abs_top_builddir=$ac_pwd
35484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35485 # for backward compatibility:
35486 ac_top_builddir=$ac_top_build_prefix
35488 case $srcdir in
35489 .) # We are building in place.
35490 ac_srcdir=.
35491 ac_top_srcdir=$ac_top_builddir_sub
35492 ac_abs_top_srcdir=$ac_pwd ;;
35493 [\\/]* | ?:[\\/]* ) # Absolute name.
35494 ac_srcdir=$srcdir$ac_dir_suffix;
35495 ac_top_srcdir=$srcdir
35496 ac_abs_top_srcdir=$srcdir ;;
35497 *) # Relative name.
35498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35499 ac_top_srcdir=$ac_top_build_prefix$srcdir
35500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35501 esac
35502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35505 case $ac_mode in
35508 # CONFIG_FILE
35511 case $INSTALL in
35512 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35513 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35514 esac
35515 _ACEOF
35517 cat >>$CONFIG_STATUS <<\_ACEOF
35518 # If the template does not know about datarootdir, expand it.
35519 # FIXME: This hack should be removed a few years after 2.60.
35520 ac_datarootdir_hack=; ac_datarootdir_seen=
35522 case `sed -n '/datarootdir/ {
35526 /@datadir@/p
35527 /@docdir@/p
35528 /@infodir@/p
35529 /@localedir@/p
35530 /@mandir@/p
35531 ' $ac_file_inputs` in
35532 *datarootdir*) ac_datarootdir_seen=yes;;
35533 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35534 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35535 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35536 _ACEOF
35537 cat >>$CONFIG_STATUS <<_ACEOF
35538 ac_datarootdir_hack='
35539 s&@datadir@&$datadir&g
35540 s&@docdir@&$docdir&g
35541 s&@infodir@&$infodir&g
35542 s&@localedir@&$localedir&g
35543 s&@mandir@&$mandir&g
35544 s&\\\${datarootdir}&$datarootdir&g' ;;
35545 esac
35546 _ACEOF
35548 # Neutralize VPATH when `$srcdir' = `.'.
35549 # Shell code in configure.ac might set extrasub.
35550 # FIXME: do we really want to maintain this feature?
35551 cat >>$CONFIG_STATUS <<_ACEOF
35552 sed "$ac_vpsub
35553 $extrasub
35554 _ACEOF
35555 cat >>$CONFIG_STATUS <<\_ACEOF
35557 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35558 s&@configure_input@&$configure_input&;t t
35559 s&@top_builddir@&$ac_top_builddir_sub&;t t
35560 s&@srcdir@&$ac_srcdir&;t t
35561 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35562 s&@top_srcdir@&$ac_top_srcdir&;t t
35563 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35564 s&@builddir@&$ac_builddir&;t t
35565 s&@abs_builddir@&$ac_abs_builddir&;t t
35566 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35567 s&@INSTALL@&$ac_INSTALL&;t t
35568 $ac_datarootdir_hack
35569 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35571 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35572 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35573 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35574 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35575 which seems to be undefined. Please make sure it is defined." >&5
35576 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35577 which seems to be undefined. Please make sure it is defined." >&2;}
35579 rm -f "$tmp/stdin"
35580 case $ac_file in
35581 -) cat "$tmp/out"; rm -f "$tmp/out";;
35582 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35583 esac
35587 # CONFIG_HEADER
35589 _ACEOF
35591 # Transform confdefs.h into a sed script `conftest.defines', that
35592 # substitutes the proper values into config.h.in to produce config.h.
35593 rm -f conftest.defines conftest.tail
35594 # First, append a space to every undef/define line, to ease matching.
35595 echo 's/$/ /' >conftest.defines
35596 # Then, protect against being on the right side of a sed subst, or in
35597 # an unquoted here document, in config.status. If some macros were
35598 # called several times there might be several #defines for the same
35599 # symbol, which is useless. But do not sort them, since the last
35600 # AC_DEFINE must be honored.
35601 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35602 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35603 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35604 # PARAMS is the parameter list in the macro definition--in most cases, it's
35605 # just an empty string.
35606 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35607 ac_dB='\\)[ (].*,\\1define\\2'
35608 ac_dC=' '
35609 ac_dD=' ,'
35611 uniq confdefs.h |
35612 sed -n '
35613 t rset
35614 :rset
35615 s/^[ ]*#[ ]*define[ ][ ]*//
35616 t ok
35619 s/[\\&,]/\\&/g
35620 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35621 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35622 ' >>conftest.defines
35624 # Remove the space that was appended to ease matching.
35625 # Then replace #undef with comments. This is necessary, for
35626 # example, in the case of _POSIX_SOURCE, which is predefined and required
35627 # on some systems where configure will not decide to define it.
35628 # (The regexp can be short, since the line contains either #define or #undef.)
35629 echo 's/ $//
35630 s,^[ #]*u.*,/* & */,' >>conftest.defines
35632 # Break up conftest.defines:
35633 ac_max_sed_lines=50
35635 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35636 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35637 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35638 # et cetera.
35639 ac_in='$ac_file_inputs'
35640 ac_out='"$tmp/out1"'
35641 ac_nxt='"$tmp/out2"'
35643 while :
35645 # Write a here document:
35646 cat >>$CONFIG_STATUS <<_ACEOF
35647 # First, check the format of the line:
35648 cat >"\$tmp/defines.sed" <<\\CEOF
35649 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35650 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35652 :def
35653 _ACEOF
35654 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35655 echo 'CEOF
35656 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35657 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35658 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35659 grep . conftest.tail >/dev/null || break
35660 rm -f conftest.defines
35661 mv conftest.tail conftest.defines
35662 done
35663 rm -f conftest.defines conftest.tail
35665 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35666 cat >>$CONFIG_STATUS <<\_ACEOF
35667 if test x"$ac_file" != x-; then
35668 echo "/* $configure_input */" >"$tmp/config.h"
35669 cat "$ac_result" >>"$tmp/config.h"
35670 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35671 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35672 echo "$as_me: $ac_file is unchanged" >&6;}
35673 else
35674 rm -f $ac_file
35675 mv "$tmp/config.h" $ac_file
35677 else
35678 echo "/* $configure_input */"
35679 cat "$ac_result"
35681 rm -f "$tmp/out12"
35684 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35685 echo "$as_me: executing $ac_file commands" >&6;}
35687 esac
35690 case $ac_file$ac_mode in
35691 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35692 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35693 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35694 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35695 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35696 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35697 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35698 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35699 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35700 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35701 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35702 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35703 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35704 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35705 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35706 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35707 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35708 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35709 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35710 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35711 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35712 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35713 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35714 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35716 esac
35717 done # for ac_tag
35720 { (exit 0); exit 0; }
35721 _ACEOF
35722 chmod +x $CONFIG_STATUS
35723 ac_clean_files=$ac_clean_files_save
35726 # configure is writing to config.log, and then calls config.status.
35727 # config.status does its own redirection, appending to config.log.
35728 # Unfortunately, on DOS this fails, as config.log is still kept open
35729 # by configure, so config.status won't be able to write to it; its
35730 # output is simply discarded. So we exec the FD to /dev/null,
35731 # effectively closing config.log, so it can be properly (re)opened and
35732 # appended to by config.status. When coming back to configure, we
35733 # need to make the FD available again.
35734 if test "$no_create" != yes; then
35735 ac_cs_success=:
35736 ac_config_status_args=
35737 test "$silent" = yes &&
35738 ac_config_status_args="$ac_config_status_args --quiet"
35739 exec 5>/dev/null
35740 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35741 exec 5>>config.log
35742 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35743 # would make configure fail if this is the last instruction.
35744 $ac_cs_success || { (exit 1); exit 1; }
35748 # CONFIG_SUBDIRS section.
35750 if test "$no_recursion" != yes; then
35752 # Remove --cache-file and --srcdir arguments so they do not pile up.
35753 ac_sub_configure_args=
35754 ac_prev=
35755 eval "set x $ac_configure_args"
35756 shift
35757 for ac_arg
35759 if test -n "$ac_prev"; then
35760 ac_prev=
35761 continue
35763 case $ac_arg in
35764 -cache-file | --cache-file | --cache-fil | --cache-fi \
35765 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35766 ac_prev=cache_file ;;
35767 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35768 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35769 | --c=*)
35771 --config-cache | -C)
35773 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35774 ac_prev=srcdir ;;
35775 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35777 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35778 ac_prev=prefix ;;
35779 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35782 case $ac_arg in
35783 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35784 esac
35785 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35786 esac
35787 done
35789 # Always prepend --prefix to ensure using the same prefix
35790 # in subdir configurations.
35791 ac_arg="--prefix=$prefix"
35792 case $ac_arg in
35793 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35794 esac
35795 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35797 ac_popdir=`pwd`
35798 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35800 # Do not complain, so a configure script can configure whichever
35801 # parts of a large source tree are present.
35802 test -d "$srcdir/$ac_dir" || continue
35804 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35805 echo "$as_me:$LINENO: $ac_msg" >&5
35806 echo "$ac_msg" >&6
35807 { as_dir="$ac_dir"
35808 case $as_dir in #(
35809 -*) as_dir=./$as_dir;;
35810 esac
35811 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35812 as_dirs=
35813 while :; do
35814 case $as_dir in #(
35815 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35816 *) as_qdir=$as_dir;;
35817 esac
35818 as_dirs="'$as_qdir' $as_dirs"
35819 as_dir=`$as_dirname -- "$as_dir" ||
35820 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35821 X"$as_dir" : 'X\(//\)[^/]' \| \
35822 X"$as_dir" : 'X\(//\)$' \| \
35823 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35824 echo X"$as_dir" |
35825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35826 s//\1/
35829 /^X\(\/\/\)[^/].*/{
35830 s//\1/
35833 /^X\(\/\/\)$/{
35834 s//\1/
35837 /^X\(\/\).*/{
35838 s//\1/
35841 s/.*/./; q'`
35842 test -d "$as_dir" && break
35843 done
35844 test -z "$as_dirs" || eval "mkdir $as_dirs"
35845 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35846 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35847 { (exit 1); exit 1; }; }; }
35848 ac_builddir=.
35850 case "$ac_dir" in
35851 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35853 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35854 # A ".." for each directory in $ac_dir_suffix.
35855 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35856 case $ac_top_builddir_sub in
35857 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35858 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35859 esac ;;
35860 esac
35861 ac_abs_top_builddir=$ac_pwd
35862 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35863 # for backward compatibility:
35864 ac_top_builddir=$ac_top_build_prefix
35866 case $srcdir in
35867 .) # We are building in place.
35868 ac_srcdir=.
35869 ac_top_srcdir=$ac_top_builddir_sub
35870 ac_abs_top_srcdir=$ac_pwd ;;
35871 [\\/]* | ?:[\\/]* ) # Absolute name.
35872 ac_srcdir=$srcdir$ac_dir_suffix;
35873 ac_top_srcdir=$srcdir
35874 ac_abs_top_srcdir=$srcdir ;;
35875 *) # Relative name.
35876 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35877 ac_top_srcdir=$ac_top_build_prefix$srcdir
35878 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35879 esac
35880 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35883 cd "$ac_dir"
35885 # Check for guested configure; otherwise get Cygnus style configure.
35886 if test -f "$ac_srcdir/configure.gnu"; then
35887 ac_sub_configure=$ac_srcdir/configure.gnu
35888 elif test -f "$ac_srcdir/configure"; then
35889 ac_sub_configure=$ac_srcdir/configure
35890 elif test -f "$ac_srcdir/configure.in"; then
35891 # This should be Cygnus configure.
35892 ac_sub_configure=$ac_aux_dir/configure
35893 else
35894 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35895 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35896 ac_sub_configure=
35899 # The recursion is here.
35900 if test -n "$ac_sub_configure"; then
35901 # Make the cache file name correct relative to the subdirectory.
35902 case $cache_file in
35903 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35904 *) # Relative name.
35905 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35906 esac
35908 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35909 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35910 # The eval makes quoting arguments work.
35911 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35912 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35913 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35914 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35915 { (exit 1); exit 1; }; }
35918 cd "$ac_popdir"
35919 done